From b2fc3d2874f4935c5b4fa33730c1cd9da9bfb968 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Mon, 14 Feb 2022 16:26:01 -0800 Subject: [PATCH 01/29] feat: SampleComposer, Sample, Region Tag --- .../engine/writer/ImportWriterVisitor.java | 7 - .../composer/comment/CommentComposer.java | 12 + .../samplecode/SampleCodeJavaFormatter.java | 67 ---- .../composer/samplecode/SampleCodeWriter.java | 13 +- .../composer/samplecode/SampleComposer.java | 189 +++++++++ .../api/generator/gapic/model/RegionTag.java | 94 +++++ .../api/generator/gapic/model/Sample.java | 81 ++++ .../samplecode/SampleComposerTest.java | 358 ++++++++++++++++++ .../generator/gapic/model/RegionTagTest.java | 79 ++++ .../api/generator/gapic/model/SampleTest.java | 69 ++++ 10 files changed, 892 insertions(+), 77 deletions(-) delete mode 100644 src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatter.java create mode 100644 src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java create mode 100644 src/main/java/com/google/api/generator/gapic/model/RegionTag.java create mode 100644 src/main/java/com/google/api/generator/gapic/model/Sample.java create mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java create mode 100644 src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java create mode 100644 src/test/java/com/google/api/generator/gapic/model/SampleTest.java diff --git a/src/main/java/com/google/api/generator/engine/writer/ImportWriterVisitor.java b/src/main/java/com/google/api/generator/engine/writer/ImportWriterVisitor.java index 85274e34b9..0967cea087 100644 --- a/src/main/java/com/google/api/generator/engine/writer/ImportWriterVisitor.java +++ b/src/main/java/com/google/api/generator/engine/writer/ImportWriterVisitor.java @@ -60,7 +60,6 @@ import com.google.api.generator.engine.ast.VaporReference; import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.engine.ast.WhileStatement; -import com.google.common.base.Preconditions; import com.google.common.base.Strings; import java.util.ArrayList; import java.util.Arrays; @@ -357,13 +356,7 @@ public void visit(TryCatchStatement tryCatchStatement) { if (tryCatchStatement.tryResourceExpr() != null) { tryCatchStatement.tryResourceExpr().accept(this); } - statements(tryCatchStatement.tryBody()); - - Preconditions.checkState( - !tryCatchStatement.isSampleCode() && !tryCatchStatement.catchVariableExprs().isEmpty(), - "Import generation should not be invoked on sample code, but was found when visiting a" - + " try-catch block"); for (int i = 0; i < tryCatchStatement.catchVariableExprs().size(); i++) { tryCatchStatement.catchVariableExprs().get(i).accept(this); statements(tryCatchStatement.catchBlocks().get(i)); diff --git a/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java b/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java index 7b9bb2c416..15fcbc0817 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java @@ -17,6 +17,9 @@ import com.google.api.generator.engine.ast.BlockComment; import com.google.api.generator.engine.ast.CommentStatement; import com.google.api.generator.engine.ast.LineComment; +import com.google.api.generator.engine.ast.Statement; +import java.util.Arrays; +import java.util.List; public class CommentComposer { private static final String APACHE_LICENSE_STRING = @@ -52,4 +55,13 @@ public class CommentComposer { public static final CommentStatement AUTO_GENERATED_METHOD_COMMENT = CommentStatement.withComment( LineComment.withComment(AUTO_GENERATED_METHOD_DISCLAIMER_STRING)); + + public static final List AUTO_GENERATED_SAMPLE_COMMENT = + Arrays.asList( + CommentStatement.withComment( + LineComment.withComment( + "This snippet has been automatically generated for illustrative purposes only.")), + CommentStatement.withComment( + LineComment.withComment( + "It may require modifications to work in your environment."))); } diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatter.java deleted file mode 100644 index fe8f0005c7..0000000000 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatter.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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.generator.gapic.composer.samplecode; - -import com.google.common.annotations.VisibleForTesting; -import com.google.googlejavaformat.java.Formatter; -import com.google.googlejavaformat.java.FormatterException; - -public final class SampleCodeJavaFormatter { - - private SampleCodeJavaFormatter() {} - - private static final Formatter FORMATTER = new Formatter(); - - private static final String FAKE_CLASS_TITLE = "public class FakeClass { void fakeMethod() {"; - private static final String FAKE_CLASS_CLOSE = "}}"; - - /** - * This method is used to format sample code string. - * - * @param sampleCode A string is composed by statements. - * @return String Formatted sample code string based on google java style. - */ - public static String format(String sampleCode) { - final StringBuffer buffer = new StringBuffer(); - // Wrap the sample code inside a class for composing a valid Java source code. - // Because we utilized google-java-format to reformat the codes. - buffer.append(FAKE_CLASS_TITLE); - buffer.append(sampleCode); - buffer.append(FAKE_CLASS_CLOSE); - - String formattedString = null; - try { - formattedString = FORMATTER.formatSource(buffer.toString()); - } catch (FormatterException e) { - throw new FormatException( - String.format("The sample code should be string where is composed by statements; %s", e)); - } - // Extract formatted sample code by - // 1. Removing the first and last two lines. - // 2. Delete the first 4 space for each line. - // 3. Trim the last new empty line. - return formattedString - .replaceAll("^([^\n]*\n){2}|([^\n]*\n){2}$", "") - .replaceAll("(?m)^ {4}", "") - .trim(); - } - - @VisibleForTesting - protected static class FormatException extends RuntimeException { - public FormatException(String errorMessage) { - super(errorMessage); - } - } -} diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java index 07abeb9a17..74b3c5c69a 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java @@ -14,6 +14,7 @@ package com.google.api.generator.gapic.composer.samplecode; +import com.google.api.generator.engine.ast.ClassDefinition; import com.google.api.generator.engine.ast.Statement; import com.google.api.generator.engine.writer.JavaWriterVisitor; import java.util.Arrays; @@ -21,17 +22,23 @@ public final class SampleCodeWriter { - public static String write(Statement... statement) { + static String write(Statement... statement) { return write(Arrays.asList(statement)); } - public static String write(List statements) { + static String write(List statements) { JavaWriterVisitor visitor = new JavaWriterVisitor(); for (Statement statement : statements) { statement.accept(visitor); } - String formattedSampleCode = SampleCodeJavaFormatter.format(visitor.write()); + String formattedSampleCode = SampleCodeBodyJavaFormatter.format(visitor.write()); // Escape character "@" in the markdown code block
{@code...} tags.
     return formattedSampleCode.replaceAll("@", "{@literal @}");
   }
+
+  static String write(ClassDefinition classDefinition) {
+    JavaWriterVisitor visitor = new JavaWriterVisitor();
+    classDefinition.accept(visitor);
+    return visitor.write();
+  }
 }
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java
new file mode 100644
index 0000000000..12bfce044a
--- /dev/null
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java
@@ -0,0 +1,189 @@
+// Copyright 2022 Google LLC
+//
+// 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.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.AssignmentExpr;
+import com.google.api.generator.engine.ast.ClassDefinition;
+import com.google.api.generator.engine.ast.Expr;
+import com.google.api.generator.engine.ast.ExprStatement;
+import com.google.api.generator.engine.ast.MethodDefinition;
+import com.google.api.generator.engine.ast.MethodInvocationExpr;
+import com.google.api.generator.engine.ast.ScopeNode;
+import com.google.api.generator.engine.ast.Statement;
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.Variable;
+import com.google.api.generator.engine.ast.VariableExpr;
+import com.google.api.generator.gapic.composer.comment.CommentComposer;
+import com.google.api.generator.gapic.model.RegionTag;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.utils.JavaStyle;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableList;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public class SampleComposer {
+  public static String createInlineSample(List sampleBody) {
+    List statementsWithComment = new ArrayList<>();
+    statementsWithComment.addAll(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT);
+    statementsWithComment.addAll(sampleBody);
+    return SampleCodeWriter.write(statementsWithComment);
+  }
+
+  //  "Executable" meaning it includes the necessary code to execute java code,
+  //  still may require additional configuration to actually execute generated sample code
+  public static String createExecutableSample(Sample sample, String pakkage) {
+    Preconditions.checkState(!sample.fileHeader().isEmpty(), "File header should not be empty");
+    String sampleHeader = SampleCodeWriter.write(sample.fileHeader());
+    String sampleClass =
+        SampleCodeWriter.write(
+            composeExecutableSample(
+                pakkage,
+                sample.name(),
+                sample.variableAssignments(),
+                bodyWithComment(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT, sample.body())));
+    sampleClass = includeRegionTags(sampleClass, sample.regionTag());
+    return String.format("%s\n%s", sampleHeader, sampleClass);
+  }
+
+  private static List bodyWithComment(
+      List autoGeneratedComment, List sampleBody) {
+    List bodyWithComment = new ArrayList<>();
+    bodyWithComment.addAll(autoGeneratedComment);
+    bodyWithComment.addAll(sampleBody);
+    return bodyWithComment;
+  }
+
+  @VisibleForTesting
+  protected static String includeRegionTags(String sampleClass, RegionTag regionTag) {
+    Preconditions.checkState(
+        !regionTag.apiShortName().isEmpty(), "apiShortName should not be empty");
+    String rt = regionTag.apiShortName() + "_";
+    if (!regionTag.apiVersion().isEmpty()) {
+      rt = rt + regionTag.apiVersion() + "_";
+    }
+    rt = rt + "generated_" + regionTag.serviceName() + "_" + regionTag.rpcName();
+    if (!regionTag.overloadDisambiguation().isEmpty()) {
+      rt = rt + "_" + regionTag.overloadDisambiguation();
+    }
+    String start = String.format("// [START %s]", rt.toLowerCase());
+    String end = String.format("// [END %s]", rt.toLowerCase());
+
+    String sampleWithRegionTags = String.format("%s%s", start, sampleClass);
+    //  START region tag should go below package statement
+    if (sampleClass.startsWith("package")) {
+      sampleWithRegionTags = sampleClass.replaceAll("(^package .+\n)", "$1\n" + start);
+    }
+    sampleWithRegionTags = String.format("%s%s", sampleWithRegionTags, end);
+    return sampleWithRegionTags;
+  }
+
+  private static ClassDefinition composeExecutableSample(
+      String packageName,
+      String sampleMethodName,
+      List sampleVariableAssignments,
+      List sampleBody) {
+
+    String sampleClassName = JavaStyle.toUpperCamelCase(sampleMethodName);
+    List sampleMethodArgs = composeSampleMethodArgs(sampleVariableAssignments);
+    MethodDefinition mainMethod =
+        composeMainMethod(
+            composeMainBody(
+                sampleVariableAssignments,
+                composeInvokeMethodStatement(sampleMethodName, sampleMethodArgs)));
+    MethodDefinition sampleMethod =
+        composeSampleMethod(sampleMethodName, sampleMethodArgs, sampleBody);
+    return composeSampleClass(packageName, sampleClassName, mainMethod, sampleMethod);
+  }
+
+  private static List composeSampleMethodArgs(
+      List sampleVariableAssignments) {
+    return sampleVariableAssignments.stream()
+        .map(v -> v.variableExpr().toBuilder().setIsDecl(true).build())
+        .collect(Collectors.toList());
+  }
+
+  private static Statement composeInvokeMethodStatement(
+      String sampleMethodName, List sampleMethodArgs) {
+    List invokeArgs =
+        sampleMethodArgs.stream()
+            .map(arg -> arg.toBuilder().setIsDecl(false).build())
+            .collect(Collectors.toList());
+    return ExprStatement.withExpr(
+        MethodInvocationExpr.builder()
+            .setMethodName(sampleMethodName)
+            .setArguments(invokeArgs)
+            .build());
+  }
+
+  private static List composeMainBody(
+      List sampleVariableAssignments, Statement invokeMethod) {
+    List setVariables =
+        sampleVariableAssignments.stream()
+            .map(var -> ExprStatement.withExpr(var))
+            .collect(Collectors.toList());
+    List body = new ArrayList<>(setVariables);
+    body.add(invokeMethod);
+    return body;
+  }
+
+  private static ClassDefinition composeSampleClass(
+      String packageName,
+      String sampleClassName,
+      MethodDefinition mainMethod,
+      MethodDefinition sampleMethod) {
+    return ClassDefinition.builder()
+        .setScope(ScopeNode.PUBLIC)
+        .setPackageString(packageName)
+        .setName(sampleClassName)
+        .setMethods(ImmutableList.of(mainMethod, sampleMethod))
+        .build();
+  }
+
+  private static MethodDefinition composeMainMethod(List mainBody) {
+    return MethodDefinition.builder()
+        .setScope(ScopeNode.PUBLIC)
+        .setIsStatic(true)
+        .setReturnType(TypeNode.VOID)
+        .setName("main")
+        .setArguments(
+            VariableExpr.builder()
+                .setVariable(
+                    Variable.builder().setType(TypeNode.STRING_ARRAY).setName("args").build())
+                .setIsDecl(true)
+                .build())
+        .setThrowsExceptions(Arrays.asList(TypeNode.withExceptionClazz(Exception.class)))
+        .setBody(mainBody)
+        .build();
+  }
+
+  private static MethodDefinition composeSampleMethod(
+      String sampleMethodName,
+      List sampleMethodArgs,
+      List sampleMethodBody) {
+    return MethodDefinition.builder()
+        .setScope(ScopeNode.PUBLIC)
+        .setIsStatic(true)
+        .setReturnType(TypeNode.VOID)
+        .setName(sampleMethodName)
+        .setArguments(sampleMethodArgs)
+        .setThrowsExceptions(Arrays.asList(TypeNode.withExceptionClazz(Exception.class)))
+        .setBody(sampleMethodBody)
+        .build();
+  }
+}
diff --git a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java
new file mode 100644
index 0000000000..aec3965e7e
--- /dev/null
+++ b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java
@@ -0,0 +1,94 @@
+// Copyright 2022 Google LLC
+//
+// 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.generator.gapic.model;
+
+import com.google.api.generator.gapic.utils.JavaStyle;
+import com.google.auto.value.AutoValue;
+
+@AutoValue
+public abstract class RegionTag {
+  public abstract String apiShortName();
+
+  public abstract String apiVersion();
+
+  public abstract String serviceName();
+
+  public abstract String rpcName();
+
+  public abstract String overloadDisambiguation();
+
+  public static Builder builder() {
+    return new AutoValue_RegionTag.Builder()
+        .setApiVersion("")
+        .setApiShortName("")
+        .setOverloadDisambiguation("");
+  }
+
+  abstract RegionTag.Builder toBuilder();
+
+  public final RegionTag withApiVersion(String apiVersion) {
+    return toBuilder().setApiVersion(apiVersion).build();
+  }
+
+  public final RegionTag withApiShortName(String apiShortName) {
+    return toBuilder().setApiShortName(apiShortName).build();
+  }
+
+  public final RegionTag withOverloadDisambiguation(String overloadDisambiguation) {
+    return toBuilder().setOverloadDisambiguation(overloadDisambiguation).build();
+  }
+
+  @AutoValue.Builder
+  public abstract static class Builder {
+    public abstract Builder setApiVersion(String apiVersion);
+
+    public abstract Builder setApiShortName(String apiShortName);
+
+    public abstract Builder setServiceName(String serviceName);
+
+    public abstract Builder setRpcName(String rpcName);
+
+    public abstract Builder setOverloadDisambiguation(String overloadDisambiguation);
+
+    abstract String apiVersion();
+
+    abstract String apiShortName();
+
+    abstract String serviceName();
+
+    abstract String rpcName();
+
+    abstract String overloadDisambiguation();
+
+    abstract RegionTag autoBuild();
+
+    public final RegionTag build() {
+      setApiVersion(sanitizeVersion(apiVersion()));
+      setApiShortName(sanitizeAttributes(apiShortName()));
+      setServiceName(sanitizeAttributes(serviceName()));
+      setRpcName(sanitizeAttributes(rpcName()));
+      setOverloadDisambiguation(sanitizeAttributes(overloadDisambiguation()));
+      return autoBuild();
+    }
+
+    private final String sanitizeAttributes(String attribute) {
+      return JavaStyle.toLowerCamelCase(attribute.replaceAll("[^a-zA-Z0-9]", ""));
+    }
+
+    private final String sanitizeVersion(String version) {
+      return JavaStyle.toLowerCamelCase(version.replaceAll("[^a-zA-Z0-9.]", ""));
+    }
+  }
+}
diff --git a/src/main/java/com/google/api/generator/gapic/model/Sample.java b/src/main/java/com/google/api/generator/gapic/model/Sample.java
new file mode 100644
index 0000000000..978d8a0b67
--- /dev/null
+++ b/src/main/java/com/google/api/generator/gapic/model/Sample.java
@@ -0,0 +1,81 @@
+// Copyright 2022 Google LLC
+//
+// 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.generator.gapic.model;
+
+import com.google.api.generator.engine.ast.AssignmentExpr;
+import com.google.api.generator.engine.ast.Statement;
+import com.google.api.generator.gapic.utils.JavaStyle;
+import com.google.auto.value.AutoValue;
+import com.google.common.collect.ImmutableList;
+import java.util.List;
+
+@AutoValue
+public abstract class Sample {
+  public abstract List body();
+
+  public abstract List variableAssignments();
+
+  public abstract List fileHeader();
+
+  public abstract RegionTag regionTag();
+
+  public abstract String name();
+
+  public static Builder builder() {
+    return new AutoValue_Sample.Builder()
+        .setBody(ImmutableList.of())
+        .setVariableAssignments(ImmutableList.of())
+        .setFileHeader(ImmutableList.of());
+  }
+
+  abstract Builder toBuilder();
+
+  public final Sample withHeader(List header) {
+    return toBuilder().setFileHeader(header).build();
+  }
+
+  public final Sample withRegionTag(RegionTag regionTag) {
+    return toBuilder().setRegionTag(regionTag).build();
+  }
+
+  @AutoValue.Builder
+  public abstract static class Builder {
+    public abstract Builder setBody(List body);
+
+    public abstract Builder setVariableAssignments(List variableAssignments);
+
+    public abstract Builder setFileHeader(List header);
+
+    public abstract Builder setRegionTag(RegionTag regionTag);
+
+    abstract Builder setName(String name);
+
+    abstract Sample autoBuild();
+
+    abstract RegionTag regionTag();
+
+    public final Sample build() {
+      setName(generateSampleName(regionTag()));
+      return autoBuild();
+    }
+  }
+
+  private static String generateSampleName(RegionTag regionTag) {
+    return String.format(
+        "%s%s",
+        JavaStyle.toLowerCamelCase(regionTag.rpcName()),
+        JavaStyle.toUpperCamelCase(regionTag.overloadDisambiguation()));
+  }
+}
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
new file mode 100644
index 0000000000..603382b950
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
@@ -0,0 +1,358 @@
+// Copyright 2022 Google LLC
+//
+// 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.generator.gapic.composer.samplecode;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertThrows;
+
+import com.google.api.generator.engine.ast.AssignmentExpr;
+import com.google.api.generator.engine.ast.BlockComment;
+import com.google.api.generator.engine.ast.CommentStatement;
+import com.google.api.generator.engine.ast.Expr;
+import com.google.api.generator.engine.ast.ExprStatement;
+import com.google.api.generator.engine.ast.MethodInvocationExpr;
+import com.google.api.generator.engine.ast.NewObjectExpr;
+import com.google.api.generator.engine.ast.PrimitiveValue;
+import com.google.api.generator.engine.ast.Statement;
+import com.google.api.generator.engine.ast.StringObjectValue;
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.ValueExpr;
+import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.engine.ast.Variable;
+import com.google.api.generator.engine.ast.VariableExpr;
+import com.google.api.generator.gapic.model.RegionTag;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.testutils.LineFormatter;
+import com.google.common.collect.ImmutableList;
+import java.util.Arrays;
+import java.util.List;
+import org.junit.Test;
+
+public class SampleComposerTest {
+  private final String packageName = "com.google.example";
+  private final List header =
+      Arrays.asList(CommentStatement.withComment(BlockComment.withComment("Apache License")));
+  private final RegionTag.Builder regionTag =
+      RegionTag.builder().setApiShortName("echo").setApiVersion("v1beta").setServiceName("echo");
+
+  @Test
+  public void createExecutableSampleNoSample() {
+    assertThrows(
+        NullPointerException.class, () -> SampleComposer.createExecutableSample(null, packageName));
+  }
+
+  @Test
+  public void createInlineSampleNoSample() {
+    assertThrows(NullPointerException.class, () -> SampleComposer.createInlineSample(null));
+  }
+
+  @Test
+  public void createInlineSample() {
+    List sampleBody = Arrays.asList(ExprStatement.withExpr(systemOutPrint("testing")));
+    String sampleResult = SampleComposer.createInlineSample(sampleBody);
+    String expected =
+        LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
+            "System.out.println(\"testing\");");
+
+    assertEquals(expected, sampleResult);
+  }
+
+  @Test
+  public void createExecutableSampleMissingApiName() {
+    Sample noApiShortNameSample =
+        Sample.builder()
+            .setRegionTag(
+                regionTag
+                    .setApiShortName("")
+                    .setRpcName("createExecutableSample")
+                    .setOverloadDisambiguation("MissingApiShortName")
+                    .build())
+            .build();
+
+    assertThrows(
+        IllegalStateException.class,
+        () -> SampleComposer.createExecutableSample(noApiShortNameSample, packageName));
+  }
+
+  @Test
+  public void createExecutableSampleNoHeader() {
+    Sample sample =
+        Sample.builder()
+            .setRegionTag(
+                regionTag
+                    .setRpcName("createExecutableSample")
+                    .setOverloadDisambiguation("NoHeader")
+                    .build())
+            .build();
+    assertThrows(
+        IllegalStateException.class,
+        () -> SampleComposer.createExecutableSample(sample, packageName));
+  }
+
+  @Test
+  public void includeRegionTagMissingApiVersionMissingOverload() {
+    String sampleResult =
+        SampleComposer.includeRegionTags(
+            "", regionTag.setApiVersion("").setRpcName("rpcName").build());
+    String expected = "// [START echo_generated_echo_rpcname]// [END echo_generated_echo_rpcname]";
+    assertEquals(expected, sampleResult);
+  }
+
+  @Test
+  public void createExecutableSampleEmptyStatementSample() {
+    Sample sample =
+        Sample.builder()
+            .setFileHeader(header)
+            .setRegionTag(
+                regionTag
+                    .setRpcName("createExecutableSample")
+                    .setOverloadDisambiguation("EmptyStatementSample")
+                    .build())
+            .build();
+
+    String sampleResult = SampleComposer.createExecutableSample(sample, packageName);
+    String expected =
+        LineFormatter.lines(
+            "/*\n",
+            " * Apache License\n",
+            " */\n",
+            "package com.google.example;\n",
+            "\n",
+            "// [START echo_v1beta_generated_echo_createexecutablesample_emptystatementsample]\n",
+            "public class CreateExecutableSampleEmptyStatementSample {\n",
+            "\n",
+            "  public static void main(String[] args) throws Exception {\n",
+            "    createExecutableSampleEmptyStatementSample();\n",
+            "  }\n",
+            "\n",
+            "  public static void createExecutableSampleEmptyStatementSample() throws Exception {\n",
+            "    // This snippet has been automatically generated for illustrative purposes only.\n",
+            "    // It may require modifications to work in your environment.\n",
+            "  }\n",
+            "}\n",
+            "// [END echo_v1beta_generated_echo_createexecutablesample_emptystatementsample]");
+
+    assertEquals(expected, sampleResult);
+  }
+
+  @Test
+  public void createExecutableSampleMethodArgsNoVar() {
+    Statement sampleBody =
+        ExprStatement.withExpr(systemOutPrint("Testing CreateExecutableSampleMethodArgsNoVar"));
+    Sample sample =
+        Sample.builder()
+            .setBody(ImmutableList.of(sampleBody))
+            .setFileHeader(header)
+            .setRegionTag(
+                regionTag
+                    .setRpcName("createExecutableSample")
+                    .setOverloadDisambiguation("MethodArgsNoVar")
+                    .build())
+            .build();
+
+    String sampleResult = SampleComposer.createExecutableSample(sample, packageName);
+    String expected =
+        LineFormatter.lines(
+            "/*\n",
+            " * Apache License\n",
+            " */\n",
+            "package com.google.example;\n",
+            "\n",
+            "// [START echo_v1beta_generated_echo_createexecutablesample_methodargsnovar]\n",
+            "public class CreateExecutableSampleMethodArgsNoVar {\n",
+            "\n",
+            "  public static void main(String[] args) throws Exception {\n",
+            "    createExecutableSampleMethodArgsNoVar();\n",
+            "  }\n",
+            "\n",
+            "  public static void createExecutableSampleMethodArgsNoVar() throws Exception {\n",
+            "    // This snippet has been automatically generated for illustrative purposes only.\n",
+            "    // It may require modifications to work in your environment.\n",
+            "    System.out.println(\"Testing CreateExecutableSampleMethodArgsNoVar\");\n",
+            "  }\n",
+            "}\n",
+            "// [END echo_v1beta_generated_echo_createexecutablesample_methodargsnovar]");
+
+    assertEquals(expected, sampleResult);
+  }
+
+  @Test
+  public void createExecutableSampleMethod() {
+    VariableExpr variableExpr =
+        VariableExpr.builder()
+            .setVariable(Variable.builder().setType(TypeNode.STRING).setName("content").build())
+            .setIsDecl(true)
+            .build();
+    AssignmentExpr varAssignment =
+        AssignmentExpr.builder()
+            .setVariableExpr(variableExpr)
+            .setValueExpr(
+                ValueExpr.withValue(
+                    StringObjectValue.withValue("Testing CreateExecutableSampleMethod")))
+            .build();
+    Statement sampleBody = ExprStatement.withExpr(systemOutPrint(variableExpr));
+    Sample sample =
+        Sample.builder()
+            .setBody(ImmutableList.of(sampleBody))
+            .setVariableAssignments(ImmutableList.of(varAssignment))
+            .setFileHeader(header)
+            .setRegionTag(regionTag.setRpcName("createExecutableSample").build())
+            .build();
+
+    String sampleResult = SampleComposer.createExecutableSample(sample, packageName);
+    String expected =
+        LineFormatter.lines(
+            "/*\n",
+            " * Apache License\n",
+            " */\n",
+            "package com.google.example;\n",
+            "\n",
+            "// [START echo_v1beta_generated_echo_createexecutablesample]\n",
+            "public class CreateExecutableSample {\n",
+            "\n",
+            "  public static void main(String[] args) throws Exception {\n",
+            "    String content = \"Testing CreateExecutableSampleMethod\";\n",
+            "    createExecutableSample(content);\n",
+            "  }\n",
+            "\n",
+            "  public static void createExecutableSample(String content) throws Exception {\n",
+            "    // This snippet has been automatically generated for illustrative purposes only.\n",
+            "    // It may require modifications to work in your environment.\n",
+            "    System.out.println(content);\n",
+            "  }\n",
+            "}\n",
+            "// [END echo_v1beta_generated_echo_createexecutablesample]");
+
+    assertEquals(expected, sampleResult);
+  }
+
+  @Test
+  public void createExecutableSampleMethodMultipleStatements() {
+    VariableExpr strVariableExpr =
+        VariableExpr.builder()
+            .setVariable(Variable.builder().setType(TypeNode.STRING).setName("content").build())
+            .setIsDecl(true)
+            .build();
+    VariableExpr intVariableExpr =
+        VariableExpr.builder()
+            .setVariable(Variable.builder().setType(TypeNode.INT).setName("num").build())
+            .setIsDecl(true)
+            .build();
+    VariableExpr objVariableExpr =
+        VariableExpr.builder()
+            .setVariable(Variable.builder().setType(TypeNode.OBJECT).setName("thing").build())
+            .setIsDecl(true)
+            .build();
+    AssignmentExpr strVarAssignment =
+        AssignmentExpr.builder()
+            .setVariableExpr(strVariableExpr)
+            .setValueExpr(
+                ValueExpr.withValue(
+                    StringObjectValue.withValue(
+                        "Testing CreateExecutableSampleMethodMultipleStatements")))
+            .build();
+    AssignmentExpr intVarAssignment =
+        AssignmentExpr.builder()
+            .setVariableExpr(intVariableExpr)
+            .setValueExpr(
+                ValueExpr.withValue(
+                    PrimitiveValue.builder().setType(TypeNode.INT).setValue("2").build()))
+            .build();
+    AssignmentExpr objVarAssignment =
+        AssignmentExpr.builder()
+            .setVariableExpr(objVariableExpr)
+            .setValueExpr(NewObjectExpr.builder().setType(TypeNode.OBJECT).build())
+            .build();
+
+    Statement strBodyStatement = ExprStatement.withExpr(systemOutPrint(strVariableExpr));
+    Statement intBodyStatement = ExprStatement.withExpr(systemOutPrint(intVariableExpr));
+    Statement objBodyStatement =
+        ExprStatement.withExpr(
+            systemOutPrint(
+                MethodInvocationExpr.builder()
+                    .setExprReferenceExpr(objVariableExpr.toBuilder().setIsDecl(false).build())
+                    .setMethodName("response")
+                    .build()));
+    Sample sample =
+        Sample.builder()
+            .setBody(ImmutableList.of(strBodyStatement, intBodyStatement, objBodyStatement))
+            .setVariableAssignments(
+                ImmutableList.of(strVarAssignment, intVarAssignment, objVarAssignment))
+            .setFileHeader(header)
+            .setRegionTag(
+                regionTag
+                    .setRpcName("createExecutableSample")
+                    .setOverloadDisambiguation("MethodMultipleStatements")
+                    .build())
+            .build();
+
+    String sampleResult = SampleComposer.createExecutableSample(sample, packageName);
+    String expected =
+        LineFormatter.lines(
+            "/*\n",
+            " * Apache License\n",
+            " */\n",
+            "package com.google.example;\n",
+            "\n",
+            "// [START echo_v1beta_generated_echo_createexecutablesample_methodmultiplestatements]\n",
+            "public class CreateExecutableSampleMethodMultipleStatements {\n",
+            "\n",
+            "  public static void main(String[] args) throws Exception {\n",
+            "    String content = \"Testing CreateExecutableSampleMethodMultipleStatements\";\n",
+            "    int num = 2;\n",
+            "    Object thing = new Object();\n",
+            "    createExecutableSampleMethodMultipleStatements(content, num, thing);\n",
+            "  }\n",
+            "\n",
+            "  public static void createExecutableSampleMethodMultipleStatements(\n",
+            "      String content, int num, Object thing) throws Exception {\n",
+            "    // This snippet has been automatically generated for illustrative purposes only.\n",
+            "    // It may require modifications to work in your environment.\n",
+            "    System.out.println(content);\n",
+            "    System.out.println(num);\n",
+            "    System.out.println(thing.response());\n",
+            "  }\n",
+            "}\n",
+            "// [END echo_v1beta_generated_echo_createexecutablesample_methodmultiplestatements]");
+    assertEquals(expected, sampleResult);
+  }
+
+  private Expr systemOutPrint(MethodInvocationExpr response) {
+    return composeSystemOutPrint(response);
+  }
+
+  private static MethodInvocationExpr systemOutPrint(String content) {
+    return composeSystemOutPrint(ValueExpr.withValue(StringObjectValue.withValue(content)));
+  }
+
+  private static MethodInvocationExpr systemOutPrint(VariableExpr variableExpr) {
+    return composeSystemOutPrint(variableExpr.toBuilder().setIsDecl(false).build());
+  }
+
+  private static MethodInvocationExpr composeSystemOutPrint(Expr content) {
+    VaporReference out =
+        VaporReference.builder()
+            .setEnclosingClassNames("System")
+            .setName("out")
+            .setPakkage("java.lang")
+            .build();
+    return MethodInvocationExpr.builder()
+        .setStaticReferenceType(TypeNode.withReference(out))
+        .setMethodName("println")
+        .setArguments(content)
+        .build();
+  }
+}
diff --git a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java
new file mode 100644
index 0000000000..949339ecdd
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java
@@ -0,0 +1,79 @@
+// Copyright 2022 Google LLC
+//
+// 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.generator.gapic.model;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class RegionTagTest {
+  private final String serviceName = "serviceName";
+  private final String apiVersion = "1";
+  private final String apiShortName = "shortName";
+  private final String rpcName = "rpcName";
+  private final String disambiguation = "disambiguation";
+
+  @Test
+  public void regionTagNoRpcName() {
+    Assert.assertThrows(
+        IllegalStateException.class,
+        () ->
+            RegionTag.builder()
+                .setApiVersion(apiVersion)
+                .setApiShortName(apiShortName)
+                .setServiceName(serviceName)
+                .setOverloadDisambiguation(disambiguation)
+                .build());
+  }
+
+  @Test
+  public void regionTagNoServiceName() {
+    Assert.assertThrows(
+        IllegalStateException.class,
+        () ->
+            RegionTag.builder()
+                .setApiVersion(apiVersion)
+                .setApiShortName(apiShortName)
+                .setRpcName(rpcName)
+                .setOverloadDisambiguation(disambiguation)
+                .build());
+  }
+
+  @Test
+  public void regionTagValidMissingFields() {
+    RegionTag regionTag =
+        RegionTag.builder().setServiceName(serviceName).setRpcName(rpcName).build();
+
+    Assert.assertEquals("", regionTag.apiShortName());
+    Assert.assertEquals("", regionTag.apiVersion());
+    Assert.assertEquals("", regionTag.overloadDisambiguation());
+  }
+
+  @Test
+  public void regionTagSanitizeAttributes() {
+    String apiVersion = "1.4.0-";
+    String serviceName = "service_Na@m*.e!{}";
+    String rpcName = "rpc _Nam^#,e   [String]10";
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setApiVersion(apiVersion)
+            .setServiceName(serviceName)
+            .setRpcName(rpcName)
+            .build();
+
+    Assert.assertEquals("1.4.0Version", regionTag.apiVersion());
+    Assert.assertEquals("serviceNameString", regionTag.serviceName());
+    Assert.assertEquals("rpcNameString10", regionTag.rpcName());
+  }
+}
diff --git a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java
new file mode 100644
index 0000000000..fcd5810935
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java
@@ -0,0 +1,69 @@
+// Copyright 2022 Google LLC
+//
+// 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.generator.gapic.model;
+
+import com.google.api.generator.engine.ast.BlockComment;
+import com.google.api.generator.engine.ast.CommentStatement;
+import com.google.api.generator.engine.ast.LineComment;
+import com.google.api.generator.engine.ast.Statement;
+import com.google.common.collect.ImmutableList;
+import java.util.Arrays;
+import java.util.List;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class SampleTest {
+  private final RegionTag regionTag =
+      RegionTag.builder().setServiceName("serviceName").setRpcName("rpcName").build();
+  private final List sampleBody =
+      Arrays.asList(CommentStatement.withComment(LineComment.withComment("testing")));
+  private final List header =
+      Arrays.asList(CommentStatement.withComment(BlockComment.withComment("apache license")));
+
+  @Test
+  public void sampleNoRegionTag() {
+    Assert.assertThrows(
+        IllegalStateException.class,
+        () -> Sample.builder().setBody(sampleBody).setFileHeader(header).build());
+  }
+
+  @Test
+  public void sampleValidMissingFields() {
+    Sample sample = Sample.builder().setRegionTag(regionTag).build();
+
+    Assert.assertEquals(ImmutableList.of(), sample.fileHeader());
+    Assert.assertEquals(ImmutableList.of(), sample.body());
+    Assert.assertEquals(ImmutableList.of(), sample.variableAssignments());
+  }
+
+  @Test
+  public void sampleWithHeader() {
+    Sample sample = Sample.builder().setRegionTag(regionTag).setBody(sampleBody).build();
+    Assert.assertEquals(ImmutableList.of(), sample.fileHeader());
+
+    sample = sample.withHeader(header);
+    Assert.assertEquals(header, sample.fileHeader());
+  }
+
+  @Test
+  public void sampleNameWithRegionTag() {
+    Sample sample = Sample.builder().setRegionTag(regionTag).build();
+    Assert.assertEquals("rpcName", sample.name());
+
+    RegionTag rt = regionTag.toBuilder().setOverloadDisambiguation("disambiguation").build();
+    sample = sample.withRegionTag(rt);
+    Assert.assertEquals("rpcNameDisambiguation", sample.name());
+  }
+}

From a1e3e11268f673cc40734c85a8a17b6a4beacd6d Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Mon, 14 Feb 2022 16:34:26 -0800
Subject: [PATCH 02/29] feat: update SampleCodeComposers to output Samples with
 Region Tags

---
 .../ServiceClientSampleCodeComposer.java      | 485 ++++++++++++++----
 .../SettingsSampleCodeComposer.java           |  26 +-
 .../ServiceClientSampleCodeComposerTest.java  | 195 ++++---
 .../SettingsSampleCodeComposerTest.java       |  22 +-
 4 files changed, 569 insertions(+), 159 deletions(-)

diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposer.java
index 5ca7b573af..162573e413 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposer.java
@@ -49,7 +49,9 @@
 import com.google.api.generator.gapic.model.Method;
 import com.google.api.generator.gapic.model.Method.Stream;
 import com.google.api.generator.gapic.model.MethodArgument;
+import com.google.api.generator.gapic.model.RegionTag;
 import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.common.base.Preconditions;
@@ -66,7 +68,7 @@
 
 public class ServiceClientSampleCodeComposer {
 
-  public static String composeClassHeaderMethodSampleCode(
+  public static Sample composeClassHeaderMethodSampleCode(
       Service service,
       TypeNode clientType,
       Map resourceNames,
@@ -90,7 +92,7 @@ public static String composeClassHeaderMethodSampleCode(
         method, clientType, resourceNames, messageTypes);
   }
 
-  public static String composeClassHeaderCredentialsSampleCode(
+  public static Sample composeClassHeaderCredentialsSampleCode(
       TypeNode clientType, TypeNode settingsType) {
     // Initialize clientSettings with builder() method.
     // e.g. EchoSettings echoSettings =
@@ -151,18 +153,30 @@ public static String composeClassHeaderCredentialsSampleCode(
             .setMethodName("create")
             .setReturnType(clientType)
             .build();
+    String rpcName = createMethodExpr.methodIdentifier().name();
+    String disambiguation = settingsVarExpr.type().reference().name();
     Expr initClientVarExpr =
         AssignmentExpr.builder()
             .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
             .setValueExpr(createMethodExpr)
             .build();
-    return SampleCodeWriter.write(
+
+    List sampleBody =
         Arrays.asList(
-            ExprStatement.withExpr(initSettingsVarExpr),
-            ExprStatement.withExpr(initClientVarExpr)));
+            ExprStatement.withExpr(initSettingsVarExpr), ExprStatement.withExpr(initClientVarExpr));
+    // e.g.  serviceName = echoClient
+    //      rpcName = create
+    //      disambiguation = echoSettings
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientName)
+            .setRpcName(rpcName)
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder().setBody(sampleBody).setRegionTag(regionTag).build();
   }
 
-  public static String composeClassHeaderEndpointSampleCode(
+  public static Sample composeClassHeaderEndpointSampleCode(
       TypeNode clientType, TypeNode settingsType) {
     // Initialize client settings with builder() method.
     // e.g. EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint("myEndpoint").build();
@@ -215,19 +229,29 @@ public static String composeClassHeaderEndpointSampleCode(
             .setMethodName("create")
             .setReturnType(clientType)
             .build();
+    String rpcName = createMethodExpr.methodIdentifier().name();
+    String disambiguation = settingsVarExpr.type().reference().name();
     Expr initClientVarExpr =
         AssignmentExpr.builder()
             .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
             .setValueExpr(createMethodExpr)
             .build();
-
-    return SampleCodeWriter.write(
+    // e.g. serviceName = echoClient
+    //      rpcName = create
+    //      disambiguation = echoSettings
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientName)
+            .setRpcName(rpcName)
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    List sampleBody =
         Arrays.asList(
-            ExprStatement.withExpr(initSettingsVarExpr),
-            ExprStatement.withExpr(initClientVarExpr)));
+            ExprStatement.withExpr(initSettingsVarExpr), ExprStatement.withExpr(initClientVarExpr));
+    return Sample.builder().setBody(sampleBody).setRegionTag(regionTag).build();
   }
 
-  public static String composeRpcMethodHeaderSampleCode(
+  public static Sample composeRpcMethodHeaderSampleCode(
       Method method,
       TypeNode clientType,
       List arguments,
@@ -252,29 +276,39 @@ public static String composeRpcMethodHeaderSampleCode(
     bodyExprs.addAll(rpcMethodArgAssignmentExprs);
 
     List bodyStatements = new ArrayList<>();
+    RegionTag regionTag;
     if (method.isPaged()) {
-      bodyStatements.addAll(
+      Sample unaryPagedRpc =
           composeUnaryPagedRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes));
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes);
+      bodyStatements.addAll(unaryPagedRpc.body());
+      regionTag = unaryPagedRpc.regionTag();
     } else if (method.hasLro()) {
-      bodyStatements.addAll(
+      Sample unaryLroRpc =
           composeUnaryLroRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs));
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
+      bodyStatements.addAll(unaryLroRpc.body());
+      regionTag = unaryLroRpc.regionTag();
     } else {
-      bodyStatements.addAll(
+      //  e.g. echoClient.echo(), echoClient.echo(...)
+      Sample unaryRpc =
           composeUnaryRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs));
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
+      bodyStatements.addAll(unaryRpc.body());
+      regionTag = unaryRpc.regionTag();
     }
 
-    return SampleCodeWriter.write(
-        TryCatchStatement.builder()
-            .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
-            .setTryBody(bodyStatements)
-            .setIsSampleCode(true)
-            .build());
+    List body =
+        Arrays.asList(
+            TryCatchStatement.builder()
+                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryBody(bodyStatements)
+                .setIsSampleCode(true)
+                .build());
+    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
 
-  public static String composeRpcDefaultMethodHeaderSampleCode(
+  public static Sample composeRpcDefaultMethodHeaderSampleCode(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -309,30 +343,41 @@ public static String composeRpcDefaultMethodHeaderSampleCode(
     bodyExprs.add(requestAssignmentExpr);
 
     List bodyStatements = new ArrayList<>();
+    RegionTag regionTag;
     if (method.isPaged()) {
-      bodyStatements.addAll(
+      // e.g. echoClient.pagedExpand(request).iterateAll()
+      Sample unaryPagedRpc =
           composeUnaryPagedRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes));
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes);
+      bodyStatements.addAll(unaryPagedRpc.body());
+      regionTag = unaryPagedRpc.regionTag();
     } else if (method.hasLro()) {
-      bodyStatements.addAll(
+      Sample unaryLroRpc =
           composeUnaryLroRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs));
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
+      bodyStatements.addAll(unaryLroRpc.body());
+      regionTag = unaryLroRpc.regionTag();
     } else {
-      bodyStatements.addAll(
+      // e.g. echoClient.echo(request)
+      Sample unaryRpc =
           composeUnaryRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs));
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
+      bodyStatements.addAll(unaryRpc.body());
+      regionTag = unaryRpc.regionTag();
     }
 
-    return SampleCodeWriter.write(
-        TryCatchStatement.builder()
-            .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
-            .setTryBody(bodyStatements)
-            .setIsSampleCode(true)
-            .build());
+    List body =
+        Arrays.asList(
+            TryCatchStatement.builder()
+                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryBody(bodyStatements)
+                .setIsSampleCode(true)
+                .build());
+    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
 
   // Compose sample code for the method where it is CallableMethodKind.LRO.
-  public static String composeLroCallableMethodHeaderSampleCode(
+  public static Sample composeLroCallableMethodHeaderSampleCode(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -384,6 +429,7 @@ public static String composeLroCallableMethodHeaderSampleCode(
             .setMethodName(
                 String.format("%sOperationCallable", JavaStyle.toLowerCamelCase(method.name())))
             .build();
+    String disambiguation = "OperationCallable";
     rpcMethodInvocationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(rpcMethodInvocationExpr)
@@ -391,11 +437,17 @@ public static String composeLroCallableMethodHeaderSampleCode(
             .setArguments(requestVarExpr)
             .setReturnType(operationFutureType)
             .build();
+    disambiguation =
+        disambiguation
+            + JavaStyle.toUpperCamelCase(rpcMethodInvocationExpr.methodIdentifier().name());
     bodyExprs.add(
         AssignmentExpr.builder()
             .setVariableExpr(operationFutureVarExpr.toBuilder().setIsDecl(true).build())
             .setValueExpr(rpcMethodInvocationExpr)
             .build());
+    disambiguation =
+        JavaStyle.toUpperCamelCase(
+            disambiguation + requestVarExpr.variable().type().reference().name());
 
     List bodyStatements =
         bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
@@ -435,16 +487,27 @@ public static String composeLroCallableMethodHeaderSampleCode(
         bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()));
     bodyExprs.clear();
 
-    return SampleCodeWriter.write(
-        TryCatchStatement.builder()
-            .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
-            .setTryBody(bodyStatements)
-            .setIsSampleCode(true)
-            .build());
+    // e.g. serviceName = echoClient
+    //      rpcName = wait
+    //      disambiguation = futureCallWaitRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientType.reference().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    List body =
+        Arrays.asList(
+            TryCatchStatement.builder()
+                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryBody(bodyStatements)
+                .setIsSampleCode(true)
+                .build());
+    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
 
   // Compose sample code for the method where it is CallableMethodKind.PAGED.
-  public static String composePagedCallableMethodHeaderSampleCode(
+  public static Sample composePagedCallableMethodHeaderSampleCode(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -505,6 +568,7 @@ public static String composePagedCallableMethodHeaderSampleCode(
             .setMethodName(
                 String.format("%sPagedCallable", JavaStyle.toLowerCamelCase(method.name())))
             .build();
+    String disambiguation = "PagedCallable";
     pagedCallableFutureMethodExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(pagedCallableFutureMethodExpr)
@@ -512,6 +576,9 @@ public static String composePagedCallableMethodHeaderSampleCode(
             .setArguments(requestVarExpr)
             .setReturnType(apiFutureType)
             .build();
+    disambiguation =
+        disambiguation
+            + JavaStyle.toUpperCamelCase(pagedCallableFutureMethodExpr.methodIdentifier().name());
     AssignmentExpr apiFutureAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(apiFutureVarExpr.toBuilder().setIsDecl(true).build())
@@ -522,6 +589,7 @@ public static String composePagedCallableMethodHeaderSampleCode(
     List bodyStatements =
         bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
     bodyExprs.clear();
+    disambiguation = disambiguation.concat(requestVarExpr.variable().type().reference().name());
 
     // Add line comment
     bodyStatements.add(CommentStatement.withComment(LineComment.withComment("Do something.")));
@@ -553,17 +621,28 @@ public static String composePagedCallableMethodHeaderSampleCode(
             .setBody(Arrays.asList(lineCommentStatement))
             .build();
     bodyStatements.add(repeatedResponseForStatement);
+    List body =
+        Arrays.asList(
+            TryCatchStatement.builder()
+                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryBody(bodyStatements)
+                .setIsSampleCode(true)
+                .build());
 
-    return SampleCodeWriter.write(
-        TryCatchStatement.builder()
-            .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
-            .setTryBody(bodyStatements)
-            .setIsSampleCode(true)
-            .build());
+    // e.g. serviceName = echoClient
+    //      rpcName = pagedExpand
+    //      disambiguation = futureCallExpandRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientType.reference().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
 
   // Compose sample code for the method where it is CallableMethodKind.REGULAR.
-  public static String composeRegularCallableMethodHeaderSampleCode(
+  public static Sample composeRegularCallableMethodHeaderSampleCode(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -596,23 +675,31 @@ public static String composeRegularCallableMethodHeaderSampleCode(
     List bodyStatements = new ArrayList<>();
     bodyStatements.add(ExprStatement.withExpr(requestAssignmentExpr));
 
+    RegionTag regionTag;
     if (method.isPaged()) {
-      bodyStatements.addAll(
-          composePagedCallableBodyStatements(method, clientVarExpr, requestVarExpr, messageTypes));
+      Sample pagedCallable =
+          composePagedCallableBodyStatements(method, clientVarExpr, requestVarExpr, messageTypes);
+      bodyStatements.addAll(pagedCallable.body());
+      regionTag = pagedCallable.regionTag();
     } else {
-      bodyStatements.addAll(
-          composeUnaryOrLroCallableBodyStatements(method, clientVarExpr, requestVarExpr));
+      // e.g.  echoClient.echoCallable().futureCall(request)
+      Sample unaryOrLroCallable =
+          composeUnaryOrLroCallableBodyStatements(method, clientVarExpr, requestVarExpr);
+      bodyStatements.addAll(unaryOrLroCallable.body());
+      regionTag = unaryOrLroCallable.regionTag();
     }
 
-    return SampleCodeWriter.write(
-        TryCatchStatement.builder()
-            .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
-            .setTryBody(bodyStatements)
-            .setIsSampleCode(true)
-            .build());
+    List body =
+        Arrays.asList(
+            TryCatchStatement.builder()
+                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryBody(bodyStatements)
+                .setIsSampleCode(true)
+                .build());
+    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
 
-  public static String composeStreamCallableMethodHeaderSampleCode(
+  public static Sample composeStreamCallableMethodHeaderSampleCode(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -641,27 +728,38 @@ public static String composeStreamCallableMethodHeaderSampleCode(
             .setValueExpr(requestBuilderExpr)
             .build();
 
+    RegionTag regionTag = null;
     List bodyStatements = new ArrayList<>();
     if (method.stream().equals(Stream.SERVER)) {
-      bodyStatements.addAll(
-          composeStreamServerBodyStatements(method, clientVarExpr, requestAssignmentExpr));
+      // e.g. ServerStream stream = echoClient.expandCallable().call(request);
+      Sample streamServer =
+          composeStreamServerBodyStatements(method, clientVarExpr, requestAssignmentExpr);
+      bodyStatements.addAll(streamServer.body());
+      regionTag = streamServer.regionTag();
     } else if (method.stream().equals(Stream.BIDI)) {
-      bodyStatements.addAll(
-          composeStreamBidiBodyStatements(method, clientVarExpr, requestAssignmentExpr));
+      // e.g. echoClient.collect().clientStreamingCall(responseObserver);
+      Sample streamBidi =
+          composeStreamBidiBodyStatements(method, clientVarExpr, requestAssignmentExpr);
+      bodyStatements.addAll(streamBidi.body());
+      regionTag = streamBidi.regionTag();
     } else if (method.stream().equals(Stream.CLIENT)) {
-      bodyStatements.addAll(
-          composeStreamClientBodyStatements(method, clientVarExpr, requestAssignmentExpr));
+      Sample streamClient =
+          composeStreamClientBodyStatements(method, clientVarExpr, requestAssignmentExpr);
+      bodyStatements.addAll(streamClient.body());
+      regionTag = streamClient.regionTag();
     }
 
-    return SampleCodeWriter.write(
-        TryCatchStatement.builder()
-            .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
-            .setTryBody(bodyStatements)
-            .setIsSampleCode(true)
-            .build());
+    List body =
+        Arrays.asList(
+            TryCatchStatement.builder()
+                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryBody(bodyStatements)
+                .setIsSampleCode(true)
+                .build());
+    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
 
-  private static List composeUnaryRpcMethodBodyStatements(
+  private static Sample composeUnaryRpcMethodBodyStatements(
       Method method,
       VariableExpr clientVarExpr,
       List rpcMethodArgVarExprs,
@@ -679,6 +777,16 @@ private static List composeUnaryRpcMethodBodyStatements(
                 rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
             .setReturnType(method.outputType())
             .build();
+    String disambiguation =
+        rpcMethodArgVarExprs.stream()
+            .map(
+                e ->
+                    e.variable().type().reference() == null
+                        ? JavaStyle.toUpperCamelCase(
+                            e.variable().type().typeKind().name().toLowerCase())
+                        : JavaStyle.toUpperCamelCase(e.variable().type().reference().name()))
+            .collect(Collectors.joining());
+
     if (returnsVoid) {
       bodyExprs.add(clientRpcMethodInvocationExpr);
     } else {
@@ -692,10 +800,23 @@ private static List composeUnaryRpcMethodBodyStatements(
               .build());
     }
 
-    return bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
+    // e.g. serviceName = echoClient
+    //      rpcName =  echo
+    //      disambiguation = echoRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder()
+        .setBody(
+            bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()))
+        .setRegionTag(regionTag)
+        .build();
   }
 
-  private static List composeUnaryPagedRpcMethodBodyStatements(
+  private static Sample composeUnaryPagedRpcMethodBodyStatements(
       Method method,
       VariableExpr clientVarExpr,
       List rpcMethodArgVarExprs,
@@ -728,12 +849,25 @@ private static List composeUnaryPagedRpcMethodBodyStatements(
             .setArguments(
                 rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
             .build();
+    String disambiguation =
+        rpcMethodArgVarExprs.stream()
+            .map(
+                arg ->
+                    arg.variable().type().reference() == null
+                        ? JavaStyle.toUpperCamelCase(
+                            arg.variable().type().typeKind().name().toLowerCase())
+                        : JavaStyle.toUpperCamelCase(arg.variable().type().reference().name()))
+            .collect(Collectors.joining());
+
     clientMethodIterateAllExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(clientMethodIterateAllExpr)
             .setMethodName("iterateAll")
             .setReturnType(repeatedResponseType)
             .build();
+    disambiguation =
+        disambiguation.concat(
+            JavaStyle.toUpperCamelCase(clientMethodIterateAllExpr.methodIdentifier().name()));
     ForStatement loopIteratorStatement =
         ForStatement.builder()
             .setLocalVariableExpr(
@@ -754,10 +888,19 @@ private static List composeUnaryPagedRpcMethodBodyStatements(
     bodyExprs.clear();
     bodyStatements.add(loopIteratorStatement);
 
-    return bodyStatements;
+    // e.g. serviceName = echoClient
+    //      rpcName =  listContent
+    //      disambiguation = iterateAll
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
 
-  private static List composeUnaryLroRpcMethodBodyStatements(
+  private static Sample composeUnaryLroRpcMethodBodyStatements(
       Method method,
       VariableExpr clientVarExpr,
       List rpcMethodArgVarExprs,
@@ -765,19 +908,32 @@ private static List composeUnaryLroRpcMethodBodyStatements(
     // Assign response variable with invoking client's LRO method.
     // e.g. if return void, echoClient.waitAsync(ttl).get(); or,
     // e.g. if return other type, WaitResponse response = echoClient.waitAsync(ttl).get();
-    Expr invokeLroGetMethodExpr =
+    MethodInvocationExpr invokeLroGetMethodExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(String.format("%sAsync", JavaStyle.toLowerCamelCase(method.name())))
             .setArguments(
                 rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
             .build();
+    String disambiguation =
+        "Async"
+            + rpcMethodArgVarExprs.stream()
+                .map(
+                    e ->
+                        e.variable().type().reference() == null
+                            ? JavaStyle.toUpperCamelCase(
+                                e.variable().type().typeKind().name().toLowerCase())
+                            : JavaStyle.toUpperCamelCase(e.variable().type().reference().name()))
+                .collect(Collectors.joining());
     invokeLroGetMethodExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(invokeLroGetMethodExpr)
             .setMethodName("get")
             .setReturnType(method.lro().responseType())
             .build();
+    disambiguation =
+        disambiguation.concat(
+            JavaStyle.toUpperCamelCase(invokeLroGetMethodExpr.methodIdentifier().name()));
     boolean returnsVoid = isProtoEmptyType(method.lro().responseType());
     if (returnsVoid) {
       bodyExprs.add(invokeLroGetMethodExpr);
@@ -798,10 +954,23 @@ private static List composeUnaryLroRpcMethodBodyStatements(
               .build());
     }
 
-    return bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
+    // e.g. serviceName = echoClient
+    //      rpcName =  wait
+    //      disambiguation = durationGet
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder()
+        .setBody(
+            bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()))
+        .setRegionTag(regionTag)
+        .build();
   }
 
-  private static List composeStreamServerBodyStatements(
+  private static Sample composeStreamServerBodyStatements(
       Method method, VariableExpr clientVarExpr, AssignmentExpr requestAssignmentExpr) {
     List bodyExprs = new ArrayList<>();
     bodyExprs.add(requestAssignmentExpr);
@@ -823,6 +992,7 @@ private static List composeStreamServerBodyStatements(
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(JavaStyle.toLowerCamelCase(String.format("%sCallable", method.name())))
             .build();
+    String disambiguation = "Callable";
     clientStreamCallMethodInvocationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(clientStreamCallMethodInvocationExpr)
@@ -830,6 +1000,27 @@ private static List composeStreamServerBodyStatements(
             .setArguments(requestAssignmentExpr.variableExpr().toBuilder().setIsDecl(false).build())
             .setReturnType(serverStreamType)
             .build();
+    disambiguation =
+        disambiguation
+            + String.format(
+                "%s%s",
+                JavaStyle.toUpperCamelCase(
+                    clientStreamCallMethodInvocationExpr.methodIdentifier().name()),
+                JavaStyle.toUpperCamelCase(
+                    requestAssignmentExpr.variableExpr().variable().type().reference() == null
+                        ? requestAssignmentExpr
+                            .variableExpr()
+                            .variable()
+                            .type()
+                            .typeKind()
+                            .name()
+                            .toLowerCase()
+                        : requestAssignmentExpr
+                            .variableExpr()
+                            .variable()
+                            .type()
+                            .reference()
+                            .name()));
     AssignmentExpr streamAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(serverStreamVarExpr.toBuilder().setIsDecl(true).build())
@@ -861,10 +1052,19 @@ private static List composeStreamServerBodyStatements(
             .build();
     bodyStatements.add(forStatement);
 
-    return bodyStatements;
+    // e.g. serviceName = echoClient
+    //      rpcName = expand
+    //      disambiguation = callExpandRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
 
-  private static List composeStreamBidiBodyStatements(
+  private static Sample composeStreamBidiBodyStatements(
       Method method, VariableExpr clientVarExpr, AssignmentExpr requestAssignmentExpr) {
     List bodyExprs = new ArrayList<>();
 
@@ -885,12 +1085,30 @@ private static List composeStreamBidiBodyStatements(
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(JavaStyle.toLowerCamelCase(String.format("%sCallable", method.name())))
             .build();
+    String disambiguation = "Callable";
     clientBidiStreamCallMethodInvoationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(clientBidiStreamCallMethodInvoationExpr)
             .setMethodName("call")
             .setReturnType(bidiStreamType)
             .build();
+    disambiguation =
+        disambiguation
+            + String.format(
+                "%s%s",
+                JavaStyle.toUpperCamelCase(
+                    clientBidiStreamCallMethodInvoationExpr.methodIdentifier().name()),
+                requestAssignmentExpr.variableExpr().variable().type().reference() == null
+                    ? JavaStyle.toUpperCamelCase(
+                        requestAssignmentExpr
+                            .variableExpr()
+                            .variable()
+                            .type()
+                            .typeKind()
+                            .name()
+                            .toLowerCase())
+                    : JavaStyle.toUpperCamelCase(
+                        requestAssignmentExpr.variableExpr().variable().type().reference().name()));
     AssignmentExpr bidiStreamAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(bidiStreamVarExpr.toBuilder().setIsDecl(true).build())
@@ -934,10 +1152,19 @@ private static List composeStreamBidiBodyStatements(
             .build();
     bodyStatements.add(forStatement);
 
-    return bodyStatements;
+    // e.g. serviceName = echoClient
+    //      rpcName = chat
+    //      disambiguation = callEchoRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
 
-  private static List composeStreamClientBodyStatements(
+  private static Sample composeStreamClientBodyStatements(
       Method method, VariableExpr clientVarExpr, AssignmentExpr requestAssignmentExpr) {
     List bodyExprs = new ArrayList<>();
 
@@ -1040,6 +1267,22 @@ private static List composeStreamClientBodyStatements(
             .setMethodName("clientStreamingCall")
             .setReturnType(requestObserverType)
             .build();
+    String disambiguation =
+        String.format(
+            "%s%s",
+            JavaStyle.toUpperCamelCase(
+                clientStreamCallMethodInvocationExpr.methodIdentifier().name()),
+            JavaStyle.toUpperCamelCase(
+                requestAssignmentExpr.variableExpr().variable().type().reference() == null
+                    ? requestAssignmentExpr
+                        .variableExpr()
+                        .variable()
+                        .type()
+                        .typeKind()
+                        .name()
+                        .toLowerCase()
+                    : requestAssignmentExpr.variableExpr().variable().type().reference().name()));
+
     AssignmentExpr requestObserverAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(requestObserverVarExpr.toBuilder().setIsDecl(true).build())
@@ -1060,10 +1303,24 @@ private static List composeStreamClientBodyStatements(
             .build();
     bodyExprs.add(onNextMethodExpr);
 
-    return bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
+    // e.g. serviceName = echoClient
+    //      rpcName = collect
+    //      disambiguation = clientStreamingCallEchoRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+
+    return Sample.builder()
+        .setBody(
+            bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()))
+        .setRegionTag(regionTag)
+        .build();
   }
 
-  private static List composeUnaryOrLroCallableBodyStatements(
+  private static Sample composeUnaryOrLroCallableBodyStatements(
       Method method, VariableExpr clientVarExpr, VariableExpr requestVarExpr) {
     List bodyStatements = new ArrayList<>();
     // Create api future variable expression, and assign it with a value by invoking callable
@@ -1086,6 +1343,7 @@ private static List composeUnaryOrLroCallableBodyStatements(
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(JavaStyle.toLowerCamelCase(String.format("%sCallable", method.name())))
             .build();
+    String disambiguation = "Callable";
     callableMethodInvocationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(callableMethodInvocationExpr)
@@ -1093,6 +1351,16 @@ private static List composeUnaryOrLroCallableBodyStatements(
             .setArguments(requestVarExpr)
             .setReturnType(apiFutureType)
             .build();
+    disambiguation =
+        disambiguation
+            + String.format(
+                "%s%s",
+                JavaStyle.toUpperCamelCase(callableMethodInvocationExpr.methodIdentifier().name()),
+                requestVarExpr.variable().type().reference().name() == null
+                    ? JavaStyle.toUpperCamelCase(
+                        requestVarExpr.variable().type().typeKind().name().toLowerCase())
+                    : JavaStyle.toUpperCamelCase(
+                        requestVarExpr.variable().type().reference().name()));
     AssignmentExpr futureAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(apiFutureVarExpr.toBuilder().setIsDecl(true).build())
@@ -1125,10 +1393,21 @@ private static List composeUnaryOrLroCallableBodyStatements(
               .build();
       bodyStatements.add(ExprStatement.withExpr(responseAssignmentExpr));
     }
-    return bodyStatements;
+
+    // e.g. serviceName = echoClient
+    //      rpcName = echo
+    //      disambiguation = futureCallEchoRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+
+    return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
 
-  private static List composePagedCallableBodyStatements(
+  private static Sample composePagedCallableBodyStatements(
       Method method,
       VariableExpr clientVarExpr,
       VariableExpr requestVarExpr,
@@ -1154,6 +1433,7 @@ private static List composePagedCallableBodyStatements(
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(JavaStyle.toLowerCamelCase(String.format("%sCallable", method.name())))
             .build();
+    String disambiguation = "Callable";
     pagedCallableMethodInvocationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(pagedCallableMethodInvocationExpr)
@@ -1161,6 +1441,16 @@ private static List composePagedCallableBodyStatements(
             .setArguments(requestVarExpr)
             .setReturnType(method.outputType())
             .build();
+    disambiguation =
+        disambiguation
+            + String.format(
+                "%s%s",
+                JavaStyle.toUpperCamelCase(
+                    pagedCallableMethodInvocationExpr.methodIdentifier().name()),
+                requestVarExpr.variable().type().reference() == null
+                    ? JavaStyle.toUpperCamelCase(requestVarExpr.variable().type().typeKind().name())
+                    : JavaStyle.toUpperCamelCase(
+                        requestVarExpr.variable().type().reference().name()));
     AssignmentExpr responseAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(responseVarExpr.toBuilder().setIsDecl(true).build())
@@ -1264,7 +1554,20 @@ private static List composePagedCallableBodyStatements(
                     PrimitiveValue.builder().setValue("true").setType(TypeNode.BOOLEAN).build()))
             .setBody(whileBodyStatements)
             .build();
-    return Arrays.asList(pagedWhileStatement);
+
+    // e.g. serviceName = echoClient
+    //      rpcName =  pagedExpand
+    //      disambiguation = callPagedExpandRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder()
+        .setBody(Arrays.asList(pagedWhileStatement))
+        .setRegionTag(regionTag)
+        .build();
   }
 
   // ==================================Helpers===================================================//
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposer.java
index 9c554b0be0..193c5501fd 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposer.java
@@ -25,6 +25,8 @@
 import com.google.api.generator.engine.ast.VaporReference;
 import com.google.api.generator.engine.ast.Variable;
 import com.google.api.generator.engine.ast.VariableExpr;
+import com.google.api.generator.gapic.model.RegionTag;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import java.time.Duration;
 import java.util.Arrays;
@@ -34,7 +36,7 @@
 
 public final class SettingsSampleCodeComposer {
 
-  public static Optional composeSampleCode(
+  public static Optional composeSampleCode(
       Optional methodNameOpt, String settingsClassName, TypeNode classType) {
     if (!methodNameOpt.isPresent()) {
       return Optional.empty();
@@ -76,6 +78,7 @@ public static Optional composeSampleCode(
             .setMethodName(
                 JavaStyle.toLowerCamelCase(String.format("%sSettings", methodNameOpt.get())))
             .build();
+    String disambiguation = "Settings";
     MethodInvocationExpr retrySettingsArgExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(settingBuilderMethodInvocationExpr)
@@ -113,6 +116,11 @@ public static Optional composeSampleCode(
             .setArguments(retrySettingsArgExpr)
             .build();
 
+    disambiguation =
+        disambiguation
+            + JavaStyle.toUpperCamelCase(
+                settingBuilderMethodInvocationExpr.methodIdentifier().name());
+
     // Initialize clientSetting with builder() method.
     // e.g: FoobarSettings foobarSettings = foobarSettingsBuilder.build();
     VariableExpr settingsVarExpr =
@@ -121,6 +129,10 @@ public static Optional composeSampleCode(
                 .setType(classType)
                 .setName(JavaStyle.toLowerCamelCase(settingsClassName))
                 .build());
+    disambiguation =
+        disambiguation
+            + JavaStyle.toUpperCamelCase(settingsVarExpr.variable().type().reference().name());
+
     AssignmentExpr settingBuildAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(settingsVarExpr.toBuilder().setIsDecl(true).build())
@@ -140,6 +152,16 @@ public static Optional composeSampleCode(
             .stream()
             .map(e -> ExprStatement.withExpr(e))
             .collect(Collectors.toList());
-    return Optional.of(SampleCodeWriter.write(statements));
+
+    // e.g. serviceName = echoSettings
+    //      rpcName = echo
+    //      disambiguation = setRetrySettingsEchoSettings
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(classType.reference().name())
+            .setRpcName(methodNameOpt.get())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Optional.of(Sample.builder().setBody(statements).setRegionTag(regionTag).build());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java
index 397e0ec2c2..2eb42af01a 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java
@@ -28,6 +28,7 @@
 import com.google.api.generator.gapic.model.Method.Stream;
 import com.google.api.generator.gapic.model.MethodArgument;
 import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.protoparser.Parser;
 import com.google.api.generator.testutils.LineFormatter;
@@ -65,11 +66,14 @@ public void composeClassHeaderMethodSampleCode_unaryRpc() {
                 .setName("EchoClient")
                 .setPakkage(SHOWCASE_PACKAGE_NAME)
                 .build());
-    String results =
+    Sample sample =
         ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
             echoProtoService, clientType, resourceNames, messageTypes);
+    String results = writeInlineSample(sample);
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  EchoResponse response = echoClient.echo();\n",
             "}");
@@ -148,10 +152,13 @@ public void composeClassHeaderMethodSampleCode_firstMethodIsNotUnaryRpc() {
                 .setPakkage(SHOWCASE_PACKAGE_NAME)
                 .build());
     String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-            service, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
+                service, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  Duration ttl = Duration.newBuilder().build();\n",
             "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
@@ -201,10 +208,13 @@ public void composeClassHeaderMethodSampleCode_firstMethodHasNoSignatures() {
                 .setPakkage(SHOWCASE_PACKAGE_NAME)
                 .build());
     String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-            service, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
+                service, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  EchoRequest request =\n",
             "      EchoRequest.newBuilder()\n",
@@ -262,10 +272,13 @@ public void composeClassHeaderMethodSampleCode_firstMethodIsStream() {
                 .setPakkage(SHOWCASE_PACKAGE_NAME)
                 .build());
     String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-            service, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
+                service, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  ExpandRequest request =\n",
             "     "
@@ -293,10 +306,13 @@ public void composeClassHeaderCredentialsSampleCode() {
                 .setPakkage(SHOWCASE_PACKAGE_NAME)
                 .build());
     String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderCredentialsSampleCode(
-            clientType, settingsType);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeClassHeaderCredentialsSampleCode(
+                clientType, settingsType));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "EchoSettings echoSettings =\n",
             "    EchoSettings.newBuilder()\n",
             "        .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))\n",
@@ -320,10 +336,13 @@ public void composeClassHeaderEndpointSampleCode() {
                 .setPakkage(SHOWCASE_PACKAGE_NAME)
                 .build());
     String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderEndpointSampleCode(
-            clientType, settingsType);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeClassHeaderEndpointSampleCode(
+                clientType, settingsType));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "EchoSettings echoSettings ="
                 + " EchoSettings.newBuilder().setEndpoint(myEndpoint).build();\n",
             "EchoClient echoClient = EchoClient.create(echoSettings);");
@@ -373,7 +392,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpc() {
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMethodArgument() {
     FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
@@ -433,7 +451,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMe
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void
       validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithSuperReferenceIsResourceNameMethodArgument() {
@@ -498,7 +515,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMe
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void
       validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringWithResourceReferenceMethodArgument() {
@@ -555,7 +571,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMe
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void
       validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringWithParentResourceReferenceMethodArgument() {
@@ -613,7 +628,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMe
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMethodArgument() {
     FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
@@ -672,7 +686,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMetho
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void
       validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleWordNameMethodArgument() {
@@ -748,7 +761,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMetho
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void
       validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringIsContainedInOneOfMethodArgument() {
@@ -804,7 +816,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMetho
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleMethodArguments() {
     FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
@@ -864,7 +875,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleMethod
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithNoMethodArguments() {
     FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
@@ -906,7 +916,6 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithNoMethodArgume
             "}");
     assertEquals(expected, results);
   }
-
   @Test
   public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMethodReturnVoid() {
     FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
@@ -1036,10 +1045,13 @@ public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithMultipleMethodArgu
     messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
 
     String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, arguments, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
+                method, clientType, arguments, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  List resourceName = new ArrayList<>();\n",
             "  String filter = \"filter-1274492040\";\n",
@@ -1109,10 +1121,13 @@ public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithNoMethodArguments(
     messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
 
     String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, arguments, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
+                method, clientType, arguments, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  for (Content element : echoClient.listContent().iterateAll()) {\n",
             "    // doThingsWith(element);\n",
@@ -1269,10 +1284,13 @@ public void validComposeRpcMethodHeaderSampleCode_lroUnaryRpcWithNoMethodArgumen
             .build();
 
     String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, Collections.emptyList(), resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
+                method, clientType, Collections.emptyList(), resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  WaitResponse response = echoClient.waitAsync().get();\n",
             "}");
@@ -1342,10 +1360,13 @@ public void validComposeRpcMethodHeaderSampleCode_lroRpcWithReturnResponseType()
             .build();
 
     String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, arguments, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
+                method, clientType, arguments, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  Duration ttl = Duration.newBuilder().build();\n",
             "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
@@ -1413,10 +1434,13 @@ public void validComposeRpcMethodHeaderSampleCode_lroRpcWithReturnVoid() {
             .build();
 
     String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, arguments, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
+                method, clientType, arguments, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  Duration ttl = Duration.newBuilder().build();\n",
             "  echoClient.waitAsync(ttl).get();\n",
@@ -1457,10 +1481,13 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_isPagedMethod() {
             .setPageSizeFieldName(PAGINATED_FIELD_NAME)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  PagedExpandRequest request =\n",
             "      PagedExpandRequest.newBuilder()\n",
@@ -1556,10 +1583,13 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_hasLroMethodWithReturnR
             .setLro(lro)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  WaitRequest request = WaitRequest.newBuilder().build();\n",
             "  echoClient.waitAsync(request).get();\n",
@@ -1613,10 +1643,13 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_hasLroMethodWithReturnV
             .setLro(lro)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  WaitRequest request = WaitRequest.newBuilder().build();\n",
             "  WaitResponse response = echoClient.waitAsync(request).get();\n",
@@ -1652,10 +1685,13 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnVoid() {
             .setMethodSignatures(Collections.emptyList())
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  EchoRequest request =\n",
             "      EchoRequest.newBuilder()\n",
@@ -1702,10 +1738,13 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnResponse
             .setMethodSignatures(Collections.emptyList())
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  EchoRequest request =\n",
             "      EchoRequest.newBuilder()\n",
@@ -1767,10 +1806,13 @@ public void validComposeLroCallableMethodHeaderSampleCode_withReturnResponse() {
             .setLro(lro)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  WaitRequest request = WaitRequest.newBuilder().build();\n",
             "  OperationFuture future =\n",
@@ -1823,10 +1865,13 @@ public void validComposeLroCallableMethodHeaderSampleCode_withReturnVoid() {
             .setLro(lro)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  WaitRequest request = WaitRequest.newBuilder().build();\n",
             "  OperationFuture future =\n",
@@ -1869,10 +1914,13 @@ public void validComposePagedCallableMethodHeaderSampleCode() {
             .setPageSizeFieldName(PAGINATED_FIELD_NAME)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  PagedExpandRequest request =\n",
             "      PagedExpandRequest.newBuilder()\n",
@@ -2047,10 +2095,13 @@ public void validComposeStreamCallableMethodHeaderSampleCode_serverStream() {
             .setStream(Stream.SERVER)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  ExpandRequest request =\n",
             "     "
@@ -2131,10 +2182,13 @@ public void validComposeStreamCallableMethodHeaderSampleCode_bidiStream() {
             .setStream(Stream.BIDI)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  BidiStream bidiStream ="
                 + " echoClient.chatCallable().call();\n",
@@ -2223,10 +2277,13 @@ public void validComposeStreamCallableMethodHeaderSampleCode_clientStream() {
             .setStream(Stream.CLIENT)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  ApiStreamObserver responseObserver =\n",
             "      new ApiStreamObserver() {\n",
@@ -2325,10 +2382,13 @@ public void validComposeRegularCallableMethodHeaderSampleCode_unaryRpc() {
     Method method =
         Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
     String results =
-        ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  EchoRequest request =\n",
             "      EchoRequest.newBuilder()\n",
@@ -2391,10 +2451,13 @@ public void validComposeRegularCallableMethodHeaderSampleCode_lroRpc() {
             .setLro(lro)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  WaitRequest request = WaitRequest.newBuilder().build();\n",
             "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
@@ -2446,10 +2509,13 @@ public void validComposeRegularCallableMethodHeaderSampleCode_lroRpcWithReturnVo
             .setLro(lro)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  WaitRequest request = WaitRequest.newBuilder().build();\n",
             "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
@@ -2491,10 +2557,13 @@ public void validComposeRegularCallableMethodHeaderSampleCode_pageRpc() {
             .setPageSizeFieldName(PAGINATED_FIELD_NAME)
             .build();
     String results =
-        ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
+        writeInlineSample(
+            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
+                method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
+            "// This snippet has been automatically generated for illustrative purposes only.\n",
+            "// It may require modifications to work in your environment.\n",
             "try (EchoClient echoClient = EchoClient.create()) {\n",
             "  PagedExpandRequest request =\n",
             "      PagedExpandRequest.newBuilder()\n",
@@ -2637,4 +2706,8 @@ public void invalidComposeRegularCallableMethodHeaderSampleCode_noRepeatedRespon
             ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
                 method, clientType, resourceNames, messageTypes));
   }
+
+  private String writeInlineSample(Sample sample) {
+    return SampleComposer.createInlineSample(sample.body());
+  }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java
index a62d57275c..0e8b24975b 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java
@@ -18,6 +18,7 @@
 
 import com.google.api.generator.engine.ast.TypeNode;
 import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.testutils.LineFormatter;
 import java.util.Optional;
 import org.junit.Test;
@@ -32,7 +33,9 @@ public void composeSettingsSampleCode_noMethods() {
                 .setPakkage("com.google.showcase.v1beta1")
                 .build());
     Optional results =
-        SettingsSampleCodeComposer.composeSampleCode(Optional.empty(), "EchoSettings", classType);
+        writeInlineSample(
+            SettingsSampleCodeComposer.composeSampleCode(
+                Optional.empty(), "EchoSettings", classType));
     assertEquals(results, Optional.empty());
   }
 
@@ -45,8 +48,9 @@ public void composeSettingsSampleCode_serviceSettingsClass() {
                 .setPakkage("com.google.showcase.v1beta1")
                 .build());
     Optional results =
-        SettingsSampleCodeComposer.composeSampleCode(
-            Optional.of("Echo"), "EchoSettings", classType);
+        writeInlineSample(
+            SettingsSampleCodeComposer.composeSampleCode(
+                Optional.of("Echo"), "EchoSettings", classType));
     String expected =
         LineFormatter.lines(
             "EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();\n",
@@ -72,8 +76,9 @@ public void composeSettingsSampleCode_serviceStubClass() {
                 .setPakkage("com.google.showcase.v1beta1")
                 .build());
     Optional results =
-        SettingsSampleCodeComposer.composeSampleCode(
-            Optional.of("Echo"), "EchoSettings", classType);
+        writeInlineSample(
+            SettingsSampleCodeComposer.composeSampleCode(
+                Optional.of("Echo"), "EchoSettings", classType));
     String expected =
         LineFormatter.lines(
             "EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();\n",
@@ -89,4 +94,11 @@ public void composeSettingsSampleCode_serviceStubClass() {
             "EchoStubSettings echoSettings = echoSettingsBuilder.build();");
     assertEquals(results.get(), expected);
   }
+
+  private Optional writeInlineSample(Optional sample) {
+    if (sample.isPresent()) {
+      return Optional.of(SampleCodeWriter.write(sample.get().body()));
+    }
+    return Optional.empty();
+  }
 }

From 4348268e5cfc0669051de40729eded92ae333a5f Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Mon, 14 Feb 2022 16:40:44 -0800
Subject: [PATCH 03/29] feat: update current inline samples

---
 .../ClientLibraryPackageInfoComposer.java     |   7 +-
 .../AbstractServiceClientClassComposer.java   | 114 ++++++++++++------
 .../AbstractServiceSettingsClassComposer.java |  24 ++--
 ...tractServiceStubSettingsClassComposer.java |  23 ++--
 .../SampleCodeBodyJavaFormatter.java          |  67 ++++++++++
 .../api/generator/gapic/model/GapicClass.java |  68 ++++++++++-
 ...rviceCallableFactoryClassComposerTest.java |  22 +---
 .../GrpcServiceStubClassComposerTest.java     |  49 ++------
 .../grpc/MockServiceClassComposerTest.java    |  47 ++++----
 .../MockServiceImplClassComposerTest.java     |  47 ++++----
 .../grpc/ServiceClientClassComposerTest.java  |  93 +++++---------
 .../ServiceClientTestClassComposerTest.java   | 100 +++++----------
 .../ServiceSettingsClassComposerTest.java     |  49 ++++----
 .../grpc/ServiceStubClassComposerTest.java    |  47 ++++----
 .../ServiceStubSettingsClassComposerTest.java |  82 ++++---------
 ...a => SampleCodeBodyJavaFormatterTest.java} |  12 +-
 .../api/generator/test/framework/Assert.java  |  56 +++++++++
 .../api/generator/test/framework/Differ.java  |   2 +-
 18 files changed, 504 insertions(+), 405 deletions(-)
 create mode 100644 src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java
 rename src/test/java/com/google/api/generator/gapic/composer/samplecode/{SampleCodeJavaFormatterTest.java => SampleCodeBodyJavaFormatterTest.java} (88%)

diff --git a/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java b/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java
index 9fe1ff6eca..fc4455cd0a 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java
@@ -21,10 +21,12 @@
 import com.google.api.generator.engine.ast.PackageInfoDefinition;
 import com.google.api.generator.engine.ast.TypeNode;
 import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.composer.samplecode.SampleComposer;
 import com.google.api.generator.gapic.composer.samplecode.ServiceClientSampleCodeComposer;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.GapicPackageInfo;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.common.base.Preconditions;
 import com.google.common.base.Strings;
@@ -119,10 +121,11 @@ private static CommentStatement createPackageInfoJavadoc(GapicContext context) {
                   .setPakkage(service.pakkage())
                   .setName(ClassNames.getServiceClientClassName(service))
                   .build());
-      String packageInfoSampleCode =
+      Sample packageInfoSampleCode =
           ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
               service, clientType, context.resourceNames(), context.messages());
-      javaDocCommentBuilder.addSampleCode(packageInfoSampleCode);
+      javaDocCommentBuilder.addSampleCode(
+          SampleComposer.createInlineSample(packageInfoSampleCode.body()));
     }
 
     return CommentStatement.withComment(javaDocCommentBuilder.build());
diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
index beb777f543..a9c4d4b8e5 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
@@ -55,6 +55,7 @@
 import com.google.api.generator.engine.ast.Variable;
 import com.google.api.generator.engine.ast.VariableExpr;
 import com.google.api.generator.gapic.composer.comment.ServiceClientCommentComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleComposer;
 import com.google.api.generator.gapic.composer.samplecode.ServiceClientSampleCodeComposer;
 import com.google.api.generator.gapic.composer.store.TypeStore;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
@@ -69,6 +70,7 @@
 import com.google.api.generator.gapic.model.Method.Stream;
 import com.google.api.generator.gapic.model.MethodArgument;
 import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.api.generator.util.TriFunction;
@@ -134,12 +136,13 @@ public GapicClass generate(GapicContext context, Service service) {
     String pakkage = service.pakkage();
     boolean hasLroClient = service.hasStandardLroMethods();
 
+    List samples = new ArrayList<>();
     Map> grpcRpcsToJavaMethodNames = new HashMap<>();
 
     ClassDefinition classDef =
         ClassDefinition.builder()
             .setHeaderCommentStatements(
-                createClassHeaderComments(service, typeStore, resourceNames, messageTypes))
+                createClassHeaderComments(service, typeStore, resourceNames, messageTypes, samples))
             .setPackageString(pakkage)
             .setAnnotations(createClassAnnotations(service, typeStore))
             .setScope(ScopeNode.PUBLIC)
@@ -153,12 +156,13 @@ public GapicClass generate(GapicContext context, Service service) {
                     typeStore,
                     resourceNames,
                     hasLroClient,
-                    grpcRpcsToJavaMethodNames))
+                    grpcRpcsToJavaMethodNames,
+                    samples))
             .setNestedClasses(createNestedPagingClasses(service, messageTypes, typeStore))
             .build();
 
     updateGapicMetadata(context, service, className, grpcRpcsToJavaMethodNames);
-    return GapicClass.create(kind, classDef);
+    return GapicClass.create(kind, classDef, samples);
   }
 
   private static List createClassAnnotations(Service service, TypeStore typeStore) {
@@ -185,20 +189,25 @@ private static List createClassHeaderComments(
       Service service,
       TypeStore typeStore,
       Map resourceNames,
-      Map messageTypes) {
+      Map messageTypes,
+      List samples) {
     TypeNode clientType = typeStore.get(ClassNames.getServiceClientClassName(service));
     TypeNode settingsType = typeStore.get(ClassNames.getServiceSettingsClassName(service));
-    String classMethodSampleCode =
+    Sample classMethodSampleCode =
         ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
             service, clientType, resourceNames, messageTypes);
-    String credentialsSampleCode =
+    Sample credentialsSampleCode =
         ServiceClientSampleCodeComposer.composeClassHeaderCredentialsSampleCode(
             clientType, settingsType);
-    String endpointSampleCode =
+    Sample endpointSampleCode =
         ServiceClientSampleCodeComposer.composeClassHeaderEndpointSampleCode(
             clientType, settingsType);
+    samples.addAll(Arrays.asList(classMethodSampleCode, credentialsSampleCode, endpointSampleCode));
     return ServiceClientCommentComposer.createClassHeaderComments(
-        service, classMethodSampleCode, credentialsSampleCode, endpointSampleCode);
+        service,
+        SampleComposer.createInlineSample(classMethodSampleCode.body()),
+        SampleComposer.createInlineSample(credentialsSampleCode.body()),
+        SampleComposer.createInlineSample(endpointSampleCode.body()));
   }
 
   private List createClassMethods(
@@ -207,14 +216,15 @@ private List createClassMethods(
       TypeStore typeStore,
       Map resourceNames,
       boolean hasLroClient,
-      Map> grpcRpcToJavaMethodMetadata) {
+      Map> grpcRpcToJavaMethodMetadata,
+      List samples) {
     List methods = new ArrayList<>();
     methods.addAll(createStaticCreatorMethods(service, typeStore));
     methods.addAll(createConstructorMethods(service, typeStore, hasLroClient));
     methods.addAll(createGetterMethods(service, typeStore, hasLroClient));
     methods.addAll(
         createServiceMethods(
-            service, messageTypes, typeStore, resourceNames, grpcRpcToJavaMethodMetadata));
+            service, messageTypes, typeStore, resourceNames, grpcRpcToJavaMethodMetadata, samples));
     methods.addAll(createBackgroundResourceMethods(service, typeStore));
     return methods;
   }
@@ -566,7 +576,8 @@ private static List createServiceMethods(
       Map messageTypes,
       TypeStore typeStore,
       Map resourceNames,
-      Map> grpcRpcToJavaMethodMetadata) {
+      Map> grpcRpcToJavaMethodMetadata,
+      List samples) {
     List javaMethods = new ArrayList<>();
     Function javaMethodNameFn = m -> m.methodIdentifier().name();
     for (Method method : service.methods()) {
@@ -580,7 +591,8 @@ private static List createServiceMethods(
                 ClassNames.getServiceClientClassName(service),
                 messageTypes,
                 typeStore,
-                resourceNames);
+                resourceNames,
+                samples);
 
         // Collect data for gapic_metadata.json.
         grpcRpcToJavaMethodMetadata
@@ -597,7 +609,8 @@ private static List createServiceMethods(
                 ClassNames.getServiceClientClassName(service),
                 messageTypes,
                 typeStore,
-                resourceNames);
+                resourceNames,
+                samples);
 
         // Collect data for gapic_metadata.json.
         grpcRpcToJavaMethodMetadata.get(method.name()).add(javaMethodNameFn.apply(generatedMethod));
@@ -605,7 +618,8 @@ private static List createServiceMethods(
       }
       if (method.hasLro()) {
         MethodDefinition generatedMethod =
-            createLroCallableMethod(service, method, typeStore, messageTypes, resourceNames);
+            createLroCallableMethod(
+                service, method, typeStore, messageTypes, resourceNames, samples);
 
         // Collect data for gapic_metadata.json.
         grpcRpcToJavaMethodMetadata.get(method.name()).add(javaMethodNameFn.apply(generatedMethod));
@@ -613,14 +627,15 @@ private static List createServiceMethods(
       }
       if (method.isPaged()) {
         MethodDefinition generatedMethod =
-            createPagedCallableMethod(service, method, typeStore, messageTypes, resourceNames);
+            createPagedCallableMethod(
+                service, method, typeStore, messageTypes, resourceNames, samples);
 
         // Collect data for gapic_metadata.json.
         grpcRpcToJavaMethodMetadata.get(method.name()).add(javaMethodNameFn.apply(generatedMethod));
         javaMethods.add(generatedMethod);
       }
       MethodDefinition generatedMethod =
-          createCallableMethod(service, method, typeStore, messageTypes, resourceNames);
+          createCallableMethod(service, method, typeStore, messageTypes, resourceNames, samples);
 
       // Collect data for the gapic_metadata.json file.
       grpcRpcToJavaMethodMetadata.get(method.name()).add(javaMethodNameFn.apply(generatedMethod));
@@ -634,7 +649,8 @@ private static List createMethodVariants(
       String clientName,
       Map messageTypes,
       TypeStore typeStore,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     List javaMethods = new ArrayList<>();
     String methodName = JavaStyle.toLowerCamelCase(method.name());
     TypeNode methodInputType = method.inputType();
@@ -695,15 +711,21 @@ private static List createMethodVariants(
               .setReturnType(methodOutputType)
               .build();
 
-      Optional methodSampleCode =
+      Optional methodSample =
           Optional.of(
               ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
                   method, typeStore.get(clientName), signature, resourceNames, messageTypes));
+      Optional methodDocSample = Optional.empty();
+      if (methodSample.isPresent()) {
+        samples.add(methodSample.get());
+        methodDocSample = Optional.of(SampleComposer.createInlineSample(methodSample.get().body()));
+      }
+
       MethodDefinition.Builder methodVariantBuilder =
           MethodDefinition.builder()
               .setHeaderCommentStatements(
                   ServiceClientCommentComposer.createRpcMethodHeaderComment(
-                      method, signature, methodSampleCode))
+                      method, signature, methodDocSample))
               .setScope(ScopeNode.PUBLIC)
               .setIsFinal(true)
               .setName(String.format(method.hasLro() ? "%sAsync" : "%s", methodName))
@@ -734,7 +756,8 @@ private static MethodDefinition createMethodDefaultMethod(
       String clientName,
       Map messageTypes,
       TypeStore typeStore,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     String methodName = JavaStyle.toLowerCamelCase(method.name());
     TypeNode methodInputType = method.inputType();
     TypeNode methodOutputType =
@@ -775,10 +798,16 @@ private static MethodDefinition createMethodDefaultMethod(
       callableMethodName = String.format(OPERATION_CALLABLE_NAME_PATTERN, methodName);
     }
 
-    Optional defaultMethodSampleCode =
+    Optional defaultMethodSample =
         Optional.of(
             ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
                 method, typeStore.get(clientName), resourceNames, messageTypes));
+    Optional defaultMethodDocSample = Optional.empty();
+    if (defaultMethodSample.isPresent()) {
+      samples.add(defaultMethodSample.get());
+      defaultMethodDocSample =
+          Optional.of(SampleComposer.createInlineSample(defaultMethodSample.get().body()));
+    }
 
     MethodInvocationExpr callableMethodExpr =
         MethodInvocationExpr.builder().setMethodName(callableMethodName).build();
@@ -793,7 +822,7 @@ private static MethodDefinition createMethodDefaultMethod(
         MethodDefinition.builder()
             .setHeaderCommentStatements(
                 ServiceClientCommentComposer.createRpcMethodHeaderComment(
-                    method, defaultMethodSampleCode))
+                    method, defaultMethodDocSample))
             .setScope(ScopeNode.PUBLIC)
             .setIsFinal(true)
             .setName(String.format(method.hasLro() ? "%sAsync" : "%s", methodName))
@@ -823,9 +852,10 @@ private static MethodDefinition createLroCallableMethod(
       Method method,
       TypeStore typeStore,
       Map messageTypes,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     return createCallableMethod(
-        service, method, CallableMethodKind.LRO, typeStore, messageTypes, resourceNames);
+        service, method, CallableMethodKind.LRO, typeStore, messageTypes, resourceNames, samples);
   }
 
   private static MethodDefinition createCallableMethod(
@@ -833,9 +863,16 @@ private static MethodDefinition createCallableMethod(
       Method method,
       TypeStore typeStore,
       Map messageTypes,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     return createCallableMethod(
-        service, method, CallableMethodKind.REGULAR, typeStore, messageTypes, resourceNames);
+        service,
+        method,
+        CallableMethodKind.REGULAR,
+        typeStore,
+        messageTypes,
+        resourceNames,
+        samples);
   }
 
   private static MethodDefinition createPagedCallableMethod(
@@ -843,9 +880,10 @@ private static MethodDefinition createPagedCallableMethod(
       Method method,
       TypeStore typeStore,
       Map messageTypes,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     return createCallableMethod(
-        service, method, CallableMethodKind.PAGED, typeStore, messageTypes, resourceNames);
+        service, method, CallableMethodKind.PAGED, typeStore, messageTypes, resourceNames, samples);
   }
 
   private static MethodDefinition createCallableMethod(
@@ -854,7 +892,8 @@ private static MethodDefinition createCallableMethod(
       CallableMethodKind callableMethodKind,
       TypeStore typeStore,
       Map messageTypes,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     TypeNode rawCallableReturnType = null;
     if (callableMethodKind.equals(CallableMethodKind.LRO)) {
       rawCallableReturnType = typeStore.get("OperationCallable");
@@ -896,9 +935,9 @@ private static MethodDefinition createCallableMethod(
             .setReturnType(returnType)
             .build();
 
-    Optional sampleCodeOpt = Optional.empty();
+    Optional sampleCode = Optional.empty();
     if (callableMethodKind.equals(CallableMethodKind.LRO)) {
-      sampleCodeOpt =
+      sampleCode =
           Optional.of(
               ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
                   method,
@@ -906,7 +945,7 @@ private static MethodDefinition createCallableMethod(
                   resourceNames,
                   messageTypes));
     } else if (callableMethodKind.equals(CallableMethodKind.PAGED)) {
-      sampleCodeOpt =
+      sampleCode =
           Optional.of(
               ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
                   method,
@@ -915,7 +954,7 @@ private static MethodDefinition createCallableMethod(
                   messageTypes));
     } else if (callableMethodKind.equals(CallableMethodKind.REGULAR)) {
       if (method.stream().equals(Stream.NONE)) {
-        sampleCodeOpt =
+        sampleCode =
             Optional.of(
                 ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
                     method,
@@ -923,7 +962,7 @@ private static MethodDefinition createCallableMethod(
                     resourceNames,
                     messageTypes));
       } else {
-        sampleCodeOpt =
+        sampleCode =
             Optional.of(
                 ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
                     method,
@@ -932,6 +971,11 @@ private static MethodDefinition createCallableMethod(
                     messageTypes));
       }
     }
+    Optional sampleDocCode = Optional.empty();
+    if (sampleCode.isPresent()) {
+      samples.add(sampleCode.get());
+      sampleDocCode = Optional.of(SampleComposer.createInlineSample(sampleCode.get().body()));
+    }
 
     MethodDefinition.Builder methodDefBuilder = MethodDefinition.builder();
     if (method.isDeprecated()) {
@@ -943,7 +987,7 @@ private static MethodDefinition createCallableMethod(
     return methodDefBuilder
         .setHeaderCommentStatements(
             ServiceClientCommentComposer.createRpcCallableMethodHeaderComment(
-                method, sampleCodeOpt))
+                method, sampleDocCode))
         .setScope(ScopeNode.PUBLIC)
         .setIsFinal(true)
         .setName(methodName)
diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java
index ccf15a1d64..f5c97611b0 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java
@@ -50,6 +50,7 @@
 import com.google.api.generator.engine.ast.Variable;
 import com.google.api.generator.engine.ast.VariableExpr;
 import com.google.api.generator.gapic.composer.comment.SettingsCommentComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleComposer;
 import com.google.api.generator.gapic.composer.samplecode.SettingsSampleCodeComposer;
 import com.google.api.generator.gapic.composer.store.TypeStore;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
@@ -59,6 +60,7 @@
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Method;
 import com.google.api.generator.gapic.model.Method.Stream;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.common.base.Preconditions;
@@ -100,12 +102,13 @@ public GapicClass generate(GapicContext context, Service service) {
     TypeStore typeStore = createDynamicTypes(service);
     String className = ClassNames.getServiceSettingsClassName(service);
     GapicClass.Kind kind = Kind.MAIN;
-
+    List samples = new ArrayList<>();
+    List classHeaderComments =
+        createClassHeaderComments(service, typeStore.get(className), samples);
     ClassDefinition classDef =
         ClassDefinition.builder()
             .setPackageString(pakkage)
-            .setHeaderCommentStatements(
-                createClassHeaderComments(service, typeStore.get(className)))
+            .setHeaderCommentStatements(classHeaderComments)
             .setAnnotations(createClassAnnotations(service))
             .setScope(ScopeNode.PUBLIC)
             .setName(className)
@@ -122,11 +125,11 @@ public GapicClass generate(GapicContext context, Service service) {
             .setMethods(createClassMethods(service, typeStore))
             .setNestedClasses(Arrays.asList(createNestedBuilderClass(service, typeStore)))
             .build();
-    return GapicClass.create(kind, classDef);
+    return GapicClass.create(kind, classDef, samples);
   }
 
   private static List createClassHeaderComments(
-      Service service, TypeNode classType) {
+      Service service, TypeNode classType, List samples) {
     // Pick the first pure unary rpc method, if no such method exists, then pick the first in the
     // list.
     Optional methodOpt =
@@ -139,15 +142,22 @@ private static List createClassHeaderComments(
                     .orElse(service.methods().get(0)));
     Optional methodNameOpt =
         methodOpt.isPresent() ? Optional.of(methodOpt.get().name()) : Optional.empty();
-    Optional sampleCodeOpt =
+    Optional sampleCode =
         SettingsSampleCodeComposer.composeSampleCode(
             methodNameOpt, ClassNames.getServiceSettingsClassName(service), classType);
+
+    Optional docSampleCode = Optional.empty();
+    if (sampleCode.isPresent()) {
+      samples.add(sampleCode.get());
+      docSampleCode = Optional.of(SampleComposer.createInlineSample(sampleCode.get().body()));
+    }
+
     return SettingsCommentComposer.createClassHeaderComments(
         ClassNames.getServiceClientClassName(service),
         service.defaultHost(),
         service.isDeprecated(),
         methodNameOpt,
-        sampleCodeOpt,
+        docSampleCode,
         classType);
   }
 
diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java
index 0ba5da2e49..248bff6f8f 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java
@@ -79,6 +79,7 @@
 import com.google.api.generator.engine.ast.Variable;
 import com.google.api.generator.engine.ast.VariableExpr;
 import com.google.api.generator.gapic.composer.comment.SettingsCommentComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleComposer;
 import com.google.api.generator.gapic.composer.samplecode.SettingsSampleCodeComposer;
 import com.google.api.generator.gapic.composer.store.TypeStore;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
@@ -91,6 +92,7 @@
 import com.google.api.generator.gapic.model.Message;
 import com.google.api.generator.gapic.model.Method;
 import com.google.api.generator.gapic.model.Method.Stream;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.common.base.Preconditions;
@@ -168,6 +170,7 @@ public GapicClass generate(GapicContext context, Service service) {
     String pakkage = String.format("%s.stub", service.pakkage());
     TypeStore typeStore = createDynamicTypes(service, pakkage);
 
+    List samples = new ArrayList<>();
     Set deprecatedSettingVarNames = new HashSet<>();
     Map methodSettingsMemberVarExprs =
         createMethodSettingsClassMemberVarExprs(
@@ -177,12 +180,12 @@ public GapicClass generate(GapicContext context, Service service) {
             /* isNestedClass= */ false,
             deprecatedSettingVarNames);
     String className = ClassNames.getServiceStubSettingsClassName(service);
-
+    List classHeaderComments =
+        createClassHeaderComments(service, typeStore.get(className), samples);
     ClassDefinition classDef =
         ClassDefinition.builder()
             .setPackageString(pakkage)
-            .setHeaderCommentStatements(
-                createClassHeaderComments(service, typeStore.get(className)))
+            .setHeaderCommentStatements(classHeaderComments)
             .setAnnotations(createClassAnnotations(service))
             .setScope(ScopeNode.PUBLIC)
             .setName(className)
@@ -196,7 +199,7 @@ public GapicClass generate(GapicContext context, Service service) {
             .setNestedClasses(
                 Arrays.asList(createNestedBuilderClass(service, serviceConfig, typeStore)))
             .build();
-    return GapicClass.create(GapicClass.Kind.STUB, classDef);
+    return GapicClass.create(GapicClass.Kind.STUB, classDef, samples);
   }
 
   protected MethodDefinition createDefaultCredentialsProviderBuilderMethod() {
@@ -376,7 +379,7 @@ private List createClassAnnotations(Service service) {
   }
 
   private static List createClassHeaderComments(
-      Service service, TypeNode classType) {
+      Service service, TypeNode classType, List samples) {
     // Pick the first pure unary rpc method, if no such method exists, then pick the first in the
     // list.
     Optional methodOpt =
@@ -389,16 +392,22 @@ private static List createClassHeaderComments(
                     .orElse(service.methods().get(0)));
     Optional methodNameOpt =
         methodOpt.isPresent() ? Optional.of(methodOpt.get().name()) : Optional.empty();
-    Optional sampleCodeOpt =
+    Optional sampleCode =
         SettingsSampleCodeComposer.composeSampleCode(
             methodNameOpt, ClassNames.getServiceSettingsClassName(service), classType);
 
+    Optional docSampleCode = Optional.empty();
+    if (sampleCode.isPresent()) {
+      samples.add(sampleCode.get());
+      docSampleCode = Optional.of(SampleComposer.createInlineSample(sampleCode.get().body()));
+    }
+
     return SettingsCommentComposer.createClassHeaderComments(
         ClassNames.getServiceStubClassName(service),
         service.defaultHost(),
         service.isDeprecated(),
         methodNameOpt,
-        sampleCodeOpt,
+        docSampleCode,
         classType);
   }
 
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java
new file mode 100644
index 0000000000..a788e849b4
--- /dev/null
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java
@@ -0,0 +1,67 @@
+// Copyright 2020 Google LLC
+//
+// 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.generator.gapic.composer.samplecode;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.googlejavaformat.java.Formatter;
+import com.google.googlejavaformat.java.FormatterException;
+
+public final class SampleCodeBodyJavaFormatter {
+
+  private SampleCodeBodyJavaFormatter() {}
+
+  private static final Formatter FORMATTER = new Formatter();
+
+  private static final String FAKE_CLASS_TITLE = "public class FakeClass { void fakeMethod() {\n";
+  private static final String FAKE_CLASS_CLOSE = "}}";
+
+  /**
+   * This method is used to format sample code string.
+   *
+   * @param sampleCode A string is composed by statements.
+   * @return String Formatted sample code string based on google java style.
+   */
+  public static String format(String sampleCode) {
+    final StringBuffer buffer = new StringBuffer();
+    // Wrap the sample code inside a class for composing a valid Java source code.
+    // Because we utilized google-java-format to reformat the codes.
+    buffer.append(FAKE_CLASS_TITLE);
+    buffer.append(sampleCode);
+    buffer.append(FAKE_CLASS_CLOSE);
+
+    String formattedString = null;
+    try {
+      formattedString = FORMATTER.formatSource(buffer.toString());
+    } catch (FormatterException e) {
+      throw new FormatException(
+          String.format("The sample code should be string where is composed by statements; %s", e));
+    }
+    // Extract formatted sample code by
+    // 1. Removing the first and last two lines.
+    // 2. Delete the first 4 space for each line.
+    // 3. Trim the last new empty line.
+    return formattedString
+        .replaceAll("^([^\n]*\n){2}|([^\n]*\n){2}$", "")
+        .replaceAll("(?m)^ {4}", "")
+        .trim();
+  }
+
+  @VisibleForTesting
+  protected static class FormatException extends RuntimeException {
+    public FormatException(String errorMessage) {
+      super(errorMessage);
+    }
+  }
+}
diff --git a/src/main/java/com/google/api/generator/gapic/model/GapicClass.java b/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
index 8ae0376efc..c08712e509 100644
--- a/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
+++ b/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
@@ -16,6 +16,10 @@
 
 import com.google.api.generator.engine.ast.ClassDefinition;
 import com.google.auto.value.AutoValue;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
 
 @AutoValue
 public abstract class GapicClass {
@@ -31,12 +35,29 @@ public enum Kind {
 
   public abstract ClassDefinition classDefinition();
 
+  public abstract List samples();
+
   public static GapicClass create(Kind kind, ClassDefinition classDefinition) {
     return builder().setKind(kind).setClassDefinition(classDefinition).build();
   }
 
+  public static GapicClass create(
+      Kind kind, ClassDefinition classDefinition, List samples) {
+    return builder()
+        .setKind(kind)
+        .setClassDefinition(classDefinition)
+        .setSamples(handleDuplicateSamples(samples))
+        .build();
+  }
+
   static Builder builder() {
-    return new AutoValue_GapicClass.Builder();
+    return new AutoValue_GapicClass.Builder().setSamples(Collections.emptyList());
+  }
+
+  abstract Builder toBuilder();
+
+  public final GapicClass withSamples(List samples) {
+    return toBuilder().setSamples(handleDuplicateSamples(samples)).build();
   }
 
   @AutoValue.Builder
@@ -45,6 +66,49 @@ abstract static class Builder {
 
     abstract Builder setClassDefinition(ClassDefinition classDefinition);
 
-    abstract GapicClass build();
+    abstract Builder setSamples(List samples);
+
+    abstract GapicClass autoBuild();
+
+    abstract List samples();
+
+    public final GapicClass build() {
+      setSamples(handleDuplicateSamples(samples()));
+      return autoBuild();
+    }
+  }
+
+  private static List handleDuplicateSamples(List samples) {
+    //  filter out any duplicate samples
+    Map> distinctSamplesGroupedByName =
+        samples.stream().distinct().collect(Collectors.groupingBy(s -> s.name()));
+
+    // grab unique samples
+    List uniqueSamples =
+        distinctSamplesGroupedByName.entrySet().stream()
+            .filter(entry -> entry.getValue().size() < 2)
+            .map(entry -> entry.getValue().get(0))
+            .collect(Collectors.toList());
+
+    // grab samples that are distinct but same sample
+    List>> duplicateDistinctSamples =
+        distinctSamplesGroupedByName.entrySet().stream()
+            .filter(entry -> entry.getValue().size() > 1)
+            .collect(Collectors.toList());
+
+    // update these regionTag/name so distinct duplicates are unique files
+    for (Map.Entry> entry : duplicateDistinctSamples) {
+      int sampleNum = 1;
+      for (Sample sample : entry.getValue()) {
+        uniqueSamples.add(
+            sample.withRegionTag(
+                sample
+                    .regionTag()
+                    .withOverloadDisambiguation(
+                        sample.regionTag().overloadDisambiguation() + sampleNum)));
+        sampleNum++;
+      }
+    }
+    return uniqueSamples;
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java
index 3f90ae955f..7269d61140 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java
@@ -14,14 +14,10 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
 import org.junit.Test;
 
 public class GrpcServiceCallableFactoryClassComposerTest {
@@ -32,12 +28,8 @@ public void generateServiceClasses() {
     GapicClass clazz =
         GrpcServiceCallableFactoryClassComposer.instance().generate(context, echoProtoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcEchoCallableFactory.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcEchoCallableFactory.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcEchoCallableFactory.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -47,13 +39,7 @@ public void generateServiceClasses_deprecated() {
     GapicClass clazz =
         GrpcServiceCallableFactoryClassComposer.instance().generate(context, protoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(
-        this.getClass(), "GrpcDeprecatedServiceCallableFactory.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(
-            Utils.getGoldenDir(this.getClass()), "GrpcDeprecatedServiceCallableFactory.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcDeprecatedServiceCallableFactory.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java
index e26d8696e8..f41143acbe 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java
@@ -14,14 +14,10 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
 import org.junit.Test;
 
 public class GrpcServiceStubClassComposerTest {
@@ -31,11 +27,8 @@ public void generateGrpcServiceStubClass_simple() {
     Service echoProtoService = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, echoProtoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcEchoStub.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcEchoStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcEchoStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -44,12 +37,8 @@ public void generateGrpcServiceStubClass_deprecated() {
     Service protoService = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, protoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcDeprecatedServiceStub.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcDeprecatedServiceStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcDeprecatedServiceStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -58,11 +47,8 @@ public void generateGrpcServiceStubClass_httpBindings() {
     Service service = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcTestingStub.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcTestingStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcTestingStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -72,12 +58,8 @@ public void generateGrpcServiceStubClass_routingHeaders() {
     Service service = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcRoutingHeadersStub.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcRoutingHeadersStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcRoutingHeadersStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -86,12 +68,8 @@ public void generateGrpcServiceStubClass_httpBindingsWithSubMessageFields() {
     Service service = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcPublisherStub.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcPublisherStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcPublisherStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -100,10 +78,7 @@ public void generateGrpcServiceStubClass_createBatchingCallable() {
     Service service = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcLoggingStub.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcLoggingStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcLoggingStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java
index b8f17b5934..7762c6a4df 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java
@@ -14,41 +14,38 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class MockServiceClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = MockServiceClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MockEcho.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "MockEcho.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"MockEcho", GrpcTestProtoLoader.instance().parseShowcaseEcho()},
+          {"MockDeprecatedService", GrpcTestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
+  @Parameterized.Parameter public String name;
+
+  @Parameterized.Parameter(1)
+  public GapicContext context;
+
   @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = MockServiceClassComposer.instance().generate(context, protoService);
+  public void generateMockServiceClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = MockServiceClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MockDeprecatedService.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "MockDeprecatedService.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java
index 854d0772dd..aa062279ec 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java
@@ -14,41 +14,38 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class MockServiceImplClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = MockServiceImplClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MockEchoImpl.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "MockEchoImpl.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"MockEchoImpl", GrpcTestProtoLoader.instance().parseShowcaseEcho()},
+          {"MockDeprecatedServiceImpl", GrpcTestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
+  @Parameterized.Parameter public String name;
+
+  @Parameterized.Parameter(1)
+  public GapicContext context;
+
   @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = MockServiceImplClassComposer.instance().generate(context, protoService);
+  public void generateMockServiceImplClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = MockServiceImplClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MockDeprecatedServiceImpl.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "MockDeprecatedServiceImpl.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
index 46134ebff8..84f0f95440 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
@@ -14,81 +14,46 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import static com.google.api.generator.test.framework.Assert.assertCodeEquals;
-
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
+import com.google.api.generator.test.framework.Assert;
 import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceClientClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoClient.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
-
-  @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "DeprecatedServiceClient.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"EchoClient", GrpcTestProtoLoader.instance().parseShowcaseEcho()},
+          {"DeprecatedServiceClient", GrpcTestProtoLoader.instance().parseDeprecatedService()},
+          {"IdentityClient", GrpcTestProtoLoader.instance().parseShowcaseIdentity()},
+          {"BookshopClient", GrpcTestProtoLoader.instance().parseBookshopService()},
+          {"MessagingClient", GrpcTestProtoLoader.instance().parseShowcaseMessaging()},
+        });
   }
 
-  @Test
-  public void generateServiceClasses_methodSignatureHasNestedFields() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseIdentity();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, protoService);
+  @Parameterized.Parameter public String name;
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "IdentityClient.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "IdentityClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
+  @Parameterized.Parameter(1)
+  public GapicContext context;
 
   @Test
-  public void generateServiceClasses_bookshopNameConflicts() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseBookshopService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "BookshopClient.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "BookshopClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
-
-  @Test
-  public void generateServiceClasses_childTypeParentInJavadoc() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseMessaging();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MessagingClient.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "MessagingClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
+  public void generateServiceClientClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, service);
+    String goldenSampleDir =
+        Utils.getGoldenDir(this.getClass()) + "/samples/" + name.toLowerCase() + "/";
+
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertSampleFileCount(goldenSampleDir, clazz.samples());
+    Assert.assertGoldenSamples(
+        clazz.samples(), clazz.classDefinition().packageString(), goldenSampleDir);
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java
index 9874286d82..0eca4e060d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java
@@ -14,89 +14,49 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import static com.google.api.generator.test.framework.Assert.assertCodeEquals;
-import static org.junit.Assert.assertEquals;
-
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import com.google.api.generator.test.framework.Assert;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceClientTestClassComposerTest {
-  @Test
-  public void generateClientTest_echoClient() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz =
-        ServiceClientTestClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoClientTest.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"EchoClientTest", GrpcTestProtoLoader.instance().parseShowcaseEcho(), 0},
+          {
+            "DeprecatedServiceClientTest",
+            GrpcTestProtoLoader.instance().parseDeprecatedService(),
+            0
+          },
+          {"TestingClientTest", GrpcTestProtoLoader.instance().parseShowcaseTesting(), 0},
+          {"SubscriberClientTest", GrpcTestProtoLoader.instance().parsePubSubPublisher(), 1},
+          {"LoggingClientTest", GrpcTestProtoLoader.instance().parseLogging(), 0},
+        });
   }
 
-  @Test
-  public void generateClientTest_deprecatedServiceClient() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientTestClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "DeprecatedServiceClientTest.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
+  @Parameterized.Parameter public String name;
 
-  @Test
-  public void generateClientTest_testingClientResnameWithOnePatternWithNonSlashSepNames() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseTesting();
-    Service testingProtoService = context.services().get(0);
-    GapicClass clazz =
-        ServiceClientTestClassComposer.instance().generate(context, testingProtoService);
+  @Parameterized.Parameter(1)
+  public GapicContext context;
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "TestingClientTest.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "TestingClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
+  @Parameterized.Parameter(2)
+  public int serviceIndex;
 
   @Test
-  public void generateClientTest_pubSubPublisherClient() {
-    GapicContext context = GrpcTestProtoLoader.instance().parsePubSubPublisher();
-    Service subscriptionService = context.services().get(1);
-    assertEquals("Subscriber", subscriptionService.name());
+  public void generateServiceClientTestClasses() {
+    Service echoProtoService = context.services().get(serviceIndex);
     GapicClass clazz =
-        ServiceClientTestClassComposer.instance().generate(context, subscriptionService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "SubscriberClientTest.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "SubscriberClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
-
-  @Test
-  public void generateClientTest_logging() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseLogging();
-    Service loggingService = context.services().get(0);
-    GapicClass clazz = ServiceClientTestClassComposer.instance().generate(context, loggingService);
+        ServiceClientTestClassComposer.instance().generate(context, echoProtoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "LoggingClientTest.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "LoggingClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
index 622cf85f9c..22572668fb 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
@@ -14,41 +14,42 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
+import com.google.api.generator.gapic.composer.common.TestProtoLoader;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
 import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceSettingsClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = ServiceSettingsClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoSettings.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"EchoSettings", TestProtoLoader.instance().parseShowcaseEcho()},
+          {"DeprecatedServiceSettings", TestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
+  @Parameterized.Parameter public String name;
+
+  @Parameterized.Parameter(1)
+  public GapicContext context;
+
   @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceSettingsClassComposer.instance().generate(context, protoService);
+  public void generateServiceSettingsClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = ServiceSettingsClassComposer.instance().generate(context, service);
+    String goldenSampleDir = Utils.getGoldenDir(this.getClass()) + "samples/servicesettings/";
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "DeprecatedServiceSettings.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertGoldenSamples(
+        clazz.samples(), clazz.classDefinition().packageString(), goldenSampleDir);
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java
index bb411b9ad3..bb0619d315 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java
@@ -14,42 +14,39 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.composer.common.TestProtoLoader;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceStubClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = TestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = ServiceStubClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoStub.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"EchoStub", TestProtoLoader.instance().parseShowcaseEcho()},
+          {"DeprecatedServiceStub", TestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
+  @Parameterized.Parameter public String name;
+
+  @Parameterized.Parameter(1)
+  public GapicContext context;
+
   @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = TestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceStubClassComposer.instance().generate(context, protoService);
+  public void generateServiceStubClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = ServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "DeprecatedServiceStub.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
index 468c2d8219..df0cbac632 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
@@ -14,75 +14,43 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import static org.junit.Assert.assertEquals;
-
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
 import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceStubSettingsClassComposerTest {
-  @Test
-  public void generateServiceStubSettingsClasses_batchingWithEmptyResponses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseLogging();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(
-        this.getClass(), "LoggingServiceV2StubSettings.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "LoggingServiceV2StubSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
-  }
-
-  @Test
-  public void generateServiceStubSettingsClasses_batchingWithNonemptyResponses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parsePubSubPublisher();
-    Service protoService = context.services().get(0);
-    assertEquals("Publisher", protoService.name());
-    GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "PublisherStubSettings.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "PublisherStubSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"LoggingServiceV2StubSettings", GrpcTestProtoLoader.instance().parseLogging()},
+          {"PublisherStubSettings", GrpcTestProtoLoader.instance().parsePubSubPublisher()},
+          {"EchoStubSettings", GrpcTestProtoLoader.instance().parseShowcaseEcho()},
+          {"DeprecatedServiceStubSettings", GrpcTestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
-  @Test
-  public void generateServiceStubSettingsClasses_basic() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz =
-        ServiceStubSettingsClassComposer.instance().generate(context, echoProtoService);
+  @Parameterized.Parameter public String name;
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoStubSettings.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoStubSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
-  }
+  @Parameterized.Parameter(1)
+  public GapicContext context;
 
   @Test
-  public void generateServiceStubSettingsClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(
-        this.getClass(), "DeprecatedServiceStubSettings.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceStubSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  public void generateServiceStubSettingsClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, service);
+    String goldenSampleDir = Utils.getGoldenDir(this.getClass()) + "/samples/servicesettings/";
+
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertGoldenSamples(
+        clazz.samples(), clazz.classDefinition().packageString(), goldenSampleDir);
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatterTest.java
similarity index 88%
rename from src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatterTest.java
rename to src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatterTest.java
index 1606c0a440..4b93c8193e 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatterTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatterTest.java
@@ -17,16 +17,16 @@
 import static junit.framework.TestCase.assertEquals;
 import static org.junit.Assert.assertThrows;
 
-import com.google.api.generator.gapic.composer.samplecode.SampleCodeJavaFormatter.FormatException;
+import com.google.api.generator.gapic.composer.samplecode.SampleCodeBodyJavaFormatter.FormatException;
 import com.google.api.generator.testutils.LineFormatter;
 import org.junit.Test;
 
-public class SampleCodeJavaFormatterTest {
+public class SampleCodeBodyJavaFormatterTest {
 
   @Test
   public void validFormatSampleCode_tryCatchStatement() {
     String samplecode = LineFormatter.lines("try(boolean condition = false){", "int x = 3;", "}");
-    String result = SampleCodeJavaFormatter.format(samplecode);
+    String result = SampleCodeBodyJavaFormatter.format(samplecode);
     String expected =
         LineFormatter.lines("try (boolean condition = false) {\n", "  int x = 3;\n", "}");
     assertEquals(expected, result);
@@ -37,7 +37,7 @@ public void validFormatSampleCode_longLineStatement() {
     String sampleCode =
         "SubscriptionAdminSettings subscriptionAdminSettings = "
             + "SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();";
-    String result = SampleCodeJavaFormatter.format(sampleCode);
+    String result = SampleCodeBodyJavaFormatter.format(sampleCode);
     String expected =
         LineFormatter.lines(
             "SubscriptionAdminSettings subscriptionAdminSettings =\n",
@@ -51,7 +51,7 @@ public void validFormatSampleCode_longChainMethod() {
         "echoSettingsBuilder.echoSettings().setRetrySettings("
             + "echoSettingsBuilder.echoSettings().getRetrySettings().toBuilder()"
             + ".setTotalTimeout(Duration.ofSeconds(30)).build());";
-    String result = SampleCodeJavaFormatter.format(sampleCode);
+    String result = SampleCodeBodyJavaFormatter.format(sampleCode);
     String expected =
         LineFormatter.lines(
             "echoSettingsBuilder\n",
@@ -71,7 +71,7 @@ public void invalidFormatSampleCode_nonStatement() {
     assertThrows(
         FormatException.class,
         () -> {
-          SampleCodeJavaFormatter.format("abc");
+          SampleCodeBodyJavaFormatter.format("abc");
         });
   }
 }
diff --git a/src/test/java/com/google/api/generator/test/framework/Assert.java b/src/test/java/com/google/api/generator/test/framework/Assert.java
index 4ed6a932fd..e032867c45 100644
--- a/src/test/java/com/google/api/generator/test/framework/Assert.java
+++ b/src/test/java/com/google/api/generator/test/framework/Assert.java
@@ -14,8 +14,18 @@
 
 package com.google.api.generator.test.framework;
 
+import com.google.api.generator.engine.writer.JavaWriterVisitor;
+import com.google.api.generator.gapic.composer.comment.CommentComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleComposer;
+import com.google.api.generator.gapic.model.GapicClass;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.utils.JavaStyle;
+import java.io.File;
 import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.Arrays;
 import java.util.List;
+import java.util.stream.Collectors;
 import junit.framework.AssertionFailedError;
 
 public class Assert {
@@ -41,4 +51,50 @@ public static void assertCodeEquals(String expected, String codegen) {
       throw new AssertionFailedError("Differences found: \n" + String.join("\n", diffList));
     }
   }
+
+  public static void assertEmptySamples(List samples) {
+    if (!samples.isEmpty()) {
+      List diffList = samples.stream().map(Sample::name).collect(Collectors.toList());
+      throw new AssertionFailedError("Differences found: \n" + String.join("\n", diffList));
+    }
+  }
+
+  public static void assertSampleFileCount(String goldenDir, List samples) {
+    File directory = new File(goldenDir);
+    if (directory.list().length != samples.size()) {
+      List fileNames =
+          Arrays.stream(directory.listFiles()).map(File::getName).collect(Collectors.toList());
+      List sampleNames =
+          samples.stream()
+              .map(s -> String.format("%s.golden", JavaStyle.toUpperCamelCase(s.name())))
+              .collect(Collectors.toList());
+      List diffList = Differ.diffTwoStringLists(fileNames, sampleNames);
+      if (!diffList.isEmpty()) {
+        String d = "Differences found: \n" + String.join("\n", diffList);
+        throw new AssertionFailedError("Differences found: \n" + String.join("\n", diffList));
+      }
+    }
+  }
+
+  public static void assertGoldenClass(Class clazz, GapicClass gapicClass, String fileName) {
+    JavaWriterVisitor visitor = new JavaWriterVisitor();
+    gapicClass.classDefinition().accept(visitor);
+    Utils.saveCodegenToFile(clazz, fileName, visitor.write());
+    Path goldenFilePath = Paths.get(Utils.getGoldenDir(clazz), fileName);
+    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  }
+
+  public static void assertGoldenSamples(List samples, String packkage, String goldenDir) {
+    for (Sample sample : samples) {
+      String fileName = JavaStyle.toUpperCamelCase(sample.name()).concat(".golden");
+      Path goldenFilePath = Paths.get(goldenDir, fileName);
+      sample =
+          sample
+              .withHeader(Arrays.asList(CommentComposer.APACHE_LICENSE_COMMENT))
+              .withRegionTag(
+                  sample.regionTag().withApiShortName("goldenSample").withApiVersion("v1"));
+      assertCodeEquals(
+          goldenFilePath, SampleComposer.createExecutableSample(sample, packkage + ".samples"));
+    }
+  }
 }
diff --git a/src/test/java/com/google/api/generator/test/framework/Differ.java b/src/test/java/com/google/api/generator/test/framework/Differ.java
index 488282c070..e21f29fd76 100644
--- a/src/test/java/com/google/api/generator/test/framework/Differ.java
+++ b/src/test/java/com/google/api/generator/test/framework/Differ.java
@@ -45,7 +45,7 @@ public static List diff(String expectedStr, String actualStr) {
     return diffTwoStringLists(original, revised);
   }
 
-  private static List diffTwoStringLists(List original, List revised) {
+  static List diffTwoStringLists(List original, List revised) {
     Patch diff = null;
     try {
       diff = DiffUtils.diff(original, revised);

From fdd879a9c84188766ace2e38980f54e749bd4af7 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Mon, 14 Feb 2022 16:45:34 -0800
Subject: [PATCH 04/29] test: unit goldens

---
 .../grpc/goldens/BookshopClient.golden        |  14 +++
 .../goldens/DeprecatedServiceClient.golden    |  14 +++
 .../goldens/DeprecatedServiceSettings.golden  |   2 +
 .../DeprecatedServiceStubSettings.golden      |   2 +
 .../composer/grpc/goldens/EchoClient.golden   |  66 ++++++++++++
 .../composer/grpc/goldens/EchoSettings.golden |   2 +
 .../grpc/goldens/EchoStubSettings.golden      |   2 +
 .../grpc/goldens/IdentityClient.golden        |  42 ++++++++
 .../LoggingServiceV2StubSettings.golden       |   2 +
 .../grpc/goldens/MessagingClient.golden       | 100 ++++++++++++++++++
 .../grpc/goldens/PublisherStubSettings.golden |   2 +
 .../CreateBookshopSettings1.golden            |  40 +++++++
 .../CreateBookshopSettings2.golden            |  37 +++++++
 ...ookCallableFutureCallGetBookRequest.golden |  47 ++++++++
 .../GetBookGetBookRequest.golden              |  44 ++++++++
 .../bookshopclient/GetBookIntListBook.golden  |  40 +++++++
 .../GetBookStringListBook.golden              |  40 +++++++
 .../CreateDeprecatedServiceSettings1.golden   |  41 +++++++
 .../CreateDeprecatedServiceSettings2.golden   |  38 +++++++
 ...iCallableFutureCallFibonacciRequest.golden |  41 +++++++
 .../FastFibonacciFibonacciRequest.golden      |  38 +++++++
 ...iCallableFutureCallFibonacciRequest.golden |  41 +++++++
 .../SlowFibonacciFibonacciRequest.golden      |  38 +++++++
 .../echoclient/BlockBlockRequest.golden       |  38 +++++++
 ...BlockCallableFutureCallBlockRequest.golden |  41 +++++++
 .../ChatAgainCallableCallEchoRequest.golden   |  52 +++++++++
 .../ChatCallableCallEchoRequest.golden        |  52 +++++++++
 ...llectClientStreamingCallEchoRequest.golden |  67 ++++++++++++
 ...deNameCallableFutureCallEchoRequest.golden |  50 +++++++++
 .../echoclient/CollideNameEchoRequest.golden  |  47 ++++++++
 .../echoclient/CreateEchoSettings1.golden     |  40 +++++++
 .../echoclient/CreateEchoSettings2.golden     |  36 +++++++
 .../goldens/samples/echoclient/Echo.golden    |  36 +++++++
 .../EchoCallableFutureCallEchoRequest.golden  |  50 +++++++++
 .../samples/echoclient/EchoEchoRequest.golden |  47 ++++++++
 .../samples/echoclient/EchoFoobarName.golden  |  38 +++++++
 .../echoclient/EchoResourceName.golden        |  39 +++++++
 .../samples/echoclient/EchoStatus.golden      |  38 +++++++
 .../samples/echoclient/EchoString1.golden     |  37 +++++++
 .../samples/echoclient/EchoString2.golden     |  38 +++++++
 .../samples/echoclient/EchoString3.golden     |  38 +++++++
 .../echoclient/EchoStringSeverity.golden      |  39 +++++++
 .../ExpandCallableCallExpandRequest.golden    |  43 ++++++++
 ...xpandCallableCallPagedExpandRequest.golden |  56 ++++++++++
 ...allableFutureCallPagedExpandRequest.golden |  48 +++++++++
 ...dExpandPagedExpandRequestIterateAll.golden |  45 ++++++++
 ...xpandCallableCallPagedExpandRequest.golden |  56 ++++++++++
 .../SimplePagedExpandIterateAll.golden        |  38 +++++++
 ...allableFutureCallPagedExpandRequest.golden |  49 +++++++++
 ...dExpandPagedExpandRequestIterateAll.golden |  45 ++++++++
 .../echoclient/WaitAsyncDurationGet.golden    |  38 +++++++
 .../echoclient/WaitAsyncTimestampGet.golden   |  38 +++++++
 .../echoclient/WaitAsyncWaitRequestGet.golden |  38 +++++++
 .../WaitCallableFutureCallWaitRequest.golden  |  41 +++++++
 ...rationCallableFutureCallWaitRequest.golden |  43 ++++++++
 .../CreateIdentitySettings1.golden            |  40 +++++++
 .../CreateIdentitySettings2.golden            |  37 +++++++
 ...CallableFutureCallCreateUserRequest.golden |  46 ++++++++
 .../CreateUserCreateUserRequest.golden        |  43 ++++++++
 .../CreateUserStringStringString.golden       |  40 +++++++
 ...gStringStringIntStringBooleanDouble.golden |  46 ++++++++
 ...ngStringIntStringStringStringString.golden |  59 +++++++++++
 ...CallableFutureCallDeleteUserRequest.golden |  43 ++++++++
 .../DeleteUserDeleteUserRequest.golden        |  40 +++++++
 .../identityclient/DeleteUserString.golden    |  38 +++++++
 .../identityclient/DeleteUserUserName.golden  |  38 +++++++
 ...serCallableFutureCallGetUserRequest.golden |  43 ++++++++
 .../GetUserGetUserRequest.golden              |  40 +++++++
 .../identityclient/GetUserString.golden       |  38 +++++++
 .../identityclient/GetUserUserName.golden     |  38 +++++++
 ...stUsersCallableCallListUsersRequest.golden |  55 ++++++++++
 ...ListUsersListUsersRequestIterateAll.golden |  44 ++++++++
 ...dCallableFutureCallListUsersRequest.golden |  47 ++++++++
 ...CallableFutureCallUpdateUserRequest.golden |  42 ++++++++
 .../UpdateUserUpdateUserRequest.golden        |  39 +++++++
 .../ConnectCallableCallConnectRequest.golden  |  44 ++++++++
 ...allableFutureCallCreateBlurbRequest.golden |  46 ++++++++
 .../CreateBlurbCreateBlurbRequest.golden      |  43 ++++++++
 .../CreateBlurbProfileNameByteString.golden   |  40 +++++++
 .../CreateBlurbProfileNameString.golden       |  39 +++++++
 .../CreateBlurbRoomNameByteString.golden      |  40 +++++++
 .../CreateBlurbRoomNameString.golden          |  39 +++++++
 .../CreateBlurbStringByteString.golden        |  40 +++++++
 .../CreateBlurbStringString.golden            |  39 +++++++
 .../CreateMessagingSettings1.golden           |  40 +++++++
 .../CreateMessagingSettings2.golden           |  37 +++++++
 ...CallableFutureCallCreateRoomRequest.golden |  42 ++++++++
 .../CreateRoomCreateRoomRequest.golden        |  39 +++++++
 .../CreateRoomStringString.golden             |  38 +++++++
 .../DeleteBlurbBlurbName.golden               |  38 +++++++
 ...allableFutureCallDeleteBlurbRequest.golden |  47 ++++++++
 .../DeleteBlurbDeleteBlurbRequest.golden      |  44 ++++++++
 .../messagingclient/DeleteBlurbString.golden  |  39 +++++++
 ...CallableFutureCallDeleteRoomRequest.golden |  43 ++++++++
 .../DeleteRoomDeleteRoomRequest.golden        |  40 +++++++
 .../messagingclient/DeleteRoomRoomName.golden |  38 +++++++
 .../messagingclient/DeleteRoomString.golden   |  38 +++++++
 .../messagingclient/GetBlurbBlurbName.golden  |  38 +++++++
 ...rbCallableFutureCallGetBlurbRequest.golden |  47 ++++++++
 .../GetBlurbGetBlurbRequest.golden            |  44 ++++++++
 .../messagingclient/GetBlurbString.golden     |  39 +++++++
 ...oomCallableFutureCallGetRoomRequest.golden |  43 ++++++++
 .../GetRoomGetRoomRequest.golden              |  40 +++++++
 .../messagingclient/GetRoomRoomName.golden    |  38 +++++++
 .../messagingclient/GetRoomString.golden      |  38 +++++++
 ...BlurbsCallableCallListBlurbsRequest.golden |  57 ++++++++++
 ...stBlurbsListBlurbsRequestIterateAll.golden |  46 ++++++++
 ...CallableFutureCallListBlurbsRequest.golden |  49 +++++++++
 .../ListBlurbsProfileNameIterateAll.golden    |  40 +++++++
 .../ListBlurbsRoomNameIterateAll.golden       |  40 +++++++
 .../ListBlurbsStringIterateAll.golden         |  40 +++++++
 ...stRoomsCallableCallListRoomsRequest.golden |  55 ++++++++++
 ...ListRoomsListRoomsRequestIterateAll.golden |  44 ++++++++
 ...dCallableFutureCallListRoomsRequest.golden |  47 ++++++++
 ...chBlurbsAsyncSearchBlurbsRequestGet.golden |  45 ++++++++
 .../SearchBlurbsAsyncStringGet.golden         |  37 +++++++
 ...llableFutureCallSearchBlurbsRequest.golden |  48 +++++++++
 ...llableFutureCallSearchBlurbsRequest.golden |  50 +++++++++
 ...ientStreamingCallCreateBlurbRequest.golden |  64 +++++++++++
 ...urbsCallableCallStreamBlurbsRequest.golden |  45 ++++++++
 ...allableFutureCallUpdateBlurbRequest.golden |  42 ++++++++
 .../UpdateBlurbUpdateBlurbRequest.golden      |  39 +++++++
 ...CallableFutureCallUpdateRoomRequest.golden |  42 ++++++++
 .../UpdateRoomUpdateRoomRequest.golden        |  39 +++++++
 ...tRetrySettingsPublisherStubSettings.golden |  44 ++++++++
 ...ettingsLoggingServiceV2StubSettings.golden |  46 ++++++++
 ...ettingsSetRetrySettingsEchoSettings.golden |  44 ++++++++
 ...ngsSetRetrySettingsEchoStubSettings.golden |  44 ++++++++
 ...rySettingsDeprecatedServiceSettings.golden |  46 ++++++++
 ...ttingsDeprecatedServiceStubSettings.golden |  47 ++++++++
 .../rest/goldens/ComplianceSettings.golden    |   2 +
 .../goldens/ComplianceStubSettings.golden     |   2 +
 132 files changed, 5354 insertions(+)
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden

diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden
index 069bd7a634..70c66dc794 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden
@@ -16,6 +16,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BookshopClient bookshopClient = BookshopClient.create()) {
  *   int booksCount = 1618425911;
  *   List books = new ArrayList<>();
@@ -52,6 +54,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BookshopSettings bookshopSettings =
  *     BookshopSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -62,6 +66,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BookshopSettings bookshopSettings =
  *     BookshopSettings.newBuilder().setEndpoint(myEndpoint).build();
  * BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
@@ -126,6 +132,8 @@ public class BookshopClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BookshopClient bookshopClient = BookshopClient.create()) {
    *   int booksCount = 1618425911;
    *   List books = new ArrayList<>();
@@ -148,6 +156,8 @@ public class BookshopClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BookshopClient bookshopClient = BookshopClient.create()) {
    *   String booksList = "booksList2-1119589686";
    *   List books = new ArrayList<>();
@@ -170,6 +180,8 @@ public class BookshopClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BookshopClient bookshopClient = BookshopClient.create()) {
    *   GetBookRequest request =
    *       GetBookRequest.newBuilder()
@@ -193,6 +205,8 @@ public class BookshopClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BookshopClient bookshopClient = BookshopClient.create()) {
    *   GetBookRequest request =
    *       GetBookRequest.newBuilder()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden
index 9af83eb743..4e5cbaad3f 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden
@@ -16,6 +16,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
  *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
  *   deprecatedServiceClient.fastFibonacci(request);
@@ -52,6 +54,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DeprecatedServiceSettings deprecatedServiceSettings =
  *     DeprecatedServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -63,6 +67,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DeprecatedServiceSettings deprecatedServiceSettings =
  *     DeprecatedServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DeprecatedServiceClient deprecatedServiceClient =
@@ -132,6 +138,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
    *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
    *   deprecatedServiceClient.fastFibonacci(request);
@@ -150,6 +158,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
    *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
    *   ApiFuture future = deprecatedServiceClient.fastFibonacciCallable().futureCall(request);
@@ -167,6 +177,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
    *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
    *   deprecatedServiceClient.slowFibonacci(request);
@@ -187,6 +199,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
    *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
    *   ApiFuture future = deprecatedServiceClient.slowFibonacciCallable().futureCall(request);
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden
index 5e61122577..4d71e3f312 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden
@@ -35,6 +35,8 @@ import javax.annotation.Generated;
  * 

For example, to set the total timeout of fastFibonacci to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DeprecatedServiceSettings.Builder deprecatedServiceSettingsBuilder =
  *     DeprecatedServiceSettings.newBuilder();
  * deprecatedServiceSettingsBuilder
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden
index 899b03bbce..8ace8d9fde 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden
@@ -44,6 +44,8 @@ import org.threeten.bp.Duration;
  * 

For example, to set the total timeout of fastFibonacci to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DeprecatedServiceStubSettings.Builder deprecatedServiceSettingsBuilder =
  *     DeprecatedServiceStubSettings.newBuilder();
  * deprecatedServiceSettingsBuilder
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden
index 3e6735f6bd..e7d55114c3 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden
@@ -34,6 +34,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (EchoClient echoClient = EchoClient.create()) {
  *   EchoResponse response = echoClient.echo();
  * }
@@ -68,6 +70,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EchoSettings echoSettings =
  *     EchoSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -78,6 +82,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build();
  * EchoClient echoClient = EchoClient.create(echoSettings);
  * }
@@ -152,6 +158,8 @@ public class EchoClient implements BackgroundResource { * Sample code: * *
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoResponse response = echoClient.echo();
    * }
@@ -170,6 +178,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   ResourceName parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]");
    *   EchoResponse response = echoClient.echo(parent);
@@ -190,6 +200,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   Status error = Status.newBuilder().build();
    *   EchoResponse response = echoClient.echo(error);
@@ -209,6 +221,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   FoobarName name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]");
    *   EchoResponse response = echoClient.echo(name);
@@ -229,6 +243,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   String content = "content951530617";
    *   EchoResponse response = echoClient.echo(content);
@@ -248,6 +264,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   String name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString();
    *   EchoResponse response = echoClient.echo(name);
@@ -267,6 +285,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   String parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString();
    *   EchoResponse response = echoClient.echo(parent);
@@ -286,6 +306,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   String content = "content951530617";
    *   Severity severity = Severity.forNumber(0);
@@ -308,6 +330,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoRequest request =
    *       EchoRequest.newBuilder()
@@ -332,6 +356,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoRequest request =
    *       EchoRequest.newBuilder()
@@ -355,6 +381,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   ExpandRequest request =
    *       ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build();
@@ -374,6 +402,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   ApiStreamObserver responseObserver =
    *       new ApiStreamObserver() {
@@ -414,6 +444,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   BidiStream bidiStream = echoClient.chatCallable().call();
    *   EchoRequest request =
@@ -439,6 +471,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   BidiStream bidiStream = echoClient.chatAgainCallable().call();
    *   EchoRequest request =
@@ -464,6 +498,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -489,6 +525,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -514,6 +552,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -545,6 +585,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   for (EchoResponse element : echoClient.simplePagedExpand().iterateAll()) {
    *     // doThingsWith(element);
@@ -565,6 +607,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -590,6 +634,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -616,6 +662,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -647,6 +695,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   Duration ttl = Duration.newBuilder().build();
    *   WaitResponse response = echoClient.waitAsync(ttl).get();
@@ -666,6 +716,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   Timestamp endTime = Timestamp.newBuilder().build();
    *   WaitResponse response = echoClient.waitAsync(endTime).get();
@@ -685,6 +737,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   WaitRequest request = WaitRequest.newBuilder().build();
    *   WaitResponse response = echoClient.waitAsync(request).get();
@@ -703,6 +757,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   WaitRequest request = WaitRequest.newBuilder().build();
    *   OperationFuture future =
@@ -721,6 +777,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   WaitRequest request = WaitRequest.newBuilder().build();
    *   ApiFuture future = echoClient.waitCallable().futureCall(request);
@@ -738,6 +796,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   BlockRequest request = BlockRequest.newBuilder().build();
    *   BlockResponse response = echoClient.block(request);
@@ -756,6 +816,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   BlockRequest request = BlockRequest.newBuilder().build();
    *   ApiFuture future = echoClient.blockCallable().futureCall(request);
@@ -773,6 +835,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoRequest request =
    *       EchoRequest.newBuilder()
@@ -797,6 +861,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoRequest request =
    *       EchoRequest.newBuilder()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden
index e88ba04676..09fc6298a2 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden
@@ -42,6 +42,8 @@ import javax.annotation.Generated;
  * 

For example, to set the total timeout of echo to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();
  * echoSettingsBuilder
  *     .echoSettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden
index 2006b2a30d..1bef1dc27e 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden
@@ -70,6 +70,8 @@ import org.threeten.bp.Duration;
  * 

For example, to set the total timeout of echo to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();
  * echoSettingsBuilder
  *     .echoSettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden
index 235c0055b6..36a0848d94 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden
@@ -24,6 +24,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IdentityClient identityClient = IdentityClient.create()) {
  *   String parent = UserName.of("[USER]").toString();
  *   String displayName = "displayName1714148973";
@@ -61,6 +63,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IdentitySettings identitySettings =
  *     IdentitySettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -71,6 +75,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IdentitySettings identitySettings =
  *     IdentitySettings.newBuilder().setEndpoint(myEndpoint).build();
  * IdentityClient identityClient = IdentityClient.create(identitySettings);
@@ -135,6 +141,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String parent = UserName.of("[USER]").toString();
    *   String displayName = "displayName1714148973";
@@ -162,6 +170,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String parent = UserName.of("[USER]").toString();
    *   String displayName = "displayName1714148973";
@@ -214,6 +224,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String parent = UserName.of("[USER]").toString();
    *   String displayName = "displayName1714148973";
@@ -299,6 +311,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   CreateUserRequest request =
    *       CreateUserRequest.newBuilder()
@@ -321,6 +335,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   CreateUserRequest request =
    *       CreateUserRequest.newBuilder()
@@ -342,6 +358,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   UserName name = UserName.of("[USER]");
    *   User response = identityClient.getUser(name);
@@ -362,6 +380,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String name = UserName.of("[USER]").toString();
    *   User response = identityClient.getUser(name);
@@ -381,6 +401,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   GetUserRequest request =
    *       GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
@@ -400,6 +422,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   GetUserRequest request =
    *       GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
@@ -418,6 +442,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   UpdateUserRequest request =
    *       UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
@@ -437,6 +463,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   UpdateUserRequest request =
    *       UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
@@ -455,6 +483,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   UserName name = UserName.of("[USER]");
    *   identityClient.deleteUser(name);
@@ -475,6 +505,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String name = UserName.of("[USER]").toString();
    *   identityClient.deleteUser(name);
@@ -494,6 +526,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   DeleteUserRequest request =
    *       DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
@@ -513,6 +547,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   DeleteUserRequest request =
    *       DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
@@ -531,6 +567,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   ListUsersRequest request =
    *       ListUsersRequest.newBuilder()
@@ -555,6 +593,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   ListUsersRequest request =
    *       ListUsersRequest.newBuilder()
@@ -578,6 +618,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   ListUsersRequest request =
    *       ListUsersRequest.newBuilder()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden
index cc308eb5de..c19e424304 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden
@@ -77,6 +77,8 @@ import org.threeten.bp.Duration;
  * 

For example, to set the total timeout of deleteLog to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingServiceV2StubSettings.Builder loggingServiceV2SettingsBuilder =
  *     LoggingServiceV2StubSettings.newBuilder();
  * loggingServiceV2SettingsBuilder
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden
index e881597fde..d6e3b7da73 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden
@@ -32,6 +32,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MessagingClient messagingClient = MessagingClient.create()) {
  *   String displayName = "displayName1714148973";
  *   String description = "description-1724546052";
@@ -68,6 +70,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MessagingSettings messagingSettings =
  *     MessagingSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -78,6 +82,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MessagingSettings messagingSettings =
  *     MessagingSettings.newBuilder().setEndpoint(myEndpoint).build();
  * MessagingClient messagingClient = MessagingClient.create(messagingSettings);
@@ -153,6 +159,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String displayName = "displayName1714148973";
    *   String description = "description-1724546052";
@@ -178,6 +186,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   CreateRoomRequest request =
    *       CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
@@ -197,6 +207,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   CreateRoomRequest request =
    *       CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
@@ -215,6 +227,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName name = RoomName.of("[ROOM]");
    *   Room response = messagingClient.getRoom(name);
@@ -235,6 +249,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String name = RoomName.of("[ROOM]").toString();
    *   Room response = messagingClient.getRoom(name);
@@ -254,6 +270,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   GetRoomRequest request =
    *       GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
@@ -273,6 +291,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   GetRoomRequest request =
    *       GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
@@ -291,6 +311,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   UpdateRoomRequest request =
    *       UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
@@ -310,6 +332,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   UpdateRoomRequest request =
    *       UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
@@ -328,6 +352,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName name = RoomName.of("[ROOM]");
    *   messagingClient.deleteRoom(name);
@@ -348,6 +374,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String name = RoomName.of("[ROOM]").toString();
    *   messagingClient.deleteRoom(name);
@@ -367,6 +395,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   DeleteRoomRequest request =
    *       DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
@@ -386,6 +416,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   DeleteRoomRequest request =
    *       DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
@@ -404,6 +436,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListRoomsRequest request =
    *       ListRoomsRequest.newBuilder()
@@ -428,6 +462,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListRoomsRequest request =
    *       ListRoomsRequest.newBuilder()
@@ -451,6 +487,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListRoomsRequest request =
    *       ListRoomsRequest.newBuilder()
@@ -481,6 +519,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ProfileName parent = ProfileName.of("[USER]");
    *   ByteString image = ByteString.EMPTY;
@@ -506,6 +546,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ProfileName parent = ProfileName.of("[USER]");
    *   String text = "text3556653";
@@ -531,6 +573,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName parent = RoomName.of("[ROOM]");
    *   ByteString image = ByteString.EMPTY;
@@ -556,6 +600,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName parent = RoomName.of("[ROOM]");
    *   String text = "text3556653";
@@ -581,6 +627,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String parent = ProfileName.of("[USER]").toString();
    *   ByteString image = ByteString.EMPTY;
@@ -606,6 +654,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String parent = ProfileName.of("[USER]").toString();
    *   String text = "text3556653";
@@ -631,6 +681,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   CreateBlurbRequest request =
    *       CreateBlurbRequest.newBuilder()
@@ -653,6 +705,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   CreateBlurbRequest request =
    *       CreateBlurbRequest.newBuilder()
@@ -674,6 +728,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   BlurbName name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]");
    *   Blurb response = messagingClient.getBlurb(name);
@@ -694,6 +750,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String name =
    *       BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
@@ -714,6 +772,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   GetBlurbRequest request =
    *       GetBlurbRequest.newBuilder()
@@ -737,6 +797,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   GetBlurbRequest request =
    *       GetBlurbRequest.newBuilder()
@@ -759,6 +821,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   UpdateBlurbRequest request =
    *       UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build();
@@ -778,6 +842,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   UpdateBlurbRequest request =
    *       UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build();
@@ -796,6 +862,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   BlurbName name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]");
    *   messagingClient.deleteBlurb(name);
@@ -816,6 +884,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String name =
    *       BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
@@ -836,6 +906,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   DeleteBlurbRequest request =
    *       DeleteBlurbRequest.newBuilder()
@@ -859,6 +931,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   DeleteBlurbRequest request =
    *       DeleteBlurbRequest.newBuilder()
@@ -881,6 +955,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ProfileName parent = ProfileName.of("[USER]");
    *   for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
@@ -903,6 +979,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName parent = RoomName.of("[ROOM]");
    *   for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
@@ -925,6 +1003,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String parent = ProfileName.of("[USER]").toString();
    *   for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
@@ -946,6 +1026,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListBlurbsRequest request =
    *       ListBlurbsRequest.newBuilder()
@@ -971,6 +1053,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListBlurbsRequest request =
    *       ListBlurbsRequest.newBuilder()
@@ -995,6 +1079,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListBlurbsRequest request =
    *       ListBlurbsRequest.newBuilder()
@@ -1026,6 +1112,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String query = "query107944136";
    *   SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(query).get();
@@ -1046,6 +1134,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   SearchBlurbsRequest request =
    *       SearchBlurbsRequest.newBuilder()
@@ -1071,6 +1161,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   SearchBlurbsRequest request =
    *       SearchBlurbsRequest.newBuilder()
@@ -1096,6 +1188,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   SearchBlurbsRequest request =
    *       SearchBlurbsRequest.newBuilder()
@@ -1119,6 +1213,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   StreamBlurbsRequest request =
    *       StreamBlurbsRequest.newBuilder().setName(ProfileName.of("[USER]").toString()).build();
@@ -1140,6 +1236,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ApiStreamObserver responseObserver =
    *       new ApiStreamObserver() {
@@ -1179,6 +1277,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   BidiStream bidiStream =
    *       messagingClient.connectCallable().call();
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden
index d050f8a921..2c13fc0f02 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden
@@ -78,6 +78,8 @@ import org.threeten.bp.Duration;
  * 

For example, to set the total timeout of createTopic to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PublisherStubSettings.Builder publisherSettingsBuilder = PublisherStubSettings.newBuilder();
  * publisherSettingsBuilder
  *     .createTopicSettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden
new file mode 100644
index 0000000000..a52cfa584a
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_v1_generated_bookshopclient_create_bookshopsettings1]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.bookshop.v1beta1.BookshopClient;
+import com.google.bookshop.v1beta1.BookshopSettings;
+import com.google.bookshop.v1beta1.myCredentials;
+
+public class CreateBookshopSettings1 {
+
+  public static void main(String[] args) throws Exception {
+    createBookshopSettings1();
+  }
+
+  public static void createBookshopSettings1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    BookshopSettings bookshopSettings =
+        BookshopSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
+  }
+}
+// [END goldensample_v1_generated_bookshopclient_create_bookshopsettings1]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden
new file mode 100644
index 0000000000..9c67b5762f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_v1_generated_bookshopclient_create_bookshopsettings2]
+import com.google.bookshop.v1beta1.BookshopClient;
+import com.google.bookshop.v1beta1.BookshopSettings;
+import com.google.bookshop.v1beta1.myEndpoint;
+
+public class CreateBookshopSettings2 {
+
+  public static void main(String[] args) throws Exception {
+    createBookshopSettings2();
+  }
+
+  public static void createBookshopSettings2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    BookshopSettings bookshopSettings =
+        BookshopSettings.newBuilder().setEndpoint(myEndpoint).build();
+    BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
+  }
+}
+// [END goldensample_v1_generated_bookshopclient_create_bookshopsettings2]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden
new file mode 100644
index 0000000000..2c76fe67f4
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_v1_generated_bookshopclient_getbook_callablefuturecallgetbookrequest]
+import com.google.api.core.ApiFuture;
+import com.google.bookshop.v1beta1.Book;
+import com.google.bookshop.v1beta1.BookshopClient;
+import com.google.bookshop.v1beta1.GetBookRequest;
+import java.util.ArrayList;
+
+public class GetBookCallableFutureCallGetBookRequest {
+
+  public static void main(String[] args) throws Exception {
+    getBookCallableFutureCallGetBookRequest();
+  }
+
+  public static void getBookCallableFutureCallGetBookRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BookshopClient bookshopClient = BookshopClient.create()) {
+      GetBookRequest request =
+          GetBookRequest.newBuilder()
+              .setBooksCount1(1618425911)
+              .setBooksList2("booksList2-1119589686")
+              .addAllBooks3(new ArrayList())
+              .build();
+      ApiFuture future = bookshopClient.getBookCallable().futureCall(request);
+      // Do something.
+      Book response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_bookshopclient_getbook_callablefuturecallgetbookrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden
new file mode 100644
index 0000000000..a918f4c5f9
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_v1_generated_bookshopclient_getbook_getbookrequest]
+import com.google.bookshop.v1beta1.Book;
+import com.google.bookshop.v1beta1.BookshopClient;
+import com.google.bookshop.v1beta1.GetBookRequest;
+import java.util.ArrayList;
+
+public class GetBookGetBookRequest {
+
+  public static void main(String[] args) throws Exception {
+    getBookGetBookRequest();
+  }
+
+  public static void getBookGetBookRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BookshopClient bookshopClient = BookshopClient.create()) {
+      GetBookRequest request =
+          GetBookRequest.newBuilder()
+              .setBooksCount1(1618425911)
+              .setBooksList2("booksList2-1119589686")
+              .addAllBooks3(new ArrayList())
+              .build();
+      Book response = bookshopClient.getBook(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_bookshopclient_getbook_getbookrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden
new file mode 100644
index 0000000000..1debd2fd4d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_v1_generated_bookshopclient_getbook_intlistbook]
+import com.google.bookshop.v1beta1.Book;
+import com.google.bookshop.v1beta1.BookshopClient;
+import java.util.ArrayList;
+import java.util.List;
+
+public class GetBookIntListBook {
+
+  public static void main(String[] args) throws Exception {
+    getBookIntListBook();
+  }
+
+  public static void getBookIntListBook() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BookshopClient bookshopClient = BookshopClient.create()) {
+      int booksCount = 1618425911;
+      List books = new ArrayList<>();
+      Book response = bookshopClient.getBook(booksCount, books);
+    }
+  }
+}
+// [END goldensample_v1_generated_bookshopclient_getbook_intlistbook]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden
new file mode 100644
index 0000000000..bef3f49c32
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_v1_generated_bookshopclient_getbook_stringlistbook]
+import com.google.bookshop.v1beta1.Book;
+import com.google.bookshop.v1beta1.BookshopClient;
+import java.util.ArrayList;
+import java.util.List;
+
+public class GetBookStringListBook {
+
+  public static void main(String[] args) throws Exception {
+    getBookStringListBook();
+  }
+
+  public static void getBookStringListBook() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BookshopClient bookshopClient = BookshopClient.create()) {
+      String booksList = "booksList2-1119589686";
+      List books = new ArrayList<>();
+      Book response = bookshopClient.getBook(booksList, books);
+    }
+  }
+}
+// [END goldensample_v1_generated_bookshopclient_getbook_stringlistbook]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden
new file mode 100644
index 0000000000..7406c200fd
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_v1_generated_deprecatedserviceclient_create_deprecatedservicesettings1]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.DeprecatedServiceSettings;
+import com.google.testdata.v1.myCredentials;
+
+public class CreateDeprecatedServiceSettings1 {
+
+  public static void main(String[] args) throws Exception {
+    createDeprecatedServiceSettings1();
+  }
+
+  public static void createDeprecatedServiceSettings1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    DeprecatedServiceSettings deprecatedServiceSettings =
+        DeprecatedServiceSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    DeprecatedServiceClient deprecatedServiceClient =
+        DeprecatedServiceClient.create(deprecatedServiceSettings);
+  }
+}
+// [END goldensample_v1_generated_deprecatedserviceclient_create_deprecatedservicesettings1]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden
new file mode 100644
index 0000000000..26b6956430
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_v1_generated_deprecatedserviceclient_create_deprecatedservicesettings2]
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.DeprecatedServiceSettings;
+import com.google.testdata.v1.myEndpoint;
+
+public class CreateDeprecatedServiceSettings2 {
+
+  public static void main(String[] args) throws Exception {
+    createDeprecatedServiceSettings2();
+  }
+
+  public static void createDeprecatedServiceSettings2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    DeprecatedServiceSettings deprecatedServiceSettings =
+        DeprecatedServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+    DeprecatedServiceClient deprecatedServiceClient =
+        DeprecatedServiceClient.create(deprecatedServiceSettings);
+  }
+}
+// [END goldensample_v1_generated_deprecatedserviceclient_create_deprecatedservicesettings2]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden
new file mode 100644
index 0000000000..e7454b6f32
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_v1_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.FibonacciRequest;
+
+public class FastFibonacciCallableFutureCallFibonacciRequest {
+
+  public static void main(String[] args) throws Exception {
+    fastFibonacciCallableFutureCallFibonacciRequest();
+  }
+
+  public static void fastFibonacciCallableFutureCallFibonacciRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
+      FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
+      ApiFuture future = deprecatedServiceClient.fastFibonacciCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden
new file mode 100644
index 0000000000..289a2c295d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_v1_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest]
+import com.google.protobuf.Empty;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.FibonacciRequest;
+
+public class FastFibonacciFibonacciRequest {
+
+  public static void main(String[] args) throws Exception {
+    fastFibonacciFibonacciRequest();
+  }
+
+  public static void fastFibonacciFibonacciRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
+      FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
+      deprecatedServiceClient.fastFibonacci(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden
new file mode 100644
index 0000000000..98d755ebba
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_v1_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.FibonacciRequest;
+
+public class SlowFibonacciCallableFutureCallFibonacciRequest {
+
+  public static void main(String[] args) throws Exception {
+    slowFibonacciCallableFutureCallFibonacciRequest();
+  }
+
+  public static void slowFibonacciCallableFutureCallFibonacciRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
+      FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
+      ApiFuture future = deprecatedServiceClient.slowFibonacciCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden
new file mode 100644
index 0000000000..ac151ae952
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_v1_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest]
+import com.google.protobuf.Empty;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.FibonacciRequest;
+
+public class SlowFibonacciFibonacciRequest {
+
+  public static void main(String[] args) throws Exception {
+    slowFibonacciFibonacciRequest();
+  }
+
+  public static void slowFibonacciFibonacciRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
+      FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
+      deprecatedServiceClient.slowFibonacci(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden
new file mode 100644
index 0000000000..4ed986afb5
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_block_blockrequest]
+import com.google.showcase.v1beta1.BlockRequest;
+import com.google.showcase.v1beta1.BlockResponse;
+import com.google.showcase.v1beta1.EchoClient;
+
+public class BlockBlockRequest {
+
+  public static void main(String[] args) throws Exception {
+    blockBlockRequest();
+  }
+
+  public static void blockBlockRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      BlockRequest request = BlockRequest.newBuilder().build();
+      BlockResponse response = echoClient.block(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_block_blockrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden
new file mode 100644
index 0000000000..80e702ad90
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_block_callablefuturecallblockrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.BlockRequest;
+import com.google.showcase.v1beta1.BlockResponse;
+import com.google.showcase.v1beta1.EchoClient;
+
+public class BlockCallableFutureCallBlockRequest {
+
+  public static void main(String[] args) throws Exception {
+    blockCallableFutureCallBlockRequest();
+  }
+
+  public static void blockCallableFutureCallBlockRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      BlockRequest request = BlockRequest.newBuilder().build();
+      ApiFuture future = echoClient.blockCallable().futureCall(request);
+      // Do something.
+      BlockResponse response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_block_callablefuturecallblockrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden
new file mode 100644
index 0000000000..646dbd8791
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_chatagain_callablecallechorequest]
+import com.google.api.gax.rpc.BidiStream;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class ChatAgainCallableCallEchoRequest {
+
+  public static void main(String[] args) throws Exception {
+    chatAgainCallableCallEchoRequest();
+  }
+
+  public static void chatAgainCallableCallEchoRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      BidiStream bidiStream = echoClient.chatAgainCallable().call();
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      bidiStream.send(request);
+      for (EchoResponse response : bidiStream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_chatagain_callablecallechorequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden
new file mode 100644
index 0000000000..b64ddadf53
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_chat_callablecallechorequest]
+import com.google.api.gax.rpc.BidiStream;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class ChatCallableCallEchoRequest {
+
+  public static void main(String[] args) throws Exception {
+    chatCallableCallEchoRequest();
+  }
+
+  public static void chatCallableCallEchoRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      BidiStream bidiStream = echoClient.chatCallable().call();
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      bidiStream.send(request);
+      for (EchoResponse response : bidiStream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_chat_callablecallechorequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden
new file mode 100644
index 0000000000..09abfdc73f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_collect_clientstreamingcallechorequest]
+import com.google.api.gax.rpc.ApiStreamObserver;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class CollectClientStreamingCallEchoRequest {
+
+  public static void main(String[] args) throws Exception {
+    collectClientStreamingCallEchoRequest();
+  }
+
+  public static void collectClientStreamingCallEchoRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      ApiStreamObserver responseObserver =
+          new ApiStreamObserver() {
+            @Override
+            public void onNext(EchoResponse response) {
+              // Do something when a response is received.
+            }
+
+            @Override
+            public void onError(Throwable t) {
+              // Add error-handling
+            }
+
+            @Override
+            public void onCompleted() {
+              // Do something when complete.
+            }
+          };
+      ApiStreamObserver requestObserver =
+          echoClient.collect().clientStreamingCall(responseObserver);
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      requestObserver.onNext(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_collect_clientstreamingcallechorequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden
new file mode 100644
index 0000000000..e8bcc810df
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_collidename_callablefuturecallechorequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Object;
+import com.google.showcase.v1beta1.Severity;
+
+public class CollideNameCallableFutureCallEchoRequest {
+
+  public static void main(String[] args) throws Exception {
+    collideNameCallableFutureCallEchoRequest();
+  }
+
+  public static void collideNameCallableFutureCallEchoRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      ApiFuture future = echoClient.collideNameCallable().futureCall(request);
+      // Do something.
+      Object response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_collidename_callablefuturecallechorequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden
new file mode 100644
index 0000000000..a8740a3ba6
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_collidename_echorequest]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Object;
+import com.google.showcase.v1beta1.Severity;
+
+public class CollideNameEchoRequest {
+
+  public static void main(String[] args) throws Exception {
+    collideNameEchoRequest();
+  }
+
+  public static void collideNameEchoRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      Object response = echoClient.collideName(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_collidename_echorequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden
new file mode 100644
index 0000000000..4b51803895
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_create_echosettings1]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoSettings;
+import com.google.showcase.v1beta1.myCredentials;
+
+public class CreateEchoSettings1 {
+
+  public static void main(String[] args) throws Exception {
+    createEchoSettings1();
+  }
+
+  public static void createEchoSettings1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EchoSettings echoSettings =
+        EchoSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    EchoClient echoClient = EchoClient.create(echoSettings);
+  }
+}
+// [END goldensample_v1_generated_echoclient_create_echosettings1]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden
new file mode 100644
index 0000000000..20da1410c7
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_create_echosettings2]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoSettings;
+import com.google.showcase.v1beta1.myEndpoint;
+
+public class CreateEchoSettings2 {
+
+  public static void main(String[] args) throws Exception {
+    createEchoSettings2();
+  }
+
+  public static void createEchoSettings2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build();
+    EchoClient echoClient = EchoClient.create(echoSettings);
+  }
+}
+// [END goldensample_v1_generated_echoclient_create_echosettings2]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden
new file mode 100644
index 0000000000..7b9bf3d847
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+
+public class Echo {
+
+  public static void main(String[] args) throws Exception {
+    echo();
+  }
+
+  public static void echo() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoResponse response = echoClient.echo();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden
new file mode 100644
index 0000000000..3c2cc1b9cf
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_callablefuturecallechorequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class EchoCallableFutureCallEchoRequest {
+
+  public static void main(String[] args) throws Exception {
+    echoCallableFutureCallEchoRequest();
+  }
+
+  public static void echoCallableFutureCallEchoRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      ApiFuture future = echoClient.echoCallable().futureCall(request);
+      // Do something.
+      EchoResponse response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_callablefuturecallechorequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden
new file mode 100644
index 0000000000..3e4f161c68
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_echorequest]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class EchoEchoRequest {
+
+  public static void main(String[] args) throws Exception {
+    echoEchoRequest();
+  }
+
+  public static void echoEchoRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      EchoResponse response = echoClient.echo(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_echorequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden
new file mode 100644
index 0000000000..e804f62455
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_foobarname]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.FoobarName;
+
+public class EchoFoobarName {
+
+  public static void main(String[] args) throws Exception {
+    echoFoobarName();
+  }
+
+  public static void echoFoobarName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      FoobarName name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]");
+      EchoResponse response = echoClient.echo(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_foobarname]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden
new file mode 100644
index 0000000000..906604e754
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_resourcename]
+import com.google.api.resourcenames.ResourceName;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.FoobarName;
+
+public class EchoResourceName {
+
+  public static void main(String[] args) throws Exception {
+    echoResourceName();
+  }
+
+  public static void echoResourceName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      ResourceName parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]");
+      EchoResponse response = echoClient.echo(parent);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_resourcename]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden
new file mode 100644
index 0000000000..d07ccc4213
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_status]
+import com.google.rpc.Status;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+
+public class EchoStatus {
+
+  public static void main(String[] args) throws Exception {
+    echoStatus();
+  }
+
+  public static void echoStatus() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      Status error = Status.newBuilder().build();
+      EchoResponse response = echoClient.echo(error);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_status]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden
new file mode 100644
index 0000000000..4fa5d26f3a
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_string1]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+
+public class EchoString1 {
+
+  public static void main(String[] args) throws Exception {
+    echoString1();
+  }
+
+  public static void echoString1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      String content = "content951530617";
+      EchoResponse response = echoClient.echo(content);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_string1]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden
new file mode 100644
index 0000000000..947c686fe6
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_string2]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.FoobarName;
+
+public class EchoString2 {
+
+  public static void main(String[] args) throws Exception {
+    echoString2();
+  }
+
+  public static void echoString2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      String name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString();
+      EchoResponse response = echoClient.echo(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_string2]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden
new file mode 100644
index 0000000000..725f32abab
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_string3]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.FoobarName;
+
+public class EchoString3 {
+
+  public static void main(String[] args) throws Exception {
+    echoString3();
+  }
+
+  public static void echoString3() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      String parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString();
+      EchoResponse response = echoClient.echo(parent);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_string3]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden
new file mode 100644
index 0000000000..63a34ec0c0
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_echo_stringseverity]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Severity;
+
+public class EchoStringSeverity {
+
+  public static void main(String[] args) throws Exception {
+    echoStringSeverity();
+  }
+
+  public static void echoStringSeverity() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      String content = "content951530617";
+      Severity severity = Severity.forNumber(0);
+      EchoResponse response = echoClient.echo(content, severity);
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_echo_stringseverity]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden
new file mode 100644
index 0000000000..ad728aaa26
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_expand_callablecallexpandrequest]
+import com.google.api.gax.rpc.ServerStream;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.ExpandRequest;
+
+public class ExpandCallableCallExpandRequest {
+
+  public static void main(String[] args) throws Exception {
+    expandCallableCallExpandRequest();
+  }
+
+  public static void expandCallableCallExpandRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      ExpandRequest request =
+          ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build();
+      ServerStream stream = echoClient.expandCallable().call(request);
+      for (EchoResponse response : stream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_expand_callablecallexpandrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden
new file mode 100644
index 0000000000..0703ddb832
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_pagedexpand_callablecallpagedexpandrequest]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+import com.google.showcase.v1beta1.PagedExpandResponse;
+
+public class PagedExpandCallableCallPagedExpandRequest {
+
+  public static void main(String[] args) throws Exception {
+    pagedExpandCallableCallPagedExpandRequest();
+  }
+
+  public static void pagedExpandCallableCallPagedExpandRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        PagedExpandResponse response = echoClient.pagedExpandCallable().call(request);
+        for (EchoResponse element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_pagedexpand_callablecallpagedexpandrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden
new file mode 100644
index 0000000000..5f3688c215
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+
+public class PagedExpandPagedCallableFutureCallPagedExpandRequest {
+
+  public static void main(String[] args) throws Exception {
+    pagedExpandPagedCallableFutureCallPagedExpandRequest();
+  }
+
+  public static void pagedExpandPagedCallableFutureCallPagedExpandRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = echoClient.pagedExpandPagedCallable().futureCall(request);
+      // Do something.
+      for (EchoResponse element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden
new file mode 100644
index 0000000000..a77ba467e2
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_pagedexpand_pagedexpandrequestiterateall]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+
+public class PagedExpandPagedExpandRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    pagedExpandPagedExpandRequestIterateAll();
+  }
+
+  public static void pagedExpandPagedExpandRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_pagedexpand_pagedexpandrequestiterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden
new file mode 100644
index 0000000000..9f2c0e3181
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+import com.google.showcase.v1beta1.PagedExpandResponse;
+
+public class SimplePagedExpandCallableCallPagedExpandRequest {
+
+  public static void main(String[] args) throws Exception {
+    simplePagedExpandCallableCallPagedExpandRequest();
+  }
+
+  public static void simplePagedExpandCallableCallPagedExpandRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        PagedExpandResponse response = echoClient.simplePagedExpandCallable().call(request);
+        for (EchoResponse element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden
new file mode 100644
index 0000000000..708dafcbf6
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_simplepagedexpand_iterateall]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+
+public class SimplePagedExpandIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    simplePagedExpandIterateAll();
+  }
+
+  public static void simplePagedExpandIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      for (EchoResponse element : echoClient.simplePagedExpand().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_simplepagedexpand_iterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden
new file mode 100644
index 0000000000..77aafe55ec
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+
+public class SimplePagedExpandPagedCallableFutureCallPagedExpandRequest {
+
+  public static void main(String[] args) throws Exception {
+    simplePagedExpandPagedCallableFutureCallPagedExpandRequest();
+  }
+
+  public static void simplePagedExpandPagedCallableFutureCallPagedExpandRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future =
+          echoClient.simplePagedExpandPagedCallable().futureCall(request);
+      // Do something.
+      for (EchoResponse element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden
new file mode 100644
index 0000000000..f57828a91c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+
+public class SimplePagedExpandPagedExpandRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    simplePagedExpandPagedExpandRequestIterateAll();
+  }
+
+  public static void simplePagedExpandPagedExpandRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (EchoResponse element : echoClient.simplePagedExpand(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden
new file mode 100644
index 0000000000..de3780bde3
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_wait_asyncdurationget]
+import com.google.protobuf.Duration;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitResponse;
+
+public class WaitAsyncDurationGet {
+
+  public static void main(String[] args) throws Exception {
+    waitAsyncDurationGet();
+  }
+
+  public static void waitAsyncDurationGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      Duration ttl = Duration.newBuilder().build();
+      WaitResponse response = echoClient.waitAsync(ttl).get();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_wait_asyncdurationget]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden
new file mode 100644
index 0000000000..1f11c356f3
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_wait_asynctimestampget]
+import com.google.protobuf.Timestamp;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitResponse;
+
+public class WaitAsyncTimestampGet {
+
+  public static void main(String[] args) throws Exception {
+    waitAsyncTimestampGet();
+  }
+
+  public static void waitAsyncTimestampGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      Timestamp endTime = Timestamp.newBuilder().build();
+      WaitResponse response = echoClient.waitAsync(endTime).get();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_wait_asynctimestampget]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden
new file mode 100644
index 0000000000..4a0bf1ffda
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_wait_asyncwaitrequestget]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitRequest;
+import com.google.showcase.v1beta1.WaitResponse;
+
+public class WaitAsyncWaitRequestGet {
+
+  public static void main(String[] args) throws Exception {
+    waitAsyncWaitRequestGet();
+  }
+
+  public static void waitAsyncWaitRequestGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      WaitRequest request = WaitRequest.newBuilder().build();
+      WaitResponse response = echoClient.waitAsync(request).get();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_wait_asyncwaitrequestget]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden
new file mode 100644
index 0000000000..fd662789d0
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_wait_callablefuturecallwaitrequest]
+import com.google.api.core.ApiFuture;
+import com.google.longrunning.Operation;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitRequest;
+
+public class WaitCallableFutureCallWaitRequest {
+
+  public static void main(String[] args) throws Exception {
+    waitCallableFutureCallWaitRequest();
+  }
+
+  public static void waitCallableFutureCallWaitRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      WaitRequest request = WaitRequest.newBuilder().build();
+      ApiFuture future = echoClient.waitCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_wait_callablefuturecallwaitrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden
new file mode 100644
index 0000000000..df51a8d23f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echoclient_wait_operationcallablefuturecallwaitrequest]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitMetadata;
+import com.google.showcase.v1beta1.WaitRequest;
+import com.google.showcase.v1beta1.WaitResponse;
+
+public class WaitOperationCallableFutureCallWaitRequest {
+
+  public static void main(String[] args) throws Exception {
+    waitOperationCallableFutureCallWaitRequest();
+  }
+
+  public static void waitOperationCallableFutureCallWaitRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      WaitRequest request = WaitRequest.newBuilder().build();
+      OperationFuture future =
+          echoClient.waitOperationCallable().futureCall(request);
+      // Do something.
+      WaitResponse response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_echoclient_wait_operationcallablefuturecallwaitrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden
new file mode 100644
index 0000000000..fb30ace47d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_create_identitysettings1]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.IdentitySettings;
+import com.google.showcase.v1beta1.myCredentials;
+
+public class CreateIdentitySettings1 {
+
+  public static void main(String[] args) throws Exception {
+    createIdentitySettings1();
+  }
+
+  public static void createIdentitySettings1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IdentitySettings identitySettings =
+        IdentitySettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    IdentityClient identityClient = IdentityClient.create(identitySettings);
+  }
+}
+// [END goldensample_v1_generated_identityclient_create_identitysettings1]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden
new file mode 100644
index 0000000000..8fcb67be8f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_create_identitysettings2]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.IdentitySettings;
+import com.google.showcase.v1beta1.myEndpoint;
+
+public class CreateIdentitySettings2 {
+
+  public static void main(String[] args) throws Exception {
+    createIdentitySettings2();
+  }
+
+  public static void createIdentitySettings2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IdentitySettings identitySettings =
+        IdentitySettings.newBuilder().setEndpoint(myEndpoint).build();
+    IdentityClient identityClient = IdentityClient.create(identitySettings);
+  }
+}
+// [END goldensample_v1_generated_identityclient_create_identitysettings2]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden
new file mode 100644
index 0000000000..f5af4f98ed
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_createuser_callablefuturecallcreateuserrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.CreateUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class CreateUserCallableFutureCallCreateUserRequest {
+
+  public static void main(String[] args) throws Exception {
+    createUserCallableFutureCallCreateUserRequest();
+  }
+
+  public static void createUserCallableFutureCallCreateUserRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      CreateUserRequest request =
+          CreateUserRequest.newBuilder()
+              .setParent(UserName.of("[USER]").toString())
+              .setUser(User.newBuilder().build())
+              .build();
+      ApiFuture future = identityClient.createUserCallable().futureCall(request);
+      // Do something.
+      User response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_createuser_callablefuturecallcreateuserrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden
new file mode 100644
index 0000000000..6a930d55c2
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_createuser_createuserrequest]
+import com.google.showcase.v1beta1.CreateUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class CreateUserCreateUserRequest {
+
+  public static void main(String[] args) throws Exception {
+    createUserCreateUserRequest();
+  }
+
+  public static void createUserCreateUserRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      CreateUserRequest request =
+          CreateUserRequest.newBuilder()
+              .setParent(UserName.of("[USER]").toString())
+              .setUser(User.newBuilder().build())
+              .build();
+      User response = identityClient.createUser(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_createuser_createuserrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden
new file mode 100644
index 0000000000..bc907fdea5
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_createuser_stringstringstring]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class CreateUserStringStringString {
+
+  public static void main(String[] args) throws Exception {
+    createUserStringStringString();
+  }
+
+  public static void createUserStringStringString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String parent = UserName.of("[USER]").toString();
+      String displayName = "displayName1714148973";
+      String email = "email96619420";
+      User response = identityClient.createUser(parent, displayName, email);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_createuser_stringstringstring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden
new file mode 100644
index 0000000000..1223a23daa
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_createuser_stringstringstringintstringbooleandouble]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class CreateUserStringStringStringIntStringBooleanDouble {
+
+  public static void main(String[] args) throws Exception {
+    createUserStringStringStringIntStringBooleanDouble();
+  }
+
+  public static void createUserStringStringStringIntStringBooleanDouble() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String parent = UserName.of("[USER]").toString();
+      String displayName = "displayName1714148973";
+      String email = "email96619420";
+      int age = 96511;
+      String nickname = "nickname70690926";
+      boolean enableNotifications = true;
+      double heightFeet = -1032737338;
+      User response =
+          identityClient.createUser(
+              parent, displayName, email, age, nickname, enableNotifications, heightFeet);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_createuser_stringstringstringintstringbooleandouble]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden
new file mode 100644
index 0000000000..64e3e2eb9d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class CreateUserStringStringStringStringStringIntStringStringStringString {
+
+  public static void main(String[] args) throws Exception {
+    createUserStringStringStringStringStringIntStringStringStringString();
+  }
+
+  public static void createUserStringStringStringStringStringIntStringStringStringString()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String parent = UserName.of("[USER]").toString();
+      String displayName = "displayName1714148973";
+      String email = "email96619420";
+      String hobbyName = "hobbyName882586493";
+      String songName = "songName1535136064";
+      int weeklyFrequency = 1572999966;
+      String companyName = "companyName-508582744";
+      String title = "title110371416";
+      String subject = "subject-1867885268";
+      String artistName = "artistName629723762";
+      User response =
+          identityClient.createUser(
+              parent,
+              displayName,
+              email,
+              hobbyName,
+              songName,
+              weeklyFrequency,
+              companyName,
+              title,
+              subject,
+              artistName);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden
new file mode 100644
index 0000000000..6bf0534fe5
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.DeleteUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UserName;
+
+public class DeleteUserCallableFutureCallDeleteUserRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteUserCallableFutureCallDeleteUserRequest();
+  }
+
+  public static void deleteUserCallableFutureCallDeleteUserRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      DeleteUserRequest request =
+          DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
+      ApiFuture future = identityClient.deleteUserCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden
new file mode 100644
index 0000000000..1f10c49db1
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_deleteuser_deleteuserrequest]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.DeleteUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UserName;
+
+public class DeleteUserDeleteUserRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteUserDeleteUserRequest();
+  }
+
+  public static void deleteUserDeleteUserRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      DeleteUserRequest request =
+          DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
+      identityClient.deleteUser(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_deleteuser_deleteuserrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden
new file mode 100644
index 0000000000..0c7baa8058
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_deleteuser_string]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UserName;
+
+public class DeleteUserString {
+
+  public static void main(String[] args) throws Exception {
+    deleteUserString();
+  }
+
+  public static void deleteUserString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String name = UserName.of("[USER]").toString();
+      identityClient.deleteUser(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_deleteuser_string]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden
new file mode 100644
index 0000000000..9fb5b16f14
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_deleteuser_username]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UserName;
+
+public class DeleteUserUserName {
+
+  public static void main(String[] args) throws Exception {
+    deleteUserUserName();
+  }
+
+  public static void deleteUserUserName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      UserName name = UserName.of("[USER]");
+      identityClient.deleteUser(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_deleteuser_username]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden
new file mode 100644
index 0000000000..f5ddd0bb71
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_getuser_callablefuturecallgetuserrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.GetUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class GetUserCallableFutureCallGetUserRequest {
+
+  public static void main(String[] args) throws Exception {
+    getUserCallableFutureCallGetUserRequest();
+  }
+
+  public static void getUserCallableFutureCallGetUserRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      GetUserRequest request =
+          GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
+      ApiFuture future = identityClient.getUserCallable().futureCall(request);
+      // Do something.
+      User response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_getuser_callablefuturecallgetuserrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden
new file mode 100644
index 0000000000..5bd19fda59
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_getuser_getuserrequest]
+import com.google.showcase.v1beta1.GetUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class GetUserGetUserRequest {
+
+  public static void main(String[] args) throws Exception {
+    getUserGetUserRequest();
+  }
+
+  public static void getUserGetUserRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      GetUserRequest request =
+          GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
+      User response = identityClient.getUser(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_getuser_getuserrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden
new file mode 100644
index 0000000000..675f7dc85a
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_getuser_string]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class GetUserString {
+
+  public static void main(String[] args) throws Exception {
+    getUserString();
+  }
+
+  public static void getUserString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String name = UserName.of("[USER]").toString();
+      User response = identityClient.getUser(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_getuser_string]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden
new file mode 100644
index 0000000000..b9b862d18a
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_getuser_username]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class GetUserUserName {
+
+  public static void main(String[] args) throws Exception {
+    getUserUserName();
+  }
+
+  public static void getUserUserName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      UserName name = UserName.of("[USER]");
+      User response = identityClient.getUser(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_getuser_username]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden
new file mode 100644
index 0000000000..324dc54b96
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_listusers_callablecalllistusersrequest]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.ListUsersRequest;
+import com.google.showcase.v1beta1.ListUsersResponse;
+import com.google.showcase.v1beta1.User;
+
+public class ListUsersCallableCallListUsersRequest {
+
+  public static void main(String[] args) throws Exception {
+    listUsersCallableCallListUsersRequest();
+  }
+
+  public static void listUsersCallableCallListUsersRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      ListUsersRequest request =
+          ListUsersRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListUsersResponse response = identityClient.listUsersCallable().call(request);
+        for (User element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_listusers_callablecalllistusersrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden
new file mode 100644
index 0000000000..be59046023
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_listusers_listusersrequestiterateall]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.ListUsersRequest;
+import com.google.showcase.v1beta1.User;
+
+public class ListUsersListUsersRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listUsersListUsersRequestIterateAll();
+  }
+
+  public static void listUsersListUsersRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      ListUsersRequest request =
+          ListUsersRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (User element : identityClient.listUsers(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_listusers_listusersrequestiterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden
new file mode 100644
index 0000000000..6c4eadc438
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.ListUsersRequest;
+import com.google.showcase.v1beta1.User;
+
+public class ListUsersPagedCallableFutureCallListUsersRequest {
+
+  public static void main(String[] args) throws Exception {
+    listUsersPagedCallableFutureCallListUsersRequest();
+  }
+
+  public static void listUsersPagedCallableFutureCallListUsersRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      ListUsersRequest request =
+          ListUsersRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = identityClient.listUsersPagedCallable().futureCall(request);
+      // Do something.
+      for (User element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden
new file mode 100644
index 0000000000..91ca771d6d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_updateuser_callablefuturecallupdateuserrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UpdateUserRequest;
+import com.google.showcase.v1beta1.User;
+
+public class UpdateUserCallableFutureCallUpdateUserRequest {
+
+  public static void main(String[] args) throws Exception {
+    updateUserCallableFutureCallUpdateUserRequest();
+  }
+
+  public static void updateUserCallableFutureCallUpdateUserRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      UpdateUserRequest request =
+          UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
+      ApiFuture future = identityClient.updateUserCallable().futureCall(request);
+      // Do something.
+      User response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_updateuser_callablefuturecallupdateuserrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden
new file mode 100644
index 0000000000..20f3d8f1f9
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_identityclient_updateuser_updateuserrequest]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UpdateUserRequest;
+import com.google.showcase.v1beta1.User;
+
+public class UpdateUserUpdateUserRequest {
+
+  public static void main(String[] args) throws Exception {
+    updateUserUpdateUserRequest();
+  }
+
+  public static void updateUserUpdateUserRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      UpdateUserRequest request =
+          UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
+      User response = identityClient.updateUser(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_identityclient_updateuser_updateuserrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden
new file mode 100644
index 0000000000..6abfa27427
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_connect_callablecallconnectrequest]
+import com.google.api.gax.rpc.BidiStream;
+import com.google.showcase.v1beta1.ConnectRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.StreamBlurbsResponse;
+
+public class ConnectCallableCallConnectRequest {
+
+  public static void main(String[] args) throws Exception {
+    connectCallableCallConnectRequest();
+  }
+
+  public static void connectCallableCallConnectRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      BidiStream bidiStream =
+          messagingClient.connectCallable().call();
+      ConnectRequest request = ConnectRequest.newBuilder().build();
+      bidiStream.send(request);
+      for (StreamBlurbsResponse response : bidiStream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_connect_callablecallconnectrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden
new file mode 100644
index 0000000000..b3800562d2
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.CreateBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class CreateBlurbCallableFutureCallCreateBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    createBlurbCallableFutureCallCreateBlurbRequest();
+  }
+
+  public static void createBlurbCallableFutureCallCreateBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      CreateBlurbRequest request =
+          CreateBlurbRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setBlurb(Blurb.newBuilder().build())
+              .build();
+      ApiFuture future = messagingClient.createBlurbCallable().futureCall(request);
+      // Do something.
+      Blurb response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden
new file mode 100644
index 0000000000..a104095c2e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createblurb_createblurbrequest]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.CreateBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class CreateBlurbCreateBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    createBlurbCreateBlurbRequest();
+  }
+
+  public static void createBlurbCreateBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      CreateBlurbRequest request =
+          CreateBlurbRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setBlurb(Blurb.newBuilder().build())
+              .build();
+      Blurb response = messagingClient.createBlurb(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createblurb_createblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden
new file mode 100644
index 0000000000..6ba6ca00b9
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createblurb_profilenamebytestring]
+import com.google.protobuf.ByteString;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class CreateBlurbProfileNameByteString {
+
+  public static void main(String[] args) throws Exception {
+    createBlurbProfileNameByteString();
+  }
+
+  public static void createBlurbProfileNameByteString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ProfileName parent = ProfileName.of("[USER]");
+      ByteString image = ByteString.EMPTY;
+      Blurb response = messagingClient.createBlurb(parent, image);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createblurb_profilenamebytestring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden
new file mode 100644
index 0000000000..458c424e89
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createblurb_profilenamestring]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class CreateBlurbProfileNameString {
+
+  public static void main(String[] args) throws Exception {
+    createBlurbProfileNameString();
+  }
+
+  public static void createBlurbProfileNameString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ProfileName parent = ProfileName.of("[USER]");
+      String text = "text3556653";
+      Blurb response = messagingClient.createBlurb(parent, text);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createblurb_profilenamestring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden
new file mode 100644
index 0000000000..e6a6d3ae89
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createblurb_roomnamebytestring]
+import com.google.protobuf.ByteString;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class CreateBlurbRoomNameByteString {
+
+  public static void main(String[] args) throws Exception {
+    createBlurbRoomNameByteString();
+  }
+
+  public static void createBlurbRoomNameByteString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName parent = RoomName.of("[ROOM]");
+      ByteString image = ByteString.EMPTY;
+      Blurb response = messagingClient.createBlurb(parent, image);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createblurb_roomnamebytestring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden
new file mode 100644
index 0000000000..6dfb6a813c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createblurb_roomnamestring]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class CreateBlurbRoomNameString {
+
+  public static void main(String[] args) throws Exception {
+    createBlurbRoomNameString();
+  }
+
+  public static void createBlurbRoomNameString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName parent = RoomName.of("[ROOM]");
+      String text = "text3556653";
+      Blurb response = messagingClient.createBlurb(parent, text);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createblurb_roomnamestring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden
new file mode 100644
index 0000000000..94201c1d63
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createblurb_stringbytestring]
+import com.google.protobuf.ByteString;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class CreateBlurbStringByteString {
+
+  public static void main(String[] args) throws Exception {
+    createBlurbStringByteString();
+  }
+
+  public static void createBlurbStringByteString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String parent = ProfileName.of("[USER]").toString();
+      ByteString image = ByteString.EMPTY;
+      Blurb response = messagingClient.createBlurb(parent, image);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createblurb_stringbytestring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden
new file mode 100644
index 0000000000..90e927b784
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createblurb_stringstring]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class CreateBlurbStringString {
+
+  public static void main(String[] args) throws Exception {
+    createBlurbStringString();
+  }
+
+  public static void createBlurbStringString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String parent = ProfileName.of("[USER]").toString();
+      String text = "text3556653";
+      Blurb response = messagingClient.createBlurb(parent, text);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createblurb_stringstring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden
new file mode 100644
index 0000000000..b3f2ac6703
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_create_messagingsettings1]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.MessagingSettings;
+import com.google.showcase.v1beta1.myCredentials;
+
+public class CreateMessagingSettings1 {
+
+  public static void main(String[] args) throws Exception {
+    createMessagingSettings1();
+  }
+
+  public static void createMessagingSettings1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    MessagingSettings messagingSettings =
+        MessagingSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    MessagingClient messagingClient = MessagingClient.create(messagingSettings);
+  }
+}
+// [END goldensample_v1_generated_messagingclient_create_messagingsettings1]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden
new file mode 100644
index 0000000000..b2580879b5
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_create_messagingsettings2]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.MessagingSettings;
+import com.google.showcase.v1beta1.myEndpoint;
+
+public class CreateMessagingSettings2 {
+
+  public static void main(String[] args) throws Exception {
+    createMessagingSettings2();
+  }
+
+  public static void createMessagingSettings2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    MessagingSettings messagingSettings =
+        MessagingSettings.newBuilder().setEndpoint(myEndpoint).build();
+    MessagingClient messagingClient = MessagingClient.create(messagingSettings);
+  }
+}
+// [END goldensample_v1_generated_messagingclient_create_messagingsettings2]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden
new file mode 100644
index 0000000000..4794dea28e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createroom_callablefuturecallcreateroomrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.CreateRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class CreateRoomCallableFutureCallCreateRoomRequest {
+
+  public static void main(String[] args) throws Exception {
+    createRoomCallableFutureCallCreateRoomRequest();
+  }
+
+  public static void createRoomCallableFutureCallCreateRoomRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      CreateRoomRequest request =
+          CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
+      ApiFuture future = messagingClient.createRoomCallable().futureCall(request);
+      // Do something.
+      Room response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createroom_callablefuturecallcreateroomrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden
new file mode 100644
index 0000000000..81eaf125ab
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createroom_createroomrequest]
+import com.google.showcase.v1beta1.CreateRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class CreateRoomCreateRoomRequest {
+
+  public static void main(String[] args) throws Exception {
+    createRoomCreateRoomRequest();
+  }
+
+  public static void createRoomCreateRoomRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      CreateRoomRequest request =
+          CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
+      Room response = messagingClient.createRoom(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createroom_createroomrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden
new file mode 100644
index 0000000000..6057a2e90b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_createroom_stringstring]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class CreateRoomStringString {
+
+  public static void main(String[] args) throws Exception {
+    createRoomStringString();
+  }
+
+  public static void createRoomStringString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String displayName = "displayName1714148973";
+      String description = "description-1724546052";
+      Room response = messagingClient.createRoom(displayName, description);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_createroom_stringstring]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden
new file mode 100644
index 0000000000..e288ac98aa
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_deleteblurb_blurbname]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class DeleteBlurbBlurbName {
+
+  public static void main(String[] args) throws Exception {
+    deleteBlurbBlurbName();
+  }
+
+  public static void deleteBlurbBlurbName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      BlurbName name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]");
+      messagingClient.deleteBlurb(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_deleteblurb_blurbname]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden
new file mode 100644
index 0000000000..4eecbba464
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.DeleteBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class DeleteBlurbCallableFutureCallDeleteBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteBlurbCallableFutureCallDeleteBlurbRequest();
+  }
+
+  public static void deleteBlurbCallableFutureCallDeleteBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      DeleteBlurbRequest request =
+          DeleteBlurbRequest.newBuilder()
+              .setName(
+                  BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]")
+                      .toString())
+              .build();
+      ApiFuture future = messagingClient.deleteBlurbCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden
new file mode 100644
index 0000000000..e40632cab6
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_deleteblurb_deleteblurbrequest]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.DeleteBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class DeleteBlurbDeleteBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteBlurbDeleteBlurbRequest();
+  }
+
+  public static void deleteBlurbDeleteBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      DeleteBlurbRequest request =
+          DeleteBlurbRequest.newBuilder()
+              .setName(
+                  BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]")
+                      .toString())
+              .build();
+      messagingClient.deleteBlurb(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_deleteblurb_deleteblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden
new file mode 100644
index 0000000000..597bd4160e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_deleteblurb_string]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class DeleteBlurbString {
+
+  public static void main(String[] args) throws Exception {
+    deleteBlurbString();
+  }
+
+  public static void deleteBlurbString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String name =
+          BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
+      messagingClient.deleteBlurb(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_deleteblurb_string]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden
new file mode 100644
index 0000000000..f4d1b91777
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.DeleteRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class DeleteRoomCallableFutureCallDeleteRoomRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteRoomCallableFutureCallDeleteRoomRequest();
+  }
+
+  public static void deleteRoomCallableFutureCallDeleteRoomRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      DeleteRoomRequest request =
+          DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
+      ApiFuture future = messagingClient.deleteRoomCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden
new file mode 100644
index 0000000000..16b73e3532
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_deleteroom_deleteroomrequest]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.DeleteRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class DeleteRoomDeleteRoomRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteRoomDeleteRoomRequest();
+  }
+
+  public static void deleteRoomDeleteRoomRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      DeleteRoomRequest request =
+          DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
+      messagingClient.deleteRoom(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_deleteroom_deleteroomrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden
new file mode 100644
index 0000000000..9098b01cda
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_deleteroom_roomname]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class DeleteRoomRoomName {
+
+  public static void main(String[] args) throws Exception {
+    deleteRoomRoomName();
+  }
+
+  public static void deleteRoomRoomName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName name = RoomName.of("[ROOM]");
+      messagingClient.deleteRoom(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_deleteroom_roomname]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden
new file mode 100644
index 0000000000..39192a3763
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_deleteroom_string]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class DeleteRoomString {
+
+  public static void main(String[] args) throws Exception {
+    deleteRoomString();
+  }
+
+  public static void deleteRoomString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String name = RoomName.of("[ROOM]").toString();
+      messagingClient.deleteRoom(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_deleteroom_string]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden
new file mode 100644
index 0000000000..16007c313f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_getblurb_blurbname]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class GetBlurbBlurbName {
+
+  public static void main(String[] args) throws Exception {
+    getBlurbBlurbName();
+  }
+
+  public static void getBlurbBlurbName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      BlurbName name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]");
+      Blurb response = messagingClient.getBlurb(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_getblurb_blurbname]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden
new file mode 100644
index 0000000000..2f29b4f495
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.GetBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class GetBlurbCallableFutureCallGetBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    getBlurbCallableFutureCallGetBlurbRequest();
+  }
+
+  public static void getBlurbCallableFutureCallGetBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      GetBlurbRequest request =
+          GetBlurbRequest.newBuilder()
+              .setName(
+                  BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]")
+                      .toString())
+              .build();
+      ApiFuture future = messagingClient.getBlurbCallable().futureCall(request);
+      // Do something.
+      Blurb response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden
new file mode 100644
index 0000000000..111dfd4b62
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_getblurb_getblurbrequest]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.GetBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class GetBlurbGetBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    getBlurbGetBlurbRequest();
+  }
+
+  public static void getBlurbGetBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      GetBlurbRequest request =
+          GetBlurbRequest.newBuilder()
+              .setName(
+                  BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]")
+                      .toString())
+              .build();
+      Blurb response = messagingClient.getBlurb(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_getblurb_getblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden
new file mode 100644
index 0000000000..3032e87a1e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_getblurb_string]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class GetBlurbString {
+
+  public static void main(String[] args) throws Exception {
+    getBlurbString();
+  }
+
+  public static void getBlurbString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String name =
+          BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
+      Blurb response = messagingClient.getBlurb(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_getblurb_string]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden
new file mode 100644
index 0000000000..9514ca7385
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_getroom_callablefuturecallgetroomrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.GetRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.RoomName;
+
+public class GetRoomCallableFutureCallGetRoomRequest {
+
+  public static void main(String[] args) throws Exception {
+    getRoomCallableFutureCallGetRoomRequest();
+  }
+
+  public static void getRoomCallableFutureCallGetRoomRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      GetRoomRequest request =
+          GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
+      ApiFuture future = messagingClient.getRoomCallable().futureCall(request);
+      // Do something.
+      Room response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_getroom_callablefuturecallgetroomrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden
new file mode 100644
index 0000000000..732abe1311
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_getroom_getroomrequest]
+import com.google.showcase.v1beta1.GetRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.RoomName;
+
+public class GetRoomGetRoomRequest {
+
+  public static void main(String[] args) throws Exception {
+    getRoomGetRoomRequest();
+  }
+
+  public static void getRoomGetRoomRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      GetRoomRequest request =
+          GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
+      Room response = messagingClient.getRoom(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_getroom_getroomrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden
new file mode 100644
index 0000000000..08d04092be
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_getroom_roomname]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.RoomName;
+
+public class GetRoomRoomName {
+
+  public static void main(String[] args) throws Exception {
+    getRoomRoomName();
+  }
+
+  public static void getRoomRoomName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName name = RoomName.of("[ROOM]");
+      Room response = messagingClient.getRoom(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_getroom_roomname]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden
new file mode 100644
index 0000000000..3f440fde58
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_getroom_string]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.RoomName;
+
+public class GetRoomString {
+
+  public static void main(String[] args) throws Exception {
+    getRoomString();
+  }
+
+  public static void getRoomString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String name = RoomName.of("[ROOM]").toString();
+      Room response = messagingClient.getRoom(name);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_getroom_string]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden
new file mode 100644
index 0000000000..12d13aa156
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listblurbs_callablecalllistblurbsrequest]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.ListBlurbsRequest;
+import com.google.showcase.v1beta1.ListBlurbsResponse;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class ListBlurbsCallableCallListBlurbsRequest {
+
+  public static void main(String[] args) throws Exception {
+    listBlurbsCallableCallListBlurbsRequest();
+  }
+
+  public static void listBlurbsCallableCallListBlurbsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListBlurbsRequest request =
+          ListBlurbsRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListBlurbsResponse response = messagingClient.listBlurbsCallable().call(request);
+        for (Blurb element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listblurbs_callablecalllistblurbsrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden
new file mode 100644
index 0000000000..733c18db4d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listblurbs_listblurbsrequestiterateall]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.ListBlurbsRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class ListBlurbsListBlurbsRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listBlurbsListBlurbsRequestIterateAll();
+  }
+
+  public static void listBlurbsListBlurbsRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListBlurbsRequest request =
+          ListBlurbsRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (Blurb element : messagingClient.listBlurbs(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listblurbs_listblurbsrequestiterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden
new file mode 100644
index 0000000000..2ac33fad98
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.ListBlurbsRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class ListBlurbsPagedCallableFutureCallListBlurbsRequest {
+
+  public static void main(String[] args) throws Exception {
+    listBlurbsPagedCallableFutureCallListBlurbsRequest();
+  }
+
+  public static void listBlurbsPagedCallableFutureCallListBlurbsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListBlurbsRequest request =
+          ListBlurbsRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = messagingClient.listBlurbsPagedCallable().futureCall(request);
+      // Do something.
+      for (Blurb element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden
new file mode 100644
index 0000000000..278034ee34
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listblurbs_profilenameiterateall]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class ListBlurbsProfileNameIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listBlurbsProfileNameIterateAll();
+  }
+
+  public static void listBlurbsProfileNameIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ProfileName parent = ProfileName.of("[USER]");
+      for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listblurbs_profilenameiterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden
new file mode 100644
index 0000000000..d0602e7bf0
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listblurbs_roomnameiterateall]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class ListBlurbsRoomNameIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listBlurbsRoomNameIterateAll();
+  }
+
+  public static void listBlurbsRoomNameIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName parent = RoomName.of("[ROOM]");
+      for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listblurbs_roomnameiterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden
new file mode 100644
index 0000000000..058dc7c477
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listblurbs_stringiterateall]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class ListBlurbsStringIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listBlurbsStringIterateAll();
+  }
+
+  public static void listBlurbsStringIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String parent = ProfileName.of("[USER]").toString();
+      for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listblurbs_stringiterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden
new file mode 100644
index 0000000000..e3a94a9bfd
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listrooms_callablecalllistroomsrequest]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.ListRoomsRequest;
+import com.google.showcase.v1beta1.ListRoomsResponse;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class ListRoomsCallableCallListRoomsRequest {
+
+  public static void main(String[] args) throws Exception {
+    listRoomsCallableCallListRoomsRequest();
+  }
+
+  public static void listRoomsCallableCallListRoomsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListRoomsRequest request =
+          ListRoomsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListRoomsResponse response = messagingClient.listRoomsCallable().call(request);
+        for (Room element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listrooms_callablecalllistroomsrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden
new file mode 100644
index 0000000000..669a616876
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listrooms_listroomsrequestiterateall]
+import com.google.showcase.v1beta1.ListRoomsRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class ListRoomsListRoomsRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listRoomsListRoomsRequestIterateAll();
+  }
+
+  public static void listRoomsListRoomsRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListRoomsRequest request =
+          ListRoomsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (Room element : messagingClient.listRooms(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listrooms_listroomsrequestiterateall]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden
new file mode 100644
index 0000000000..bfc4dfb32b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.ListRoomsRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class ListRoomsPagedCallableFutureCallListRoomsRequest {
+
+  public static void main(String[] args) throws Exception {
+    listRoomsPagedCallableFutureCallListRoomsRequest();
+  }
+
+  public static void listRoomsPagedCallableFutureCallListRoomsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListRoomsRequest request =
+          ListRoomsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = messagingClient.listRoomsPagedCallable().futureCall(request);
+      // Do something.
+      for (Room element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden
new file mode 100644
index 0000000000..751ae5b92d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.SearchBlurbsRequest;
+import com.google.showcase.v1beta1.SearchBlurbsResponse;
+
+public class SearchBlurbsAsyncSearchBlurbsRequestGet {
+
+  public static void main(String[] args) throws Exception {
+    searchBlurbsAsyncSearchBlurbsRequestGet();
+  }
+
+  public static void searchBlurbsAsyncSearchBlurbsRequestGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      SearchBlurbsRequest request =
+          SearchBlurbsRequest.newBuilder()
+              .setQuery("query107944136")
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(request).get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden
new file mode 100644
index 0000000000..195aaa285e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_searchblurbs_asyncstringget]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.SearchBlurbsResponse;
+
+public class SearchBlurbsAsyncStringGet {
+
+  public static void main(String[] args) throws Exception {
+    searchBlurbsAsyncStringGet();
+  }
+
+  public static void searchBlurbsAsyncStringGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String query = "query107944136";
+      SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(query).get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_searchblurbs_asyncstringget]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden
new file mode 100644
index 0000000000..e15b0c78ed
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest]
+import com.google.api.core.ApiFuture;
+import com.google.longrunning.Operation;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.SearchBlurbsRequest;
+
+public class SearchBlurbsCallableFutureCallSearchBlurbsRequest {
+
+  public static void main(String[] args) throws Exception {
+    searchBlurbsCallableFutureCallSearchBlurbsRequest();
+  }
+
+  public static void searchBlurbsCallableFutureCallSearchBlurbsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      SearchBlurbsRequest request =
+          SearchBlurbsRequest.newBuilder()
+              .setQuery("query107944136")
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = messagingClient.searchBlurbsCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden
new file mode 100644
index 0000000000..bf1bb5e715
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.SearchBlurbsMetadata;
+import com.google.showcase.v1beta1.SearchBlurbsRequest;
+import com.google.showcase.v1beta1.SearchBlurbsResponse;
+
+public class SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest {
+
+  public static void main(String[] args) throws Exception {
+    searchBlurbsOperationCallableFutureCallSearchBlurbsRequest();
+  }
+
+  public static void searchBlurbsOperationCallableFutureCallSearchBlurbsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      SearchBlurbsRequest request =
+          SearchBlurbsRequest.newBuilder()
+              .setQuery("query107944136")
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      OperationFuture future =
+          messagingClient.searchBlurbsOperationCallable().futureCall(request);
+      // Do something.
+      SearchBlurbsResponse response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden
new file mode 100644
index 0000000000..e1b96aad3f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest]
+import com.google.api.gax.rpc.ApiStreamObserver;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.CreateBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.SendBlurbsResponse;
+
+public class SendBlurbsClientStreamingCallCreateBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    sendBlurbsClientStreamingCallCreateBlurbRequest();
+  }
+
+  public static void sendBlurbsClientStreamingCallCreateBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ApiStreamObserver responseObserver =
+          new ApiStreamObserver() {
+            @Override
+            public void onNext(SendBlurbsResponse response) {
+              // Do something when a response is received.
+            }
+
+            @Override
+            public void onError(Throwable t) {
+              // Add error-handling
+            }
+
+            @Override
+            public void onCompleted() {
+              // Do something when complete.
+            }
+          };
+      ApiStreamObserver requestObserver =
+          messagingClient.sendBlurbs().clientStreamingCall(responseObserver);
+      CreateBlurbRequest request =
+          CreateBlurbRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setBlurb(Blurb.newBuilder().build())
+              .build();
+      requestObserver.onNext(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden
new file mode 100644
index 0000000000..735a792c34
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest]
+import com.google.api.gax.rpc.ServerStream;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.StreamBlurbsRequest;
+import com.google.showcase.v1beta1.StreamBlurbsResponse;
+
+public class StreamBlurbsCallableCallStreamBlurbsRequest {
+
+  public static void main(String[] args) throws Exception {
+    streamBlurbsCallableCallStreamBlurbsRequest();
+  }
+
+  public static void streamBlurbsCallableCallStreamBlurbsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      StreamBlurbsRequest request =
+          StreamBlurbsRequest.newBuilder().setName(ProfileName.of("[USER]").toString()).build();
+      ServerStream stream =
+          messagingClient.streamBlurbsCallable().call(request);
+      for (StreamBlurbsResponse response : stream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden
new file mode 100644
index 0000000000..cd02961c4f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.UpdateBlurbRequest;
+
+public class UpdateBlurbCallableFutureCallUpdateBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    updateBlurbCallableFutureCallUpdateBlurbRequest();
+  }
+
+  public static void updateBlurbCallableFutureCallUpdateBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      UpdateBlurbRequest request =
+          UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build();
+      ApiFuture future = messagingClient.updateBlurbCallable().futureCall(request);
+      // Do something.
+      Blurb response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden
new file mode 100644
index 0000000000..925c4cd313
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_updateblurb_updateblurbrequest]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.UpdateBlurbRequest;
+
+public class UpdateBlurbUpdateBlurbRequest {
+
+  public static void main(String[] args) throws Exception {
+    updateBlurbUpdateBlurbRequest();
+  }
+
+  public static void updateBlurbUpdateBlurbRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      UpdateBlurbRequest request =
+          UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build();
+      Blurb response = messagingClient.updateBlurb(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_updateblurb_updateblurbrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden
new file mode 100644
index 0000000000..fd78d7c41e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.UpdateRoomRequest;
+
+public class UpdateRoomCallableFutureCallUpdateRoomRequest {
+
+  public static void main(String[] args) throws Exception {
+    updateRoomCallableFutureCallUpdateRoomRequest();
+  }
+
+  public static void updateRoomCallableFutureCallUpdateRoomRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      UpdateRoomRequest request =
+          UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
+      ApiFuture future = messagingClient.updateRoomCallable().futureCall(request);
+      // Do something.
+      Room response = future.get();
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden
new file mode 100644
index 0000000000..9c04027fad
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_messagingclient_updateroom_updateroomrequest]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.UpdateRoomRequest;
+
+public class UpdateRoomUpdateRoomRequest {
+
+  public static void main(String[] args) throws Exception {
+    updateRoomUpdateRoomRequest();
+  }
+
+  public static void updateRoomUpdateRoomRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      UpdateRoomRequest request =
+          UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
+      Room response = messagingClient.updateRoom(request);
+    }
+  }
+}
+// [END goldensample_v1_generated_messagingclient_updateroom_updateroomrequest]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden
new file mode 100644
index 0000000000..c636615e2b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.pubsub.v1.stub.samples;
+
+// [START goldensample_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings]
+import com.google.pubsub.v1.stub.PublisherStubSettings;
+import java.time.Duration;
+
+public class CreateTopicSettingsSetRetrySettingsPublisherStubSettings {
+
+  public static void main(String[] args) throws Exception {
+    createTopicSettingsSetRetrySettingsPublisherStubSettings();
+  }
+
+  public static void createTopicSettingsSetRetrySettingsPublisherStubSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    PublisherStubSettings.Builder publisherSettingsBuilder = PublisherStubSettings.newBuilder();
+    publisherSettingsBuilder
+        .createTopicSettings()
+        .setRetrySettings(
+            publisherSettingsBuilder
+                .createTopicSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    PublisherStubSettings publisherSettings = publisherSettingsBuilder.build();
+  }
+}
+// [END goldensample_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden
new file mode 100644
index 0000000000..2ecf60d537
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.logging.v2.stub.samples;
+
+// [START goldensample_v1_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings]
+import com.google.logging.v2.stub.LoggingServiceV2StubSettings;
+import java.time.Duration;
+
+public class DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings {
+
+  public static void main(String[] args) throws Exception {
+    deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings();
+  }
+
+  public static void deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    LoggingServiceV2StubSettings.Builder loggingServiceV2SettingsBuilder =
+        LoggingServiceV2StubSettings.newBuilder();
+    loggingServiceV2SettingsBuilder
+        .deleteLogSettings()
+        .setRetrySettings(
+            loggingServiceV2SettingsBuilder
+                .deleteLogSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    LoggingServiceV2StubSettings loggingServiceV2Settings = loggingServiceV2SettingsBuilder.build();
+  }
+}
+// [END goldensample_v1_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden
new file mode 100644
index 0000000000..295376986d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_v1_generated_echosettings_echo_settingssetretrysettingsechosettings]
+import com.google.showcase.v1beta1.EchoSettings;
+import java.time.Duration;
+
+public class EchoSettingsSetRetrySettingsEchoSettings {
+
+  public static void main(String[] args) throws Exception {
+    echoSettingsSetRetrySettingsEchoSettings();
+  }
+
+  public static void echoSettingsSetRetrySettingsEchoSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();
+    echoSettingsBuilder
+        .echoSettings()
+        .setRetrySettings(
+            echoSettingsBuilder
+                .echoSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    EchoSettings echoSettings = echoSettingsBuilder.build();
+  }
+}
+// [END goldensample_v1_generated_echosettings_echo_settingssetretrysettingsechosettings]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden
new file mode 100644
index 0000000000..3914ae6758
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.stub.samples;
+
+// [START goldensample_v1_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings]
+import com.google.showcase.v1beta1.stub.EchoStubSettings;
+import java.time.Duration;
+
+public class EchoSettingsSetRetrySettingsEchoStubSettings {
+
+  public static void main(String[] args) throws Exception {
+    echoSettingsSetRetrySettingsEchoStubSettings();
+  }
+
+  public static void echoSettingsSetRetrySettingsEchoStubSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();
+    echoSettingsBuilder
+        .echoSettings()
+        .setRetrySettings(
+            echoSettingsBuilder
+                .echoSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    EchoStubSettings echoSettings = echoSettingsBuilder.build();
+  }
+}
+// [END goldensample_v1_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden
new file mode 100644
index 0000000000..8f115f6de7
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_v1_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings]
+import com.google.testdata.v1.DeprecatedServiceSettings;
+import java.time.Duration;
+
+public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings {
+
+  public static void main(String[] args) throws Exception {
+    fastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings();
+  }
+
+  public static void fastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    DeprecatedServiceSettings.Builder deprecatedServiceSettingsBuilder =
+        DeprecatedServiceSettings.newBuilder();
+    deprecatedServiceSettingsBuilder
+        .fastFibonacciSettings()
+        .setRetrySettings(
+            deprecatedServiceSettingsBuilder
+                .fastFibonacciSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    DeprecatedServiceSettings deprecatedServiceSettings = deprecatedServiceSettingsBuilder.build();
+  }
+}
+// [END goldensample_v1_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden
new file mode 100644
index 0000000000..6c63030501
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.stub.samples;
+
+// [START goldensample_v1_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings]
+import com.google.testdata.v1.stub.DeprecatedServiceStubSettings;
+import java.time.Duration;
+
+public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings {
+
+  public static void main(String[] args) throws Exception {
+    fastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings();
+  }
+
+  public static void fastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    DeprecatedServiceStubSettings.Builder deprecatedServiceSettingsBuilder =
+        DeprecatedServiceStubSettings.newBuilder();
+    deprecatedServiceSettingsBuilder
+        .fastFibonacciSettings()
+        .setRetrySettings(
+            deprecatedServiceSettingsBuilder
+                .fastFibonacciSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    DeprecatedServiceStubSettings deprecatedServiceSettings =
+        deprecatedServiceSettingsBuilder.build();
+  }
+}
+// [END goldensample_v1_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden
index 11af8d46ae..6660e07be5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden
@@ -34,6 +34,8 @@ import javax.annotation.Generated;
  * 

For example, to set the total timeout of repeatDataBody to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ComplianceSettings.Builder complianceSettingsBuilder = ComplianceSettings.newBuilder();
  * complianceSettingsBuilder
  *     .repeatDataBodySettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden
index fe74c48c98..7fd6d0bc34 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden
@@ -43,6 +43,8 @@ import javax.annotation.Generated;
  * 

For example, to set the total timeout of repeatDataBody to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ComplianceStubSettings.Builder complianceSettingsBuilder = ComplianceStubSettings.newBuilder();
  * complianceSettingsBuilder
  *     .repeatDataBodySettings()

From f919e8aa7eb666693ee661a5bccdaa27a1d6403a Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Mon, 14 Feb 2022 17:01:12 -0800
Subject: [PATCH 05/29] test: integration goldens - update inline samples

---
 .../cloud/asset/v1/AssetServiceClient.java    |  90 ++++++++
 .../cloud/asset/v1/AssetServiceSettings.java  |   2 +
 .../google/cloud/asset/v1/package-info.java   |   2 +
 .../v1/stub/AssetServiceStubSettings.java     |   2 +
 .../data/v2/BaseBigtableDataClient.java       |  48 ++++
 .../data/v2/BaseBigtableDataSettings.java     |   2 +
 .../cloud/bigtable/data/v2/package-info.java  |   2 +
 .../data/v2/stub/BigtableStubSettings.java    |   2 +
 .../compute/v1small/AddressesClient.java      |  38 ++++
 .../compute/v1small/AddressesSettings.java    |   2 +
 .../v1small/RegionOperationsClient.java       |  18 ++
 .../v1small/RegionOperationsSettings.java     |   2 +
 .../cloud/compute/v1small/package-info.java   |   4 +
 .../v1small/stub/AddressesStubSettings.java   |   2 +
 .../stub/RegionOperationsStubSettings.java    |   2 +
 .../credentials/v1/IamCredentialsClient.java  |  38 ++++
 .../v1/IamCredentialsSettings.java            |   2 +
 .../iam/credentials/v1/package-info.java      |   2 +
 .../v1/stub/IamCredentialsStubSettings.java   |   2 +
 .../com/google/iam/v1/IAMPolicyClient.java    |  18 ++
 .../com/google/iam/v1/IAMPolicySettings.java  |   2 +
 .../iam/com/google/iam/v1/package-info.java   |   2 +
 .../iam/v1/stub/IAMPolicyStubSettings.java    |   2 +
 .../kms/v1/KeyManagementServiceClient.java    | 208 +++++++++++++++++
 .../kms/v1/KeyManagementServiceSettings.java  |   2 +
 .../com/google/cloud/kms/v1/package-info.java |   2 +
 .../KeyManagementServiceStubSettings.java     |   2 +
 .../library/v1/LibraryServiceClient.java      |  98 ++++++++
 .../library/v1/LibraryServiceSettings.java    |   2 +
 .../example/library/v1/package-info.java      |   2 +
 .../v1/stub/LibraryServiceStubSettings.java   |   2 +
 .../google/cloud/logging/v2/ConfigClient.java | 186 +++++++++++++++
 .../cloud/logging/v2/ConfigSettings.java      |   2 +
 .../cloud/logging/v2/LoggingClient.java       |  54 +++++
 .../cloud/logging/v2/LoggingSettings.java     |   2 +
 .../cloud/logging/v2/MetricsClient.java       |  48 ++++
 .../cloud/logging/v2/MetricsSettings.java     |   2 +
 .../google/cloud/logging/v2/package-info.java |   6 +
 .../v2/stub/ConfigServiceV2StubSettings.java  |   2 +
 .../v2/stub/LoggingServiceV2StubSettings.java |   2 +
 .../v2/stub/MetricsServiceV2StubSettings.java |   2 +
 .../cloud/pubsub/v1/SchemaServiceClient.java  |  64 ++++++
 .../pubsub/v1/SchemaServiceSettings.java      |   2 +
 .../pubsub/v1/SubscriptionAdminClient.java    | 144 ++++++++++++
 .../pubsub/v1/SubscriptionAdminSettings.java  |   2 +
 .../cloud/pubsub/v1/TopicAdminClient.java     |  88 +++++++
 .../cloud/pubsub/v1/TopicAdminSettings.java   |   2 +
 .../google/cloud/pubsub/v1/package-info.java  |   6 +
 .../pubsub/v1/stub/PublisherStubSettings.java |   2 +
 .../v1/stub/SchemaServiceStubSettings.java    |   2 +
 .../v1/stub/SubscriberStubSettings.java       |   2 +
 .../cloud/redis/v1beta1/CloudRedisClient.java | 106 +++++++++
 .../redis/v1beta1/CloudRedisSettings.java     |   2 +
 .../cloud/redis/v1beta1/package-info.java     |   2 +
 .../v1beta1/stub/CloudRedisStubSettings.java  |   2 +
 .../com/google/storage/v2/StorageClient.java  | 214 ++++++++++++++++++
 .../google/storage/v2/StorageSettings.java    |   2 +
 .../com/google/storage/v2/package-info.java   |   2 +
 .../storage/v2/stub/StorageStubSettings.java  |   2 +
 59 files changed, 1556 insertions(+)

diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java b/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java
index af1cc6dd1f..583a82cc7e 100644
--- a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java
+++ b/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java
@@ -47,6 +47,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
  *   BatchGetAssetsHistoryRequest request =
  *       BatchGetAssetsHistoryRequest.newBuilder()
@@ -89,6 +91,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AssetServiceSettings assetServiceSettings =
  *     AssetServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -99,6 +103,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AssetServiceSettings assetServiceSettings =
  *     AssetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings);
@@ -183,6 +189,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ExportAssetsRequest request =
    *       ExportAssetsRequest.newBuilder()
@@ -219,6 +227,8 @@ public final OperationFuture exportAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ExportAssetsRequest request =
    *       ExportAssetsRequest.newBuilder()
@@ -255,6 +265,8 @@ public final OperationFuture exportAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ExportAssetsRequest request =
    *       ExportAssetsRequest.newBuilder()
@@ -282,6 +294,8 @@ public final UnaryCallable exportAssetsCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ResourceName parent = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
    *   for (Asset element : assetServiceClient.listAssets(parent).iterateAll()) {
@@ -309,6 +323,8 @@ public final ListAssetsPagedResponse listAssets(ResourceName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String parent = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
    *   for (Asset element : assetServiceClient.listAssets(parent).iterateAll()) {
@@ -335,6 +351,8 @@ public final ListAssetsPagedResponse listAssets(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListAssetsRequest request =
    *       ListAssetsRequest.newBuilder()
@@ -366,6 +384,8 @@ public final ListAssetsPagedResponse listAssets(ListAssetsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListAssetsRequest request =
    *       ListAssetsRequest.newBuilder()
@@ -396,6 +416,8 @@ public final UnaryCallable listAsset
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListAssetsRequest request =
    *       ListAssetsRequest.newBuilder()
@@ -437,6 +459,8 @@ public final UnaryCallable listAssetsCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   BatchGetAssetsHistoryRequest request =
    *       BatchGetAssetsHistoryRequest.newBuilder()
@@ -469,6 +493,8 @@ public final BatchGetAssetsHistoryResponse batchGetAssetsHistory(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   BatchGetAssetsHistoryRequest request =
    *       BatchGetAssetsHistoryRequest.newBuilder()
@@ -497,6 +523,8 @@ public final BatchGetAssetsHistoryResponse batchGetAssetsHistory(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String parent = "parent-995424086";
    *   Feed response = assetServiceClient.createFeed(parent);
@@ -521,6 +549,8 @@ public final Feed createFeed(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   CreateFeedRequest request =
    *       CreateFeedRequest.newBuilder()
@@ -546,6 +576,8 @@ public final Feed createFeed(CreateFeedRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   CreateFeedRequest request =
    *       CreateFeedRequest.newBuilder()
@@ -570,6 +602,8 @@ public final UnaryCallable createFeedCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
    *   Feed response = assetServiceClient.getFeed(name);
@@ -594,6 +628,8 @@ public final Feed getFeed(FeedName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
    *   Feed response = assetServiceClient.getFeed(name);
@@ -617,6 +653,8 @@ public final Feed getFeed(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   GetFeedRequest request =
    *       GetFeedRequest.newBuilder()
@@ -640,6 +678,8 @@ public final Feed getFeed(GetFeedRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   GetFeedRequest request =
    *       GetFeedRequest.newBuilder()
@@ -662,6 +702,8 @@ public final UnaryCallable getFeedCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String parent = "parent-995424086";
    *   ListFeedsResponse response = assetServiceClient.listFeeds(parent);
@@ -685,6 +727,8 @@ public final ListFeedsResponse listFeeds(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListFeedsRequest request =
    *       ListFeedsRequest.newBuilder().setParent("parent-995424086").build();
@@ -706,6 +750,8 @@ public final ListFeedsResponse listFeeds(ListFeedsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListFeedsRequest request =
    *       ListFeedsRequest.newBuilder().setParent("parent-995424086").build();
@@ -727,6 +773,8 @@ public final UnaryCallable listFeedsCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   Feed feed = Feed.newBuilder().build();
    *   Feed response = assetServiceClient.updateFeed(feed);
@@ -750,6 +798,8 @@ public final Feed updateFeed(Feed feed) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   UpdateFeedRequest request =
    *       UpdateFeedRequest.newBuilder()
@@ -774,6 +824,8 @@ public final Feed updateFeed(UpdateFeedRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   UpdateFeedRequest request =
    *       UpdateFeedRequest.newBuilder()
@@ -797,6 +849,8 @@ public final UnaryCallable updateFeedCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
    *   assetServiceClient.deleteFeed(name);
@@ -821,6 +875,8 @@ public final void deleteFeed(FeedName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
    *   assetServiceClient.deleteFeed(name);
@@ -844,6 +900,8 @@ public final void deleteFeed(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   DeleteFeedRequest request =
    *       DeleteFeedRequest.newBuilder()
@@ -867,6 +925,8 @@ public final void deleteFeed(DeleteFeedRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   DeleteFeedRequest request =
    *       DeleteFeedRequest.newBuilder()
@@ -891,6 +951,8 @@ public final UnaryCallable deleteFeedCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String scope = "scope109264468";
    *   String query = "query107944136";
@@ -985,6 +1047,8 @@ public final SearchAllResourcesPagedResponse searchAllResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllResourcesRequest request =
    *       SearchAllResourcesRequest.newBuilder()
@@ -1020,6 +1084,8 @@ public final SearchAllResourcesPagedResponse searchAllResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllResourcesRequest request =
    *       SearchAllResourcesRequest.newBuilder()
@@ -1054,6 +1120,8 @@ public final SearchAllResourcesPagedResponse searchAllResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllResourcesRequest request =
    *       SearchAllResourcesRequest.newBuilder()
@@ -1095,6 +1163,8 @@ public final SearchAllResourcesPagedResponse searchAllResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String scope = "scope109264468";
    *   String query = "query107944136";
@@ -1171,6 +1241,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllIamPoliciesRequest request =
    *       SearchAllIamPoliciesRequest.newBuilder()
@@ -1205,6 +1277,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllIamPoliciesRequest request =
    *       SearchAllIamPoliciesRequest.newBuilder()
@@ -1238,6 +1312,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllIamPoliciesRequest request =
    *       SearchAllIamPoliciesRequest.newBuilder()
@@ -1276,6 +1352,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyRequest request =
    *       AnalyzeIamPolicyRequest.newBuilder()
@@ -1300,6 +1378,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyRequest request =
    *       AnalyzeIamPolicyRequest.newBuilder()
@@ -1332,6 +1412,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyLongrunningRequest request =
    *       AnalyzeIamPolicyLongrunningRequest.newBuilder()
@@ -1366,6 +1448,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyLongrunningRequest request =
    *       AnalyzeIamPolicyLongrunningRequest.newBuilder()
@@ -1402,6 +1486,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyLongrunningRequest request =
    *       AnalyzeIamPolicyLongrunningRequest.newBuilder()
@@ -1430,6 +1516,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeMoveRequest request =
    *       AnalyzeMoveRequest.newBuilder()
@@ -1457,6 +1545,8 @@ public final AnalyzeMoveResponse analyzeMove(AnalyzeMoveRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeMoveRequest request =
    *       AnalyzeMoveRequest.newBuilder()
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java b/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java
index 8bca7d5631..1767c7c6e4 100644
--- a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java
+++ b/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java
@@ -58,6 +58,8 @@
  * 

For example, to set the total timeout of batchGetAssetsHistory to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder();
  * assetServiceSettingsBuilder
  *     .batchGetAssetsHistorySettings()
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java b/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java
index d07bbc1fb7..5628f5a853 100644
--- a/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java
+++ b/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java
@@ -24,6 +24,8 @@
  * 

Sample for AssetServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
  *   BatchGetAssetsHistoryRequest request =
  *       BatchGetAssetsHistoryRequest.newBuilder()
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
index 30012d98c6..053d0259fe 100644
--- a/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
+++ b/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
@@ -102,6 +102,8 @@
  * 

For example, to set the total timeout of batchGetAssetsHistory to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AssetServiceStubSettings.Builder assetServiceSettingsBuilder =
  *     AssetServiceStubSettings.newBuilder();
  * assetServiceSettingsBuilder
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
index 19015f5d7d..a52daa6609 100644
--- a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
+++ b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
@@ -52,6 +52,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
  *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
  *   ByteString rowKey = ByteString.EMPTY;
@@ -90,6 +92,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BaseBigtableDataSettings baseBigtableDataSettings =
  *     BaseBigtableDataSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -101,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BaseBigtableDataSettings baseBigtableDataSettings =
  *     BaseBigtableDataSettings.newBuilder().setEndpoint(myEndpoint).build();
  * BaseBigtableDataClient baseBigtableDataClient =
@@ -172,6 +178,8 @@ public BigtableStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   ReadRowsRequest request =
    *       ReadRowsRequest.newBuilder()
@@ -202,6 +210,8 @@ public final ServerStreamingCallable readRows
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   SampleRowKeysRequest request =
    *       SampleRowKeysRequest.newBuilder()
@@ -229,6 +239,8 @@ public final ServerStreamingCallable readRows
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -265,6 +277,8 @@ public final MutateRowResponse mutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -301,6 +315,8 @@ public final MutateRowResponse mutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -342,6 +358,8 @@ public final MutateRowResponse mutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -383,6 +401,8 @@ public final MutateRowResponse mutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   MutateRowRequest request =
    *       MutateRowRequest.newBuilder()
@@ -410,6 +430,8 @@ public final MutateRowResponse mutateRow(MutateRowRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   MutateRowRequest request =
    *       MutateRowRequest.newBuilder()
@@ -437,6 +459,8 @@ public final UnaryCallable mutateRowCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   MutateRowsRequest request =
    *       MutateRowsRequest.newBuilder()
@@ -463,6 +487,8 @@ public final ServerStreamingCallable muta
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -516,6 +542,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -569,6 +597,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -627,6 +657,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -685,6 +717,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   CheckAndMutateRowRequest request =
    *       CheckAndMutateRowRequest.newBuilder()
@@ -713,6 +747,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(CheckAndMutateRowReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   CheckAndMutateRowRequest request =
    *       CheckAndMutateRowRequest.newBuilder()
@@ -745,6 +781,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(CheckAndMutateRowReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -785,6 +823,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -825,6 +865,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -872,6 +914,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -916,6 +960,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   ReadModifyWriteRowRequest request =
    *       ReadModifyWriteRowRequest.newBuilder()
@@ -945,6 +991,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(ReadModifyWriteRowReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   ReadModifyWriteRowRequest request =
    *       ReadModifyWriteRowRequest.newBuilder()
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
index ef5d044ad5..bbdb0e57d1 100644
--- a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
+++ b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
@@ -63,6 +63,8 @@
  * 

For example, to set the total timeout of mutateRow to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BaseBigtableDataSettings.Builder baseBigtableDataSettingsBuilder =
  *     BaseBigtableDataSettings.newBuilder();
  * baseBigtableDataSettingsBuilder
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java
index d48c6dcfa7..d21ffa637e 100644
--- a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java
+++ b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java
@@ -24,6 +24,8 @@
  * 

Sample for BaseBigtableDataClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
  *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
  *   ByteString rowKey = ByteString.EMPTY;
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
index ad5bdb5f0e..7fff274fc8 100644
--- a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
+++ b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
@@ -71,6 +71,8 @@
  * 

For example, to set the total timeout of mutateRow to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BigtableStubSettings.Builder baseBigtableDataSettingsBuilder =
  *     BigtableStubSettings.newBuilder();
  * baseBigtableDataSettingsBuilder
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java
index c4c9c89a1b..98defd7a9c 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java
@@ -46,6 +46,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AddressesClient addressesClient = AddressesClient.create()) {
  *   String project = "project-309310695";
  *   for (Map.Entry element :
@@ -84,6 +86,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AddressesSettings addressesSettings =
  *     AddressesSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +98,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AddressesSettings addressesSettings =
  *     AddressesSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AddressesClient addressesClient = AddressesClient.create(addressesSettings);
@@ -159,6 +165,8 @@ public AddressesStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   String project = "project-309310695";
    *   for (Map.Entry element :
@@ -184,6 +192,8 @@ public final AggregatedListPagedResponse aggregatedList(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   AggregatedListAddressesRequest request =
    *       AggregatedListAddressesRequest.newBuilder()
@@ -215,6 +225,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   AggregatedListAddressesRequest request =
    *       AggregatedListAddressesRequest.newBuilder()
@@ -246,6 +258,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   AggregatedListAddressesRequest request =
    *       AggregatedListAddressesRequest.newBuilder()
@@ -283,6 +297,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -314,6 +330,8 @@ public final OperationFuture deleteAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   DeleteAddressRequest request =
    *       DeleteAddressRequest.newBuilder()
@@ -342,6 +360,8 @@ public final OperationFuture deleteAsync(DeleteAddressRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   DeleteAddressRequest request =
    *       DeleteAddressRequest.newBuilder()
@@ -369,6 +389,8 @@ public final OperationFuture deleteAsync(DeleteAddressRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   DeleteAddressRequest request =
    *       DeleteAddressRequest.newBuilder()
@@ -394,6 +416,8 @@ public final UnaryCallable deleteCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -425,6 +449,8 @@ public final OperationFuture insertAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   InsertAddressRequest request =
    *       InsertAddressRequest.newBuilder()
@@ -453,6 +479,8 @@ public final OperationFuture insertAsync(InsertAddressRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   InsertAddressRequest request =
    *       InsertAddressRequest.newBuilder()
@@ -480,6 +508,8 @@ public final OperationFuture insertAsync(InsertAddressRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   InsertAddressRequest request =
    *       InsertAddressRequest.newBuilder()
@@ -505,6 +535,8 @@ public final UnaryCallable insertCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -543,6 +575,8 @@ public final ListPagedResponse list(String project, String region, String orderB
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   ListAddressesRequest request =
    *       ListAddressesRequest.newBuilder()
@@ -573,6 +607,8 @@ public final ListPagedResponse list(ListAddressesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   ListAddressesRequest request =
    *       ListAddressesRequest.newBuilder()
@@ -602,6 +638,8 @@ public final UnaryCallable listPagedCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   ListAddressesRequest request =
    *       ListAddressesRequest.newBuilder()
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java
index 083a8a3e84..5eb262f3a9 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java
@@ -55,6 +55,8 @@
  * 

For example, to set the total timeout of aggregatedList to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AddressesSettings.Builder addressesSettingsBuilder = AddressesSettings.newBuilder();
  * addressesSettingsBuilder
  *     .aggregatedListSettings()
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java
index d23ba9bf8e..9c1a1697e1 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java
@@ -33,6 +33,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
  *   String project = "project-309310695";
  *   String region = "region-934795532";
@@ -71,6 +73,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * RegionOperationsSettings regionOperationsSettings =
  *     RegionOperationsSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -82,6 +86,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * RegionOperationsSettings regionOperationsSettings =
  *     RegionOperationsSettings.newBuilder().setEndpoint(myEndpoint).build();
  * RegionOperationsClient regionOperationsClient =
@@ -150,6 +156,8 @@ public RegionOperationsStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -180,6 +188,8 @@ public final Operation get(String project, String region, String operation) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   GetRegionOperationRequest request =
    *       GetRegionOperationRequest.newBuilder()
@@ -205,6 +215,8 @@ public final Operation get(GetRegionOperationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   GetRegionOperationRequest request =
    *       GetRegionOperationRequest.newBuilder()
@@ -238,6 +250,8 @@ public final UnaryCallable getCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -277,6 +291,8 @@ public final Operation wait(String project, String region, String operation) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   WaitRegionOperationRequest request =
    *       WaitRegionOperationRequest.newBuilder()
@@ -311,6 +327,8 @@ public final Operation wait(WaitRegionOperationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   WaitRegionOperationRequest request =
    *       WaitRegionOperationRequest.newBuilder()
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java
index f99bd391e0..5a72d94240 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java
@@ -50,6 +50,8 @@
  * 

For example, to set the total timeout of get to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * RegionOperationsSettings.Builder regionOperationsSettingsBuilder =
  *     RegionOperationsSettings.newBuilder();
  * regionOperationsSettingsBuilder
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java
index 18856cef05..602f1ed137 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java
@@ -26,6 +26,8 @@
  * 

Sample for AddressesClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AddressesClient addressesClient = AddressesClient.create()) {
  *   String project = "project-309310695";
  *   for (Map.Entry element :
@@ -42,6 +44,8 @@
  * 

Sample for RegionOperationsClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
  *   String project = "project-309310695";
  *   String region = "region-934795532";
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java
index 2b83fe83c5..2179785367 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java
@@ -83,6 +83,8 @@
  * 

For example, to set the total timeout of aggregatedList to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AddressesStubSettings.Builder addressesSettingsBuilder = AddressesStubSettings.newBuilder();
  * addressesSettingsBuilder
  *     .aggregatedListSettings()
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java
index dc73b758dd..c17366bf3f 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java
@@ -61,6 +61,8 @@
  * 

For example, to set the total timeout of get to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * RegionOperationsStubSettings.Builder regionOperationsSettingsBuilder =
  *     RegionOperationsStubSettings.newBuilder();
  * regionOperationsSettingsBuilder
diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java
index 86294e86c1..a8c6eb41fd 100644
--- a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java
+++ b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java
@@ -43,6 +43,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
  *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
  *   List delegates = new ArrayList<>();
@@ -82,6 +84,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IamCredentialsSettings iamCredentialsSettings =
  *     IamCredentialsSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,6 +96,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IamCredentialsSettings iamCredentialsSettings =
  *     IamCredentialsSettings.newBuilder().setEndpoint(myEndpoint).build();
  * IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings);
@@ -159,6 +165,8 @@ public IamCredentialsStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    *   List delegates = new ArrayList<>();
@@ -208,6 +216,8 @@ public final GenerateAccessTokenResponse generateAccessToken(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    *   List delegates = new ArrayList<>();
@@ -257,6 +267,8 @@ public final GenerateAccessTokenResponse generateAccessToken(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   GenerateAccessTokenRequest request =
    *       GenerateAccessTokenRequest.newBuilder()
@@ -283,6 +295,8 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   GenerateAccessTokenRequest request =
    *       GenerateAccessTokenRequest.newBuilder()
@@ -310,6 +324,8 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    *   List delegates = new ArrayList<>();
@@ -357,6 +373,8 @@ public final GenerateIdTokenResponse generateIdToken(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    *   List delegates = new ArrayList<>();
@@ -404,6 +422,8 @@ public final GenerateIdTokenResponse generateIdToken(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   GenerateIdTokenRequest request =
    *       GenerateIdTokenRequest.newBuilder()
@@ -430,6 +450,8 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   GenerateIdTokenRequest request =
    *       GenerateIdTokenRequest.newBuilder()
@@ -457,6 +479,8 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    *   List delegates = new ArrayList<>();
@@ -498,6 +522,8 @@ public final SignBlobResponse signBlob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    *   List delegates = new ArrayList<>();
@@ -538,6 +564,8 @@ public final SignBlobResponse signBlob(String name, List delegates, Byte
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   SignBlobRequest request =
    *       SignBlobRequest.newBuilder()
@@ -563,6 +591,8 @@ public final SignBlobResponse signBlob(SignBlobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   SignBlobRequest request =
    *       SignBlobRequest.newBuilder()
@@ -588,6 +618,8 @@ public final UnaryCallable signBlobCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    *   List delegates = new ArrayList<>();
@@ -629,6 +661,8 @@ public final SignJwtResponse signJwt(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    *   List delegates = new ArrayList<>();
@@ -669,6 +703,8 @@ public final SignJwtResponse signJwt(String name, List delegates, String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   SignJwtRequest request =
    *       SignJwtRequest.newBuilder()
@@ -694,6 +730,8 @@ public final SignJwtResponse signJwt(SignJwtRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   SignJwtRequest request =
    *       SignJwtRequest.newBuilder()
diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java
index 7395ce677d..f093421453 100644
--- a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java
+++ b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java
@@ -51,6 +51,8 @@
  * 

For example, to set the total timeout of generateAccessToken to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IamCredentialsSettings.Builder iamCredentialsSettingsBuilder =
  *     IamCredentialsSettings.newBuilder();
  * iamCredentialsSettingsBuilder
diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java
index f65f5f2766..1b47dad2d9 100644
--- a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java
+++ b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java
@@ -31,6 +31,8 @@
  * 

Sample for IamCredentialsClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
  *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
  *   List delegates = new ArrayList<>();
diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java
index 26792da200..229f22568a 100644
--- a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java
+++ b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java
@@ -67,6 +67,8 @@
  * 

For example, to set the total timeout of generateAccessToken to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IamCredentialsStubSettings.Builder iamCredentialsSettingsBuilder =
  *     IamCredentialsStubSettings.newBuilder();
  * iamCredentialsSettingsBuilder
diff --git a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java b/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java
index 5580eab1e2..dd061fc89e 100644
--- a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java
+++ b/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java
@@ -54,6 +54,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
  *   SetIamPolicyRequest request =
  *       SetIamPolicyRequest.newBuilder()
@@ -93,6 +95,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IAMPolicySettings iAMPolicySettings =
  *     IAMPolicySettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -103,6 +107,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IAMPolicySettings iAMPolicySettings =
  *     IAMPolicySettings.newBuilder().setEndpoint(myEndpoint).build();
  * IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings);
@@ -168,6 +174,8 @@ public IAMPolicyStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -192,6 +200,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -216,6 +226,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -241,6 +253,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -269,6 +283,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -298,6 +314,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
diff --git a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java b/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java
index 26eb385562..dd9c3d5502 100644
--- a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java
+++ b/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java
@@ -50,6 +50,8 @@
  * 

For example, to set the total timeout of setIamPolicy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IAMPolicySettings.Builder iAMPolicySettingsBuilder = IAMPolicySettings.newBuilder();
  * iAMPolicySettingsBuilder
  *     .setIamPolicySettings()
diff --git a/test/integration/goldens/iam/com/google/iam/v1/package-info.java b/test/integration/goldens/iam/com/google/iam/v1/package-info.java
index 8f87748c4b..98e77ac164 100644
--- a/test/integration/goldens/iam/com/google/iam/v1/package-info.java
+++ b/test/integration/goldens/iam/com/google/iam/v1/package-info.java
@@ -45,6 +45,8 @@
  * 

Sample for IAMPolicyClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
  *   SetIamPolicyRequest request =
  *       SetIamPolicyRequest.newBuilder()
diff --git a/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java b/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java
index 03c10fcb73..f739c03c5d 100644
--- a/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java
+++ b/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java
@@ -63,6 +63,8 @@
  * 

For example, to set the total timeout of setIamPolicy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IAMPolicyStubSettings.Builder iAMPolicySettingsBuilder = IAMPolicyStubSettings.newBuilder();
  * iAMPolicySettingsBuilder
  *     .setIamPolicySettings()
diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java
index e4d0dcc548..836baf5f5f 100644
--- a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java
+++ b/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java
@@ -65,6 +65,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (KeyManagementServiceClient keyManagementServiceClient =
  *     KeyManagementServiceClient.create()) {
  *   KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -102,6 +104,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * KeyManagementServiceSettings keyManagementServiceSettings =
  *     KeyManagementServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -113,6 +117,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * KeyManagementServiceSettings keyManagementServiceSettings =
  *     KeyManagementServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * KeyManagementServiceClient keyManagementServiceClient =
@@ -181,6 +187,8 @@ public KeyManagementServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -209,6 +217,8 @@ public final ListKeyRingsPagedResponse listKeyRings(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -234,6 +244,8 @@ public final ListKeyRingsPagedResponse listKeyRings(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListKeyRingsRequest request =
@@ -264,6 +276,8 @@ public final ListKeyRingsPagedResponse listKeyRings(ListKeyRingsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListKeyRingsRequest request =
@@ -295,6 +309,8 @@ public final ListKeyRingsPagedResponse listKeyRings(ListKeyRingsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListKeyRingsRequest request =
@@ -332,6 +348,8 @@ public final UnaryCallable listKeyRin
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -360,6 +378,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(KeyRingName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -385,6 +405,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeysRequest request =
@@ -415,6 +437,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeysRequest request =
@@ -446,6 +470,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeysRequest request =
@@ -484,6 +510,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName parent =
@@ -514,6 +542,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(CryptoKeyN
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent =
@@ -542,6 +572,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(String par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeyVersionsRequest request =
@@ -576,6 +608,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeyVersionsRequest request =
@@ -609,6 +643,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeyVersionsRequest request =
@@ -649,6 +685,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -677,6 +715,8 @@ public final ListImportJobsPagedResponse listImportJobs(KeyRingName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -702,6 +742,8 @@ public final ListImportJobsPagedResponse listImportJobs(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListImportJobsRequest request =
@@ -732,6 +774,8 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListImportJobsRequest request =
@@ -763,6 +807,8 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListImportJobsRequest request =
@@ -801,6 +847,8 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -825,6 +873,8 @@ public final KeyRing getKeyRing(KeyRingName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -848,6 +898,8 @@ public final KeyRing getKeyRing(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetKeyRingRequest request =
@@ -872,6 +924,8 @@ public final KeyRing getKeyRing(GetKeyRingRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetKeyRingRequest request =
@@ -898,6 +952,8 @@ public final UnaryCallable getKeyRingCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName name =
@@ -925,6 +981,8 @@ public final CryptoKey getCryptoKey(CryptoKeyName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -951,6 +1009,8 @@ public final CryptoKey getCryptoKey(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetCryptoKeyRequest request =
@@ -979,6 +1039,8 @@ public final CryptoKey getCryptoKey(GetCryptoKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetCryptoKeyRequest request =
@@ -1005,6 +1067,8 @@ public final UnaryCallable getCryptoKeyCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -1033,6 +1097,8 @@ public final CryptoKeyVersion getCryptoKeyVersion(CryptoKeyVersionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -1060,6 +1126,8 @@ public final CryptoKeyVersion getCryptoKeyVersion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetCryptoKeyVersionRequest request =
@@ -1091,6 +1159,8 @@ public final CryptoKeyVersion getCryptoKeyVersion(GetCryptoKeyVersionRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetCryptoKeyVersionRequest request =
@@ -1126,6 +1196,8 @@ public final CryptoKeyVersion getCryptoKeyVersion(GetCryptoKeyVersionRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -1155,6 +1227,8 @@ public final PublicKey getPublicKey(CryptoKeyVersionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -1184,6 +1258,8 @@ public final PublicKey getPublicKey(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetPublicKeyRequest request =
@@ -1218,6 +1294,8 @@ public final PublicKey getPublicKey(GetPublicKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetPublicKeyRequest request =
@@ -1249,6 +1327,8 @@ public final UnaryCallable getPublicKeyCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ImportJobName name =
@@ -1274,6 +1354,8 @@ public final ImportJob getImportJob(ImportJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -1298,6 +1380,8 @@ public final ImportJob getImportJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetImportJobRequest request =
@@ -1324,6 +1408,8 @@ public final ImportJob getImportJob(GetImportJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetImportJobRequest request =
@@ -1350,6 +1436,8 @@ public final UnaryCallable getImportJobCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -1383,6 +1471,8 @@ public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRin
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -1416,6 +1506,8 @@ public final KeyRing createKeyRing(String parent, String keyRingId, KeyRing keyR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateKeyRingRequest request =
@@ -1442,6 +1534,8 @@ public final KeyRing createKeyRing(CreateKeyRingRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateKeyRingRequest request =
@@ -1473,6 +1567,8 @@ public final UnaryCallable createKeyRingCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -1514,6 +1610,8 @@ public final CryptoKey createCryptoKey(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -1554,6 +1652,8 @@ public final CryptoKey createCryptoKey(String parent, String cryptoKeyId, Crypto
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateCryptoKeyRequest request =
@@ -1586,6 +1686,8 @@ public final CryptoKey createCryptoKey(CreateCryptoKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateCryptoKeyRequest request =
@@ -1618,6 +1720,8 @@ public final UnaryCallable createCryptoKeyCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName parent =
@@ -1657,6 +1761,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent =
@@ -1696,6 +1802,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateCryptoKeyVersionRequest request =
@@ -1728,6 +1836,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(CreateCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateCryptoKeyVersionRequest request =
@@ -1761,6 +1871,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(CreateCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ImportCryptoKeyVersionRequest request =
@@ -1793,6 +1905,8 @@ public final CryptoKeyVersion importCryptoKeyVersion(ImportCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ImportCryptoKeyVersionRequest request =
@@ -1824,6 +1938,8 @@ public final CryptoKeyVersion importCryptoKeyVersion(ImportCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -1864,6 +1980,8 @@ public final ImportJob createImportJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -1903,6 +2021,8 @@ public final ImportJob createImportJob(String parent, String importJobId, Import
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateImportJobRequest request =
@@ -1932,6 +2052,8 @@ public final ImportJob createImportJob(CreateImportJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateImportJobRequest request =
@@ -1958,6 +2080,8 @@ public final UnaryCallable createImportJobCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKey cryptoKey = CryptoKey.newBuilder().build();
@@ -1986,6 +2110,8 @@ public final CryptoKey updateCryptoKey(CryptoKey cryptoKey, FieldMask updateMask
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyRequest request =
@@ -2011,6 +2137,8 @@ public final CryptoKey updateCryptoKey(UpdateCryptoKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyRequest request =
@@ -2044,6 +2172,8 @@ public final UnaryCallable updateCryptoKeyCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build();
@@ -2083,6 +2213,8 @@ public final CryptoKeyVersion updateCryptoKeyVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyVersionRequest request =
@@ -2116,6 +2248,8 @@ public final CryptoKeyVersion updateCryptoKeyVersion(UpdateCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyVersionRequest request =
@@ -2145,6 +2279,8 @@ public final CryptoKeyVersion updateCryptoKeyVersion(UpdateCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ResourceName name = CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -2185,6 +2321,8 @@ public final EncryptResponse encrypt(ResourceName name, ByteString plaintext) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2223,6 +2361,8 @@ public final EncryptResponse encrypt(String name, ByteString plaintext) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   EncryptRequest request =
@@ -2256,6 +2396,8 @@ public final EncryptResponse encrypt(EncryptRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   EncryptRequest request =
@@ -2289,6 +2431,8 @@ public final UnaryCallable encryptCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName name =
@@ -2323,6 +2467,8 @@ public final DecryptResponse decrypt(CryptoKeyName name, ByteString ciphertext)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2354,6 +2500,8 @@ public final DecryptResponse decrypt(String name, ByteString ciphertext) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   DecryptRequest request =
@@ -2387,6 +2535,8 @@ public final DecryptResponse decrypt(DecryptRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   DecryptRequest request =
@@ -2420,6 +2570,8 @@ public final UnaryCallable decryptCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -2456,6 +2608,8 @@ public final AsymmetricSignResponse asymmetricSign(CryptoKeyVersionName name, Di
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2490,6 +2644,8 @@ public final AsymmetricSignResponse asymmetricSign(String name, Digest digest) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   AsymmetricSignRequest request =
@@ -2526,6 +2682,8 @@ public final AsymmetricSignResponse asymmetricSign(AsymmetricSignRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   AsymmetricSignRequest request =
@@ -2563,6 +2721,8 @@ public final AsymmetricSignResponse asymmetricSign(AsymmetricSignRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -2600,6 +2760,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2634,6 +2796,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(String name, ByteString
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   AsymmetricDecryptRequest request =
@@ -2670,6 +2834,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(AsymmetricDecryptReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   AsymmetricDecryptRequest request =
@@ -2707,6 +2873,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(AsymmetricDecryptReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName name =
@@ -2743,6 +2911,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2778,6 +2948,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(String name, String cryptoK
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyPrimaryVersionRequest request =
@@ -2809,6 +2981,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyPrimaryVersionRequest request =
@@ -2850,6 +3024,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -2891,6 +3067,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(CryptoKeyVersionName name)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2931,6 +3109,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   DestroyCryptoKeyVersionRequest request =
@@ -2975,6 +3155,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(DestroyCryptoKeyVersionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   DestroyCryptoKeyVersionRequest request =
@@ -3014,6 +3196,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(DestroyCryptoKeyVersionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -3049,6 +3233,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(CryptoKeyVersionName name)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -3083,6 +3269,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   RestoreCryptoKeyVersionRequest request =
@@ -3121,6 +3309,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(RestoreCryptoKeyVersionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   RestoreCryptoKeyVersionRequest request =
@@ -3154,6 +3344,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(RestoreCryptoKeyVersionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetIamPolicyRequest request =
@@ -3182,6 +3374,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetIamPolicyRequest request =
@@ -3209,6 +3403,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -3238,6 +3434,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -3268,6 +3466,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -3304,6 +3504,8 @@ public final UnaryCallable listLoca
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
@@ -3325,6 +3527,8 @@ public final Location getLocation(GetLocationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
@@ -3347,6 +3551,8 @@ public final UnaryCallable getLocationCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   TestIamPermissionsRequest request =
@@ -3375,6 +3581,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   TestIamPermissionsRequest request =
diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java
index fb53484f12..45eac6578f 100644
--- a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java
+++ b/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java
@@ -65,6 +65,8 @@
  * 

For example, to set the total timeout of getKeyRing to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder =
  *     KeyManagementServiceSettings.newBuilder();
  * keyManagementServiceSettingsBuilder
diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java b/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java
index 387836b476..76c562b596 100644
--- a/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java
+++ b/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java
@@ -39,6 +39,8 @@
  * 

Sample for KeyManagementServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (KeyManagementServiceClient keyManagementServiceClient =
  *     KeyManagementServiceClient.create()) {
  *   KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java
index e3faa10060..5458a07e7d 100644
--- a/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java
+++ b/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java
@@ -115,6 +115,8 @@
  * 

For example, to set the total timeout of getKeyRing to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * KeyManagementServiceStubSettings.Builder keyManagementServiceSettingsBuilder =
  *     KeyManagementServiceStubSettings.newBuilder();
  * keyManagementServiceSettingsBuilder
diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java b/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java
index 3a758ad3f9..0e29722efb 100644
--- a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java
+++ b/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java
@@ -67,6 +67,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
  *   Shelf shelf = Shelf.newBuilder().build();
  *   Shelf response = libraryServiceClient.createShelf(shelf);
@@ -102,6 +104,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LibraryServiceSettings libraryServiceSettings =
  *     LibraryServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -112,6 +116,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LibraryServiceSettings libraryServiceSettings =
  *     LibraryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings);
@@ -179,6 +185,8 @@ public LibraryServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   Shelf shelf = Shelf.newBuilder().build();
    *   Shelf response = libraryServiceClient.createShelf(shelf);
@@ -200,6 +208,8 @@ public final Shelf createShelf(Shelf shelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   CreateShelfRequest request =
    *       CreateShelfRequest.newBuilder().setShelf(Shelf.newBuilder().build()).build();
@@ -221,6 +231,8 @@ public final Shelf createShelf(CreateShelfRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   CreateShelfRequest request =
    *       CreateShelfRequest.newBuilder().setShelf(Shelf.newBuilder().build()).build();
@@ -241,6 +253,8 @@ public final UnaryCallable createShelfCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName name = ShelfName.of("[SHELF_ID]");
    *   Shelf response = libraryServiceClient.getShelf(name);
@@ -263,6 +277,8 @@ public final Shelf getShelf(ShelfName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = ShelfName.of("[SHELF_ID]").toString();
    *   Shelf response = libraryServiceClient.getShelf(name);
@@ -284,6 +300,8 @@ public final Shelf getShelf(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   GetShelfRequest request =
    *       GetShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build();
@@ -305,6 +323,8 @@ public final Shelf getShelf(GetShelfRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   GetShelfRequest request =
    *       GetShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build();
@@ -326,6 +346,8 @@ public final UnaryCallable getShelfCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListShelvesRequest request =
    *       ListShelvesRequest.newBuilder()
@@ -353,6 +375,8 @@ public final ListShelvesPagedResponse listShelves(ListShelvesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListShelvesRequest request =
    *       ListShelvesRequest.newBuilder()
@@ -380,6 +404,8 @@ public final ListShelvesPagedResponse listShelves(ListShelvesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListShelvesRequest request =
    *       ListShelvesRequest.newBuilder()
@@ -412,6 +438,8 @@ public final UnaryCallable listShelvesC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName name = ShelfName.of("[SHELF_ID]");
    *   libraryServiceClient.deleteShelf(name);
@@ -434,6 +462,8 @@ public final void deleteShelf(ShelfName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = ShelfName.of("[SHELF_ID]").toString();
    *   libraryServiceClient.deleteShelf(name);
@@ -455,6 +485,8 @@ public final void deleteShelf(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   DeleteShelfRequest request =
    *       DeleteShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build();
@@ -476,6 +508,8 @@ public final void deleteShelf(DeleteShelfRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   DeleteShelfRequest request =
    *       DeleteShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build();
@@ -501,6 +535,8 @@ public final UnaryCallable deleteShelfCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName name = ShelfName.of("[SHELF_ID]");
    *   ShelfName otherShelf = ShelfName.of("[SHELF_ID]");
@@ -533,6 +569,8 @@ public final Shelf mergeShelves(ShelfName name, ShelfName otherShelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName name = ShelfName.of("[SHELF_ID]");
    *   String otherShelf = ShelfName.of("[SHELF_ID]").toString();
@@ -565,6 +603,8 @@ public final Shelf mergeShelves(ShelfName name, String otherShelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = ShelfName.of("[SHELF_ID]").toString();
    *   ShelfName otherShelf = ShelfName.of("[SHELF_ID]");
@@ -597,6 +637,8 @@ public final Shelf mergeShelves(String name, ShelfName otherShelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = ShelfName.of("[SHELF_ID]").toString();
    *   String otherShelf = ShelfName.of("[SHELF_ID]").toString();
@@ -626,6 +668,8 @@ public final Shelf mergeShelves(String name, String otherShelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   MergeShelvesRequest request =
    *       MergeShelvesRequest.newBuilder()
@@ -655,6 +699,8 @@ public final Shelf mergeShelves(MergeShelvesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   MergeShelvesRequest request =
    *       MergeShelvesRequest.newBuilder()
@@ -678,6 +724,8 @@ public final UnaryCallable mergeShelvesCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName parent = ShelfName.of("[SHELF_ID]");
    *   Book book = Book.newBuilder().build();
@@ -705,6 +753,8 @@ public final Book createBook(ShelfName parent, Book book) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String parent = ShelfName.of("[SHELF_ID]").toString();
    *   Book book = Book.newBuilder().build();
@@ -729,6 +779,8 @@ public final Book createBook(String parent, Book book) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   CreateBookRequest request =
    *       CreateBookRequest.newBuilder()
@@ -753,6 +805,8 @@ public final Book createBook(CreateBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   CreateBookRequest request =
    *       CreateBookRequest.newBuilder()
@@ -776,6 +830,8 @@ public final UnaryCallable createBookCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   BookName name = BookName.of("[SHELF]", "[BOOK]");
    *   Book response = libraryServiceClient.getBook(name);
@@ -798,6 +854,8 @@ public final Book getBook(BookName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = BookName.of("[SHELF]", "[BOOK]").toString();
    *   Book response = libraryServiceClient.getBook(name);
@@ -819,6 +877,8 @@ public final Book getBook(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   GetBookRequest request =
    *       GetBookRequest.newBuilder().setName(BookName.of("[SHELF]", "[BOOK]").toString()).build();
@@ -840,6 +900,8 @@ public final Book getBook(GetBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   GetBookRequest request =
    *       GetBookRequest.newBuilder().setName(BookName.of("[SHELF]", "[BOOK]").toString()).build();
@@ -862,6 +924,8 @@ public final UnaryCallable getBookCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName parent = ShelfName.of("[SHELF_ID]");
    *   for (Book element : libraryServiceClient.listBooks(parent).iterateAll()) {
@@ -888,6 +952,8 @@ public final ListBooksPagedResponse listBooks(ShelfName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String parent = ShelfName.of("[SHELF_ID]").toString();
    *   for (Book element : libraryServiceClient.listBooks(parent).iterateAll()) {
@@ -913,6 +979,8 @@ public final ListBooksPagedResponse listBooks(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListBooksRequest request =
    *       ListBooksRequest.newBuilder()
@@ -942,6 +1010,8 @@ public final ListBooksPagedResponse listBooks(ListBooksRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListBooksRequest request =
    *       ListBooksRequest.newBuilder()
@@ -970,6 +1040,8 @@ public final UnaryCallable listBooksPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListBooksRequest request =
    *       ListBooksRequest.newBuilder()
@@ -1003,6 +1075,8 @@ public final UnaryCallable listBooksCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   BookName name = BookName.of("[SHELF]", "[BOOK]");
    *   libraryServiceClient.deleteBook(name);
@@ -1025,6 +1099,8 @@ public final void deleteBook(BookName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = BookName.of("[SHELF]", "[BOOK]").toString();
    *   libraryServiceClient.deleteBook(name);
@@ -1046,6 +1122,8 @@ public final void deleteBook(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   DeleteBookRequest request =
    *       DeleteBookRequest.newBuilder()
@@ -1069,6 +1147,8 @@ public final void deleteBook(DeleteBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   DeleteBookRequest request =
    *       DeleteBookRequest.newBuilder()
@@ -1092,6 +1172,8 @@ public final UnaryCallable deleteBookCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   Book book = Book.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1117,6 +1199,8 @@ public final Book updateBook(Book book, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   UpdateBookRequest request =
    *       UpdateBookRequest.newBuilder()
@@ -1142,6 +1226,8 @@ public final Book updateBook(UpdateBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   UpdateBookRequest request =
    *       UpdateBookRequest.newBuilder()
@@ -1166,6 +1252,8 @@ public final UnaryCallable updateBookCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   BookName name = BookName.of("[SHELF]", "[BOOK]");
    *   ShelfName otherShelfName = ShelfName.of("[SHELF_ID]");
@@ -1194,6 +1282,8 @@ public final Book moveBook(BookName name, ShelfName otherShelfName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   BookName name = BookName.of("[SHELF]", "[BOOK]");
    *   String otherShelfName = ShelfName.of("[SHELF_ID]").toString();
@@ -1222,6 +1312,8 @@ public final Book moveBook(BookName name, String otherShelfName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = BookName.of("[SHELF]", "[BOOK]").toString();
    *   ShelfName otherShelfName = ShelfName.of("[SHELF_ID]");
@@ -1250,6 +1342,8 @@ public final Book moveBook(String name, ShelfName otherShelfName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = BookName.of("[SHELF]", "[BOOK]").toString();
    *   String otherShelfName = ShelfName.of("[SHELF_ID]").toString();
@@ -1275,6 +1369,8 @@ public final Book moveBook(String name, String otherShelfName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   MoveBookRequest request =
    *       MoveBookRequest.newBuilder()
@@ -1300,6 +1396,8 @@ public final Book moveBook(MoveBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   MoveBookRequest request =
    *       MoveBookRequest.newBuilder()
diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java b/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java
index b4d1a7f314..63b3bc761d 100644
--- a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java
+++ b/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java
@@ -71,6 +71,8 @@
  * 

For example, to set the total timeout of createShelf to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LibraryServiceSettings.Builder libraryServiceSettingsBuilder =
  *     LibraryServiceSettings.newBuilder();
  * libraryServiceSettingsBuilder
diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java b/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java
index 4e8bca3b27..4cc39efa97 100644
--- a/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java
+++ b/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java
@@ -31,6 +31,8 @@
  * 

Sample for LibraryServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
  *   Shelf shelf = Shelf.newBuilder().build();
  *   Shelf response = libraryServiceClient.createShelf(shelf);
diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java b/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java
index 159cd561a6..60bbd5de3e 100644
--- a/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java
+++ b/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java
@@ -85,6 +85,8 @@
  * 

For example, to set the total timeout of createShelf to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LibraryServiceStubSettings.Builder libraryServiceSettingsBuilder =
  *     LibraryServiceStubSettings.newBuilder();
  * libraryServiceSettingsBuilder
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java
index cf5b1db536..821432141e 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java
@@ -85,6 +85,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ConfigClient configClient = ConfigClient.create()) {
  *   GetBucketRequest request =
  *       GetBucketRequest.newBuilder()
@@ -125,6 +127,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ConfigSettings configSettings =
  *     ConfigSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -135,6 +139,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ConfigSettings configSettings = ConfigSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ConfigClient configClient = ConfigClient.create(configSettings);
  * }
@@ -199,6 +205,8 @@ public ConfigServiceV2Stub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountLocationName parent =
    *       BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]");
@@ -232,6 +240,8 @@ public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
    *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
@@ -264,6 +274,8 @@ public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
@@ -296,6 +308,8 @@ public final ListBucketsPagedResponse listBuckets(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
    *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
@@ -328,6 +342,8 @@ public final ListBucketsPagedResponse listBuckets(OrganizationLocationName paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
@@ -357,6 +373,8 @@ public final ListBucketsPagedResponse listBuckets(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -384,6 +402,8 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -411,6 +431,8 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -444,6 +466,8 @@ public final UnaryCallable listBucketsC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetBucketRequest request =
    *       GetBucketRequest.newBuilder()
@@ -469,6 +493,8 @@ public final LogBucket getBucket(GetBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetBucketRequest request =
    *       GetBucketRequest.newBuilder()
@@ -494,6 +520,8 @@ public final UnaryCallable getBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateBucketRequest request =
    *       CreateBucketRequest.newBuilder()
@@ -520,6 +548,8 @@ public final LogBucket createBucket(CreateBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateBucketRequest request =
    *       CreateBucketRequest.newBuilder()
@@ -553,6 +583,8 @@ public final UnaryCallable createBucketCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateBucketRequest request =
    *       UpdateBucketRequest.newBuilder()
@@ -589,6 +621,8 @@ public final LogBucket updateBucket(UpdateBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateBucketRequest request =
    *       UpdateBucketRequest.newBuilder()
@@ -616,6 +650,8 @@ public final UnaryCallable updateBucketCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteBucketRequest request =
    *       DeleteBucketRequest.newBuilder()
@@ -642,6 +678,8 @@ public final void deleteBucket(DeleteBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteBucketRequest request =
    *       DeleteBucketRequest.newBuilder()
@@ -667,6 +705,8 @@ public final UnaryCallable deleteBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UndeleteBucketRequest request =
    *       UndeleteBucketRequest.newBuilder()
@@ -693,6 +733,8 @@ public final void undeleteBucket(UndeleteBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UndeleteBucketRequest request =
    *       UndeleteBucketRequest.newBuilder()
@@ -717,6 +759,8 @@ public final UnaryCallable undeleteBucketCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = "parent-995424086";
    *   for (LogView element : configClient.listViews(parent).iterateAll()) {
@@ -741,6 +785,8 @@ public final ListViewsPagedResponse listViews(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListViewsRequest request =
    *       ListViewsRequest.newBuilder()
@@ -768,6 +814,8 @@ public final ListViewsPagedResponse listViews(ListViewsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListViewsRequest request =
    *       ListViewsRequest.newBuilder()
@@ -794,6 +842,8 @@ public final UnaryCallable listViewsPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListViewsRequest request =
    *       ListViewsRequest.newBuilder()
@@ -827,6 +877,8 @@ public final UnaryCallable listViewsCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetViewRequest request =
    *       GetViewRequest.newBuilder()
@@ -853,6 +905,8 @@ public final LogView getView(GetViewRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetViewRequest request =
    *       GetViewRequest.newBuilder()
@@ -878,6 +932,8 @@ public final UnaryCallable getViewCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateViewRequest request =
    *       CreateViewRequest.newBuilder()
@@ -903,6 +959,8 @@ public final LogView createView(CreateViewRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateViewRequest request =
    *       CreateViewRequest.newBuilder()
@@ -928,6 +986,8 @@ public final UnaryCallable createViewCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateViewRequest request =
    *       UpdateViewRequest.newBuilder()
@@ -954,6 +1014,8 @@ public final LogView updateView(UpdateViewRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateViewRequest request =
    *       UpdateViewRequest.newBuilder()
@@ -978,6 +1040,8 @@ public final UnaryCallable updateViewCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteViewRequest request =
    *       DeleteViewRequest.newBuilder()
@@ -1004,6 +1068,8 @@ public final void deleteView(DeleteViewRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteViewRequest request =
    *       DeleteViewRequest.newBuilder()
@@ -1029,6 +1095,8 @@ public final UnaryCallable deleteViewCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1055,6 +1123,8 @@ public final ListSinksPagedResponse listSinks(BillingAccountName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1081,6 +1151,8 @@ public final ListSinksPagedResponse listSinks(FolderName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1107,6 +1179,8 @@ public final ListSinksPagedResponse listSinks(OrganizationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1133,6 +1207,8 @@ public final ListSinksPagedResponse listSinks(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1158,6 +1234,8 @@ public final ListSinksPagedResponse listSinks(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListSinksRequest request =
    *       ListSinksRequest.newBuilder()
@@ -1185,6 +1263,8 @@ public final ListSinksPagedResponse listSinks(ListSinksRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListSinksRequest request =
    *       ListSinksRequest.newBuilder()
@@ -1211,6 +1291,8 @@ public final UnaryCallable listSinksPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListSinksRequest request =
    *       ListSinksRequest.newBuilder()
@@ -1244,6 +1326,8 @@ public final UnaryCallable listSinksCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
    *   LogSink response = configClient.getSink(sinkName);
@@ -1273,6 +1357,8 @@ public final LogSink getSink(LogSinkName sinkName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
    *   LogSink response = configClient.getSink(sinkName);
@@ -1299,6 +1385,8 @@ public final LogSink getSink(String sinkName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetSinkRequest request =
    *       GetSinkRequest.newBuilder()
@@ -1322,6 +1410,8 @@ public final LogSink getSink(GetSinkRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetSinkRequest request =
    *       GetSinkRequest.newBuilder()
@@ -1347,6 +1437,8 @@ public final UnaryCallable getSinkCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1381,6 +1473,8 @@ public final LogSink createSink(BillingAccountName parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1415,6 +1509,8 @@ public final LogSink createSink(FolderName parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1449,6 +1545,8 @@ public final LogSink createSink(OrganizationName parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1483,6 +1581,8 @@ public final LogSink createSink(ProjectName parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1514,6 +1614,8 @@ public final LogSink createSink(String parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateSinkRequest request =
    *       CreateSinkRequest.newBuilder()
@@ -1542,6 +1644,8 @@ public final LogSink createSink(CreateSinkRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateSinkRequest request =
    *       CreateSinkRequest.newBuilder()
@@ -1570,6 +1674,8 @@ public final UnaryCallable createSinkCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1608,6 +1714,8 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1643,6 +1751,8 @@ public final LogSink updateSink(String sinkName, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1692,6 +1802,8 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask up
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1741,6 +1853,8 @@ public final LogSink updateSink(String sinkName, LogSink sink, FieldMask updateM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateSinkRequest request =
    *       UpdateSinkRequest.newBuilder()
@@ -1771,6 +1885,8 @@ public final LogSink updateSink(UpdateSinkRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateSinkRequest request =
    *       UpdateSinkRequest.newBuilder()
@@ -1797,6 +1913,8 @@ public final UnaryCallable updateSinkCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
    *   configClient.deleteSink(sinkName);
@@ -1828,6 +1946,8 @@ public final void deleteSink(LogSinkName sinkName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
    *   configClient.deleteSink(sinkName);
@@ -1856,6 +1976,8 @@ public final void deleteSink(String sinkName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteSinkRequest request =
    *       DeleteSinkRequest.newBuilder()
@@ -1880,6 +2002,8 @@ public final void deleteSink(DeleteSinkRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteSinkRequest request =
    *       DeleteSinkRequest.newBuilder()
@@ -1902,6 +2026,8 @@ public final UnaryCallable deleteSinkCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -1930,6 +2056,8 @@ public final ListExclusionsPagedResponse listExclusions(BillingAccountName paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -1958,6 +2086,8 @@ public final ListExclusionsPagedResponse listExclusions(FolderName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -1986,6 +2116,8 @@ public final ListExclusionsPagedResponse listExclusions(OrganizationName parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -2014,6 +2146,8 @@ public final ListExclusionsPagedResponse listExclusions(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -2039,6 +2173,8 @@ public final ListExclusionsPagedResponse listExclusions(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListExclusionsRequest request =
    *       ListExclusionsRequest.newBuilder()
@@ -2066,6 +2202,8 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListExclusionsRequest request =
    *       ListExclusionsRequest.newBuilder()
@@ -2094,6 +2232,8 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListExclusionsRequest request =
    *       ListExclusionsRequest.newBuilder()
@@ -2128,6 +2268,8 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
    *   LogExclusion response = configClient.getExclusion(name);
@@ -2155,6 +2297,8 @@ public final LogExclusion getExclusion(LogExclusionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
    *   LogExclusion response = configClient.getExclusion(name);
@@ -2181,6 +2325,8 @@ public final LogExclusion getExclusion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetExclusionRequest request =
    *       GetExclusionRequest.newBuilder()
@@ -2205,6 +2351,8 @@ public final LogExclusion getExclusion(GetExclusionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetExclusionRequest request =
    *       GetExclusionRequest.newBuilder()
@@ -2229,6 +2377,8 @@ public final UnaryCallable getExclusionCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2261,6 +2411,8 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2293,6 +2445,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2325,6 +2479,8 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2357,6 +2513,8 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2386,6 +2544,8 @@ public final LogExclusion createExclusion(String parent, LogExclusion exclusion)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateExclusionRequest request =
    *       CreateExclusionRequest.newBuilder()
@@ -2411,6 +2571,8 @@ public final LogExclusion createExclusion(CreateExclusionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateExclusionRequest request =
    *       CreateExclusionRequest.newBuilder()
@@ -2434,6 +2596,8 @@ public final UnaryCallable createExclusion
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2476,6 +2640,8 @@ public final LogExclusion updateExclusion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2518,6 +2684,8 @@ public final LogExclusion updateExclusion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateExclusionRequest request =
    *       UpdateExclusionRequest.newBuilder()
@@ -2544,6 +2712,8 @@ public final LogExclusion updateExclusion(UpdateExclusionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateExclusionRequest request =
    *       UpdateExclusionRequest.newBuilder()
@@ -2569,6 +2739,8 @@ public final UnaryCallable updateExclusion
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
    *   configClient.deleteExclusion(name);
@@ -2596,6 +2768,8 @@ public final void deleteExclusion(LogExclusionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
    *   configClient.deleteExclusion(name);
@@ -2622,6 +2796,8 @@ public final void deleteExclusion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteExclusionRequest request =
    *       DeleteExclusionRequest.newBuilder()
@@ -2646,6 +2822,8 @@ public final void deleteExclusion(DeleteExclusionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteExclusionRequest request =
    *       DeleteExclusionRequest.newBuilder()
@@ -2675,6 +2853,8 @@ public final UnaryCallable deleteExclusionCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetCmekSettingsRequest request =
    *       GetCmekSettingsRequest.newBuilder()
@@ -2704,6 +2884,8 @@ public final CmekSettings getCmekSettings(GetCmekSettingsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetCmekSettingsRequest request =
    *       GetCmekSettingsRequest.newBuilder()
@@ -2737,6 +2919,8 @@ public final UnaryCallable getCmekSettings
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateCmekSettingsRequest request =
    *       UpdateCmekSettingsRequest.newBuilder()
@@ -2773,6 +2957,8 @@ public final CmekSettings updateCmekSettings(UpdateCmekSettingsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateCmekSettingsRequest request =
    *       UpdateCmekSettingsRequest.newBuilder()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java
index 1c57850ec1..0cdf66913b 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java
@@ -89,6 +89,8 @@
  * 

For example, to set the total timeout of getBucket to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
  * configSettingsBuilder
  *     .getBucketSettings()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java
index 01da1d3ed5..f88f78ecbe 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java
@@ -63,6 +63,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (LoggingClient loggingClient = LoggingClient.create()) {
  *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
  *   loggingClient.deleteLog(logName);
@@ -98,6 +100,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingSettings loggingSettings =
  *     LoggingSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -108,6 +112,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingSettings loggingSettings = LoggingSettings.newBuilder().setEndpoint(myEndpoint).build();
  * LoggingClient loggingClient = LoggingClient.create(loggingSettings);
  * }
@@ -174,6 +180,8 @@ public LoggingServiceV2Stub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
    *   loggingClient.deleteLog(logName);
@@ -205,6 +213,8 @@ public final void deleteLog(LogName logName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString();
    *   loggingClient.deleteLog(logName);
@@ -233,6 +243,8 @@ public final void deleteLog(String logName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   DeleteLogRequest request =
    *       DeleteLogRequest.newBuilder()
@@ -258,6 +270,8 @@ public final void deleteLog(DeleteLogRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   DeleteLogRequest request =
    *       DeleteLogRequest.newBuilder()
@@ -283,6 +297,8 @@ public final UnaryCallable deleteLogCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
    *   MonitoredResource resource = MonitoredResource.newBuilder().build();
@@ -358,6 +374,8 @@ public final WriteLogEntriesResponse writeLogEntries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString();
    *   MonitoredResource resource = MonitoredResource.newBuilder().build();
@@ -433,6 +451,8 @@ public final WriteLogEntriesResponse writeLogEntries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   WriteLogEntriesRequest request =
    *       WriteLogEntriesRequest.newBuilder()
@@ -464,6 +484,8 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   WriteLogEntriesRequest request =
    *       WriteLogEntriesRequest.newBuilder()
@@ -495,6 +517,8 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   List resourceNames = new ArrayList<>();
    *   String filter = "filter-1274492040";
@@ -549,6 +573,8 @@ public final ListLogEntriesPagedResponse listLogEntries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogEntriesRequest request =
    *       ListLogEntriesRequest.newBuilder()
@@ -580,6 +606,8 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogEntriesRequest request =
    *       ListLogEntriesRequest.newBuilder()
@@ -611,6 +639,8 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogEntriesRequest request =
    *       ListLogEntriesRequest.newBuilder()
@@ -647,6 +677,8 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
@@ -675,6 +707,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
@@ -703,6 +737,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
@@ -739,6 +775,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -766,6 +804,8 @@ public final ListLogsPagedResponse listLogs(BillingAccountName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -793,6 +833,8 @@ public final ListLogsPagedResponse listLogs(FolderName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -820,6 +862,8 @@ public final ListLogsPagedResponse listLogs(OrganizationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -847,6 +891,8 @@ public final ListLogsPagedResponse listLogs(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -873,6 +919,8 @@ public final ListLogsPagedResponse listLogs(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogsRequest request =
    *       ListLogsRequest.newBuilder()
@@ -902,6 +950,8 @@ public final ListLogsPagedResponse listLogs(ListLogsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogsRequest request =
    *       ListLogsRequest.newBuilder()
@@ -930,6 +980,8 @@ public final UnaryCallable listLogsPaged
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogsRequest request =
    *       ListLogsRequest.newBuilder()
@@ -965,6 +1017,8 @@ public final UnaryCallable listLogsCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   BidiStream bidiStream =
    *       loggingClient.tailLogEntriesCallable().call();
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java
index f7bba757b0..768fd6f606 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java
@@ -69,6 +69,8 @@
  * 

For example, to set the total timeout of deleteLog to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingSettings.Builder loggingSettingsBuilder = LoggingSettings.newBuilder();
  * loggingSettingsBuilder
  *     .deleteLogSettings()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java
index 15bec75716..d28a347b49 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java
@@ -51,6 +51,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MetricsClient metricsClient = MetricsClient.create()) {
  *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
  *   LogMetric response = metricsClient.getLogMetric(metricName);
@@ -86,6 +88,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetricsSettings metricsSettings =
  *     MetricsSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,6 +100,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetricsSettings metricsSettings = MetricsSettings.newBuilder().setEndpoint(myEndpoint).build();
  * MetricsClient metricsClient = MetricsClient.create(metricsSettings);
  * }
@@ -160,6 +166,8 @@ public MetricsServiceV2Stub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
@@ -187,6 +195,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
@@ -211,6 +221,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ListLogMetricsRequest request =
    *       ListLogMetricsRequest.newBuilder()
@@ -238,6 +250,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ListLogMetricsRequest request =
    *       ListLogMetricsRequest.newBuilder()
@@ -265,6 +279,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ListLogMetricsRequest request =
    *       ListLogMetricsRequest.newBuilder()
@@ -299,6 +315,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
    *   LogMetric response = metricsClient.getLogMetric(metricName);
@@ -324,6 +342,8 @@ public final LogMetric getLogMetric(LogMetricName metricName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
    *   LogMetric response = metricsClient.getLogMetric(metricName);
@@ -347,6 +367,8 @@ public final LogMetric getLogMetric(String metricName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   GetLogMetricRequest request =
    *       GetLogMetricRequest.newBuilder()
@@ -370,6 +392,8 @@ public final LogMetric getLogMetric(GetLogMetricRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   GetLogMetricRequest request =
    *       GetLogMetricRequest.newBuilder()
@@ -392,6 +416,8 @@ public final UnaryCallable getLogMetricCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   LogMetric metric = LogMetric.newBuilder().build();
@@ -422,6 +448,8 @@ public final LogMetric createLogMetric(ProjectName parent, LogMetric metric) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   LogMetric metric = LogMetric.newBuilder().build();
@@ -449,6 +477,8 @@ public final LogMetric createLogMetric(String parent, LogMetric metric) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   CreateLogMetricRequest request =
    *       CreateLogMetricRequest.newBuilder()
@@ -473,6 +503,8 @@ public final LogMetric createLogMetric(CreateLogMetricRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   CreateLogMetricRequest request =
    *       CreateLogMetricRequest.newBuilder()
@@ -496,6 +528,8 @@ public final UnaryCallable createLogMetricCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
    *   LogMetric metric = LogMetric.newBuilder().build();
@@ -527,6 +561,8 @@ public final LogMetric updateLogMetric(LogMetricName metricName, LogMetric metri
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
    *   LogMetric metric = LogMetric.newBuilder().build();
@@ -555,6 +591,8 @@ public final LogMetric updateLogMetric(String metricName, LogMetric metric) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   UpdateLogMetricRequest request =
    *       UpdateLogMetricRequest.newBuilder()
@@ -579,6 +617,8 @@ public final LogMetric updateLogMetric(UpdateLogMetricRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   UpdateLogMetricRequest request =
    *       UpdateLogMetricRequest.newBuilder()
@@ -602,6 +642,8 @@ public final UnaryCallable updateLogMetricCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
    *   metricsClient.deleteLogMetric(metricName);
@@ -627,6 +669,8 @@ public final void deleteLogMetric(LogMetricName metricName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
    *   metricsClient.deleteLogMetric(metricName);
@@ -650,6 +694,8 @@ public final void deleteLogMetric(String metricName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   DeleteLogMetricRequest request =
    *       DeleteLogMetricRequest.newBuilder()
@@ -673,6 +719,8 @@ public final void deleteLogMetric(DeleteLogMetricRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   DeleteLogMetricRequest request =
    *       DeleteLogMetricRequest.newBuilder()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java
index 1b7765bda7..4da58dfcca 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java
@@ -61,6 +61,8 @@
  * 

For example, to set the total timeout of getLogMetric to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetricsSettings.Builder metricsSettingsBuilder = MetricsSettings.newBuilder();
  * metricsSettingsBuilder
  *     .getLogMetricSettings()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java
index c9561f16e9..a8be95bad9 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java
@@ -24,6 +24,8 @@
  * 

Sample for LoggingClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (LoggingClient loggingClient = LoggingClient.create()) {
  *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
  *   loggingClient.deleteLog(logName);
@@ -37,6 +39,8 @@
  * 

Sample for ConfigClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ConfigClient configClient = ConfigClient.create()) {
  *   GetBucketRequest request =
  *       GetBucketRequest.newBuilder()
@@ -55,6 +59,8 @@
  * 

Sample for MetricsClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MetricsClient metricsClient = MetricsClient.create()) {
  *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
  *   LogMetric response = metricsClient.getLogMetric(metricName);
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java
index faf8137eea..83dd7c16a4 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java
@@ -103,6 +103,8 @@
  * 

For example, to set the total timeout of getBucket to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ConfigServiceV2StubSettings.Builder configSettingsBuilder =
  *     ConfigServiceV2StubSettings.newBuilder();
  * configSettingsBuilder
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java
index 3f3b507702..c037136ab1 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java
@@ -93,6 +93,8 @@
  * 

For example, to set the total timeout of deleteLog to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingServiceV2StubSettings.Builder loggingSettingsBuilder =
  *     LoggingServiceV2StubSettings.newBuilder();
  * loggingSettingsBuilder
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java
index 3cf4be8d73..dc46608eae 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java
@@ -75,6 +75,8 @@
  * 

For example, to set the total timeout of getLogMetric to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetricsServiceV2StubSettings.Builder metricsSettingsBuilder =
  *     MetricsServiceV2StubSettings.newBuilder();
  * metricsSettingsBuilder
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java
index 562debea05..08dbedd17c 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java
@@ -59,6 +59,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   Schema schema = Schema.newBuilder().build();
@@ -96,6 +98,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings schemaServiceSettings =
  *     SchemaServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -106,6 +110,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings schemaServiceSettings =
  *     SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
@@ -173,6 +179,8 @@ public SchemaServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Schema schema = Schema.newBuilder().build();
@@ -209,6 +217,8 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Schema schema = Schema.newBuilder().build();
@@ -245,6 +255,8 @@ public final Schema createSchema(String parent, Schema schema, String schemaId)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   CreateSchemaRequest request =
    *       CreateSchemaRequest.newBuilder()
@@ -270,6 +282,8 @@ public final Schema createSchema(CreateSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   CreateSchemaRequest request =
    *       CreateSchemaRequest.newBuilder()
@@ -294,6 +308,8 @@ public final UnaryCallable createSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    *   Schema response = schemaServiceClient.getSchema(name);
@@ -317,6 +333,8 @@ public final Schema getSchema(SchemaName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    *   Schema response = schemaServiceClient.getSchema(name);
@@ -339,6 +357,8 @@ public final Schema getSchema(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetSchemaRequest request =
    *       GetSchemaRequest.newBuilder()
@@ -363,6 +383,8 @@ public final Schema getSchema(GetSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetSchemaRequest request =
    *       GetSchemaRequest.newBuilder()
@@ -386,6 +408,8 @@ public final UnaryCallable getSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
@@ -413,6 +437,8 @@ public final ListSchemasPagedResponse listSchemas(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
@@ -437,6 +463,8 @@ public final ListSchemasPagedResponse listSchemas(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -465,6 +493,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -493,6 +523,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -527,6 +559,8 @@ public final UnaryCallable listSchemasC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    *   schemaServiceClient.deleteSchema(name);
@@ -550,6 +584,8 @@ public final void deleteSchema(SchemaName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    *   schemaServiceClient.deleteSchema(name);
@@ -572,6 +608,8 @@ public final void deleteSchema(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   DeleteSchemaRequest request =
    *       DeleteSchemaRequest.newBuilder()
@@ -595,6 +633,8 @@ public final void deleteSchema(DeleteSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   DeleteSchemaRequest request =
    *       DeleteSchemaRequest.newBuilder()
@@ -617,6 +657,8 @@ public final UnaryCallable deleteSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Schema schema = Schema.newBuilder().build();
@@ -645,6 +687,8 @@ public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema sc
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Schema schema = Schema.newBuilder().build();
@@ -670,6 +714,8 @@ public final ValidateSchemaResponse validateSchema(String parent, Schema schema)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateSchemaRequest request =
    *       ValidateSchemaRequest.newBuilder()
@@ -694,6 +740,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateSchemaRequest request =
    *       ValidateSchemaRequest.newBuilder()
@@ -719,6 +767,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateMessageRequest request =
    *       ValidateMessageRequest.newBuilder()
@@ -744,6 +794,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateMessageRequest request =
    *       ValidateMessageRequest.newBuilder()
@@ -772,6 +824,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -798,6 +852,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -822,6 +878,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -847,6 +905,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -875,6 +935,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -904,6 +966,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
index 4f7dfdda43..37de4a54fc 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
@@ -69,6 +69,8 @@
  * 

For example, to set the total timeout of createSchema to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
  * schemaServiceSettingsBuilder
  *     .createSchemaSettings()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
index baa029d549..1171834ea9 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
@@ -77,6 +77,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
  *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
  *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -117,6 +119,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings subscriptionAdminSettings =
  *     SubscriptionAdminSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -128,6 +132,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings subscriptionAdminSettings =
  *     SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SubscriptionAdminClient subscriptionAdminClient =
@@ -205,6 +211,8 @@ public SubscriberStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -271,6 +279,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
@@ -337,6 +347,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -403,6 +415,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
@@ -469,6 +483,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   Subscription request =
    *       Subscription.newBuilder()
@@ -515,6 +531,8 @@ public final Subscription createSubscription(Subscription request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   Subscription request =
    *       Subscription.newBuilder()
@@ -552,6 +570,8 @@ public final UnaryCallable createSubscriptionCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
@@ -577,6 +597,8 @@ public final Subscription getSubscription(SubscriptionName subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
@@ -600,6 +622,8 @@ public final Subscription getSubscription(String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSubscriptionRequest request =
    *       GetSubscriptionRequest.newBuilder()
@@ -623,6 +647,8 @@ public final Subscription getSubscription(GetSubscriptionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSubscriptionRequest request =
    *       GetSubscriptionRequest.newBuilder()
@@ -647,6 +673,8 @@ public final UnaryCallable getSubscription
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSubscriptionRequest request =
    *       UpdateSubscriptionRequest.newBuilder()
@@ -672,6 +700,8 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSubscriptionRequest request =
    *       UpdateSubscriptionRequest.newBuilder()
@@ -696,6 +726,8 @@ public final UnaryCallable updateSubscr
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
@@ -723,6 +755,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
@@ -748,6 +782,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -775,6 +811,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -803,6 +841,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -841,6 +881,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   subscriptionAdminClient.deleteSubscription(subscription);
@@ -869,6 +911,8 @@ public final void deleteSubscription(SubscriptionName subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   subscriptionAdminClient.deleteSubscription(subscription);
@@ -895,6 +939,8 @@ public final void deleteSubscription(String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSubscriptionRequest request =
    *       DeleteSubscriptionRequest.newBuilder()
@@ -921,6 +967,8 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSubscriptionRequest request =
    *       DeleteSubscriptionRequest.newBuilder()
@@ -947,6 +995,8 @@ public final UnaryCallable deleteSubscriptionC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   List ackIds = new ArrayList<>();
@@ -988,6 +1038,8 @@ public final void modifyAckDeadline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   List ackIds = new ArrayList<>();
@@ -1029,6 +1081,8 @@ public final void modifyAckDeadline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyAckDeadlineRequest request =
    *       ModifyAckDeadlineRequest.newBuilder()
@@ -1057,6 +1111,8 @@ public final void modifyAckDeadline(ModifyAckDeadlineRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyAckDeadlineRequest request =
    *       ModifyAckDeadlineRequest.newBuilder()
@@ -1086,6 +1142,8 @@ public final UnaryCallable modifyAckDeadlineCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   List ackIds = new ArrayList<>();
@@ -1119,6 +1177,8 @@ public final void acknowledge(SubscriptionName subscription, List ackIds
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   List ackIds = new ArrayList<>();
@@ -1149,6 +1209,8 @@ public final void acknowledge(String subscription, List ackIds) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   AcknowledgeRequest request =
    *       AcknowledgeRequest.newBuilder()
@@ -1177,6 +1239,8 @@ public final void acknowledge(AcknowledgeRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   AcknowledgeRequest request =
    *       AcknowledgeRequest.newBuilder()
@@ -1201,6 +1265,8 @@ public final UnaryCallable acknowledgeCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   int maxMessages = 496131527;
@@ -1231,6 +1297,8 @@ public final PullResponse pull(SubscriptionName subscription, int maxMessages) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   int maxMessages = 496131527;
@@ -1258,6 +1326,8 @@ public final PullResponse pull(String subscription, int maxMessages) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   boolean returnImmediately = true;
@@ -1298,6 +1368,8 @@ public final PullResponse pull(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   boolean returnImmediately = true;
@@ -1337,6 +1409,8 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   PullRequest request =
    *       PullRequest.newBuilder()
@@ -1363,6 +1437,8 @@ public final PullResponse pull(PullRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   PullRequest request =
    *       PullRequest.newBuilder()
@@ -1392,6 +1468,8 @@ public final UnaryCallable pullCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   BidiStream bidiStream =
    *       subscriptionAdminClient.streamingPullCallable().call();
@@ -1430,6 +1508,8 @@ public final UnaryCallable pullCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
@@ -1466,6 +1546,8 @@ public final void modifyPushConfig(SubscriptionName subscription, PushConfig pus
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
@@ -1502,6 +1584,8 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyPushConfigRequest request =
    *       ModifyPushConfigRequest.newBuilder()
@@ -1531,6 +1615,8 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyPushConfigRequest request =
    *       ModifyPushConfigRequest.newBuilder()
@@ -1558,6 +1644,8 @@ public final UnaryCallable modifyPushConfigCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
@@ -1586,6 +1674,8 @@ public final Snapshot getSnapshot(SnapshotName snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
@@ -1611,6 +1701,8 @@ public final Snapshot getSnapshot(String snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSnapshotRequest request =
    *       GetSnapshotRequest.newBuilder()
@@ -1637,6 +1729,8 @@ public final Snapshot getSnapshot(GetSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSnapshotRequest request =
    *       GetSnapshotRequest.newBuilder()
@@ -1663,6 +1757,8 @@ public final UnaryCallable getSnapshotCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
@@ -1693,6 +1789,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
@@ -1720,6 +1818,8 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -1750,6 +1850,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -1781,6 +1883,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -1826,6 +1930,8 @@ public final UnaryCallable listSnap
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
@@ -1874,6 +1980,8 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
@@ -1922,6 +2030,8 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
@@ -1970,6 +2080,8 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
@@ -2015,6 +2127,8 @@ public final Snapshot createSnapshot(String name, String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   CreateSnapshotRequest request =
    *       CreateSnapshotRequest.newBuilder()
@@ -2051,6 +2165,8 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   CreateSnapshotRequest request =
    *       CreateSnapshotRequest.newBuilder()
@@ -2079,6 +2195,8 @@ public final UnaryCallable createSnapshotCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSnapshotRequest request =
    *       UpdateSnapshotRequest.newBuilder()
@@ -2106,6 +2224,8 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSnapshotRequest request =
    *       UpdateSnapshotRequest.newBuilder()
@@ -2136,6 +2256,8 @@ public final UnaryCallable updateSnapshotCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   subscriptionAdminClient.deleteSnapshot(snapshot);
@@ -2167,6 +2289,8 @@ public final void deleteSnapshot(SnapshotName snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   subscriptionAdminClient.deleteSnapshot(snapshot);
@@ -2196,6 +2320,8 @@ public final void deleteSnapshot(String snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSnapshotRequest request =
    *       DeleteSnapshotRequest.newBuilder()
@@ -2225,6 +2351,8 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSnapshotRequest request =
    *       DeleteSnapshotRequest.newBuilder()
@@ -2253,6 +2381,8 @@ public final UnaryCallable deleteSnapshotCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SeekRequest request =
    *       SeekRequest.newBuilder()
@@ -2281,6 +2411,8 @@ public final SeekResponse seek(SeekRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SeekRequest request =
    *       SeekRequest.newBuilder()
@@ -2305,6 +2437,8 @@ public final UnaryCallable seekCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -2331,6 +2465,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -2355,6 +2491,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -2380,6 +2518,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -2408,6 +2548,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -2437,6 +2579,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
index d9680d778a..d4ebe02fff 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
@@ -83,6 +83,8 @@
  * 

For example, to set the total timeout of createSubscription to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
  *     SubscriptionAdminSettings.newBuilder();
  * subscriptionAdminSettingsBuilder
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java
index be0a3a2e42..fc4fd49c26 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java
@@ -65,6 +65,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
  *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
  *   Topic response = topicAdminClient.createTopic(name);
@@ -100,6 +102,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings topicAdminSettings =
  *     TopicAdminSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -110,6 +114,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings topicAdminSettings =
  *     TopicAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
  * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings);
@@ -176,6 +182,8 @@ public PublisherStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   Topic response = topicAdminClient.createTopic(name);
@@ -202,6 +210,8 @@ public final Topic createTopic(TopicName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   Topic response = topicAdminClient.createTopic(name);
@@ -228,6 +238,8 @@ public final Topic createTopic(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   Topic request =
    *       Topic.newBuilder()
@@ -258,6 +270,8 @@ public final Topic createTopic(Topic request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   Topic request =
    *       Topic.newBuilder()
@@ -286,6 +300,8 @@ public final UnaryCallable createTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   UpdateTopicRequest request =
    *       UpdateTopicRequest.newBuilder()
@@ -310,6 +326,8 @@ public final Topic updateTopic(UpdateTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   UpdateTopicRequest request =
    *       UpdateTopicRequest.newBuilder()
@@ -333,6 +351,8 @@ public final UnaryCallable updateTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   List messages = new ArrayList<>();
@@ -361,6 +381,8 @@ public final PublishResponse publish(TopicName topic, List messag
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   List messages = new ArrayList<>();
@@ -386,6 +408,8 @@ public final PublishResponse publish(String topic, List messages)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   PublishRequest request =
    *       PublishRequest.newBuilder()
@@ -410,6 +434,8 @@ public final PublishResponse publish(PublishRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   PublishRequest request =
    *       PublishRequest.newBuilder()
@@ -433,6 +459,8 @@ public final UnaryCallable publishCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   Topic response = topicAdminClient.getTopic(topic);
@@ -456,6 +484,8 @@ public final Topic getTopic(TopicName topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   Topic response = topicAdminClient.getTopic(topic);
@@ -478,6 +508,8 @@ public final Topic getTopic(String topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetTopicRequest request =
    *       GetTopicRequest.newBuilder()
@@ -501,6 +533,8 @@ public final Topic getTopic(GetTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetTopicRequest request =
    *       GetTopicRequest.newBuilder()
@@ -523,6 +557,8 @@ public final UnaryCallable getTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
@@ -550,6 +586,8 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
@@ -574,6 +612,8 @@ public final ListTopicsPagedResponse listTopics(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -601,6 +641,8 @@ public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -627,6 +669,8 @@ public final UnaryCallable listTopic
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -660,6 +704,8 @@ public final UnaryCallable listTopicsCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
@@ -687,6 +733,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicNam
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
@@ -712,6 +760,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String t
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -740,6 +790,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -768,6 +820,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -806,6 +860,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
@@ -836,6 +892,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
@@ -864,6 +922,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(String topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -895,6 +955,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -926,6 +988,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -964,6 +1028,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   topicAdminClient.deleteTopic(topic);
@@ -990,6 +1056,8 @@ public final void deleteTopic(TopicName topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   topicAdminClient.deleteTopic(topic);
@@ -1015,6 +1083,8 @@ public final void deleteTopic(String topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DeleteTopicRequest request =
    *       DeleteTopicRequest.newBuilder()
@@ -1041,6 +1111,8 @@ public final void deleteTopic(DeleteTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DeleteTopicRequest request =
    *       DeleteTopicRequest.newBuilder()
@@ -1065,6 +1137,8 @@ public final UnaryCallable deleteTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DetachSubscriptionRequest request =
    *       DetachSubscriptionRequest.newBuilder()
@@ -1090,6 +1164,8 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DetachSubscriptionRequest request =
    *       DetachSubscriptionRequest.newBuilder()
@@ -1116,6 +1192,8 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1142,6 +1220,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1166,6 +1246,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1191,6 +1273,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1219,6 +1303,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1248,6 +1334,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java
index e17e7237eb..6ce1c0230e 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java
@@ -76,6 +76,8 @@
  * 

For example, to set the total timeout of createTopic to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder();
  * topicAdminSettingsBuilder
  *     .createTopicSettings()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java
index 128d542475..243a576b36 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java
@@ -27,6 +27,8 @@
  * 

Sample for TopicAdminClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
  *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
  *   Topic response = topicAdminClient.createTopic(name);
@@ -42,6 +44,8 @@
  * 

Sample for SubscriptionAdminClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
  *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
  *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -59,6 +63,8 @@
  * 

Sample for SchemaServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   Schema schema = Schema.newBuilder().build();
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
index 166775ec3c..c2803bb554 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
@@ -99,6 +99,8 @@
  * 

For example, to set the total timeout of createTopic to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
  * topicAdminSettingsBuilder
  *     .createTopicSettings()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
index fb8a87653d..2f1708aa10 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
@@ -82,6 +82,8 @@
  * 

For example, to set the total timeout of createSchema to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
  *     SchemaServiceStubSettings.newBuilder();
  * schemaServiceSettingsBuilder
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
index 567da1624b..bfa15f38e9 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
@@ -97,6 +97,8 @@
  * 

For example, to set the total timeout of createSubscription to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
  *     SubscriberStubSettings.newBuilder();
  * subscriptionAdminSettingsBuilder
diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java
index 368e68b6cb..5ba77a6f00 100644
--- a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java
+++ b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java
@@ -68,6 +68,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
  *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
  *   Instance response = cloudRedisClient.getInstance(name);
@@ -103,6 +105,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudRedisSettings cloudRedisSettings =
  *     CloudRedisSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -113,6 +117,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudRedisSettings cloudRedisSettings =
  *     CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings);
@@ -200,6 +206,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) {
@@ -237,6 +245,8 @@ public final ListInstancesPagedResponse listInstances(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) {
@@ -271,6 +281,8 @@ public final ListInstancesPagedResponse listInstances(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -308,6 +320,8 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -346,6 +360,8 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -379,6 +395,8 @@ public final UnaryCallable listInst
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   Instance response = cloudRedisClient.getInstance(name);
@@ -403,6 +421,8 @@ public final Instance getInstance(InstanceName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   Instance response = cloudRedisClient.getInstance(name);
@@ -426,6 +446,8 @@ public final Instance getInstance(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   GetInstanceRequest request =
    *       GetInstanceRequest.newBuilder()
@@ -449,6 +471,8 @@ public final Instance getInstance(GetInstanceRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   GetInstanceRequest request =
    *       GetInstanceRequest.newBuilder()
@@ -472,6 +496,8 @@ public final UnaryCallable getInstanceCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name);
@@ -499,6 +525,8 @@ public final InstanceAuthString getInstanceAuthString(InstanceName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name);
@@ -524,6 +552,8 @@ public final InstanceAuthString getInstanceAuthString(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   GetInstanceAuthStringRequest request =
    *       GetInstanceAuthStringRequest.newBuilder()
@@ -548,6 +578,8 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   GetInstanceAuthStringRequest request =
    *       GetInstanceAuthStringRequest.newBuilder()
@@ -583,6 +615,8 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   String instanceId = "instanceId902024336";
@@ -635,6 +669,8 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   String instanceId = "instanceId902024336";
@@ -687,6 +723,8 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -723,6 +761,8 @@ public final OperationFuture createInstanceAsync(CreateInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -760,6 +800,8 @@ public final OperationFuture createInstanceAsync(CreateInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -788,6 +830,8 @@ public final UnaryCallable createInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   FieldMask updateMask = FieldMask.newBuilder().build();
    *   Instance instance = Instance.newBuilder().build();
@@ -821,6 +865,8 @@ public final OperationFuture updateInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpdateInstanceRequest request =
    *       UpdateInstanceRequest.newBuilder()
@@ -849,6 +895,8 @@ public final OperationFuture updateInstanceAsync(UpdateInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpdateInstanceRequest request =
    *       UpdateInstanceRequest.newBuilder()
@@ -878,6 +926,8 @@ public final OperationFuture updateInstanceAsync(UpdateInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpdateInstanceRequest request =
    *       UpdateInstanceRequest.newBuilder()
@@ -901,6 +951,8 @@ public final UnaryCallable updateInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   String redisVersion = "redisVersion-1972584739";
@@ -931,6 +983,8 @@ public final OperationFuture upgradeInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   String redisVersion = "redisVersion-1972584739";
@@ -958,6 +1012,8 @@ public final OperationFuture upgradeInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -982,6 +1038,8 @@ public final OperationFuture upgradeInstanceAsync(UpgradeInstance
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -1007,6 +1065,8 @@ public final OperationFuture upgradeInstanceAsync(UpgradeInstance
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -1036,6 +1096,8 @@ public final UnaryCallable upgradeInstanceCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = "name3373707";
    *   InputConfig inputConfig = InputConfig.newBuilder().build();
@@ -1069,6 +1131,8 @@ public final OperationFuture importInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ImportInstanceRequest request =
    *       ImportInstanceRequest.newBuilder()
@@ -1099,6 +1163,8 @@ public final OperationFuture importInstanceAsync(ImportInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ImportInstanceRequest request =
    *       ImportInstanceRequest.newBuilder()
@@ -1130,6 +1196,8 @@ public final OperationFuture importInstanceAsync(ImportInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ImportInstanceRequest request =
    *       ImportInstanceRequest.newBuilder()
@@ -1158,6 +1226,8 @@ public final UnaryCallable importInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = "name3373707";
    *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
@@ -1190,6 +1260,8 @@ public final OperationFuture exportInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ExportInstanceRequest request =
    *       ExportInstanceRequest.newBuilder()
@@ -1219,6 +1291,8 @@ public final OperationFuture exportInstanceAsync(ExportInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ExportInstanceRequest request =
    *       ExportInstanceRequest.newBuilder()
@@ -1249,6 +1323,8 @@ public final OperationFuture exportInstanceAsync(ExportInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ExportInstanceRequest request =
    *       ExportInstanceRequest.newBuilder()
@@ -1273,6 +1349,8 @@ public final UnaryCallable exportInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   FailoverInstanceRequest.DataProtectionMode dataProtectionMode =
@@ -1306,6 +1384,8 @@ public final OperationFuture failoverInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   FailoverInstanceRequest.DataProtectionMode dataProtectionMode =
@@ -1339,6 +1419,8 @@ public final OperationFuture failoverInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   FailoverInstanceRequest request =
    *       FailoverInstanceRequest.newBuilder()
@@ -1364,6 +1446,8 @@ public final OperationFuture failoverInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   FailoverInstanceRequest request =
    *       FailoverInstanceRequest.newBuilder()
@@ -1389,6 +1473,8 @@ public final OperationFuture failoverInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   FailoverInstanceRequest request =
    *       FailoverInstanceRequest.newBuilder()
@@ -1411,6 +1497,8 @@ public final UnaryCallable failoverInstanceC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   cloudRedisClient.deleteInstanceAsync(name).get();
@@ -1435,6 +1523,8 @@ public final OperationFuture deleteInstanceAsync(InstanceName name)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   cloudRedisClient.deleteInstanceAsync(name).get();
@@ -1458,6 +1548,8 @@ public final OperationFuture deleteInstanceAsync(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder()
@@ -1481,6 +1573,8 @@ public final OperationFuture deleteInstanceAsync(DeleteInstanceReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder()
@@ -1505,6 +1599,8 @@ public final OperationFuture deleteInstanceAsync(DeleteInstanceReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder()
@@ -1527,6 +1623,8 @@ public final UnaryCallable deleteInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   RescheduleMaintenanceRequest.RescheduleType rescheduleType =
@@ -1566,6 +1664,8 @@ public final OperationFuture rescheduleMaintenanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   RescheduleMaintenanceRequest.RescheduleType rescheduleType =
@@ -1605,6 +1705,8 @@ public final OperationFuture rescheduleMaintenanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   RescheduleMaintenanceRequest request =
    *       RescheduleMaintenanceRequest.newBuilder()
@@ -1630,6 +1732,8 @@ public final OperationFuture rescheduleMaintenanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   RescheduleMaintenanceRequest request =
    *       RescheduleMaintenanceRequest.newBuilder()
@@ -1655,6 +1759,8 @@ public final OperationFuture rescheduleMaintenanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   RescheduleMaintenanceRequest request =
    *       RescheduleMaintenanceRequest.newBuilder()
diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java
index 2e5feb583c..c1930df850 100644
--- a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java
+++ b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java
@@ -57,6 +57,8 @@
  * 

For example, to set the total timeout of getInstance to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudRedisSettings.Builder cloudRedisSettingsBuilder = CloudRedisSettings.newBuilder();
  * cloudRedisSettingsBuilder
  *     .getInstanceSettings()
diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java
index cd7feb7b8c..0945459d0f 100644
--- a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java
+++ b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java
@@ -45,6 +45,8 @@
  * 

Sample for CloudRedisClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
  *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
  *   Instance response = cloudRedisClient.getInstance(name);
diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java
index 71565b335e..65c1e97630 100644
--- a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java
+++ b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java
@@ -88,6 +88,8 @@
  * 

For example, to set the total timeout of getInstance to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder();
  * cloudRedisSettingsBuilder
  *     .getInstanceSettings()
diff --git a/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java b/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java
index 45f49f593c..a54273ea97 100644
--- a/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java
+++ b/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java
@@ -65,6 +65,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (StorageClient storageClient = StorageClient.create()) {
  *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
  *   storageClient.deleteBucket(name);
@@ -100,6 +102,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * StorageSettings storageSettings =
  *     StorageSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -110,6 +114,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * StorageSettings storageSettings = StorageSettings.newBuilder().setEndpoint(myEndpoint).build();
  * StorageClient storageClient = StorageClient.create(storageSettings);
  * }
@@ -174,6 +180,8 @@ public StorageStub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
    *   storageClient.deleteBucket(name);
@@ -196,6 +204,8 @@ public final void deleteBucket(BucketName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
    *   storageClient.deleteBucket(name);
@@ -217,6 +227,8 @@ public final void deleteBucket(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteBucketRequest request =
    *       DeleteBucketRequest.newBuilder()
@@ -243,6 +255,8 @@ public final void deleteBucket(DeleteBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteBucketRequest request =
    *       DeleteBucketRequest.newBuilder()
@@ -268,6 +282,8 @@ public final UnaryCallable deleteBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
    *   Bucket response = storageClient.getBucket(name);
@@ -290,6 +306,8 @@ public final Bucket getBucket(BucketName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
    *   Bucket response = storageClient.getBucket(name);
@@ -311,6 +329,8 @@ public final Bucket getBucket(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetBucketRequest request =
    *       GetBucketRequest.newBuilder()
@@ -338,6 +358,8 @@ public final Bucket getBucket(GetBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetBucketRequest request =
    *       GetBucketRequest.newBuilder()
@@ -364,6 +386,8 @@ public final UnaryCallable getBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Bucket bucket = Bucket.newBuilder().build();
@@ -397,6 +421,8 @@ public final Bucket createBucket(ProjectName parent, Bucket bucket, String bucke
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Bucket bucket = Bucket.newBuilder().build();
@@ -430,6 +456,8 @@ public final Bucket createBucket(String parent, Bucket bucket, String bucketId)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateBucketRequest request =
    *       CreateBucketRequest.newBuilder()
@@ -457,6 +485,8 @@ public final Bucket createBucket(CreateBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateBucketRequest request =
    *       CreateBucketRequest.newBuilder()
@@ -483,6 +513,8 @@ public final UnaryCallable createBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Bucket element : storageClient.listBuckets(parent).iterateAll()) {
@@ -509,6 +541,8 @@ public final ListBucketsPagedResponse listBuckets(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Bucket element : storageClient.listBuckets(parent).iterateAll()) {
@@ -532,6 +566,8 @@ public final ListBucketsPagedResponse listBuckets(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -562,6 +598,8 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -592,6 +630,8 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -628,6 +668,8 @@ public final UnaryCallable listBucketsC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   BucketName bucket = BucketName.of("[PROJECT]", "[BUCKET]");
    *   Bucket response = storageClient.lockBucketRetentionPolicy(bucket);
@@ -652,6 +694,8 @@ public final Bucket lockBucketRetentionPolicy(BucketName bucket) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = BucketName.of("[PROJECT]", "[BUCKET]").toString();
    *   Bucket response = storageClient.lockBucketRetentionPolicy(bucket);
@@ -674,6 +718,8 @@ public final Bucket lockBucketRetentionPolicy(String bucket) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   LockBucketRetentionPolicyRequest request =
    *       LockBucketRetentionPolicyRequest.newBuilder()
@@ -699,6 +745,8 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   LockBucketRetentionPolicyRequest request =
    *       LockBucketRetentionPolicyRequest.newBuilder()
@@ -725,6 +773,8 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ResourceName resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -751,6 +801,8 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -774,6 +826,8 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -800,6 +854,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -825,6 +881,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ResourceName resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -856,6 +914,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -884,6 +944,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -910,6 +972,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -935,6 +999,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ResourceName resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -967,6 +1033,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -999,6 +1067,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1025,6 +1095,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1052,6 +1124,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   Bucket bucket = Bucket.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1083,6 +1157,8 @@ public final Bucket updateBucket(Bucket bucket, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateBucketRequest request =
    *       UpdateBucketRequest.newBuilder()
@@ -1112,6 +1188,8 @@ public final Bucket updateBucket(UpdateBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateBucketRequest request =
    *       UpdateBucketRequest.newBuilder()
@@ -1140,6 +1218,8 @@ public final UnaryCallable updateBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   NotificationName name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]");
    *   storageClient.deleteNotification(name);
@@ -1164,6 +1244,8 @@ public final void deleteNotification(NotificationName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]").toString();
    *   storageClient.deleteNotification(name);
@@ -1186,6 +1268,8 @@ public final void deleteNotification(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteNotificationRequest request =
    *       DeleteNotificationRequest.newBuilder()
@@ -1209,6 +1293,8 @@ public final void deleteNotification(DeleteNotificationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteNotificationRequest request =
    *       DeleteNotificationRequest.newBuilder()
@@ -1231,6 +1317,8 @@ public final UnaryCallable deleteNotificationC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
    *   Notification response = storageClient.getNotification(name);
@@ -1254,6 +1342,8 @@ public final Notification getNotification(BucketName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
    *   Notification response = storageClient.getNotification(name);
@@ -1276,6 +1366,8 @@ public final Notification getNotification(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetNotificationRequest request =
    *       GetNotificationRequest.newBuilder()
@@ -1299,6 +1391,8 @@ public final Notification getNotification(GetNotificationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetNotificationRequest request =
    *       GetNotificationRequest.newBuilder()
@@ -1323,6 +1417,8 @@ public final UnaryCallable getNotification
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Notification notification = Notification.newBuilder().build();
@@ -1352,6 +1448,8 @@ public final Notification createNotification(ProjectName parent, Notification no
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Notification notification = Notification.newBuilder().build();
@@ -1381,6 +1479,8 @@ public final Notification createNotification(String parent, Notification notific
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateNotificationRequest request =
    *       CreateNotificationRequest.newBuilder()
@@ -1407,6 +1507,8 @@ public final Notification createNotification(CreateNotificationRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateNotificationRequest request =
    *       CreateNotificationRequest.newBuilder()
@@ -1431,6 +1533,8 @@ public final UnaryCallable createNotifi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Notification element : storageClient.listNotifications(parent).iterateAll()) {
@@ -1457,6 +1561,8 @@ public final ListNotificationsPagedResponse listNotifications(ProjectName parent
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Notification element : storageClient.listNotifications(parent).iterateAll()) {
@@ -1481,6 +1587,8 @@ public final ListNotificationsPagedResponse listNotifications(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListNotificationsRequest request =
    *       ListNotificationsRequest.newBuilder()
@@ -1508,6 +1616,8 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListNotificationsRequest request =
    *       ListNotificationsRequest.newBuilder()
@@ -1536,6 +1646,8 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListNotificationsRequest request =
    *       ListNotificationsRequest.newBuilder()
@@ -1571,6 +1683,8 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ComposeObjectRequest request =
    *       ComposeObjectRequest.newBuilder()
@@ -1603,6 +1717,8 @@ public final Object composeObject(ComposeObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ComposeObjectRequest request =
    *       ComposeObjectRequest.newBuilder()
@@ -1635,6 +1751,8 @@ public final UnaryCallable composeObjectCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = "bucket-1378203158";
    *   String object = "object-1023368385";
@@ -1660,6 +1778,8 @@ public final void deleteObject(String bucket, String object) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = "bucket-1378203158";
    *   String object = "object-1023368385";
@@ -1692,6 +1812,8 @@ public final void deleteObject(String bucket, String object, long generation) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteObjectRequest request =
    *       DeleteObjectRequest.newBuilder()
@@ -1725,6 +1847,8 @@ public final void deleteObject(DeleteObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteObjectRequest request =
    *       DeleteObjectRequest.newBuilder()
@@ -1756,6 +1880,8 @@ public final UnaryCallable deleteObjectCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = "bucket-1378203158";
    *   String object = "object-1023368385";
@@ -1780,6 +1906,8 @@ public final Object getObject(String bucket, String object) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = "bucket-1378203158";
    *   String object = "object-1023368385";
@@ -1811,6 +1939,8 @@ public final Object getObject(String bucket, String object, long generation) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetObjectRequest request =
    *       GetObjectRequest.newBuilder()
@@ -1843,6 +1973,8 @@ public final Object getObject(GetObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetObjectRequest request =
    *       GetObjectRequest.newBuilder()
@@ -1874,6 +2006,8 @@ public final UnaryCallable getObjectCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ReadObjectRequest request =
    *       ReadObjectRequest.newBuilder()
@@ -1908,6 +2042,8 @@ public final ServerStreamingCallable read
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   Object object = Object.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1941,6 +2077,8 @@ public final Object updateObject(Object object, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateObjectRequest request =
    *       UpdateObjectRequest.newBuilder()
@@ -1972,6 +2110,8 @@ public final Object updateObject(UpdateObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateObjectRequest request =
    *       UpdateObjectRequest.newBuilder()
@@ -2021,6 +2161,8 @@ public final UnaryCallable updateObjectCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ApiStreamObserver responseObserver =
    *       new ApiStreamObserver() {
@@ -2065,6 +2207,8 @@ public final UnaryCallable updateObjectCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Object element : storageClient.listObjects(parent).iterateAll()) {
@@ -2091,6 +2235,8 @@ public final ListObjectsPagedResponse listObjects(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Object element : storageClient.listObjects(parent).iterateAll()) {
@@ -2114,6 +2260,8 @@ public final ListObjectsPagedResponse listObjects(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListObjectsRequest request =
    *       ListObjectsRequest.newBuilder()
@@ -2149,6 +2297,8 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListObjectsRequest request =
    *       ListObjectsRequest.newBuilder()
@@ -2184,6 +2334,8 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListObjectsRequest request =
    *       ListObjectsRequest.newBuilder()
@@ -2225,6 +2377,8 @@ public final UnaryCallable listObjectsC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   RewriteObjectRequest request =
    *       RewriteObjectRequest.newBuilder()
@@ -2272,6 +2426,8 @@ public final RewriteResponse rewriteObject(RewriteObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   RewriteObjectRequest request =
    *       RewriteObjectRequest.newBuilder()
@@ -2319,6 +2475,8 @@ public final UnaryCallable rewriteObjectC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   StartResumableWriteRequest request =
    *       StartResumableWriteRequest.newBuilder()
@@ -2345,6 +2503,8 @@ public final StartResumableWriteResponse startResumableWrite(StartResumableWrite
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   StartResumableWriteRequest request =
    *       StartResumableWriteRequest.newBuilder()
@@ -2381,6 +2541,8 @@ public final StartResumableWriteResponse startResumableWrite(StartResumableWrite
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String uploadId = "uploadId1563990780";
    *   QueryWriteStatusResponse response = storageClient.queryWriteStatus(uploadId);
@@ -2414,6 +2576,8 @@ public final QueryWriteStatusResponse queryWriteStatus(String uploadId) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   QueryWriteStatusRequest request =
    *       QueryWriteStatusRequest.newBuilder()
@@ -2449,6 +2613,8 @@ public final QueryWriteStatusResponse queryWriteStatus(QueryWriteStatusRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   QueryWriteStatusRequest request =
    *       QueryWriteStatusRequest.newBuilder()
@@ -2475,6 +2641,8 @@ public final QueryWriteStatusResponse queryWriteStatus(QueryWriteStatusRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   ServiceAccount response = storageClient.getServiceAccount(project);
@@ -2499,6 +2667,8 @@ public final ServiceAccount getServiceAccount(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   ServiceAccount response = storageClient.getServiceAccount(project);
@@ -2521,6 +2691,8 @@ public final ServiceAccount getServiceAccount(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetServiceAccountRequest request =
    *       GetServiceAccountRequest.newBuilder()
@@ -2545,6 +2717,8 @@ public final ServiceAccount getServiceAccount(GetServiceAccountRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetServiceAccountRequest request =
    *       GetServiceAccountRequest.newBuilder()
@@ -2569,6 +2743,8 @@ public final UnaryCallable getServiceA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   String serviceAccountEmail = "serviceAccountEmail1825953988";
@@ -2597,6 +2773,8 @@ public final CreateHmacKeyResponse createHmacKey(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   String serviceAccountEmail = "serviceAccountEmail1825953988";
@@ -2624,6 +2802,8 @@ public final CreateHmacKeyResponse createHmacKey(String project, String serviceA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateHmacKeyRequest request =
    *       CreateHmacKeyRequest.newBuilder()
@@ -2649,6 +2829,8 @@ public final CreateHmacKeyResponse createHmacKey(CreateHmacKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateHmacKeyRequest request =
    *       CreateHmacKeyRequest.newBuilder()
@@ -2674,6 +2856,8 @@ public final UnaryCallable createHm
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String accessId = "accessId-2146437729";
    *   ProjectName project = ProjectName.of("[PROJECT]");
@@ -2701,6 +2885,8 @@ public final void deleteHmacKey(String accessId, ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String accessId = "accessId-2146437729";
    *   String project = ProjectName.of("[PROJECT]").toString();
@@ -2725,6 +2911,8 @@ public final void deleteHmacKey(String accessId, String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteHmacKeyRequest request =
    *       DeleteHmacKeyRequest.newBuilder()
@@ -2750,6 +2938,8 @@ public final void deleteHmacKey(DeleteHmacKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteHmacKeyRequest request =
    *       DeleteHmacKeyRequest.newBuilder()
@@ -2774,6 +2964,8 @@ public final UnaryCallable deleteHmacKeyCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String accessId = "accessId-2146437729";
    *   ProjectName project = ProjectName.of("[PROJECT]");
@@ -2801,6 +2993,8 @@ public final HmacKeyMetadata getHmacKey(String accessId, ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String accessId = "accessId-2146437729";
    *   String project = ProjectName.of("[PROJECT]").toString();
@@ -2825,6 +3019,8 @@ public final HmacKeyMetadata getHmacKey(String accessId, String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetHmacKeyRequest request =
    *       GetHmacKeyRequest.newBuilder()
@@ -2850,6 +3046,8 @@ public final HmacKeyMetadata getHmacKey(GetHmacKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetHmacKeyRequest request =
    *       GetHmacKeyRequest.newBuilder()
@@ -2874,6 +3072,8 @@ public final UnaryCallable getHmacKeyCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (HmacKeyMetadata element : storageClient.listHmacKeys(project).iterateAll()) {
@@ -2900,6 +3100,8 @@ public final ListHmacKeysPagedResponse listHmacKeys(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (HmacKeyMetadata element : storageClient.listHmacKeys(project).iterateAll()) {
@@ -2923,6 +3125,8 @@ public final ListHmacKeysPagedResponse listHmacKeys(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListHmacKeysRequest request =
    *       ListHmacKeysRequest.newBuilder()
@@ -2953,6 +3157,8 @@ public final ListHmacKeysPagedResponse listHmacKeys(ListHmacKeysRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListHmacKeysRequest request =
    *       ListHmacKeysRequest.newBuilder()
@@ -2984,6 +3190,8 @@ public final ListHmacKeysPagedResponse listHmacKeys(ListHmacKeysRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListHmacKeysRequest request =
    *       ListHmacKeysRequest.newBuilder()
@@ -3020,6 +3228,8 @@ public final UnaryCallable listHmacKe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   HmacKeyMetadata hmacKey = HmacKeyMetadata.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -3046,6 +3256,8 @@ public final HmacKeyMetadata updateHmacKey(HmacKeyMetadata hmacKey, FieldMask up
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateHmacKeyRequest request =
    *       UpdateHmacKeyRequest.newBuilder()
@@ -3071,6 +3283,8 @@ public final HmacKeyMetadata updateHmacKey(UpdateHmacKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateHmacKeyRequest request =
    *       UpdateHmacKeyRequest.newBuilder()
diff --git a/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java b/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java
index eb8158dd3d..8741e3888a 100644
--- a/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java
+++ b/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java
@@ -64,6 +64,8 @@
  * 

For example, to set the total timeout of deleteBucket to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * StorageSettings.Builder storageSettingsBuilder = StorageSettings.newBuilder();
  * storageSettingsBuilder
  *     .deleteBucketSettings()
diff --git a/test/integration/goldens/storage/com/google/storage/v2/package-info.java b/test/integration/goldens/storage/com/google/storage/v2/package-info.java
index b1536036d7..614b9b4deb 100644
--- a/test/integration/goldens/storage/com/google/storage/v2/package-info.java
+++ b/test/integration/goldens/storage/com/google/storage/v2/package-info.java
@@ -38,6 +38,8 @@
  * 

Sample for StorageClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (StorageClient storageClient = StorageClient.create()) {
  *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
  *   storageClient.deleteBucket(name);
diff --git a/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java b/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java
index 227af4a374..f1dda9576e 100644
--- a/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java
+++ b/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java
@@ -119,6 +119,8 @@
  * 

For example, to set the total timeout of deleteBucket to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * StorageStubSettings.Builder storageSettingsBuilder = StorageStubSettings.newBuilder();
  * storageSettingsBuilder
  *     .deleteBucketSettings()

From c1b56d5b2d9574caa64e354ea66fc5edbc098ac7 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Mon, 14 Feb 2022 19:37:43 -0800
Subject: [PATCH 06/29] feat: write samples to files

---
 scripts/diff_gen_and_golden.sh                |   8 +-
 scripts/update_golden.sh                      |  12 +-
 .../generator/gapic/composer/Composer.java    |  49 +++++++-
 .../api/generator/gapic/model/GapicClass.java |  14 +--
 .../generator/gapic/protowriter/Writer.java   | 106 +++++++++++++-----
 5 files changed, 141 insertions(+), 48 deletions(-)

diff --git a/scripts/diff_gen_and_golden.sh b/scripts/diff_gen_and_golden.sh
index dfd1dfda26..e079af6431 100755
--- a/scripts/diff_gen_and_golden.sh
+++ b/scripts/diff_gen_and_golden.sh
@@ -8,6 +8,10 @@ RAW_SRCJAR=$( find . -name '*_java_gapic_srcjar_raw.srcjar' )
 mkdir unpacked src
 cd unpacked
 unzip -q -c "../${RAW_SRCJAR}" temp-codegen.srcjar | jar x
+
+mkdir -p ../samples/generated/src
+cp -r samples/generated/src/main/java/* ../samples/generated/src
+
 cp -r src/main/java/* ../src
 cp -r src/test/java/* ../src
 [ -d proto ] && cp -r proto/src/main/java/* ../src
@@ -17,7 +21,7 @@ cd ..
 find src -type f ! -name '*.java' -a ! -name '*gapic_metadata.json' -delete
 find src -type f -name 'PlaceholderFile.java' -delete
 find src -type d -empty -delete
-
 # This will not print diff_output to the console unless `--test_output=all` option
 # is enabled, it only emits the comparison results to the test.log.
-diff -ru src test/integration/goldens/${API_NAME}
+diff -ru src test/integration/goldens/${API_NAME}/src
+diff -ru samples test/integration/goldens/${API_NAME}/samples
\ No newline at end of file
diff --git a/scripts/update_golden.sh b/scripts/update_golden.sh
index ba72594be1..74b9e45b7c 100755
--- a/scripts/update_golden.sh
+++ b/scripts/update_golden.sh
@@ -17,9 +17,13 @@ cd ${BUILD_WORKSPACE_DIRECTORY}/test/integration/goldens/${API_NAME}
 find . -name '*.java' -delete
 find . -name 'gapic_metadata.json' -delete
 
-cp -r ${UNPACK_DIR}/src/main/java/* .
-cp -r ${UNPACK_DIR}/src/test/java/* .
-[ -d ${UNPACK_DIR}/proto ] && cp -r ${UNPACK_DIR}/proto/src/main/java/* .
+mkdir -p ./src
+cp -r ${UNPACK_DIR}/src/main/java/* ./src
+cp -r ${UNPACK_DIR}/src/test/java/* ./src
+[ -d ${UNPACK_DIR}/proto ] && cp -r ${UNPACK_DIR}/proto/src/main/java/* ./src
+
+mkdir -p ./samples/generated/src
+cp -r ${UNPACK_DIR}/samples/generated/src/main/java/* ./samples/generated/src
 
 find . -name 'PlaceholderFile.java' -delete
-find . -type d -empty -delete
+find . -type d -empty -delete
\ No newline at end of file
diff --git a/src/main/java/com/google/api/generator/gapic/composer/Composer.java b/src/main/java/com/google/api/generator/gapic/composer/Composer.java
index 63cf049dd0..4fb72f02f2 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/Composer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/Composer.java
@@ -32,10 +32,12 @@
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.GapicPackageInfo;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.model.Transport;
 import com.google.common.annotations.VisibleForTesting;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 import java.util.stream.Collectors;
 
@@ -45,7 +47,7 @@ public static List composeServiceClasses(GapicContext context) {
     clazzes.addAll(generateServiceClasses(context));
     clazzes.addAll(generateMockClasses(context, context.mixinServices()));
     clazzes.addAll(generateResourceNameHelperClasses(context));
-    return addApacheLicense(clazzes);
+    return addApacheLicense(composeSamples(clazzes, context.gapicMetadata().getProtoPackage()));
   }
 
   public static GapicPackageInfo composePackageInfo(GapicContext context) {
@@ -186,6 +188,39 @@ public static List generateTestClasses(GapicContext context) {
     return clazzes;
   }
 
+  private static List composeSamples(List clazzes, String protoPackage) {
+    //  parse protoPackage for apiVersion and apiShortName
+    String[] pakkage = protoPackage.split("\\.");
+    String apiVersion;
+    String apiShortName;
+    //  e.g. v1, v2, v1beta1
+    if (pakkage[pakkage.length - 1].matches("v[0-9].*")) {
+      apiVersion = pakkage[pakkage.length - 1];
+      apiShortName = pakkage[pakkage.length - 2];
+    } else {
+      apiVersion = "";
+      apiShortName = pakkage[pakkage.length - 1];
+    }
+    //  Include license header, apiShortName, and apiVerion
+    return clazzes.stream()
+        .map(
+            gapicClass -> {
+              List samples =
+                  gapicClass.samples().stream()
+                      .map(sample -> updateSample(sample, apiShortName, apiVersion))
+                      .collect(Collectors.toList());
+              return gapicClass.withSamples(samples);
+            })
+        .collect(Collectors.toList());
+  }
+
+  private static Sample updateSample(Sample sample, String apiShortName, String apiVersion) {
+    return sample
+        .withHeader(Arrays.asList(CommentComposer.APACHE_LICENSE_COMMENT))
+        .withRegionTag(
+            sample.regionTag().withApiVersion(apiVersion).withApiShortName(apiShortName));
+  }
+
   @VisibleForTesting
   protected static List addApacheLicense(List gapicClassList) {
     return gapicClassList.stream()
@@ -197,7 +232,7 @@ protected static List addApacheLicense(List gapicClassLi
                       .toBuilder()
                       .setFileHeader(CommentComposer.APACHE_LICENSE_COMMENT)
                       .build();
-              return GapicClass.create(gapicClass.kind(), classWithHeader);
+              return GapicClass.create(gapicClass.kind(), classWithHeader, gapicClass.samples());
             })
         .collect(Collectors.toList());
   }
@@ -210,4 +245,14 @@ private static GapicPackageInfo addApacheLicense(GapicPackageInfo gapicPackageIn
             .setFileHeader(CommentComposer.APACHE_LICENSE_COMMENT)
             .build());
   }
+
+  private static Sample addApacheLicense(Sample sample) {
+    return sample.withHeader(Arrays.asList(CommentComposer.APACHE_LICENSE_COMMENT));
+  }
+
+  private static Sample addRegionTagAttributes(
+      Sample sample, String apiVersion, String apiShortName) {
+    return sample.withRegionTag(
+        sample.regionTag().withApiVersion(apiVersion).withApiShortName(apiShortName));
+  }
 }
diff --git a/src/main/java/com/google/api/generator/gapic/model/GapicClass.java b/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
index c08712e509..046e4c19ca 100644
--- a/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
+++ b/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
@@ -43,11 +43,7 @@ public static GapicClass create(Kind kind, ClassDefinition classDefinition) {
 
   public static GapicClass create(
       Kind kind, ClassDefinition classDefinition, List samples) {
-    return builder()
-        .setKind(kind)
-        .setClassDefinition(classDefinition)
-        .setSamples(handleDuplicateSamples(samples))
-        .build();
+    return builder().setKind(kind).setClassDefinition(classDefinition).setSamples(samples).build();
   }
 
   static Builder builder() {
@@ -57,7 +53,7 @@ static Builder builder() {
   abstract Builder toBuilder();
 
   public final GapicClass withSamples(List samples) {
-    return toBuilder().setSamples(handleDuplicateSamples(samples)).build();
+    return toBuilder().setSamples(samples).build();
   }
 
   @AutoValue.Builder
@@ -79,7 +75,7 @@ public final GapicClass build() {
   }
 
   private static List handleDuplicateSamples(List samples) {
-    //  filter out any duplicate samples
+    //  filter out any duplicate samples and group by sample name
     Map> distinctSamplesGroupedByName =
         samples.stream().distinct().collect(Collectors.groupingBy(s -> s.name()));
 
@@ -90,13 +86,13 @@ private static List handleDuplicateSamples(List samples) {
             .map(entry -> entry.getValue().get(0))
             .collect(Collectors.toList());
 
-    // grab samples that are distinct but same sample
+    // grab distinct samples with same name - similar version of same sample
     List>> duplicateDistinctSamples =
         distinctSamplesGroupedByName.entrySet().stream()
             .filter(entry -> entry.getValue().size() > 1)
             .collect(Collectors.toList());
 
-    // update these regionTag/name so distinct duplicates are unique files
+    // update similar samples regionTag/name so filesname/regiontag are unique
     for (Map.Entry> entry : duplicateDistinctSamples) {
       int sampleNum = 1;
       for (Sample sample : entry.getValue()) {
diff --git a/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java b/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java
index 634174acca..2cf4837e41 100644
--- a/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java
+++ b/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java
@@ -17,9 +17,12 @@
 import com.google.api.generator.engine.ast.ClassDefinition;
 import com.google.api.generator.engine.ast.PackageInfoDefinition;
 import com.google.api.generator.engine.writer.JavaWriterVisitor;
+import com.google.api.generator.gapic.composer.samplecode.SampleComposer;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.GapicPackageInfo;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.protobuf.ByteString;
 import com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse;
 import com.google.protobuf.util.JsonFormat;
@@ -43,7 +46,7 @@ public static CodeGeneratorResponse write(
       String outputFilePath) {
     ByteString.Output output = ByteString.newOutput();
     JavaWriterVisitor codeWriter = new JavaWriterVisitor();
-    JarOutputStream jos = null;
+    JarOutputStream jos;
     try {
       jos = new JarOutputStream(output);
     } catch (IOException e) {
@@ -51,44 +54,96 @@ public static CodeGeneratorResponse write(
     }
 
     for (GapicClass gapicClazz : clazzes) {
-      ClassDefinition clazz = gapicClazz.classDefinition();
+      String classPath = writeClazz(gapicClazz, codeWriter, jos);
+      writeSamples(gapicClazz, getSamplePackage(gapicClazz), classPath, jos);
+    }
+
+    writeMetadataFile(context, writePackageInfo(gapicPackageInfo, codeWriter, jos), jos);
+
+    try {
+      jos.finish();
+      jos.flush();
+    } catch (IOException e) {
+      throw new GapicWriterException(e.getMessage());
+    }
+
+    CodeGeneratorResponse.Builder response = CodeGeneratorResponse.newBuilder();
+    response
+        .setSupportedFeatures(CodeGeneratorResponse.Feature.FEATURE_PROTO3_OPTIONAL_VALUE)
+        .addFileBuilder()
+        .setName(outputFilePath)
+        .setContentBytes(output.toByteString());
+    return response.build();
+  }
 
-      clazz.accept(codeWriter);
-      String code = codeWriter.write();
-      codeWriter.clear();
+  private static String writeClazz(
+      GapicClass gapicClazz, JavaWriterVisitor codeWriter, JarOutputStream jos) {
+    ClassDefinition clazz = gapicClazz.classDefinition();
+
+    clazz.accept(codeWriter);
+    String code = codeWriter.write();
+    codeWriter.clear();
+
+    String path = getPath(clazz.packageString(), clazz.classIdentifier().name());
+    String className = clazz.classIdentifier().name();
+    JarEntry jarEntry = new JarEntry(String.format("%s/%s.java", path, className));
+    try {
+      jos.putNextEntry(jarEntry);
+      jos.write(code.getBytes(StandardCharsets.UTF_8));
+    } catch (IOException e) {
+      throw new GapicWriterException(
+          String.format(
+              "Could not write code for class %s.%s: %s",
+              clazz.packageString(), clazz.classIdentifier().name(), e.getMessage()));
+    }
+    return path;
+  }
 
-      String path = getPath(clazz.packageString(), clazz.classIdentifier().name());
-      String className = clazz.classIdentifier().name();
-      JarEntry jarEntry = new JarEntry(String.format("%s/%s.java", path, className));
+  private static void writeSamples(
+      GapicClass gapicClazz, String pakkage, String clazzPath, JarOutputStream jos) {
+    for (Sample sample : gapicClazz.samples()) {
+      JarEntry jarEntry =
+          new JarEntry(
+              String.format(
+                  "samples/generated/%s/%s/%s/%s.java",
+                  clazzPath,
+                  sample.regionTag().serviceName(),
+                  sample.regionTag().rpcName(),
+                  JavaStyle.toUpperCamelCase(sample.name())));
+      String executableSampleCode = SampleComposer.createExecutableSample(sample, pakkage);
       try {
         jos.putNextEntry(jarEntry);
-        jos.write(code.getBytes(StandardCharsets.UTF_8));
+        jos.write(executableSampleCode.getBytes(StandardCharsets.UTF_8));
       } catch (IOException e) {
         throw new GapicWriterException(
             String.format(
-                "Could not write code for class %s.%s: %s",
-                clazz.packageString(), clazz.classIdentifier().name(), e.getMessage()));
+                "Could not write sample code for %s/%s.: %s",
+                clazzPath, sample.name(), e.getMessage()));
       }
     }
+  }
 
-    // Write the package info.
+  private static String writePackageInfo(
+      GapicPackageInfo gapicPackageInfo, JavaWriterVisitor codeWriter, JarOutputStream jos) {
     PackageInfoDefinition packageInfo = gapicPackageInfo.packageInfo();
     packageInfo.accept(codeWriter);
     String code = codeWriter.write();
     codeWriter.clear();
 
-    String path = "src/main/java/" + packageInfo.pakkage().replaceAll("\\.", "/");
-    JarEntry jarEntry = new JarEntry(String.format("%s/package-info.java", path));
+    String packagePath = "src/main/java/" + packageInfo.pakkage().replaceAll("\\.", "/");
+    JarEntry jarEntry = new JarEntry(String.format("%s/package-info.java", packagePath));
     try {
       jos.putNextEntry(jarEntry);
       jos.write(code.getBytes(StandardCharsets.UTF_8));
     } catch (IOException e) {
       throw new GapicWriterException("Could not write code for package-info.java");
     }
+    return packagePath;
+  }
 
+  private static void writeMetadataFile(GapicContext context, String path, JarOutputStream jos) {
     if (context.gapicMetadataEnabled()) {
-      // Write the mdatadata file.
-      jarEntry = new JarEntry(String.format("%s/gapic_metadata.json", path));
+      JarEntry jarEntry = new JarEntry(String.format("%s/gapic_metadata.json", path));
       try {
         jos.putNextEntry(jarEntry);
         jos.write(
@@ -97,21 +152,6 @@ public static CodeGeneratorResponse write(
         throw new GapicWriterException("Could not write gapic_metadata.json");
       }
     }
-
-    try {
-      jos.finish();
-      jos.flush();
-    } catch (IOException e) {
-      throw new GapicWriterException(e.getMessage());
-    }
-
-    CodeGeneratorResponse.Builder response = CodeGeneratorResponse.newBuilder();
-    response
-        .setSupportedFeatures(CodeGeneratorResponse.Feature.FEATURE_PROTO3_OPTIONAL_VALUE)
-        .addFileBuilder()
-        .setName(outputFilePath)
-        .setContentBytes(output.toByteString());
-    return response.build();
   }
 
   private static String getPath(String pakkage, String className) {
@@ -128,4 +168,8 @@ private static String getPath(String pakkage, String className) {
     }
     return path;
   }
+
+  private static String getSamplePackage(GapicClass gapicClazz) {
+    return gapicClazz.classDefinition().packageString().concat(".samples");
+  }
 }

From 81a2e4b8ed5271e7c4f56d5615a6ee9e19e21b16 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Mon, 14 Feb 2022 19:38:29 -0800
Subject: [PATCH 07/29] test: integration goldens - write samples to files

---
 ...alyzeIamPolicyAnalyzeIamPolicyRequest.java | 44 +++++++++++
 ...ableFutureCallAnalyzeIamPolicyRequest.java | 48 ++++++++++++
 ...AnalyzeIamPolicyLongrunningRequestGet.java | 46 ++++++++++++
 ...allAnalyzeIamPolicyLongrunningRequest.java | 50 +++++++++++++
 ...allAnalyzeIamPolicyLongrunningRequest.java | 53 +++++++++++++
 .../AnalyzeMoveAnalyzeMoveRequest.java        | 42 +++++++++++
 ...eCallableFutureCallAnalyzeMoveRequest.java | 46 ++++++++++++
 ...tsHistoryBatchGetAssetsHistoryRequest.java | 49 ++++++++++++
 ...utureCallBatchGetAssetsHistoryRequest.java | 54 +++++++++++++
 .../create/CreateAssetServiceSettings1.java   | 40 ++++++++++
 .../create/CreateAssetServiceSettings2.java   | 37 +++++++++
 ...edCallableFutureCallCreateFeedRequest.java | 46 ++++++++++++
 .../CreateFeedCreateFeedRequest.java          | 43 +++++++++++
 .../createFeed/CreateFeedString.java          | 37 +++++++++
 ...edCallableFutureCallDeleteFeedRequest.java | 45 +++++++++++
 .../DeleteFeedDeleteFeedRequest.java          | 42 +++++++++++
 .../deleteFeed/DeleteFeedFeedName.java        | 38 ++++++++++
 .../deleteFeed/DeleteFeedString.java          | 38 ++++++++++
 ...portAssetsAsyncExportAssetsRequestGet.java | 51 +++++++++++++
 ...CallableFutureCallExportAssetsRequest.java | 54 +++++++++++++
 ...CallableFutureCallExportAssetsRequest.java | 55 ++++++++++++++
 ...tFeedCallableFutureCallGetFeedRequest.java | 45 +++++++++++
 .../getFeed/GetFeedFeedName.java              | 38 ++++++++++
 .../getFeed/GetFeedGetFeedRequest.java        | 42 +++++++++++
 .../getFeed/GetFeedString.java                | 38 ++++++++++
 ...stAssetsCallableCallListAssetsRequest.java | 64 ++++++++++++++++
 ...ListAssetsListAssetsRequestIterateAll.java | 53 +++++++++++++
 ...edCallableFutureCallListAssetsRequest.java | 56 ++++++++++++++
 .../ListAssetsResourceNameIterateAll.java     | 41 ++++++++++
 .../ListAssetsStringIterateAll.java           | 40 ++++++++++
 ...edsCallableFutureCallListFeedsRequest.java | 43 +++++++++++
 .../listFeeds/ListFeedsListFeedsRequest.java  | 39 ++++++++++
 .../listFeeds/ListFeedsString.java            | 37 +++++++++
 ...llableCallSearchAllIamPoliciesRequest.java | 62 +++++++++++++++
 ...FutureCallSearchAllIamPoliciesRequest.java | 54 +++++++++++++
 ...SearchAllIamPoliciesRequestIterateAll.java | 50 +++++++++++++
 ...hAllIamPoliciesStringStringIterateAll.java | 41 ++++++++++
 ...CallableCallSearchAllResourcesRequest.java | 63 ++++++++++++++++
 ...leFutureCallSearchAllResourcesRequest.java | 56 ++++++++++++++
 ...esSearchAllResourcesRequestIterateAll.java | 52 +++++++++++++
 ...urcesStringStringListStringIterateAll.java | 44 +++++++++++
 ...edCallableFutureCallUpdateFeedRequest.java | 46 ++++++++++++
 .../updateFeed/UpdateFeedFeed.java            | 37 +++++++++
 .../UpdateFeedUpdateFeedRequest.java          | 43 +++++++++++
 ...sSetRetrySettingsAssetServiceSettings.java | 45 +++++++++++
 ...RetrySettingsAssetServiceStubSettings.java | 46 ++++++++++++
 .../cloud/asset/v1/AssetServiceClient.java    |  0
 .../asset/v1/AssetServiceClientTest.java      |  0
 .../cloud/asset/v1/AssetServiceSettings.java  |  0
 .../com/google/cloud/asset/v1/FeedName.java   |  0
 .../cloud/asset/v1/MockAssetService.java      |  0
 .../cloud/asset/v1/MockAssetServiceImpl.java  |  0
 .../google/cloud/asset/v1/gapic_metadata.json |  0
 .../google/cloud/asset/v1/package-info.java   |  0
 .../cloud/asset/v1/stub/AssetServiceStub.java |  0
 .../v1/stub/AssetServiceStubSettings.java     |  0
 .../stub/GrpcAssetServiceCallableFactory.java |  0
 .../asset/v1/stub/GrpcAssetServiceStub.java   |  0
 ...bleFutureCallCheckAndMutateRowRequest.java | 56 ++++++++++++++
 ...kAndMutateRowCheckAndMutateRowRequest.java | 51 +++++++++++++
 ...ringRowFilterListMutationListMutation.java | 50 +++++++++++++
 ...wFilterListMutationListMutationString.java | 51 +++++++++++++
 ...ringRowFilterListMutationListMutation.java | 50 +++++++++++++
 ...wFilterListMutationListMutationString.java | 51 +++++++++++++
 .../CreateBaseBigtableDataSettings1.java      | 41 ++++++++++
 .../CreateBaseBigtableDataSettings2.java      | 38 ++++++++++
 ...RowCallableFutureCallMutateRowRequest.java | 52 +++++++++++++
 .../mutateRow/MutateRowMutateRowRequest.java  | 48 ++++++++++++
 ...MutateRowStringByteStringListMutation.java | 44 +++++++++++
 ...RowStringByteStringListMutationString.java | 46 ++++++++++++
 ...ateRowTableNameByteStringListMutation.java | 44 +++++++++++
 ...TableNameByteStringListMutationString.java | 46 ++++++++++++
 ...tateRowsCallableCallMutateRowsRequest.java | 50 +++++++++++++
 ...leFutureCallReadModifyWriteRowRequest.java | 53 +++++++++++++
 ...difyWriteRowReadModifyWriteRowRequest.java | 48 ++++++++++++
 ...ringByteStringListReadModifyWriteRule.java | 45 +++++++++++
 ...teStringListReadModifyWriteRuleString.java | 47 ++++++++++++
 ...NameByteStringListReadModifyWriteRule.java | 46 ++++++++++++
 ...teStringListReadModifyWriteRuleString.java | 47 ++++++++++++
 .../ReadRowsCallableCallReadRowsRequest.java  | 53 +++++++++++++
 ...wKeysCallableCallSampleRowKeysRequest.java | 48 ++++++++++++
 ...RetrySettingsBaseBigtableDataSettings.java | 45 +++++++++++
 ...sSetRetrySettingsBigtableStubSettings.java | 45 +++++++++++
 .../com/google/bigtable/v2/TableName.java     |  0
 .../data/v2/BaseBigtableDataClient.java       |  0
 .../data/v2/BaseBigtableDataClientTest.java   |  0
 .../data/v2/BaseBigtableDataSettings.java     |  0
 .../cloud/bigtable/data/v2/MockBigtable.java  |  0
 .../bigtable/data/v2/MockBigtableImpl.java    |  0
 .../bigtable/data/v2/gapic_metadata.json      |  0
 .../cloud/bigtable/data/v2/package-info.java  |  0
 .../bigtable/data/v2/stub/BigtableStub.java   |  0
 .../data/v2/stub/BigtableStubSettings.java    |  0
 .../v2/stub/GrpcBigtableCallableFactory.java  |  0
 .../data/v2/stub/GrpcBigtableStub.java        |  0
 ...regatedListAddressesRequestIterateAll.java | 50 +++++++++++++
 ...bleCallAggregatedListAddressesRequest.java | 60 +++++++++++++++
 ...ureCallAggregatedListAddressesRequest.java | 54 +++++++++++++
 .../AggregatedListStringIterateAll.java       | 41 ++++++++++
 .../create/CreateAddressesSettings1.java      | 40 ++++++++++
 .../create/CreateAddressesSettings2.java      | 37 +++++++++
 .../DeleteAsyncDeleteAddressRequestGet.java   | 44 +++++++++++
 .../DeleteAsyncStringStringStringGet.java     | 39 ++++++++++
 ...allableFutureCallDeleteAddressRequest.java | 47 ++++++++++++
 ...allableFutureCallDeleteAddressRequest.java | 48 ++++++++++++
 .../InsertAsyncInsertAddressRequestGet.java   | 45 +++++++++++
 .../InsertAsyncStringStringAddressGet.java    | 40 ++++++++++
 ...allableFutureCallInsertAddressRequest.java | 48 ++++++++++++
 ...allableFutureCallInsertAddressRequest.java | 49 ++++++++++++
 .../ListCallableCallListAddressesRequest.java | 59 +++++++++++++++
 .../ListListAddressesRequestIterateAll.java   | 48 ++++++++++++
 ...allableFutureCallListAddressesRequest.java | 51 +++++++++++++
 .../ListStringStringStringIterateAll.java     | 41 ++++++++++
 ...ingsSetRetrySettingsAddressesSettings.java | 44 +++++++++++
 .../CreateRegionOperationsSettings1.java      | 41 ++++++++++
 .../CreateRegionOperationsSettings2.java      | 38 ++++++++++
 ...leFutureCallGetRegionOperationRequest.java | 46 ++++++++++++
 .../get/GetGetRegionOperationRequest.java     | 43 +++++++++++
 .../get/GetStringStringString.java            | 39 ++++++++++
 ...eFutureCallWaitRegionOperationRequest.java | 46 ++++++++++++
 .../wait/WaitStringStringString.java          | 39 ++++++++++
 .../wait/WaitWaitRegionOperationRequest.java  | 43 +++++++++++
 ...RetrySettingsRegionOperationsSettings.java | 45 +++++++++++
 ...SetRetrySettingsAddressesStubSettings.java | 45 +++++++++++
 ...ySettingsRegionOperationsStubSettings.java | 45 +++++++++++
 .../compute/v1small/AddressesClient.java      |  0
 .../compute/v1small/AddressesClientTest.java  |  0
 .../compute/v1small/AddressesSettings.java    |  0
 .../v1small/RegionOperationsClient.java       |  0
 .../v1small/RegionOperationsClientTest.java   |  0
 .../v1small/RegionOperationsSettings.java     |  0
 .../cloud/compute/v1small/gapic_metadata.json |  0
 .../cloud/compute/v1small/package-info.java   |  0
 .../compute/v1small/stub/AddressesStub.java   |  0
 .../v1small/stub/AddressesStubSettings.java   |  0
 .../HttpJsonAddressesCallableFactory.java     |  0
 .../v1small/stub/HttpJsonAddressesStub.java   |  0
 ...tpJsonRegionOperationsCallableFactory.java |  0
 .../stub/HttpJsonRegionOperationsStub.java    |  0
 .../v1small/stub/RegionOperationsStub.java    |  0
 .../stub/RegionOperationsStubSettings.java    |  0
 .../create/CreateIamCredentialsSettings1.java | 40 ++++++++++
 .../create/CreateIamCredentialsSettings2.java | 37 +++++++++
 ...eFutureCallGenerateAccessTokenRequest.java | 52 +++++++++++++
 ...AccessTokenGenerateAccessTokenRequest.java | 47 ++++++++++++
 ...countNameListStringListStringDuration.java | 46 ++++++++++++
 ...kenStringListStringListStringDuration.java | 45 +++++++++++
 ...lableFutureCallGenerateIdTokenRequest.java | 50 +++++++++++++
 ...GenerateIdTokenGenerateIdTokenRequest.java | 46 ++++++++++++
 ...iceAccountNameListStringStringBoolean.java | 44 +++++++++++
 ...eIdTokenStringListStringStringBoolean.java | 44 +++++++++++
 ...BlobCallableFutureCallSignBlobRequest.java | 50 +++++++++++++
 ...erviceAccountNameListStringByteString.java | 43 +++++++++++
 .../signBlob/SignBlobSignBlobRequest.java     | 46 ++++++++++++
 .../SignBlobStringListStringByteString.java   | 43 +++++++++++
 ...gnJwtCallableFutureCallSignJwtRequest.java | 49 ++++++++++++
 ...JwtServiceAccountNameListStringString.java | 42 +++++++++++
 .../signJwt/SignJwtSignJwtRequest.java        | 45 +++++++++++
 .../SignJwtStringListStringString.java        | 42 +++++++++++
 ...etRetrySettingsIamCredentialsSettings.java | 46 ++++++++++++
 ...trySettingsIamCredentialsStubSettings.java | 46 ++++++++++++
 .../v1/IAMCredentialsClientTest.java          |  0
 .../credentials/v1/IamCredentialsClient.java  |  0
 .../v1/IamCredentialsSettings.java            |  0
 .../credentials/v1/MockIAMCredentials.java    |  0
 .../v1/MockIAMCredentialsImpl.java            |  0
 .../credentials/v1/ServiceAccountName.java    |  0
 .../iam/credentials/v1/gapic_metadata.json    |  0
 .../iam/credentials/v1/package-info.java      |  0
 .../GrpcIamCredentialsCallableFactory.java    |  0
 .../v1/stub/GrpcIamCredentialsStub.java       |  0
 .../v1/stub/IamCredentialsStub.java           |  0
 .../v1/stub/IamCredentialsStubSettings.java   |  0
 .../create/CreateIAMPolicySettings1.java      | 40 ++++++++++
 .../create/CreateIAMPolicySettings2.java      | 37 +++++++++
 ...CallableFutureCallGetIamPolicyRequest.java | 46 ++++++++++++
 .../GetIamPolicyGetIamPolicyRequest.java      | 43 +++++++++++
 ...CallableFutureCallSetIamPolicyRequest.java | 45 +++++++++++
 .../SetIamPolicySetIamPolicyRequest.java      | 42 +++++++++++
 ...leFutureCallTestIamPermissionsRequest.java | 48 ++++++++++++
 ...mPermissionsTestIamPermissionsRequest.java | 43 +++++++++++
 ...ingsSetRetrySettingsIAMPolicySettings.java | 44 +++++++++++
 ...SetRetrySettingsIAMPolicyStubSettings.java | 44 +++++++++++
 .../com/google/iam/v1/IAMPolicyClient.java    |  0
 .../google/iam/v1/IAMPolicyClientTest.java    |  0
 .../com/google/iam/v1/IAMPolicySettings.java  |  0
 .../com/google/iam/v1/MockIAMPolicy.java      |  0
 .../com/google/iam/v1/MockIAMPolicyImpl.java  |  0
 .../com/google/iam/v1/gapic_metadata.json     |  0
 .../com/google/iam/v1/package-info.java       |  0
 .../v1/stub/GrpcIAMPolicyCallableFactory.java |  0
 .../google/iam/v1/stub/GrpcIAMPolicyStub.java |  0
 .../com/google/iam/v1/stub/IAMPolicyStub.java |  0
 .../iam/v1/stub/IAMPolicyStubSettings.java    |  0
 ...metricDecryptAsymmetricDecryptRequest.java | 54 +++++++++++++
 ...bleFutureCallAsymmetricDecryptRequest.java | 59 +++++++++++++++
 ...DecryptCryptoKeyVersionNameByteString.java | 44 +++++++++++
 .../AsymmetricDecryptStringByteString.java    | 45 +++++++++++
 .../AsymmetricSignAsymmetricSignRequest.java  | 54 +++++++++++++
 ...llableFutureCallAsymmetricSignRequest.java | 58 ++++++++++++++
 ...mmetricSignCryptoKeyVersionNameDigest.java | 43 +++++++++++
 .../AsymmetricSignStringDigest.java           | 44 +++++++++++
 .../CreateKeyManagementServiceSettings1.java  | 41 ++++++++++
 .../CreateKeyManagementServiceSettings2.java  | 38 ++++++++++
 ...lableFutureCallCreateCryptoKeyRequest.java | 50 +++++++++++++
 ...CreateCryptoKeyCreateCryptoKeyRequest.java | 46 ++++++++++++
 ...teCryptoKeyKeyRingNameStringCryptoKey.java | 42 +++++++++++
 .../CreateCryptoKeyStringStringCryptoKey.java | 42 +++++++++++
 ...tureCallCreateCryptoKeyVersionRequest.java | 51 +++++++++++++
 ...yVersionCreateCryptoKeyVersionRequest.java | 46 ++++++++++++
 ...yVersionCryptoKeyNameCryptoKeyVersion.java | 42 +++++++++++
 ...ryptoKeyVersionStringCryptoKeyVersion.java | 42 +++++++++++
 ...lableFutureCallCreateImportJobRequest.java | 49 ++++++++++++
 ...CreateImportJobCreateImportJobRequest.java | 45 +++++++++++
 ...teImportJobKeyRingNameStringImportJob.java | 42 +++++++++++
 .../CreateImportJobStringStringImportJob.java | 42 +++++++++++
 ...allableFutureCallCreateKeyRingRequest.java | 49 ++++++++++++
 .../CreateKeyRingCreateKeyRingRequest.java    | 45 +++++++++++
 ...reateKeyRingLocationNameStringKeyRing.java | 41 ++++++++++
 .../CreateKeyRingStringStringKeyRing.java     | 41 ++++++++++
 ...cryptCallableFutureCallDecryptRequest.java | 55 ++++++++++++++
 .../DecryptCryptoKeyNameByteString.java       | 42 +++++++++++
 .../decrypt/DecryptDecryptRequest.java        | 51 +++++++++++++
 .../decrypt/DecryptStringByteString.java      | 42 +++++++++++
 ...ureCallDestroyCryptoKeyVersionRequest.java | 55 ++++++++++++++
 ...yCryptoKeyVersionCryptoKeyVersionName.java | 41 ++++++++++
 ...VersionDestroyCryptoKeyVersionRequest.java | 50 +++++++++++++
 .../DestroyCryptoKeyVersionString.java        | 42 +++++++++++
 ...cryptCallableFutureCallEncryptRequest.java | 55 ++++++++++++++
 .../encrypt/EncryptEncryptRequest.java        | 51 +++++++++++++
 .../EncryptResourceNameByteString.java        | 42 +++++++++++
 .../encrypt/EncryptStringByteString.java      | 42 +++++++++++
 ...CallableFutureCallGetCryptoKeyRequest.java | 49 ++++++++++++
 .../GetCryptoKeyCryptoKeyName.java            | 40 ++++++++++
 .../GetCryptoKeyGetCryptoKeyRequest.java      | 45 +++++++++++
 .../getCryptoKey/GetCryptoKeyString.java      | 40 ++++++++++
 ...eFutureCallGetCryptoKeyVersionRequest.java | 55 ++++++++++++++
 ...tCryptoKeyVersionCryptoKeyVersionName.java | 41 ++++++++++
 ...oKeyVersionGetCryptoKeyVersionRequest.java | 50 +++++++++++++
 .../GetCryptoKeyVersionString.java            | 42 +++++++++++
 ...CallableFutureCallGetIamPolicyRequest.java | 51 +++++++++++++
 .../GetIamPolicyGetIamPolicyRequest.java      | 47 ++++++++++++
 ...CallableFutureCallGetImportJobRequest.java | 49 ++++++++++++
 .../GetImportJobGetImportJobRequest.java      | 45 +++++++++++
 .../GetImportJobImportJobName.java            | 40 ++++++++++
 .../getImportJob/GetImportJobString.java      | 40 ++++++++++
 ...ngCallableFutureCallGetKeyRingRequest.java | 47 ++++++++++++
 .../GetKeyRingGetKeyRingRequest.java          | 43 +++++++++++
 .../getKeyRing/GetKeyRingKeyRingName.java     | 39 ++++++++++
 .../getKeyRing/GetKeyRingString.java          | 39 ++++++++++
 ...nCallableFutureCallGetLocationRequest.java | 43 +++++++++++
 .../GetLocationGetLocationRequest.java        | 39 ++++++++++
 ...CallableFutureCallGetPublicKeyRequest.java | 54 +++++++++++++
 .../GetPublicKeyCryptoKeyVersionName.java     | 41 ++++++++++
 .../GetPublicKeyGetPublicKeyRequest.java      | 50 +++++++++++++
 .../getPublicKey/GetPublicKeyString.java      | 42 +++++++++++
 ...tureCallImportCryptoKeyVersionRequest.java | 51 +++++++++++++
 ...yVersionImportCryptoKeyVersionRequest.java | 46 ++++++++++++
 ...lableCallListCryptoKeyVersionsRequest.java | 64 ++++++++++++++++
 ...ptoKeyVersionsCryptoKeyNameIterateAll.java | 43 +++++++++++
 ...istCryptoKeyVersionsRequestIterateAll.java | 53 +++++++++++++
 ...utureCallListCryptoKeyVersionsRequest.java | 56 ++++++++++++++
 ...ListCryptoKeyVersionsStringIterateAll.java | 43 +++++++++++
 ...KeysCallableCallListCryptoKeysRequest.java | 61 +++++++++++++++
 .../ListCryptoKeysKeyRingNameIterateAll.java  | 41 ++++++++++
 ...toKeysListCryptoKeysRequestIterateAll.java | 49 ++++++++++++
 ...llableFutureCallListCryptoKeysRequest.java | 53 +++++++++++++
 .../ListCryptoKeysStringIterateAll.java       | 41 ++++++++++
 ...JobsCallableCallListImportJobsRequest.java | 61 +++++++++++++++
 .../ListImportJobsKeyRingNameIterateAll.java  | 41 ++++++++++
 ...rtJobsListImportJobsRequestIterateAll.java | 49 ++++++++++++
 ...llableFutureCallListImportJobsRequest.java | 53 +++++++++++++
 .../ListImportJobsStringIterateAll.java       | 41 ++++++++++
 ...yRingsCallableCallListKeyRingsRequest.java | 61 +++++++++++++++
 ...KeyRingsListKeyRingsRequestIterateAll.java | 49 ++++++++++++
 .../ListKeyRingsLocationNameIterateAll.java   | 41 ++++++++++
 ...CallableFutureCallListKeyRingsRequest.java | 53 +++++++++++++
 .../ListKeyRingsStringIterateAll.java         | 41 ++++++++++
 ...tionsCallableCallListLocationsRequest.java | 59 +++++++++++++++
 ...cationsListLocationsRequestIterateAll.java | 47 ++++++++++++
 ...allableFutureCallListLocationsRequest.java | 51 +++++++++++++
 ...ureCallRestoreCryptoKeyVersionRequest.java | 55 ++++++++++++++
 ...eCryptoKeyVersionCryptoKeyVersionName.java | 41 ++++++++++
 ...VersionRestoreCryptoKeyVersionRequest.java | 50 +++++++++++++
 .../RestoreCryptoKeyVersionString.java        | 42 +++++++++++
 ...leFutureCallTestIamPermissionsRequest.java | 52 +++++++++++++
 ...mPermissionsTestIamPermissionsRequest.java | 47 ++++++++++++
 ...lableFutureCallUpdateCryptoKeyRequest.java | 48 ++++++++++++
 .../UpdateCryptoKeyCryptoKeyFieldMask.java    | 40 ++++++++++
 ...UpdateCryptoKeyUpdateCryptoKeyRequest.java | 44 +++++++++++
 ...lUpdateCryptoKeyPrimaryVersionRequest.java | 52 +++++++++++++
 ...oKeyPrimaryVersionCryptoKeyNameString.java | 42 +++++++++++
 ...teCryptoKeyPrimaryVersionStringString.java | 42 +++++++++++
 ...nUpdateCryptoKeyPrimaryVersionRequest.java | 47 ++++++++++++
 ...tureCallUpdateCryptoKeyVersionRequest.java | 49 ++++++++++++
 ...toKeyVersionCryptoKeyVersionFieldMask.java | 41 ++++++++++
 ...yVersionUpdateCryptoKeyVersionRequest.java | 44 +++++++++++
 ...ySettingsKeyManagementServiceSettings.java | 47 ++++++++++++
 ...tingsKeyManagementServiceStubSettings.java | 47 ++++++++++++
 .../google/cloud/kms/v1/CryptoKeyName.java    |  0
 .../cloud/kms/v1/CryptoKeyVersionName.java    |  0
 .../google/cloud/kms/v1/ImportJobName.java    |  0
 .../kms/v1/KeyManagementServiceClient.java    |  0
 .../v1/KeyManagementServiceClientTest.java    |  0
 .../kms/v1/KeyManagementServiceSettings.java  |  0
 .../com/google/cloud/kms/v1/KeyRingName.java  |  0
 .../com/google/cloud/kms/v1/LocationName.java |  0
 .../kms/v1/MockKeyManagementService.java      |  0
 .../kms/v1/MockKeyManagementServiceImpl.java  |  0
 .../google/cloud/kms/v1/gapic_metadata.json   |  0
 .../com/google/cloud/kms/v1/package-info.java |  0
 ...pcKeyManagementServiceCallableFactory.java |  0
 .../v1/stub/GrpcKeyManagementServiceStub.java |  0
 .../kms/v1/stub/KeyManagementServiceStub.java |  0
 .../KeyManagementServiceStubSettings.java     |  0
 .../google/cloud/location/MockLocations.java  |  0
 .../cloud/location/MockLocationsImpl.java     |  0
 .../com/google/iam/v1/MockIAMPolicy.java      |  0
 .../com/google/iam/v1/MockIAMPolicyImpl.java  |  0
 .../create/CreateLibraryServiceSettings1.java | 40 ++++++++++
 .../create/CreateLibraryServiceSettings2.java | 37 +++++++++
 ...okCallableFutureCallCreateBookRequest.java | 46 ++++++++++++
 .../CreateBookCreateBookRequest.java          | 43 +++++++++++
 .../createBook/CreateBookShelfNameBook.java   | 39 ++++++++++
 .../createBook/CreateBookStringBook.java      | 39 ++++++++++
 ...fCallableFutureCallCreateShelfRequest.java | 42 +++++++++++
 .../CreateShelfCreateShelfRequest.java        | 39 ++++++++++
 .../createShelf/CreateShelfShelf.java         | 37 +++++++++
 .../deleteBook/DeleteBookBookName.java        | 38 ++++++++++
 ...okCallableFutureCallDeleteBookRequest.java | 45 +++++++++++
 .../DeleteBookDeleteBookRequest.java          | 42 +++++++++++
 .../deleteBook/DeleteBookString.java          | 38 ++++++++++
 ...fCallableFutureCallDeleteShelfRequest.java | 43 +++++++++++
 .../DeleteShelfDeleteShelfRequest.java        | 40 ++++++++++
 .../deleteShelf/DeleteShelfShelfName.java     | 38 ++++++++++
 .../deleteShelf/DeleteShelfString.java        | 38 ++++++++++
 .../getBook/GetBookBookName.java              | 38 ++++++++++
 ...tBookCallableFutureCallGetBookRequest.java | 43 +++++++++++
 .../getBook/GetBookGetBookRequest.java        | 40 ++++++++++
 .../getBook/GetBookString.java                | 38 ++++++++++
 ...helfCallableFutureCallGetShelfRequest.java | 43 +++++++++++
 .../getShelf/GetShelfGetShelfRequest.java     | 40 ++++++++++
 .../getShelf/GetShelfShelfName.java           | 38 ++++++++++
 .../getShelf/GetShelfString.java              | 38 ++++++++++
 ...ListBooksCallableCallListBooksRequest.java | 57 ++++++++++++++
 .../ListBooksListBooksRequestIterateAll.java  | 46 ++++++++++++
 ...gedCallableFutureCallListBooksRequest.java | 49 ++++++++++++
 .../ListBooksShelfNameIterateAll.java         | 40 ++++++++++
 .../listBooks/ListBooksStringIterateAll.java  | 40 ++++++++++
 ...ShelvesCallableCallListShelvesRequest.java | 55 ++++++++++++++
 ...stShelvesListShelvesRequestIterateAll.java | 44 +++++++++++
 ...dCallableFutureCallListShelvesRequest.java | 47 ++++++++++++
 ...CallableFutureCallMergeShelvesRequest.java | 46 ++++++++++++
 .../MergeShelvesMergeShelvesRequest.java      | 43 +++++++++++
 .../MergeShelvesShelfNameShelfName.java       | 39 ++++++++++
 .../MergeShelvesShelfNameString.java          | 39 ++++++++++
 .../MergeShelvesStringShelfName.java          | 39 ++++++++++
 .../MergeShelvesStringString.java             | 39 ++++++++++
 .../moveBook/MoveBookBookNameShelfName.java   | 40 ++++++++++
 .../moveBook/MoveBookBookNameString.java      | 40 ++++++++++
 ...BookCallableFutureCallMoveBookRequest.java | 47 ++++++++++++
 .../moveBook/MoveBookMoveBookRequest.java     | 44 +++++++++++
 .../moveBook/MoveBookStringShelfName.java     | 40 ++++++++++
 .../moveBook/MoveBookStringString.java        | 40 ++++++++++
 .../updateBook/UpdateBookBookFieldMask.java   | 39 ++++++++++
 ...okCallableFutureCallUpdateBookRequest.java | 46 ++++++++++++
 .../UpdateBookUpdateBookRequest.java          | 43 +++++++++++
 ...etRetrySettingsLibraryServiceSettings.java | 45 +++++++++++
 ...trySettingsLibraryServiceStubSettings.java | 46 ++++++++++++
 .../library/v1/LibraryServiceClient.java      |  0
 .../library/v1/LibraryServiceClientTest.java  |  0
 .../library/v1/LibraryServiceSettings.java    |  0
 .../library/v1/MockLibraryService.java        |  0
 .../library/v1/MockLibraryServiceImpl.java    |  0
 .../example/library/v1/gapic_metadata.json    |  0
 .../example/library/v1/package-info.java      |  0
 .../GrpcLibraryServiceCallableFactory.java    |  0
 .../v1/stub/GrpcLibraryServiceStub.java       |  0
 .../library/v1/stub/LibraryServiceStub.java   |  0
 .../v1/stub/LibraryServiceStubSettings.java   |  0
 .../google/example/library/v1/BookName.java   |  0
 .../google/example/library/v1/ShelfName.java  |  0
 .../create/CreateConfigSettings1.java         | 40 ++++++++++
 .../create/CreateConfigSettings2.java         | 36 +++++++++
 ...CallableFutureCallCreateBucketRequest.java | 47 ++++++++++++
 .../CreateBucketCreateBucketRequest.java      | 44 +++++++++++
 ...clusionBillingAccountNameLogExclusion.java | 39 ++++++++++
 ...lableFutureCallCreateExclusionRequest.java | 46 ++++++++++++
 ...CreateExclusionCreateExclusionRequest.java | 43 +++++++++++
 ...CreateExclusionFolderNameLogExclusion.java | 39 ++++++++++
 ...ExclusionOrganizationNameLogExclusion.java | 39 ++++++++++
 ...reateExclusionProjectNameLogExclusion.java | 39 ++++++++++
 .../CreateExclusionStringLogExclusion.java    | 39 ++++++++++
 .../CreateSinkBillingAccountNameLogSink.java  | 39 ++++++++++
 ...nkCallableFutureCallCreateSinkRequest.java | 47 ++++++++++++
 .../CreateSinkCreateSinkRequest.java          | 44 +++++++++++
 .../CreateSinkFolderNameLogSink.java          | 39 ++++++++++
 .../CreateSinkOrganizationNameLogSink.java    | 39 ++++++++++
 .../CreateSinkProjectNameLogSink.java         | 39 ++++++++++
 .../createSink/CreateSinkStringLogSink.java   | 39 ++++++++++
 ...ewCallableFutureCallCreateViewRequest.java | 46 ++++++++++++
 .../CreateViewCreateViewRequest.java          | 43 +++++++++++
 ...CallableFutureCallDeleteBucketRequest.java | 47 ++++++++++++
 .../DeleteBucketDeleteBucketRequest.java      | 44 +++++++++++
 ...lableFutureCallDeleteExclusionRequest.java | 46 ++++++++++++
 ...DeleteExclusionDeleteExclusionRequest.java | 43 +++++++++++
 .../DeleteExclusionLogExclusionName.java      | 38 ++++++++++
 .../DeleteExclusionString.java                | 38 ++++++++++
 ...nkCallableFutureCallDeleteSinkRequest.java | 45 +++++++++++
 .../DeleteSinkDeleteSinkRequest.java          | 42 +++++++++++
 .../deleteSink/DeleteSinkLogSinkName.java     | 38 ++++++++++
 .../deleteSink/DeleteSinkString.java          | 38 ++++++++++
 ...ewCallableFutureCallDeleteViewRequest.java | 48 ++++++++++++
 .../DeleteViewDeleteViewRequest.java          | 45 +++++++++++
 ...ketCallableFutureCallGetBucketRequest.java | 47 ++++++++++++
 .../getBucket/GetBucketGetBucketRequest.java  | 44 +++++++++++
 ...lableFutureCallGetCmekSettingsRequest.java | 45 +++++++++++
 ...GetCmekSettingsGetCmekSettingsRequest.java | 42 +++++++++++
 ...CallableFutureCallGetExclusionRequest.java | 46 ++++++++++++
 .../GetExclusionGetExclusionRequest.java      | 43 +++++++++++
 .../GetExclusionLogExclusionName.java         | 38 ++++++++++
 .../getExclusion/GetExclusionString.java      | 38 ++++++++++
 ...tSinkCallableFutureCallGetSinkRequest.java | 45 +++++++++++
 .../getSink/GetSinkGetSinkRequest.java        | 42 +++++++++++
 .../getSink/GetSinkLogSinkName.java           | 38 ++++++++++
 .../configClient/getSink/GetSinkString.java   | 38 ++++++++++
 ...tViewCallableFutureCallGetViewRequest.java | 48 ++++++++++++
 .../getView/GetViewGetViewRequest.java        | 45 +++++++++++
 ...sBillingAccountLocationNameIterateAll.java | 41 ++++++++++
 ...BucketsCallableCallListBucketsRequest.java | 57 ++++++++++++++
 ...stBucketsFolderLocationNameIterateAll.java | 40 ++++++++++
 ...stBucketsListBucketsRequestIterateAll.java | 46 ++++++++++++
 .../ListBucketsLocationNameIterateAll.java    | 40 ++++++++++
 ...etsOrganizationLocationNameIterateAll.java | 40 ++++++++++
 ...dCallableFutureCallListBucketsRequest.java | 49 ++++++++++++
 .../ListBucketsStringIterateAll.java          | 40 ++++++++++
 ...xclusionsBillingAccountNameIterateAll.java | 40 ++++++++++
 ...ionsCallableCallListExclusionsRequest.java | 57 ++++++++++++++
 .../ListExclusionsFolderNameIterateAll.java   | 40 ++++++++++
 ...usionsListExclusionsRequestIterateAll.java | 46 ++++++++++++
 ...tExclusionsOrganizationNameIterateAll.java | 40 ++++++++++
 ...llableFutureCallListExclusionsRequest.java | 50 +++++++++++++
 .../ListExclusionsProjectNameIterateAll.java  | 40 ++++++++++
 .../ListExclusionsStringIterateAll.java       | 40 ++++++++++
 ...ListSinksBillingAccountNameIterateAll.java | 40 ++++++++++
 ...ListSinksCallableCallListSinksRequest.java | 57 ++++++++++++++
 .../ListSinksFolderNameIterateAll.java        | 40 ++++++++++
 .../ListSinksListSinksRequestIterateAll.java  | 46 ++++++++++++
 .../ListSinksOrganizationNameIterateAll.java  | 40 ++++++++++
 ...gedCallableFutureCallListSinksRequest.java | 49 ++++++++++++
 .../ListSinksProjectNameIterateAll.java       | 40 ++++++++++
 .../listSinks/ListSinksStringIterateAll.java  | 40 ++++++++++
 ...ListViewsCallableCallListViewsRequest.java | 56 ++++++++++++++
 .../ListViewsListViewsRequestIterateAll.java  | 45 +++++++++++
 ...gedCallableFutureCallListViewsRequest.java | 48 ++++++++++++
 .../listViews/ListViewsStringIterateAll.java  | 39 ++++++++++
 ...llableFutureCallUndeleteBucketRequest.java | 47 ++++++++++++
 .../UndeleteBucketUndeleteBucketRequest.java  | 44 +++++++++++
 ...CallableFutureCallUpdateBucketRequest.java | 50 +++++++++++++
 .../UpdateBucketUpdateBucketRequest.java      | 47 ++++++++++++
 ...leFutureCallUpdateCmekSettingsRequest.java | 49 ++++++++++++
 ...CmekSettingsUpdateCmekSettingsRequest.java | 44 +++++++++++
 ...lableFutureCallUpdateExclusionRequest.java | 49 ++++++++++++
 ...LogExclusionNameLogExclusionFieldMask.java | 41 ++++++++++
 ...eExclusionStringLogExclusionFieldMask.java | 41 ++++++++++
 ...UpdateExclusionUpdateExclusionRequest.java | 46 ++++++++++++
 ...nkCallableFutureCallUpdateSinkRequest.java | 49 ++++++++++++
 .../UpdateSinkLogSinkNameLogSink.java         | 39 ++++++++++
 ...UpdateSinkLogSinkNameLogSinkFieldMask.java | 41 ++++++++++
 .../updateSink/UpdateSinkStringLogSink.java   | 39 ++++++++++
 .../UpdateSinkStringLogSinkFieldMask.java     | 41 ++++++++++
 .../UpdateSinkUpdateSinkRequest.java          | 46 ++++++++++++
 ...ewCallableFutureCallUpdateViewRequest.java | 47 ++++++++++++
 .../UpdateViewUpdateViewRequest.java          | 44 +++++++++++
 ...ettingsSetRetrySettingsConfigSettings.java | 44 +++++++++++
 .../create/CreateLoggingSettings1.java        | 40 ++++++++++
 .../create/CreateLoggingSettings2.java        | 36 +++++++++
 ...LogCallableFutureCallDeleteLogRequest.java | 45 +++++++++++
 .../deleteLog/DeleteLogDeleteLogRequest.java  | 42 +++++++++++
 .../deleteLog/DeleteLogLogName.java           | 38 ++++++++++
 .../deleteLog/DeleteLogString.java            | 38 ++++++++++
 ...riesCallableCallListLogEntriesRequest.java | 59 +++++++++++++++
 ...ntriesListLogEntriesRequestIterateAll.java | 48 ++++++++++++
 ...triesListStringStringStringIterateAll.java | 44 +++++++++++
 ...llableFutureCallListLogEntriesRequest.java | 51 +++++++++++++
 .../ListLogsBillingAccountNameIterateAll.java | 39 ++++++++++
 .../ListLogsCallableCallListLogsRequest.java  | 58 ++++++++++++++
 .../ListLogsFolderNameIterateAll.java         | 39 ++++++++++
 .../ListLogsListLogsRequestIterateAll.java    | 47 ++++++++++++
 .../ListLogsOrganizationNameIterateAll.java   | 39 ++++++++++
 ...agedCallableFutureCallListLogsRequest.java | 50 +++++++++++++
 .../ListLogsProjectNameIterateAll.java        | 39 ++++++++++
 .../listLogs/ListLogsStringIterateAll.java    | 39 ++++++++++
 ...stMonitoredResourceDescriptorsRequest.java | 58 ++++++++++++++
 ...dResourceDescriptorsRequestIterateAll.java | 47 ++++++++++++
 ...stMonitoredResourceDescriptorsRequest.java | 51 +++++++++++++
 ...riesCallableCallTailLogEntriesRequest.java | 51 +++++++++++++
 ...lableFutureCallWriteLogEntriesRequest.java | 55 ++++++++++++++
 ...edResourceMapStringStringListLogEntry.java | 49 ++++++++++++
 ...edResourceMapStringStringListLogEntry.java | 49 ++++++++++++
 ...WriteLogEntriesWriteLogEntriesRequest.java | 51 +++++++++++++
 ...ttingsSetRetrySettingsLoggingSettings.java | 44 +++++++++++
 .../create/CreateMetricsSettings1.java        | 40 ++++++++++
 .../create/CreateMetricsSettings2.java        | 36 +++++++++
 ...lableFutureCallCreateLogMetricRequest.java | 46 ++++++++++++
 ...CreateLogMetricCreateLogMetricRequest.java | 43 +++++++++++
 .../CreateLogMetricProjectNameLogMetric.java  | 39 ++++++++++
 .../CreateLogMetricStringLogMetric.java       | 39 ++++++++++
 ...lableFutureCallDeleteLogMetricRequest.java | 45 +++++++++++
 ...DeleteLogMetricDeleteLogMetricRequest.java | 42 +++++++++++
 .../DeleteLogMetricLogMetricName.java         | 38 ++++++++++
 .../DeleteLogMetricString.java                | 38 ++++++++++
 ...CallableFutureCallGetLogMetricRequest.java | 45 +++++++++++
 .../GetLogMetricGetLogMetricRequest.java      | 42 +++++++++++
 .../GetLogMetricLogMetricName.java            | 38 ++++++++++
 .../getLogMetric/GetLogMetricString.java      | 38 ++++++++++
 ...ricsCallableCallListLogMetricsRequest.java | 57 ++++++++++++++
 ...etricsListLogMetricsRequestIterateAll.java | 46 ++++++++++++
 ...llableFutureCallListLogMetricsRequest.java | 49 ++++++++++++
 .../ListLogMetricsProjectNameIterateAll.java  | 40 ++++++++++
 .../ListLogMetricsStringIterateAll.java       | 40 ++++++++++
 ...lableFutureCallUpdateLogMetricRequest.java | 46 ++++++++++++
 ...UpdateLogMetricLogMetricNameLogMetric.java | 39 ++++++++++
 .../UpdateLogMetricStringLogMetric.java       | 39 ++++++++++
 ...UpdateLogMetricUpdateLogMetricRequest.java | 43 +++++++++++
 ...ttingsSetRetrySettingsMetricsSettings.java | 44 +++++++++++
 ...rySettingsConfigServiceV2StubSettings.java | 46 ++++++++++++
 ...ySettingsLoggingServiceV2StubSettings.java | 46 ++++++++++++
 ...ySettingsMetricsServiceV2StubSettings.java | 46 ++++++++++++
 .../google/cloud/logging/v2/ConfigClient.java |  0
 .../cloud/logging/v2/ConfigClientTest.java    |  0
 .../cloud/logging/v2/ConfigSettings.java      |  0
 .../cloud/logging/v2/LoggingClient.java       |  0
 .../cloud/logging/v2/LoggingClientTest.java   |  0
 .../cloud/logging/v2/LoggingSettings.java     |  0
 .../cloud/logging/v2/MetricsClient.java       |  0
 .../cloud/logging/v2/MetricsClientTest.java   |  0
 .../cloud/logging/v2/MetricsSettings.java     |  0
 .../cloud/logging/v2/MockConfigServiceV2.java |  0
 .../logging/v2/MockConfigServiceV2Impl.java   |  0
 .../logging/v2/MockLoggingServiceV2.java      |  0
 .../logging/v2/MockLoggingServiceV2Impl.java  |  0
 .../logging/v2/MockMetricsServiceV2.java      |  0
 .../logging/v2/MockMetricsServiceV2Impl.java  |  0
 .../cloud/logging/v2/gapic_metadata.json      |  0
 .../google/cloud/logging/v2/package-info.java |  0
 .../logging/v2/stub/ConfigServiceV2Stub.java  |  0
 .../v2/stub/ConfigServiceV2StubSettings.java  |  0
 .../GrpcConfigServiceV2CallableFactory.java   |  0
 .../v2/stub/GrpcConfigServiceV2Stub.java      |  0
 .../GrpcLoggingServiceV2CallableFactory.java  |  0
 .../v2/stub/GrpcLoggingServiceV2Stub.java     |  0
 .../GrpcMetricsServiceV2CallableFactory.java  |  0
 .../v2/stub/GrpcMetricsServiceV2Stub.java     |  0
 .../logging/v2/stub/LoggingServiceV2Stub.java |  0
 .../v2/stub/LoggingServiceV2StubSettings.java |  0
 .../logging/v2/stub/MetricsServiceV2Stub.java |  0
 .../v2/stub/MetricsServiceV2StubSettings.java |  0
 .../v2/BillingAccountLocationName.java        |  0
 .../google/logging/v2/BillingAccountName.java |  0
 .../google/logging/v2/CmekSettingsName.java   |  0
 .../google/logging/v2/FolderLocationName.java |  0
 .../com/google/logging/v2/FolderName.java     |  0
 .../com/google/logging/v2/LocationName.java   |  0
 .../com/google/logging/v2/LogBucketName.java  |  0
 .../google/logging/v2/LogExclusionName.java   |  0
 .../com/google/logging/v2/LogMetricName.java  |  0
 .../com/google/logging/v2/LogName.java        |  0
 .../com/google/logging/v2/LogSinkName.java    |  0
 .../com/google/logging/v2/LogViewName.java    |  0
 .../logging/v2/OrganizationLocationName.java  |  0
 .../google/logging/v2/OrganizationName.java   |  0
 .../com/google/logging/v2/ProjectName.java    |  0
 .../create/CreateSchemaServiceSettings1.java  | 40 ++++++++++
 .../create/CreateSchemaServiceSettings2.java  | 37 +++++++++
 ...CallableFutureCallCreateSchemaRequest.java | 47 ++++++++++++
 .../CreateSchemaCreateSchemaRequest.java      | 44 +++++++++++
 .../CreateSchemaProjectNameSchemaString.java  | 40 ++++++++++
 .../CreateSchemaStringSchemaString.java       | 40 ++++++++++
 ...CallableFutureCallDeleteSchemaRequest.java | 45 +++++++++++
 .../DeleteSchemaDeleteSchemaRequest.java      | 42 +++++++++++
 .../deleteSchema/DeleteSchemaSchemaName.java  | 38 ++++++++++
 .../deleteSchema/DeleteSchemaString.java      | 38 ++++++++++
 ...CallableFutureCallGetIamPolicyRequest.java | 47 ++++++++++++
 .../GetIamPolicyGetIamPolicyRequest.java      | 44 +++++++++++
 ...emaCallableFutureCallGetSchemaRequest.java | 47 ++++++++++++
 .../getSchema/GetSchemaGetSchemaRequest.java  | 44 +++++++++++
 .../getSchema/GetSchemaSchemaName.java        | 38 ++++++++++
 .../getSchema/GetSchemaString.java            | 38 ++++++++++
 ...SchemasCallableCallListSchemasRequest.java | 59 +++++++++++++++
 ...stSchemasListSchemasRequestIterateAll.java | 48 ++++++++++++
 ...dCallableFutureCallListSchemasRequest.java | 51 +++++++++++++
 .../ListSchemasProjectNameIterateAll.java     | 40 ++++++++++
 .../ListSchemasStringIterateAll.java          | 40 ++++++++++
 ...CallableFutureCallSetIamPolicyRequest.java | 46 ++++++++++++
 .../SetIamPolicySetIamPolicyRequest.java      | 43 +++++++++++
 ...leFutureCallTestIamPermissionsRequest.java | 49 ++++++++++++
 ...mPermissionsTestIamPermissionsRequest.java | 44 +++++++++++
 ...lableFutureCallValidateMessageRequest.java | 50 +++++++++++++
 ...ValidateMessageValidateMessageRequest.java | 46 ++++++++++++
 ...llableFutureCallValidateSchemaRequest.java | 48 ++++++++++++
 .../ValidateSchemaProjectNameSchema.java      | 40 ++++++++++
 .../ValidateSchemaStringSchema.java           | 40 ++++++++++
 .../ValidateSchemaValidateSchemaRequest.java  | 44 +++++++++++
 ...SetRetrySettingsSchemaServiceSettings.java | 44 +++++++++++
 ...SetRetrySettingsPublisherStubSettings.java | 44 +++++++++++
 ...etrySettingsSchemaServiceStubSettings.java | 46 ++++++++++++
 ...etRetrySettingsSubscriberStubSettings.java | 46 ++++++++++++
 .../AcknowledgeAcknowledgeRequest.java        | 44 +++++++++++
 ...eCallableFutureCallAcknowledgeRequest.java | 47 ++++++++++++
 .../AcknowledgeStringListString.java          | 41 ++++++++++
 ...AcknowledgeSubscriptionNameListString.java | 41 ++++++++++
 .../CreateSubscriptionAdminSettings1.java     | 41 ++++++++++
 .../CreateSubscriptionAdminSettings2.java     | 38 ++++++++++
 ...llableFutureCallCreateSnapshotRequest.java | 50 +++++++++++++
 .../CreateSnapshotCreateSnapshotRequest.java  | 46 ++++++++++++
 .../CreateSnapshotSnapshotNameString.java     | 40 ++++++++++
 ...eSnapshotSnapshotNameSubscriptionName.java | 40 ++++++++++
 .../CreateSnapshotStringString.java           | 40 ++++++++++
 .../CreateSnapshotStringSubscriptionName.java | 40 ++++++++++
 ...riptionCallableFutureCallSubscription.java | 66 ++++++++++++++++
 ...SubscriptionStringStringPushConfigInt.java | 44 +++++++++++
 ...scriptionStringTopicNamePushConfigInt.java | 44 +++++++++++
 .../CreateSubscriptionSubscription.java       | 62 +++++++++++++++
 ...onSubscriptionNameStringPushConfigInt.java | 44 +++++++++++
 ...ubscriptionNameTopicNamePushConfigInt.java | 44 +++++++++++
 ...llableFutureCallDeleteSnapshotRequest.java | 46 ++++++++++++
 .../DeleteSnapshotDeleteSnapshotRequest.java  | 42 +++++++++++
 .../DeleteSnapshotSnapshotName.java           | 38 ++++++++++
 .../deleteSnapshot/DeleteSnapshotString.java  | 38 ++++++++++
 ...leFutureCallDeleteSubscriptionRequest.java | 47 ++++++++++++
 ...SubscriptionDeleteSubscriptionRequest.java | 42 +++++++++++
 .../DeleteSubscriptionString.java             | 38 ++++++++++
 .../DeleteSubscriptionSubscriptionName.java   | 38 ++++++++++
 ...CallableFutureCallGetIamPolicyRequest.java | 47 ++++++++++++
 .../GetIamPolicyGetIamPolicyRequest.java      | 44 +++++++++++
 ...tCallableFutureCallGetSnapshotRequest.java | 46 ++++++++++++
 .../GetSnapshotGetSnapshotRequest.java        | 42 +++++++++++
 .../getSnapshot/GetSnapshotSnapshotName.java  | 38 ++++++++++
 .../getSnapshot/GetSnapshotString.java        | 38 ++++++++++
 ...lableFutureCallGetSubscriptionRequest.java | 46 ++++++++++++
 ...GetSubscriptionGetSubscriptionRequest.java | 42 +++++++++++
 .../GetSubscriptionString.java                | 38 ++++++++++
 .../GetSubscriptionSubscriptionName.java      | 38 ++++++++++
 ...shotsCallableCallListSnapshotsRequest.java | 58 ++++++++++++++
 ...apshotsListSnapshotsRequestIterateAll.java | 46 ++++++++++++
 ...allableFutureCallListSnapshotsRequest.java | 50 +++++++++++++
 .../ListSnapshotsProjectNameIterateAll.java   | 40 ++++++++++
 .../ListSnapshotsStringIterateAll.java        | 40 ++++++++++
 ...sCallableCallListSubscriptionsRequest.java | 58 ++++++++++++++
 ...onsListSubscriptionsRequestIterateAll.java | 46 ++++++++++++
 ...bleFutureCallListSubscriptionsRequest.java | 51 +++++++++++++
 ...istSubscriptionsProjectNameIterateAll.java | 40 ++++++++++
 .../ListSubscriptionsStringIterateAll.java    | 40 ++++++++++
 ...bleFutureCallModifyAckDeadlineRequest.java | 50 +++++++++++++
 ...fyAckDeadlineModifyAckDeadlineRequest.java | 45 +++++++++++
 .../ModifyAckDeadlineStringListStringInt.java | 42 +++++++++++
 ...DeadlineSubscriptionNameListStringInt.java | 42 +++++++++++
 ...ableFutureCallModifyPushConfigRequest.java | 48 ++++++++++++
 ...difyPushConfigModifyPushConfigRequest.java | 44 +++++++++++
 .../ModifyPushConfigStringPushConfig.java     | 40 ++++++++++
 ...yPushConfigSubscriptionNamePushConfig.java | 40 ++++++++++
 .../PullCallableFutureCallPullRequest.java    | 47 ++++++++++++
 .../pull/PullPullRequest.java                 | 44 +++++++++++
 .../pull/PullStringBooleanInt.java            | 41 ++++++++++
 .../pull/PullStringInt.java                   | 39 ++++++++++
 .../pull/PullSubscriptionNameBooleanInt.java  | 41 ++++++++++
 .../pull/PullSubscriptionNameInt.java         | 39 ++++++++++
 .../SeekCallableFutureCallSeekRequest.java    | 45 +++++++++++
 .../seek/SeekSeekRequest.java                 | 42 +++++++++++
 ...CallableFutureCallSetIamPolicyRequest.java | 46 ++++++++++++
 .../SetIamPolicySetIamPolicyRequest.java      | 43 +++++++++++
 ...gPullCallableCallStreamingPullRequest.java | 56 ++++++++++++++
 ...leFutureCallTestIamPermissionsRequest.java | 49 ++++++++++++
 ...mPermissionsTestIamPermissionsRequest.java | 44 +++++++++++
 ...llableFutureCallUpdateSnapshotRequest.java | 47 ++++++++++++
 .../UpdateSnapshotUpdateSnapshotRequest.java  | 43 +++++++++++
 ...leFutureCallUpdateSubscriptionRequest.java | 48 ++++++++++++
 ...SubscriptionUpdateSubscriptionRequest.java | 43 +++++++++++
 ...etrySettingsSubscriptionAdminSettings.java | 46 ++++++++++++
 .../create/CreateTopicAdminSettings1.java     | 40 ++++++++++
 .../create/CreateTopicAdminSettings2.java     | 37 +++++++++
 .../CreateTopicCallableFutureCallTopic.java   | 54 +++++++++++++
 .../createTopic/CreateTopicString.java        | 38 ++++++++++
 .../createTopic/CreateTopicTopic.java         | 51 +++++++++++++
 .../createTopic/CreateTopicTopicName.java     | 38 ++++++++++
 ...cCallableFutureCallDeleteTopicRequest.java | 45 +++++++++++
 .../DeleteTopicDeleteTopicRequest.java        | 42 +++++++++++
 .../deleteTopic/DeleteTopicString.java        | 38 ++++++++++
 .../deleteTopic/DeleteTopicTopicName.java     | 38 ++++++++++
 ...leFutureCallDetachSubscriptionRequest.java | 47 ++++++++++++
 ...SubscriptionDetachSubscriptionRequest.java | 42 +++++++++++
 ...CallableFutureCallGetIamPolicyRequest.java | 47 ++++++++++++
 .../GetIamPolicyGetIamPolicyRequest.java      | 44 +++++++++++
 ...opicCallableFutureCallGetTopicRequest.java | 45 +++++++++++
 .../getTopic/GetTopicGetTopicRequest.java     | 42 +++++++++++
 .../getTopic/GetTopicString.java              | 38 ++++++++++
 .../getTopic/GetTopicTopicName.java           | 38 ++++++++++
 ...CallableCallListTopicSnapshotsRequest.java | 57 ++++++++++++++
 ...tsListTopicSnapshotsRequestIterateAll.java | 45 +++++++++++
 ...leFutureCallListTopicSnapshotsRequest.java | 50 +++++++++++++
 .../ListTopicSnapshotsStringIterateAll.java   | 39 ++++++++++
 ...ListTopicSnapshotsTopicNameIterateAll.java | 39 ++++++++++
 ...ableCallListTopicSubscriptionsRequest.java | 58 ++++++++++++++
 ...stTopicSubscriptionsRequestIterateAll.java | 46 ++++++++++++
 ...tureCallListTopicSubscriptionsRequest.java | 50 +++++++++++++
 ...istTopicSubscriptionsStringIterateAll.java | 39 ++++++++++
 ...TopicSubscriptionsTopicNameIterateAll.java | 39 ++++++++++
 ...stTopicsCallableCallListTopicsRequest.java | 57 ++++++++++++++
 ...ListTopicsListTopicsRequestIterateAll.java | 46 ++++++++++++
 ...edCallableFutureCallListTopicsRequest.java | 49 ++++++++++++
 .../ListTopicsProjectNameIterateAll.java      | 40 ++++++++++
 .../ListTopicsStringIterateAll.java           | 40 ++++++++++
 ...blishCallableFutureCallPublishRequest.java | 48 ++++++++++++
 .../publish/PublishPublishRequest.java        | 45 +++++++++++
 .../PublishStringListPubsubMessage.java       | 42 +++++++++++
 .../PublishTopicNameListPubsubMessage.java    | 42 +++++++++++
 ...CallableFutureCallSetIamPolicyRequest.java | 46 ++++++++++++
 .../SetIamPolicySetIamPolicyRequest.java      | 43 +++++++++++
 ...leFutureCallTestIamPermissionsRequest.java | 49 ++++++++++++
 ...mPermissionsTestIamPermissionsRequest.java | 44 +++++++++++
 ...cCallableFutureCallUpdateTopicRequest.java | 46 ++++++++++++
 .../UpdateTopicUpdateTopicRequest.java        | 43 +++++++++++
 ...ngsSetRetrySettingsTopicAdminSettings.java | 44 +++++++++++
 .../google/cloud/pubsub/v1/MockIAMPolicy.java |  0
 .../cloud/pubsub/v1/MockIAMPolicyImpl.java    |  0
 .../google/cloud/pubsub/v1/MockPublisher.java |  0
 .../cloud/pubsub/v1/MockPublisherImpl.java    |  0
 .../cloud/pubsub/v1/MockSchemaService.java    |  0
 .../pubsub/v1/MockSchemaServiceImpl.java      |  0
 .../cloud/pubsub/v1/MockSubscriber.java       |  0
 .../cloud/pubsub/v1/MockSubscriberImpl.java   |  0
 .../cloud/pubsub/v1/SchemaServiceClient.java  |  0
 .../pubsub/v1/SchemaServiceClientTest.java    |  0
 .../pubsub/v1/SchemaServiceSettings.java      |  0
 .../pubsub/v1/SubscriptionAdminClient.java    |  0
 .../v1/SubscriptionAdminClientTest.java       |  0
 .../pubsub/v1/SubscriptionAdminSettings.java  |  0
 .../cloud/pubsub/v1/TopicAdminClient.java     |  0
 .../cloud/pubsub/v1/TopicAdminClientTest.java |  0
 .../cloud/pubsub/v1/TopicAdminSettings.java   |  0
 .../cloud/pubsub/v1/gapic_metadata.json       |  0
 .../google/cloud/pubsub/v1/package-info.java  |  0
 .../v1/stub/GrpcPublisherCallableFactory.java |  0
 .../pubsub/v1/stub/GrpcPublisherStub.java     |  0
 .../GrpcSchemaServiceCallableFactory.java     |  0
 .../pubsub/v1/stub/GrpcSchemaServiceStub.java |  0
 .../stub/GrpcSubscriberCallableFactory.java   |  0
 .../pubsub/v1/stub/GrpcSubscriberStub.java    |  0
 .../cloud/pubsub/v1/stub/PublisherStub.java   |  0
 .../pubsub/v1/stub/PublisherStubSettings.java |  0
 .../pubsub/v1/stub/SchemaServiceStub.java     |  0
 .../v1/stub/SchemaServiceStubSettings.java    |  0
 .../cloud/pubsub/v1/stub/SubscriberStub.java  |  0
 .../v1/stub/SubscriberStubSettings.java       |  0
 .../com/google/pubsub/v1/ProjectName.java     |  0
 .../com/google/pubsub/v1/SchemaName.java      |  0
 .../com/google/pubsub/v1/SnapshotName.java    |  0
 .../google/pubsub/v1/SubscriptionName.java    |  0
 .../com/google/pubsub/v1/TopicName.java       |  0
 .../create/CreateCloudRedisSettings1.java     | 40 ++++++++++
 .../create/CreateCloudRedisSettings2.java     | 37 +++++++++
 ...InstanceAsyncCreateInstanceRequestGet.java | 44 +++++++++++
 ...nceAsyncLocationNameStringInstanceGet.java | 40 ++++++++++
 ...eInstanceAsyncStringStringInstanceGet.java | 40 ++++++++++
 ...llableFutureCallCreateInstanceRequest.java | 48 ++++++++++++
 ...llableFutureCallCreateInstanceRequest.java | 50 +++++++++++++
 ...InstanceAsyncDeleteInstanceRequestGet.java | 42 +++++++++++
 .../DeleteInstanceAsyncInstanceNameGet.java   | 38 ++++++++++
 .../DeleteInstanceAsyncStringGet.java         | 38 ++++++++++
 ...llableFutureCallDeleteInstanceRequest.java | 45 +++++++++++
 ...llableFutureCallDeleteInstanceRequest.java | 48 ++++++++++++
 ...InstanceAsyncExportInstanceRequestGet.java | 43 +++++++++++
 ...ortInstanceAsyncStringOutputConfigGet.java | 39 ++++++++++
 ...llableFutureCallExportInstanceRequest.java | 46 ++++++++++++
 ...llableFutureCallExportInstanceRequest.java | 49 ++++++++++++
 ...stanceAsyncFailoverInstanceRequestGet.java | 42 +++++++++++
 ...rInstanceRequestDataProtectionModeGet.java | 42 +++++++++++
 ...rInstanceRequestDataProtectionModeGet.java | 42 +++++++++++
 ...ableFutureCallFailoverInstanceRequest.java | 45 +++++++++++
 ...ableFutureCallFailoverInstanceRequest.java | 48 ++++++++++++
 ...eCallableFutureCallGetInstanceRequest.java | 45 +++++++++++
 .../GetInstanceGetInstanceRequest.java        | 42 +++++++++++
 .../getInstance/GetInstanceInstanceName.java  | 38 ++++++++++
 .../getInstance/GetInstanceString.java        | 38 ++++++++++
 ...utureCallGetInstanceAuthStringRequest.java | 47 ++++++++++++
 ...uthStringGetInstanceAuthStringRequest.java | 42 +++++++++++
 .../GetInstanceAuthStringInstanceName.java    | 38 ++++++++++
 .../GetInstanceAuthStringString.java          | 38 ++++++++++
 ...InstanceAsyncImportInstanceRequestGet.java | 43 +++++++++++
 ...portInstanceAsyncStringInputConfigGet.java | 39 ++++++++++
 ...llableFutureCallImportInstanceRequest.java | 46 ++++++++++++
 ...llableFutureCallImportInstanceRequest.java | 49 ++++++++++++
 ...ancesCallableCallListInstancesRequest.java | 57 ++++++++++++++
 ...stancesListInstancesRequestIterateAll.java | 46 ++++++++++++
 .../ListInstancesLocationNameIterateAll.java  | 40 ++++++++++
 ...allableFutureCallListInstancesRequest.java | 50 +++++++++++++
 .../ListInstancesStringIterateAll.java        | 40 ++++++++++
 ...anceRequestRescheduleTypeTimestampGet.java | 47 ++++++++++++
 ...eAsyncRescheduleMaintenanceRequestGet.java | 44 +++++++++++
 ...anceRequestRescheduleTypeTimestampGet.java | 47 ++++++++++++
 ...utureCallRescheduleMaintenanceRequest.java | 49 ++++++++++++
 ...utureCallRescheduleMaintenanceRequest.java | 50 +++++++++++++
 ...dateInstanceAsyncFieldMaskInstanceGet.java | 39 ++++++++++
 ...InstanceAsyncUpdateInstanceRequestGet.java | 43 +++++++++++
 ...llableFutureCallUpdateInstanceRequest.java | 47 ++++++++++++
 ...llableFutureCallUpdateInstanceRequest.java | 49 ++++++++++++
 ...adeInstanceAsyncInstanceNameStringGet.java | 39 ++++++++++
 .../UpgradeInstanceAsyncStringStringGet.java  | 39 ++++++++++
 ...nstanceAsyncUpgradeInstanceRequestGet.java | 43 +++++++++++
 ...lableFutureCallUpgradeInstanceRequest.java | 46 ++++++++++++
 ...lableFutureCallUpgradeInstanceRequest.java | 49 ++++++++++++
 ...ngsSetRetrySettingsCloudRedisSettings.java | 44 +++++++++++
 ...etRetrySettingsCloudRedisStubSettings.java | 44 +++++++++++
 .../cloud/redis/v1beta1/CloudRedisClient.java |  0
 .../redis/v1beta1/CloudRedisClientTest.java   |  0
 .../redis/v1beta1/CloudRedisSettings.java     |  0
 .../cloud/redis/v1beta1/InstanceName.java     |  0
 .../cloud/redis/v1beta1/LocationName.java     |  0
 .../cloud/redis/v1beta1/MockCloudRedis.java   |  0
 .../redis/v1beta1/MockCloudRedisImpl.java     |  0
 .../cloud/redis/v1beta1/gapic_metadata.json   |  0
 .../cloud/redis/v1beta1/package-info.java     |  0
 .../redis/v1beta1/stub/CloudRedisStub.java    |  0
 .../v1beta1/stub/CloudRedisStubSettings.java  |  0
 .../stub/GrpcCloudRedisCallableFactory.java   |  0
 .../v1beta1/stub/GrpcCloudRedisStub.java      |  0
 ...allableFutureCallComposeObjectRequest.java | 58 ++++++++++++++
 .../ComposeObjectComposeObjectRequest.java    | 55 ++++++++++++++
 .../create/CreateStorageSettings1.java        | 40 ++++++++++
 .../create/CreateStorageSettings2.java        | 36 +++++++++
 ...CallableFutureCallCreateBucketRequest.java | 51 +++++++++++++
 .../CreateBucketCreateBucketRequest.java      | 48 ++++++++++++
 .../CreateBucketProjectNameBucketString.java  | 40 ++++++++++
 .../CreateBucketStringBucketString.java       | 40 ++++++++++
 ...allableFutureCallCreateHmacKeyRequest.java | 49 ++++++++++++
 .../CreateHmacKeyCreateHmacKeyRequest.java    | 45 +++++++++++
 .../CreateHmacKeyProjectNameString.java       | 39 ++++++++++
 .../CreateHmacKeyStringString.java            | 39 ++++++++++
 ...leFutureCallCreateNotificationRequest.java | 48 ++++++++++++
 ...NotificationCreateNotificationRequest.java | 43 +++++++++++
 ...teNotificationProjectNameNotification.java | 39 ++++++++++
 .../CreateNotificationStringNotification.java | 39 ++++++++++
 .../deleteBucket/DeleteBucketBucketName.java  | 38 ++++++++++
 ...CallableFutureCallDeleteBucketRequest.java | 49 ++++++++++++
 .../DeleteBucketDeleteBucketRequest.java      | 46 ++++++++++++
 .../deleteBucket/DeleteBucketString.java      | 38 ++++++++++
 ...allableFutureCallDeleteHmacKeyRequest.java | 48 ++++++++++++
 .../DeleteHmacKeyDeleteHmacKeyRequest.java    | 45 +++++++++++
 .../DeleteHmacKeyStringProjectName.java       | 39 ++++++++++
 .../DeleteHmacKeyStringString.java            | 39 ++++++++++
 ...leFutureCallDeleteNotificationRequest.java | 46 ++++++++++++
 ...NotificationDeleteNotificationRequest.java | 42 +++++++++++
 .../DeleteNotificationNotificationName.java   | 38 ++++++++++
 .../DeleteNotificationString.java             | 38 ++++++++++
 ...CallableFutureCallDeleteObjectRequest.java | 55 ++++++++++++++
 .../DeleteObjectDeleteObjectRequest.java      | 52 +++++++++++++
 .../DeleteObjectStringString.java             | 38 ++++++++++
 .../DeleteObjectStringStringLong.java         | 39 ++++++++++
 .../getBucket/GetBucketBucketName.java        | 38 ++++++++++
 ...ketCallableFutureCallGetBucketRequest.java | 51 +++++++++++++
 .../getBucket/GetBucketGetBucketRequest.java  | 48 ++++++++++++
 .../getBucket/GetBucketString.java            | 38 ++++++++++
 ...eyCallableFutureCallGetHmacKeyRequest.java | 48 ++++++++++++
 .../GetHmacKeyGetHmacKeyRequest.java          | 45 +++++++++++
 .../GetHmacKeyStringProjectName.java          | 39 ++++++++++
 .../getHmacKey/GetHmacKeyStringString.java    | 39 ++++++++++
 ...CallableFutureCallGetIamPolicyRequest.java | 49 ++++++++++++
 .../GetIamPolicyGetIamPolicyRequest.java      | 46 ++++++++++++
 .../GetIamPolicyResourceName.java             | 40 ++++++++++
 .../getIamPolicy/GetIamPolicyString.java      | 39 ++++++++++
 .../GetNotificationBucketName.java            | 38 ++++++++++
 ...lableFutureCallGetNotificationRequest.java | 45 +++++++++++
 ...GetNotificationGetNotificationRequest.java | 42 +++++++++++
 .../GetNotificationString.java                | 38 ++++++++++
 ...ectCallableFutureCallGetObjectRequest.java | 56 ++++++++++++++
 .../getObject/GetObjectGetObjectRequest.java  | 53 +++++++++++++
 .../getObject/GetObjectStringString.java      | 38 ++++++++++
 .../getObject/GetObjectStringStringLong.java  | 39 ++++++++++
 ...bleFutureCallGetServiceAccountRequest.java | 49 ++++++++++++
 ...erviceAccountGetServiceAccountRequest.java | 44 +++++++++++
 .../GetServiceAccountProjectName.java         | 38 ++++++++++
 .../GetServiceAccountString.java              | 38 ++++++++++
 ...BucketsCallableCallListBucketsRequest.java | 62 +++++++++++++++
 ...stBucketsListBucketsRequestIterateAll.java | 51 +++++++++++++
 ...dCallableFutureCallListBucketsRequest.java | 54 +++++++++++++
 .../ListBucketsProjectNameIterateAll.java     | 40 ++++++++++
 .../ListBucketsStringIterateAll.java          | 40 ++++++++++
 ...acKeysCallableCallListHmacKeysRequest.java | 61 +++++++++++++++
 ...HmacKeysListHmacKeysRequestIterateAll.java | 50 +++++++++++++
 ...CallableFutureCallListHmacKeysRequest.java | 54 +++++++++++++
 .../ListHmacKeysProjectNameIterateAll.java    | 40 ++++++++++
 .../ListHmacKeysStringIterateAll.java         | 40 ++++++++++
 ...sCallableCallListNotificationsRequest.java | 58 ++++++++++++++
 ...onsListNotificationsRequestIterateAll.java | 46 ++++++++++++
 ...bleFutureCallListNotificationsRequest.java | 51 +++++++++++++
 ...istNotificationsProjectNameIterateAll.java | 40 ++++++++++
 .../ListNotificationsStringIterateAll.java    | 40 ++++++++++
 ...ObjectsCallableCallListObjectsRequest.java | 67 +++++++++++++++++
 ...stObjectsListObjectsRequestIterateAll.java | 56 ++++++++++++++
 ...dCallableFutureCallListObjectsRequest.java | 59 +++++++++++++++
 .../ListObjectsProjectNameIterateAll.java     | 40 ++++++++++
 .../ListObjectsStringIterateAll.java          | 40 ++++++++++
 .../LockBucketRetentionPolicyBucketName.java  | 38 ++++++++++
 ...eCallLockBucketRetentionPolicyRequest.java | 50 +++++++++++++
 ...olicyLockBucketRetentionPolicyRequest.java | 45 +++++++++++
 .../LockBucketRetentionPolicyString.java      | 38 ++++++++++
 ...ableFutureCallQueryWriteStatusRequest.java | 49 ++++++++++++
 ...eryWriteStatusQueryWriteStatusRequest.java | 45 +++++++++++
 .../QueryWriteStatusString.java               | 37 +++++++++
 ...adObjectCallableCallReadObjectRequest.java | 59 +++++++++++++++
 ...allableFutureCallRewriteObjectRequest.java | 75 +++++++++++++++++++
 .../RewriteObjectRewriteObjectRequest.java    | 72 ++++++++++++++++++
 ...CallableFutureCallSetIamPolicyRequest.java | 48 ++++++++++++
 .../SetIamPolicyResourceNamePolicy.java       | 41 ++++++++++
 .../SetIamPolicySetIamPolicyRequest.java      | 45 +++++++++++
 .../SetIamPolicyStringPolicy.java             | 40 ++++++++++
 ...eFutureCallStartResumableWriteRequest.java | 51 +++++++++++++
 ...umableWriteStartResumableWriteRequest.java | 46 ++++++++++++
 ...leFutureCallTestIamPermissionsRequest.java | 51 +++++++++++++
 ...tIamPermissionsResourceNameListString.java | 43 +++++++++++
 .../TestIamPermissionsStringListString.java   | 42 +++++++++++
 ...mPermissionsTestIamPermissionsRequest.java | 46 ++++++++++++
 .../UpdateBucketBucketFieldMask.java          | 39 ++++++++++
 ...CallableFutureCallUpdateBucketRequest.java | 54 +++++++++++++
 .../UpdateBucketUpdateBucketRequest.java      | 51 +++++++++++++
 ...allableFutureCallUpdateHmacKeyRequest.java | 48 ++++++++++++
 ...UpdateHmacKeyHmacKeyMetadataFieldMask.java | 39 ++++++++++
 .../UpdateHmacKeyUpdateHmacKeyRequest.java    | 45 +++++++++++
 ...CallableFutureCallUpdateObjectRequest.java | 56 ++++++++++++++
 .../UpdateObjectObjectFieldMask.java          | 39 ++++++++++
 .../UpdateObjectUpdateObjectRequest.java      | 53 +++++++++++++
 ...ClientStreamingCallWriteObjectRequest.java | 68 +++++++++++++++++
 ...ttingsSetRetrySettingsStorageSettings.java | 44 +++++++++++
 ...gsSetRetrySettingsStorageStubSettings.java | 44 +++++++++++
 .../com/google/storage/v2/BucketName.java     |  0
 .../com/google/storage/v2/CryptoKeyName.java  |  0
 .../com/google/storage/v2/MockStorage.java    |  0
 .../google/storage/v2/MockStorageImpl.java    |  0
 .../google/storage/v2/NotificationName.java   |  0
 .../com/google/storage/v2/ProjectName.java    |  0
 .../com/google/storage/v2/StorageClient.java  |  0
 .../google/storage/v2/StorageClientTest.java  |  0
 .../google/storage/v2/StorageSettings.java    |  0
 .../com/google/storage/v2/gapic_metadata.json |  0
 .../com/google/storage/v2/package-info.java   |  0
 .../v2/stub/GrpcStorageCallableFactory.java   |  0
 .../storage/v2/stub/GrpcStorageStub.java      |  0
 .../google/storage/v2/stub/StorageStub.java   |  0
 .../storage/v2/stub/StorageStubSettings.java  |  0
 950 files changed, 33452 insertions(+)
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveAnalyzeMoveRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings1.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings2.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCallableFutureCallCreateFeedRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCreateFeedRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedString.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedDeleteFeedRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedFeedName.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedString.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsAsyncExportAssetsRequestGet.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsCallableFutureCallExportAssetsRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedCallableFutureCallGetFeedRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedFeedName.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedGetFeedRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedString.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsCallableCallListAssetsRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsListAssetsRequestIterateAll.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsPagedCallableFutureCallListAssetsRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsResourceNameIterateAll.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsStringIterateAll.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsCallableFutureCallListFeedsRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsListFeedsRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsString.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesStringStringIterateAll.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesStringStringListStringIterateAll.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedFeed.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedUpdateFeedRequest.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java
 create mode 100644 test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetServiceStubSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/AssetServiceClient.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/AssetServiceClientTest.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/AssetServiceSettings.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/FeedName.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/MockAssetService.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/MockAssetServiceImpl.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/gapic_metadata.json (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/package-info.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/stub/AssetServiceStub.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java (100%)
 rename test/integration/goldens/asset/{ => src}/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java (100%)
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCheckAndMutateRowRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings1.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings2.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowCallableFutureCallMutateRowRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowMutateRowRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutation.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutationString.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutation.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutationString.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRows/MutateRowsCallableCallMutateRowsRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowReadModifyWriteRowRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readRows/ReadRowsCallableCallReadRowsRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/sampleRowKeys/SampleRowKeysCallableCallSampleRowKeysRequest.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataSettings/mutateRow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java
 create mode 100644 test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtableStubSettings/mutateRow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java
 rename test/integration/goldens/bigtable/{ => src}/com/google/bigtable/v2/TableName.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/MockBigtable.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/gapic_metadata.json (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/package-info.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java (100%)
 rename test/integration/goldens/bigtable/{ => src}/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java (100%)
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListAggregatedListAddressesRequestIterateAll.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListCallableCallAggregatedListAddressesRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListStringIterateAll.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings1.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings2.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncDeleteAddressRequestGet.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncStringStringStringGet.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteCallableFutureCallDeleteAddressRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncInsertAddressRequestGet.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncStringStringAddressGet.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertCallableFutureCallInsertAddressRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListCallableCallListAddressesRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListListAddressesRequestIterateAll.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListPagedCallableFutureCallListAddressesRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListStringStringStringIterateAll.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesSettings.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings1.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings2.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetCallableFutureCallGetRegionOperationRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetGetRegionOperationRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetStringStringString.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitStringStringString.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitWaitRegionOperationRequest.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsSettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesStubSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java
 create mode 100644 test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionOperationsStubSettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/AddressesClient.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/AddressesClientTest.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/AddressesSettings.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/RegionOperationsClient.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/RegionOperationsClientTest.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/RegionOperationsSettings.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/gapic_metadata.json (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/package-info.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/stub/AddressesStub.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java (100%)
 rename test/integration/goldens/compute/{ => src}/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java (100%)
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings1.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings2.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenGenerateAccessTokenRequest.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenStringListStringListStringDuration.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenGenerateIdTokenRequest.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenStringListStringStringBoolean.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobCallableFutureCallSignBlobRequest.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobServiceAccountNameListStringByteString.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobSignBlobRequest.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobStringListStringByteString.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtCallableFutureCallSignJwtRequest.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtServiceAccountNameListStringString.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtSignJwtRequest.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtStringListStringString.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java
 create mode 100644 test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamCredentialsStubSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/ServiceAccountName.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/gapic_metadata.json (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/package-info.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java (100%)
 rename test/integration/goldens/credentials/{ => src}/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java (100%)
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings1.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings2.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicySettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java
 create mode 100644 test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iAMPolicyStubSettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/IAMPolicyClient.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/IAMPolicyClientTest.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/IAMPolicySettings.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/MockIAMPolicy.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/MockIAMPolicyImpl.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/gapic_metadata.json (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/package-info.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/stub/GrpcIAMPolicyStub.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/stub/IAMPolicyStub.java (100%)
 rename test/integration/goldens/iam/{ => src}/com/google/iam/v1/stub/IAMPolicyStubSettings.java (100%)
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptStringByteString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignAsymmetricSignRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCryptoKeyVersionNameDigest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignStringDigest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings1.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings2.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCreateCryptoKeyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyKeyRingNameStringCryptoKey.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyStringStringCryptoKey.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionStringCryptoKeyVersion.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCallableFutureCallCreateImportJobRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCreateImportJobRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobKeyRingNameStringImportJob.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobStringStringImportJob.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCreateKeyRingRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingLocationNameStringKeyRing.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingStringStringKeyRing.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCallableFutureCallDecryptRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCryptoKeyNameByteString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptDecryptRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptStringByteString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCryptoKeyVersionName.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptCallableFutureCallEncryptRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptEncryptRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptResourceNameByteString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptStringByteString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCryptoKeyName.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyGetCryptoKeyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCryptoKeyVersionName.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobCallableFutureCallGetImportJobRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobGetImportJobRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobImportJobName.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingCallableFutureCallGetKeyRingRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingGetKeyRingRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingKeyRingName.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationCallableFutureCallGetLocationRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationGetLocationRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCryptoKeyVersionName.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyGetPublicKeyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsStringIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysKeyRingNameIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysStringIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsCallableCallListImportJobsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsKeyRingNameIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsListImportJobsRequestIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsStringIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsCallableCallListKeyRingsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsListKeyRingsRequestIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsLocationNameIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsStringIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsCallableCallListLocationsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsListLocationsRequestIterateAll.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCryptoKeyVersionName.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCryptoKeyFieldMask.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyUpdateCryptoKeyRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionStringString.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java
 create mode 100644 test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keyManagementServiceStubSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/CryptoKeyName.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/CryptoKeyVersionName.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/ImportJobName.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/KeyManagementServiceClient.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/KeyManagementServiceSettings.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/KeyRingName.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/LocationName.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/MockKeyManagementService.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/gapic_metadata.json (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/package-info.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/location/MockLocations.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/cloud/location/MockLocationsImpl.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/iam/v1/MockIAMPolicy.java (100%)
 rename test/integration/goldens/kms/{ => src}/com/google/iam/v1/MockIAMPolicyImpl.java (100%)
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings1.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings2.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCallableFutureCallCreateBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCreateBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookShelfNameBook.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookStringBook.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCallableFutureCallCreateShelfRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCreateShelfRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfShelf.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookBookName.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookCallableFutureCallDeleteBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookDeleteBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookString.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfDeleteShelfRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfShelfName.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfString.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookBookName.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookCallableFutureCallGetBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookGetBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookString.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfCallableFutureCallGetShelfRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfGetShelfRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfShelfName.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfString.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksCallableCallListBooksRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksListBooksRequestIterateAll.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksPagedCallableFutureCallListBooksRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksShelfNameIterateAll.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksStringIterateAll.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesCallableCallListShelvesRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesListShelvesRequestIterateAll.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesMergeShelvesRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameShelfName.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameString.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringShelfName.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringString.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameShelfName.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameString.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookCallableFutureCallMoveBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookMoveBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringShelfName.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringString.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookBookFieldMask.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookCallableFutureCallUpdateBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookUpdateBookRequest.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java
 create mode 100644 test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryServiceStubSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/LibraryServiceClient.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/LibraryServiceClientTest.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/LibraryServiceSettings.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/MockLibraryService.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/gapic_metadata.json (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/package-info.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/example/library/v1/BookName.java (100%)
 rename test/integration/goldens/library/{ => src}/com/google/example/library/v1/ShelfName.java (100%)
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings1.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings2.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCreateBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionBillingAccountNameLogExclusion.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCreateExclusionRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionFolderNameLogExclusion.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionOrganizationNameLogExclusion.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionProjectNameLogExclusion.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionStringLogExclusion.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkBillingAccountNameLogSink.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCallableFutureCallCreateSinkRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCreateSinkRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkFolderNameLogSink.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkOrganizationNameLogSink.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkProjectNameLogSink.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkStringLogSink.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCallableFutureCallCreateViewRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCreateViewRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketDeleteBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionDeleteExclusionRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionLogExclusionName.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionString.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkCallableFutureCallDeleteSinkRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkDeleteSinkRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkLogSinkName.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkString.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewCallableFutureCallDeleteViewRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewDeleteViewRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketGetBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsGetCmekSettingsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionCallableFutureCallGetExclusionRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionGetExclusionRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionLogExclusionName.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionString.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkCallableFutureCallGetSinkRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkGetSinkRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkLogSinkName.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkString.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewCallableFutureCallGetViewRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewGetViewRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsBillingAccountLocationNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsFolderLocationNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsLocationNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsOrganizationLocationNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsStringIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsBillingAccountNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsCallableCallListExclusionsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsFolderNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsListExclusionsRequestIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsOrganizationNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsStringIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksBillingAccountNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksCallableCallListSinksRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksFolderNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksListSinksRequestIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksOrganizationNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksPagedCallableFutureCallListSinksRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksStringIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsCallableCallListViewsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsListViewsRequestIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsPagedCallableFutureCallListViewsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsStringIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketUndeleteBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketUpdateBucketRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionStringLogExclusionFieldMask.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionUpdateExclusionRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkCallableFutureCallUpdateSinkRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSink.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSinkFieldMask.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSink.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSinkFieldMask.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkUpdateSinkRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewCallableFutureCallUpdateViewRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewUpdateViewRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigSettings.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings1.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings2.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogCallableFutureCallDeleteLogRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogDeleteLogRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogLogName.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogString.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesCallableCallListLogEntriesRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListLogEntriesRequestIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListStringStringStringIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsBillingAccountNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsCallableCallListLogsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsFolderNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsListLogsRequestIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsOrganizationNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsPagedCallableFutureCallListLogsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsStringIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/tailLogEntries/TailLogEntriesCallableCallTailLogEntriesRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesWriteLogEntriesRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings1.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings2.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCreateLogMetricRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricProjectNameLogMetric.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricStringLogMetric.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricDeleteLogMetricRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricLogMetricName.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricString.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricGetLogMetricRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricLogMetricName.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricString.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsCallableCallListLogMetricsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsListLogMetricsRequestIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsStringIterateAll.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricLogMetricNameLogMetric.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricStringLogMetric.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricUpdateLogMetricRequest.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configServiceV2StubSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingServiceV2StubSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java
 create mode 100644 test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsServiceV2StubSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/ConfigClient.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/ConfigClientTest.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/ConfigSettings.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/LoggingClient.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/LoggingClientTest.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/LoggingSettings.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MetricsClient.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MetricsClientTest.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MetricsSettings.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MockConfigServiceV2.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MockLoggingServiceV2.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MockMetricsServiceV2.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/gapic_metadata.json (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/package-info.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/BillingAccountLocationName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/BillingAccountName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/CmekSettingsName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/FolderLocationName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/FolderName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/LocationName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/LogBucketName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/LogExclusionName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/LogMetricName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/LogName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/LogSinkName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/LogViewName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/OrganizationLocationName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/OrganizationName.java (100%)
 rename test/integration/goldens/logging/{ => src}/com/google/logging/v2/ProjectName.java (100%)
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings1.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings2.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCallableFutureCallCreateSchemaRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCreateSchemaRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaProjectNameSchemaString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaStringSchemaString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaDeleteSchemaRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaSchemaName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaCallableFutureCallGetSchemaRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaGetSchemaRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaSchemaName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasCallableCallListSchemasRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasListSchemasRequestIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasStringIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageCallableFutureCallValidateMessageRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageValidateMessageRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaProjectNameSchema.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaStringSchema.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaValidateSchemaRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherStubSettings/createTopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaServiceStubSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberStubSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeAcknowledgeRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeStringListString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeSubscriptionNameListString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings1.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings2.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCreateSnapshotRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameSubscriptionName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringSubscriptionName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionCallableFutureCallSubscription.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringStringPushConfigInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringTopicNamePushConfigInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscription.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotDeleteSnapshotRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotSnapshotName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionDeleteSubscriptionRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionSubscriptionName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotGetSnapshotRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotSnapshotName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionGetSubscriptionRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionSubscriptionName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsStringIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsStringIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineStringListStringInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigModifyPushConfigRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigStringPushConfig.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigSubscriptionNamePushConfig.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullCallableFutureCallPullRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullPullRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringBooleanInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameBooleanInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameInt.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekCallableFutureCallSeekRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekSeekRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/streamingPull/StreamingPullCallableCallStreamingPullRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotUpdateSnapshotRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionUpdateSubscriptionRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings1.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings2.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicCallableFutureCallTopic.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopic.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopicName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicDeleteTopicRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicTopicName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionDetachSubscriptionRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicCallableFutureCallGetTopicRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicGetTopicRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicString.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicTopicName.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsStringIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsTopicNameIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsStringIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsCallableCallListTopicsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsListTopicsRequestIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsStringIterateAll.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishCallableFutureCallPublishRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishPublishRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishStringListPubsubMessage.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishTopicNameListPubsubMessage.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicUpdateTopicRequest.java
 create mode 100644 test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminSettings/createTopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/MockIAMPolicy.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/MockPublisher.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/MockPublisherImpl.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/MockSchemaService.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/MockSubscriber.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/MockSubscriberImpl.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/SchemaServiceClient.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/SchemaServiceSettings.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/TopicAdminClient.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/TopicAdminClientTest.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/TopicAdminSettings.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/gapic_metadata.json (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/package-info.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/PublisherStub.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/SubscriberStub.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/pubsub/v1/ProjectName.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/pubsub/v1/SchemaName.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/pubsub/v1/SnapshotName.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/pubsub/v1/SubscriptionName.java (100%)
 rename test/integration/goldens/pubsub/{ => src}/com/google/pubsub/v1/TopicName.java (100%)
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings1.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings2.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncCreateInstanceRequestGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncLocationNameStringInstanceGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncStringStringInstanceGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncInstanceNameGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncStringGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncExportInstanceRequestGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncStringOutputConfigGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceCallableFutureCallExportInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceCallableFutureCallGetInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceGetInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceInstanceName.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceString.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringGetInstanceAuthStringRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringInstanceName.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringString.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncImportInstanceRequestGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncStringInputConfigGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceCallableFutureCallImportInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesCallableCallListInstancesRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesListInstancesRequestIterateAll.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesLocationNameIterateAll.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesStringIterateAll.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncFieldMaskInstanceGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncInstanceNameStringGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncStringStringGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java
 create mode 100644 test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudRedisStubSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/CloudRedisClient.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/CloudRedisSettings.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/InstanceName.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/LocationName.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/MockCloudRedis.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/gapic_metadata.json (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/package-info.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java (100%)
 rename test/integration/goldens/redis/{ => src}/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java (100%)
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectCallableFutureCallComposeObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectComposeObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings1.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings2.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCreateBucketRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketProjectNameBucketString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketStringBucketString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCreateHmacKeyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyProjectNameString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyStringString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCreateNotificationRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationProjectNameNotification.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationStringNotification.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketBucketName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketDeleteBucketRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyDeleteHmacKeyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringProjectName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationDeleteNotificationRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationNotificationName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectCallableFutureCallDeleteObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectDeleteObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringStringLong.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketBucketName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketGetBucketRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyGetHmacKeyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringProjectName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyResourceName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationBucketName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationCallableFutureCallGetNotificationRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationGetNotificationRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectCallableFutureCallGetObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectGetObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringStringLong.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountGetServiceAccountRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountProjectName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsStringIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysCallableCallListHmacKeysRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysListHmacKeysRequestIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysStringIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsCallableCallListNotificationsRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsListNotificationsRequestIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsStringIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsCallableCallListObjectsRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsListObjectsRequestIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsProjectNameIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsStringIterateAll.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyBucketName.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusQueryWriteStatusRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/readObject/ReadObjectCallableCallReadObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectCallableFutureCallRewriteObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectRewriteObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyResourceNamePolicy.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyStringPolicy.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteStartResumableWriteRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsResourceNameListString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsStringListString.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketBucketFieldMask.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketUpdateBucketRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyHmacKeyMetadataFieldMask.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyUpdateHmacKeyRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectCallableFutureCallUpdateObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectObjectFieldMask.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectUpdateObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/writeObject/WriteObjectClientStreamingCallWriteObjectRequest.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java
 create mode 100644 test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storageStubSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/BucketName.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/CryptoKeyName.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/MockStorage.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/MockStorageImpl.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/NotificationName.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/ProjectName.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/StorageClient.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/StorageClientTest.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/StorageSettings.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/gapic_metadata.json (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/package-info.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/stub/GrpcStorageCallableFactory.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/stub/GrpcStorageStub.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/stub/StorageStub.java (100%)
 rename test/integration/goldens/storage/{ => src}/com/google/storage/v2/stub/StorageStubSettings.java (100%)

diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java
new file mode 100644
index 0000000000..7d8df5be33
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest]
+import com.google.cloud.asset.v1.AnalyzeIamPolicyRequest;
+import com.google.cloud.asset.v1.AnalyzeIamPolicyResponse;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
+import com.google.protobuf.Duration;
+
+public class AnalyzeIamPolicyAnalyzeIamPolicyRequest {
+
+  public static void main(String[] args) throws Exception {
+    analyzeIamPolicyAnalyzeIamPolicyRequest();
+  }
+
+  public static void analyzeIamPolicyAnalyzeIamPolicyRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      AnalyzeIamPolicyRequest request =
+          AnalyzeIamPolicyRequest.newBuilder()
+              .setAnalysisQuery(IamPolicyAnalysisQuery.newBuilder().build())
+              .setExecutionTimeout(Duration.newBuilder().build())
+              .build();
+      AnalyzeIamPolicyResponse response = assetServiceClient.analyzeIamPolicy(request);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java
new file mode 100644
index 0000000000..04205518cd
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AnalyzeIamPolicyRequest;
+import com.google.cloud.asset.v1.AnalyzeIamPolicyResponse;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
+import com.google.protobuf.Duration;
+
+public class AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest {
+
+  public static void main(String[] args) throws Exception {
+    analyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest();
+  }
+
+  public static void analyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      AnalyzeIamPolicyRequest request =
+          AnalyzeIamPolicyRequest.newBuilder()
+              .setAnalysisQuery(IamPolicyAnalysisQuery.newBuilder().build())
+              .setExecutionTimeout(Duration.newBuilder().build())
+              .build();
+      ApiFuture future =
+          assetServiceClient.analyzeIamPolicyCallable().futureCall(request);
+      // Do something.
+      AnalyzeIamPolicyResponse response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java
new file mode 100644
index 0000000000..44c6584498
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget]
+import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest;
+import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig;
+import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
+
+public class AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet {
+
+  public static void main(String[] args) throws Exception {
+    analyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet();
+  }
+
+  public static void analyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      AnalyzeIamPolicyLongrunningRequest request =
+          AnalyzeIamPolicyLongrunningRequest.newBuilder()
+              .setAnalysisQuery(IamPolicyAnalysisQuery.newBuilder().build())
+              .setOutputConfig(IamPolicyAnalysisOutputConfig.newBuilder().build())
+              .build();
+      AnalyzeIamPolicyLongrunningResponse response =
+          assetServiceClient.analyzeIamPolicyLongrunningAsync(request).get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
new file mode 100644
index 0000000000..417cf1a6bb
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig;
+import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
+import com.google.longrunning.Operation;
+
+public class AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest {
+
+  public static void main(String[] args) throws Exception {
+    analyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest();
+  }
+
+  public static void
+      analyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest()
+          throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      AnalyzeIamPolicyLongrunningRequest request =
+          AnalyzeIamPolicyLongrunningRequest.newBuilder()
+              .setAnalysisQuery(IamPolicyAnalysisQuery.newBuilder().build())
+              .setOutputConfig(IamPolicyAnalysisOutputConfig.newBuilder().build())
+              .build();
+      ApiFuture future =
+          assetServiceClient.analyzeIamPolicyLongrunningCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
new file mode 100644
index 0000000000..be36fa0dda
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata;
+import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest;
+import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig;
+import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
+
+public
+class AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest {
+
+  public static void main(String[] args) throws Exception {
+    analyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest();
+  }
+
+  public static void
+      analyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest()
+          throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      AnalyzeIamPolicyLongrunningRequest request =
+          AnalyzeIamPolicyLongrunningRequest.newBuilder()
+              .setAnalysisQuery(IamPolicyAnalysisQuery.newBuilder().build())
+              .setOutputConfig(IamPolicyAnalysisOutputConfig.newBuilder().build())
+              .build();
+      OperationFuture
+          future =
+              assetServiceClient.analyzeIamPolicyLongrunningOperationCallable().futureCall(request);
+      // Do something.
+      AnalyzeIamPolicyLongrunningResponse response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveAnalyzeMoveRequest.java
new file mode 100644
index 0000000000..27d015804e
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveAnalyzeMoveRequest.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest]
+import com.google.cloud.asset.v1.AnalyzeMoveRequest;
+import com.google.cloud.asset.v1.AnalyzeMoveResponse;
+import com.google.cloud.asset.v1.AssetServiceClient;
+
+public class AnalyzeMoveAnalyzeMoveRequest {
+
+  public static void main(String[] args) throws Exception {
+    analyzeMoveAnalyzeMoveRequest();
+  }
+
+  public static void analyzeMoveAnalyzeMoveRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      AnalyzeMoveRequest request =
+          AnalyzeMoveRequest.newBuilder()
+              .setResource("resource-341064690")
+              .setDestinationParent("destinationParent-1733659048")
+              .build();
+      AnalyzeMoveResponse response = assetServiceClient.analyzeMove(request);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java
new file mode 100644
index 0000000000..58a31af6d5
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AnalyzeMoveRequest;
+import com.google.cloud.asset.v1.AnalyzeMoveResponse;
+import com.google.cloud.asset.v1.AssetServiceClient;
+
+public class AnalyzeMoveCallableFutureCallAnalyzeMoveRequest {
+
+  public static void main(String[] args) throws Exception {
+    analyzeMoveCallableFutureCallAnalyzeMoveRequest();
+  }
+
+  public static void analyzeMoveCallableFutureCallAnalyzeMoveRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      AnalyzeMoveRequest request =
+          AnalyzeMoveRequest.newBuilder()
+              .setResource("resource-341064690")
+              .setDestinationParent("destinationParent-1733659048")
+              .build();
+      ApiFuture future =
+          assetServiceClient.analyzeMoveCallable().futureCall(request);
+      // Do something.
+      AnalyzeMoveResponse response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java
new file mode 100644
index 0000000000..8da027b4e3
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest;
+import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.TimeWindow;
+import java.util.ArrayList;
+
+public class BatchGetAssetsHistoryBatchGetAssetsHistoryRequest {
+
+  public static void main(String[] args) throws Exception {
+    batchGetAssetsHistoryBatchGetAssetsHistoryRequest();
+  }
+
+  public static void batchGetAssetsHistoryBatchGetAssetsHistoryRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      BatchGetAssetsHistoryRequest request =
+          BatchGetAssetsHistoryRequest.newBuilder()
+              .setParent(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .addAllAssetNames(new ArrayList())
+              .setContentType(ContentType.forNumber(0))
+              .setReadTimeWindow(TimeWindow.newBuilder().build())
+              .addAllRelationshipTypes(new ArrayList())
+              .build();
+      BatchGetAssetsHistoryResponse response = assetServiceClient.batchGetAssetsHistory(request);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java
new file mode 100644
index 0000000000..a8ca98b3d2
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest;
+import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.TimeWindow;
+import java.util.ArrayList;
+
+public class BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest {
+
+  public static void main(String[] args) throws Exception {
+    batchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest();
+  }
+
+  public static void batchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      BatchGetAssetsHistoryRequest request =
+          BatchGetAssetsHistoryRequest.newBuilder()
+              .setParent(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .addAllAssetNames(new ArrayList())
+              .setContentType(ContentType.forNumber(0))
+              .setReadTimeWindow(TimeWindow.newBuilder().build())
+              .addAllRelationshipTypes(new ArrayList())
+              .build();
+      ApiFuture future =
+          assetServiceClient.batchGetAssetsHistoryCallable().futureCall(request);
+      // Do something.
+      BatchGetAssetsHistoryResponse response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings1.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings1.java
new file mode 100644
index 0000000000..05755bcd60
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings1.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_create_assetservicesettings1]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.AssetServiceSettings;
+import com.google.cloud.asset.v1.myCredentials;
+
+public class CreateAssetServiceSettings1 {
+
+  public static void main(String[] args) throws Exception {
+    createAssetServiceSettings1();
+  }
+
+  public static void createAssetServiceSettings1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    AssetServiceSettings assetServiceSettings =
+        AssetServiceSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings);
+  }
+}
+// [END asset_v1_generated_assetserviceclient_create_assetservicesettings1]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings2.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings2.java
new file mode 100644
index 0000000000..40fb0fe00a
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings2.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_create_assetservicesettings2]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.AssetServiceSettings;
+import com.google.cloud.asset.v1.myEndpoint;
+
+public class CreateAssetServiceSettings2 {
+
+  public static void main(String[] args) throws Exception {
+    createAssetServiceSettings2();
+  }
+
+  public static void createAssetServiceSettings2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    AssetServiceSettings assetServiceSettings =
+        AssetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+    AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings);
+  }
+}
+// [END asset_v1_generated_assetserviceclient_create_assetservicesettings2]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCallableFutureCallCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCallableFutureCallCreateFeedRequest.java
new file mode 100644
index 0000000000..dac23fcee9
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCallableFutureCallCreateFeedRequest.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.CreateFeedRequest;
+import com.google.cloud.asset.v1.Feed;
+
+public class CreateFeedCallableFutureCallCreateFeedRequest {
+
+  public static void main(String[] args) throws Exception {
+    createFeedCallableFutureCallCreateFeedRequest();
+  }
+
+  public static void createFeedCallableFutureCallCreateFeedRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      CreateFeedRequest request =
+          CreateFeedRequest.newBuilder()
+              .setParent("parent-995424086")
+              .setFeedId("feedId-1278410919")
+              .setFeed(Feed.newBuilder().build())
+              .build();
+      ApiFuture future = assetServiceClient.createFeedCallable().futureCall(request);
+      // Do something.
+      Feed response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCreateFeedRequest.java
new file mode 100644
index 0000000000..3c1fa6ff45
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCreateFeedRequest.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_createfeed_createfeedrequest]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.CreateFeedRequest;
+import com.google.cloud.asset.v1.Feed;
+
+public class CreateFeedCreateFeedRequest {
+
+  public static void main(String[] args) throws Exception {
+    createFeedCreateFeedRequest();
+  }
+
+  public static void createFeedCreateFeedRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      CreateFeedRequest request =
+          CreateFeedRequest.newBuilder()
+              .setParent("parent-995424086")
+              .setFeedId("feedId-1278410919")
+              .setFeed(Feed.newBuilder().build())
+              .build();
+      Feed response = assetServiceClient.createFeed(request);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_createfeed_createfeedrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedString.java
new file mode 100644
index 0000000000..c6dfa49cf5
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedString.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_createfeed_string]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.Feed;
+
+public class CreateFeedString {
+
+  public static void main(String[] args) throws Exception {
+    createFeedString();
+  }
+
+  public static void createFeedString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      String parent = "parent-995424086";
+      Feed response = assetServiceClient.createFeed(parent);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_createfeed_string]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java
new file mode 100644
index 0000000000..487eec6dc7
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.DeleteFeedRequest;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.protobuf.Empty;
+
+public class DeleteFeedCallableFutureCallDeleteFeedRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteFeedCallableFutureCallDeleteFeedRequest();
+  }
+
+  public static void deleteFeedCallableFutureCallDeleteFeedRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      DeleteFeedRequest request =
+          DeleteFeedRequest.newBuilder()
+              .setName(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .build();
+      ApiFuture future = assetServiceClient.deleteFeedCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedDeleteFeedRequest.java
new file mode 100644
index 0000000000..4a421d2aa3
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedDeleteFeedRequest.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.DeleteFeedRequest;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.protobuf.Empty;
+
+public class DeleteFeedDeleteFeedRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteFeedDeleteFeedRequest();
+  }
+
+  public static void deleteFeedDeleteFeedRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      DeleteFeedRequest request =
+          DeleteFeedRequest.newBuilder()
+              .setName(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .build();
+      assetServiceClient.deleteFeed(request);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedFeedName.java
new file mode 100644
index 0000000000..0b9386cc45
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedFeedName.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_deletefeed_feedname]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.protobuf.Empty;
+
+public class DeleteFeedFeedName {
+
+  public static void main(String[] args) throws Exception {
+    deleteFeedFeedName();
+  }
+
+  public static void deleteFeedFeedName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
+      assetServiceClient.deleteFeed(name);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_deletefeed_feedname]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedString.java
new file mode 100644
index 0000000000..cbd0b06275
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedString.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_deletefeed_string]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.protobuf.Empty;
+
+public class DeleteFeedString {
+
+  public static void main(String[] args) throws Exception {
+    deleteFeedString();
+  }
+
+  public static void deleteFeedString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
+      assetServiceClient.deleteFeed(name);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_deletefeed_string]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsAsyncExportAssetsRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsAsyncExportAssetsRequestGet.java
new file mode 100644
index 0000000000..ac1231b82e
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsAsyncExportAssetsRequestGet.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.ExportAssetsRequest;
+import com.google.cloud.asset.v1.ExportAssetsResponse;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.OutputConfig;
+import com.google.protobuf.Timestamp;
+import java.util.ArrayList;
+
+public class ExportAssetsAsyncExportAssetsRequestGet {
+
+  public static void main(String[] args) throws Exception {
+    exportAssetsAsyncExportAssetsRequestGet();
+  }
+
+  public static void exportAssetsAsyncExportAssetsRequestGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ExportAssetsRequest request =
+          ExportAssetsRequest.newBuilder()
+              .setParent(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .setReadTime(Timestamp.newBuilder().build())
+              .addAllAssetTypes(new ArrayList())
+              .setContentType(ContentType.forNumber(0))
+              .setOutputConfig(OutputConfig.newBuilder().build())
+              .addAllRelationshipTypes(new ArrayList())
+              .build();
+      ExportAssetsResponse response = assetServiceClient.exportAssetsAsync(request).get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsCallableFutureCallExportAssetsRequest.java
new file mode 100644
index 0000000000..4a8ab4d8ba
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsCallableFutureCallExportAssetsRequest.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.ExportAssetsRequest;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.OutputConfig;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Timestamp;
+import java.util.ArrayList;
+
+public class ExportAssetsCallableFutureCallExportAssetsRequest {
+
+  public static void main(String[] args) throws Exception {
+    exportAssetsCallableFutureCallExportAssetsRequest();
+  }
+
+  public static void exportAssetsCallableFutureCallExportAssetsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ExportAssetsRequest request =
+          ExportAssetsRequest.newBuilder()
+              .setParent(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .setReadTime(Timestamp.newBuilder().build())
+              .addAllAssetTypes(new ArrayList())
+              .setContentType(ContentType.forNumber(0))
+              .setOutputConfig(OutputConfig.newBuilder().build())
+              .addAllRelationshipTypes(new ArrayList())
+              .build();
+      ApiFuture future = assetServiceClient.exportAssetsCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java
new file mode 100644
index 0000000000..d93a56c0d8
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.ExportAssetsRequest;
+import com.google.cloud.asset.v1.ExportAssetsResponse;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.OutputConfig;
+import com.google.protobuf.Timestamp;
+import java.util.ArrayList;
+
+public class ExportAssetsOperationCallableFutureCallExportAssetsRequest {
+
+  public static void main(String[] args) throws Exception {
+    exportAssetsOperationCallableFutureCallExportAssetsRequest();
+  }
+
+  public static void exportAssetsOperationCallableFutureCallExportAssetsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ExportAssetsRequest request =
+          ExportAssetsRequest.newBuilder()
+              .setParent(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .setReadTime(Timestamp.newBuilder().build())
+              .addAllAssetTypes(new ArrayList())
+              .setContentType(ContentType.forNumber(0))
+              .setOutputConfig(OutputConfig.newBuilder().build())
+              .addAllRelationshipTypes(new ArrayList())
+              .build();
+      OperationFuture future =
+          assetServiceClient.exportAssetsOperationCallable().futureCall(request);
+      // Do something.
+      ExportAssetsResponse response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedCallableFutureCallGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedCallableFutureCallGetFeedRequest.java
new file mode 100644
index 0000000000..dff0833951
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedCallableFutureCallGetFeedRequest.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.Feed;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.GetFeedRequest;
+
+public class GetFeedCallableFutureCallGetFeedRequest {
+
+  public static void main(String[] args) throws Exception {
+    getFeedCallableFutureCallGetFeedRequest();
+  }
+
+  public static void getFeedCallableFutureCallGetFeedRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      GetFeedRequest request =
+          GetFeedRequest.newBuilder()
+              .setName(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .build();
+      ApiFuture future = assetServiceClient.getFeedCallable().futureCall(request);
+      // Do something.
+      Feed response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedFeedName.java
new file mode 100644
index 0000000000..83750fdf70
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedFeedName.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_getfeed_feedname]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.Feed;
+import com.google.cloud.asset.v1.FeedName;
+
+public class GetFeedFeedName {
+
+  public static void main(String[] args) throws Exception {
+    getFeedFeedName();
+  }
+
+  public static void getFeedFeedName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
+      Feed response = assetServiceClient.getFeed(name);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_getfeed_feedname]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedGetFeedRequest.java
new file mode 100644
index 0000000000..4fa72079b3
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedGetFeedRequest.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_getfeed_getfeedrequest]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.Feed;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.GetFeedRequest;
+
+public class GetFeedGetFeedRequest {
+
+  public static void main(String[] args) throws Exception {
+    getFeedGetFeedRequest();
+  }
+
+  public static void getFeedGetFeedRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      GetFeedRequest request =
+          GetFeedRequest.newBuilder()
+              .setName(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .build();
+      Feed response = assetServiceClient.getFeed(request);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_getfeed_getfeedrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedString.java
new file mode 100644
index 0000000000..956051716b
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedString.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_getfeed_string]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.Feed;
+import com.google.cloud.asset.v1.FeedName;
+
+public class GetFeedString {
+
+  public static void main(String[] args) throws Exception {
+    getFeedString();
+  }
+
+  public static void getFeedString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
+      Feed response = assetServiceClient.getFeed(name);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_getfeed_string]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsCallableCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsCallableCallListAssetsRequest.java
new file mode 100644
index 0000000000..042d342320
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsCallableCallListAssetsRequest.java
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest]
+import com.google.cloud.asset.v1.Asset;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.ListAssetsRequest;
+import com.google.cloud.asset.v1.ListAssetsResponse;
+import com.google.common.base.Strings;
+import com.google.protobuf.Timestamp;
+import java.util.ArrayList;
+
+public class ListAssetsCallableCallListAssetsRequest {
+
+  public static void main(String[] args) throws Exception {
+    listAssetsCallableCallListAssetsRequest();
+  }
+
+  public static void listAssetsCallableCallListAssetsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .setReadTime(Timestamp.newBuilder().build())
+              .addAllAssetTypes(new ArrayList())
+              .setContentType(ContentType.forNumber(0))
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .addAllRelationshipTypes(new ArrayList())
+              .build();
+      while (true) {
+        ListAssetsResponse response = assetServiceClient.listAssetsCallable().call(request);
+        for (Asset element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsListAssetsRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsListAssetsRequestIterateAll.java
new file mode 100644
index 0000000000..bdb2e2fb63
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsListAssetsRequestIterateAll.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall]
+import com.google.cloud.asset.v1.Asset;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.ListAssetsRequest;
+import com.google.protobuf.Timestamp;
+import java.util.ArrayList;
+
+public class ListAssetsListAssetsRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listAssetsListAssetsRequestIterateAll();
+  }
+
+  public static void listAssetsListAssetsRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .setReadTime(Timestamp.newBuilder().build())
+              .addAllAssetTypes(new ArrayList())
+              .setContentType(ContentType.forNumber(0))
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .addAllRelationshipTypes(new ArrayList())
+              .build();
+      for (Asset element : assetServiceClient.listAssets(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsPagedCallableFutureCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsPagedCallableFutureCallListAssetsRequest.java
new file mode 100644
index 0000000000..62f7ef789e
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsPagedCallableFutureCallListAssetsRequest.java
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.Asset;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.FeedName;
+import com.google.cloud.asset.v1.ListAssetsRequest;
+import com.google.protobuf.Timestamp;
+import java.util.ArrayList;
+
+public class ListAssetsPagedCallableFutureCallListAssetsRequest {
+
+  public static void main(String[] args) throws Exception {
+    listAssetsPagedCallableFutureCallListAssetsRequest();
+  }
+
+  public static void listAssetsPagedCallableFutureCallListAssetsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString())
+              .setReadTime(Timestamp.newBuilder().build())
+              .addAllAssetTypes(new ArrayList())
+              .setContentType(ContentType.forNumber(0))
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .addAllRelationshipTypes(new ArrayList())
+              .build();
+      ApiFuture future = assetServiceClient.listAssetsPagedCallable().futureCall(request);
+      // Do something.
+      for (Asset element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsResourceNameIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsResourceNameIterateAll.java
new file mode 100644
index 0000000000..cceaaf5c2a
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsResourceNameIterateAll.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.asset.v1.Asset;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.FeedName;
+
+public class ListAssetsResourceNameIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listAssetsResourceNameIterateAll();
+  }
+
+  public static void listAssetsResourceNameIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ResourceName parent = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
+      for (Asset element : assetServiceClient.listAssets(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsStringIterateAll.java
new file mode 100644
index 0000000000..82a58a7c5e
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsStringIterateAll.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_listassets_stringiterateall]
+import com.google.cloud.asset.v1.Asset;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.FeedName;
+
+public class ListAssetsStringIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listAssetsStringIterateAll();
+  }
+
+  public static void listAssetsStringIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      String parent = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
+      for (Asset element : assetServiceClient.listAssets(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_listassets_stringiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsCallableFutureCallListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsCallableFutureCallListFeedsRequest.java
new file mode 100644
index 0000000000..5d9282cbe6
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsCallableFutureCallListFeedsRequest.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ListFeedsRequest;
+import com.google.cloud.asset.v1.ListFeedsResponse;
+
+public class ListFeedsCallableFutureCallListFeedsRequest {
+
+  public static void main(String[] args) throws Exception {
+    listFeedsCallableFutureCallListFeedsRequest();
+  }
+
+  public static void listFeedsCallableFutureCallListFeedsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ListFeedsRequest request =
+          ListFeedsRequest.newBuilder().setParent("parent-995424086").build();
+      ApiFuture future =
+          assetServiceClient.listFeedsCallable().futureCall(request);
+      // Do something.
+      ListFeedsResponse response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsListFeedsRequest.java
new file mode 100644
index 0000000000..0d84324bbc
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsListFeedsRequest.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ListFeedsRequest;
+import com.google.cloud.asset.v1.ListFeedsResponse;
+
+public class ListFeedsListFeedsRequest {
+
+  public static void main(String[] args) throws Exception {
+    listFeedsListFeedsRequest();
+  }
+
+  public static void listFeedsListFeedsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      ListFeedsRequest request =
+          ListFeedsRequest.newBuilder().setParent("parent-995424086").build();
+      ListFeedsResponse response = assetServiceClient.listFeeds(request);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsString.java
new file mode 100644
index 0000000000..447d2802a2
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsString.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_listfeeds_string]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ListFeedsResponse;
+
+public class ListFeedsString {
+
+  public static void main(String[] args) throws Exception {
+    listFeedsString();
+  }
+
+  public static void listFeedsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      String parent = "parent-995424086";
+      ListFeedsResponse response = assetServiceClient.listFeeds(parent);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_listfeeds_string]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java
new file mode 100644
index 0000000000..1ca6c38c64
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java
@@ -0,0 +1,62 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicySearchResult;
+import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest;
+import com.google.cloud.asset.v1.SearchAllIamPoliciesResponse;
+import com.google.common.base.Strings;
+import java.util.ArrayList;
+
+public class SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest {
+
+  public static void main(String[] args) throws Exception {
+    searchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest();
+  }
+
+  public static void searchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      SearchAllIamPoliciesRequest request =
+          SearchAllIamPoliciesRequest.newBuilder()
+              .setScope("scope109264468")
+              .setQuery("query107944136")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .addAllAssetTypes(new ArrayList())
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      while (true) {
+        SearchAllIamPoliciesResponse response =
+            assetServiceClient.searchAllIamPoliciesCallable().call(request);
+        for (IamPolicySearchResult element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java
new file mode 100644
index 0000000000..9306d1036d
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicySearchResult;
+import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest;
+import java.util.ArrayList;
+
+public class SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest {
+
+  public static void main(String[] args) throws Exception {
+    searchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest();
+  }
+
+  public static void searchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      SearchAllIamPoliciesRequest request =
+          SearchAllIamPoliciesRequest.newBuilder()
+              .setScope("scope109264468")
+              .setQuery("query107944136")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .addAllAssetTypes(new ArrayList())
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      ApiFuture future =
+          assetServiceClient.searchAllIamPoliciesPagedCallable().futureCall(request);
+      // Do something.
+      for (IamPolicySearchResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java
new file mode 100644
index 0000000000..91a0ee5b8e
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicySearchResult;
+import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest;
+import java.util.ArrayList;
+
+public class SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    searchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll();
+  }
+
+  public static void searchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      SearchAllIamPoliciesRequest request =
+          SearchAllIamPoliciesRequest.newBuilder()
+              .setScope("scope109264468")
+              .setQuery("query107944136")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .addAllAssetTypes(new ArrayList())
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      for (IamPolicySearchResult element :
+          assetServiceClient.searchAllIamPolicies(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesStringStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesStringStringIterateAll.java
new file mode 100644
index 0000000000..ce343fa1f7
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesStringStringIterateAll.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.IamPolicySearchResult;
+
+public class SearchAllIamPoliciesStringStringIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    searchAllIamPoliciesStringStringIterateAll();
+  }
+
+  public static void searchAllIamPoliciesStringStringIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      String scope = "scope109264468";
+      String query = "query107944136";
+      for (IamPolicySearchResult element :
+          assetServiceClient.searchAllIamPolicies(scope, query).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java
new file mode 100644
index 0000000000..742d20f39a
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ResourceSearchResult;
+import com.google.cloud.asset.v1.SearchAllResourcesRequest;
+import com.google.cloud.asset.v1.SearchAllResourcesResponse;
+import com.google.common.base.Strings;
+import com.google.protobuf.FieldMask;
+import java.util.ArrayList;
+
+public class SearchAllResourcesCallableCallSearchAllResourcesRequest {
+
+  public static void main(String[] args) throws Exception {
+    searchAllResourcesCallableCallSearchAllResourcesRequest();
+  }
+
+  public static void searchAllResourcesCallableCallSearchAllResourcesRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      SearchAllResourcesRequest request =
+          SearchAllResourcesRequest.newBuilder()
+              .setScope("scope109264468")
+              .setQuery("query107944136")
+              .addAllAssetTypes(new ArrayList())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setOrderBy("orderBy-1207110587")
+              .setReadMask(FieldMask.newBuilder().build())
+              .build();
+      while (true) {
+        SearchAllResourcesResponse response =
+            assetServiceClient.searchAllResourcesCallable().call(request);
+        for (ResourceSearchResult element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java
new file mode 100644
index 0000000000..8a005df39d
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ResourceSearchResult;
+import com.google.cloud.asset.v1.SearchAllResourcesRequest;
+import com.google.protobuf.FieldMask;
+import java.util.ArrayList;
+
+public class SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest {
+
+  public static void main(String[] args) throws Exception {
+    searchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest();
+  }
+
+  public static void searchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      SearchAllResourcesRequest request =
+          SearchAllResourcesRequest.newBuilder()
+              .setScope("scope109264468")
+              .setQuery("query107944136")
+              .addAllAssetTypes(new ArrayList())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setOrderBy("orderBy-1207110587")
+              .setReadMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          assetServiceClient.searchAllResourcesPagedCallable().futureCall(request);
+      // Do something.
+      for (ResourceSearchResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java
new file mode 100644
index 0000000000..583e7293e2
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ResourceSearchResult;
+import com.google.cloud.asset.v1.SearchAllResourcesRequest;
+import com.google.protobuf.FieldMask;
+import java.util.ArrayList;
+
+public class SearchAllResourcesSearchAllResourcesRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    searchAllResourcesSearchAllResourcesRequestIterateAll();
+  }
+
+  public static void searchAllResourcesSearchAllResourcesRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      SearchAllResourcesRequest request =
+          SearchAllResourcesRequest.newBuilder()
+              .setScope("scope109264468")
+              .setQuery("query107944136")
+              .addAllAssetTypes(new ArrayList())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setOrderBy("orderBy-1207110587")
+              .setReadMask(FieldMask.newBuilder().build())
+              .build();
+      for (ResourceSearchResult element :
+          assetServiceClient.searchAllResources(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesStringStringListStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesStringStringListStringIterateAll.java
new file mode 100644
index 0000000000..b5320cf8c7
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesStringStringListStringIterateAll.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ResourceSearchResult;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SearchAllResourcesStringStringListStringIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    searchAllResourcesStringStringListStringIterateAll();
+  }
+
+  public static void searchAllResourcesStringStringListStringIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      String scope = "scope109264468";
+      String query = "query107944136";
+      List assetTypes = new ArrayList<>();
+      for (ResourceSearchResult element :
+          assetServiceClient.searchAllResources(scope, query, assetTypes).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java
new file mode 100644
index 0000000000..cfe9198149
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.Feed;
+import com.google.cloud.asset.v1.UpdateFeedRequest;
+import com.google.protobuf.FieldMask;
+
+public class UpdateFeedCallableFutureCallUpdateFeedRequest {
+
+  public static void main(String[] args) throws Exception {
+    updateFeedCallableFutureCallUpdateFeedRequest();
+  }
+
+  public static void updateFeedCallableFutureCallUpdateFeedRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      UpdateFeedRequest request =
+          UpdateFeedRequest.newBuilder()
+              .setFeed(Feed.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future = assetServiceClient.updateFeedCallable().futureCall(request);
+      // Do something.
+      Feed response = future.get();
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedFeed.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedFeed.java
new file mode 100644
index 0000000000..72f0cba95a
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedFeed.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_updatefeed_feed]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.Feed;
+
+public class UpdateFeedFeed {
+
+  public static void main(String[] args) throws Exception {
+    updateFeedFeed();
+  }
+
+  public static void updateFeedFeed() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      Feed feed = Feed.newBuilder().build();
+      Feed response = assetServiceClient.updateFeed(feed);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_updatefeed_feed]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedUpdateFeedRequest.java
new file mode 100644
index 0000000000..a173248a21
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedUpdateFeedRequest.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest]
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.Feed;
+import com.google.cloud.asset.v1.UpdateFeedRequest;
+import com.google.protobuf.FieldMask;
+
+public class UpdateFeedUpdateFeedRequest {
+
+  public static void main(String[] args) throws Exception {
+    updateFeedUpdateFeedRequest();
+  }
+
+  public static void updateFeedUpdateFeedRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
+      UpdateFeedRequest request =
+          UpdateFeedRequest.newBuilder()
+              .setFeed(Feed.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Feed response = assetServiceClient.updateFeed(request);
+    }
+  }
+}
+// [END asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java
new file mode 100644
index 0000000000..4f1778c478
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.samples;
+
+// [START asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings]
+import com.google.cloud.asset.v1.AssetServiceSettings;
+import java.time.Duration;
+
+public class BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings {
+
+  public static void main(String[] args) throws Exception {
+    batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings();
+  }
+
+  public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder();
+    assetServiceSettingsBuilder
+        .batchGetAssetsHistorySettings()
+        .setRetrySettings(
+            assetServiceSettingsBuilder
+                .batchGetAssetsHistorySettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    AssetServiceSettings assetServiceSettings = assetServiceSettingsBuilder.build();
+  }
+}
+// [END asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetServiceStubSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetServiceStubSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java
new file mode 100644
index 0000000000..38eee3f66b
--- /dev/null
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetServiceStubSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.asset.v1.stub.samples;
+
+// [START asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings]
+import com.google.cloud.asset.v1.stub.AssetServiceStubSettings;
+import java.time.Duration;
+
+public class BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings {
+
+  public static void main(String[] args) throws Exception {
+    batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings();
+  }
+
+  public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    AssetServiceStubSettings.Builder assetServiceSettingsBuilder =
+        AssetServiceStubSettings.newBuilder();
+    assetServiceSettingsBuilder
+        .batchGetAssetsHistorySettings()
+        .setRetrySettings(
+            assetServiceSettingsBuilder
+                .batchGetAssetsHistorySettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    AssetServiceStubSettings assetServiceSettings = assetServiceSettingsBuilder.build();
+  }
+}
+// [END asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings]
\ No newline at end of file
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClientTest.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientTest.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClientTest.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientTest.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/FeedName.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/FeedName.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/MockAssetService.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetService.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/MockAssetService.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetService.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/MockAssetServiceImpl.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetServiceImpl.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/MockAssetServiceImpl.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetServiceImpl.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/gapic_metadata.json b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/gapic_metadata.json
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/gapic_metadata.json
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/gapic_metadata.json
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStub.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStub.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java
similarity index 100%
rename from test/integration/goldens/asset/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java
rename to test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java
new file mode 100644
index 0000000000..6892c11d9a
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest]
+import com.google.api.core.ApiFuture;
+import com.google.bigtable.v2.CheckAndMutateRowRequest;
+import com.google.bigtable.v2.CheckAndMutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.RowFilter;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+
+public class CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest {
+
+  public static void main(String[] args) throws Exception {
+    checkAndMutateRowCallableFutureCallCheckAndMutateRowRequest();
+  }
+
+  public static void checkAndMutateRowCallableFutureCallCheckAndMutateRowRequest()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      CheckAndMutateRowRequest request =
+          CheckAndMutateRowRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .setRowKey(ByteString.EMPTY)
+              .setPredicateFilter(RowFilter.newBuilder().build())
+              .addAllTrueMutations(new ArrayList())
+              .addAllFalseMutations(new ArrayList())
+              .build();
+      ApiFuture future =
+          baseBigtableDataClient.checkAndMutateRowCallable().futureCall(request);
+      // Do something.
+      CheckAndMutateRowResponse response = future.get();
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCheckAndMutateRowRequest.java
new file mode 100644
index 0000000000..2cecfb182a
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCheckAndMutateRowRequest.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest]
+import com.google.bigtable.v2.CheckAndMutateRowRequest;
+import com.google.bigtable.v2.CheckAndMutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.RowFilter;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+
+public class CheckAndMutateRowCheckAndMutateRowRequest {
+
+  public static void main(String[] args) throws Exception {
+    checkAndMutateRowCheckAndMutateRowRequest();
+  }
+
+  public static void checkAndMutateRowCheckAndMutateRowRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      CheckAndMutateRowRequest request =
+          CheckAndMutateRowRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .setRowKey(ByteString.EMPTY)
+              .setPredicateFilter(RowFilter.newBuilder().build())
+              .addAllTrueMutations(new ArrayList())
+              .addAllFalseMutations(new ArrayList())
+              .build();
+      CheckAndMutateRowResponse response = baseBigtableDataClient.checkAndMutateRow(request);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java
new file mode 100644
index 0000000000..cfb4ea77ab
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation]
+import com.google.bigtable.v2.CheckAndMutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.RowFilter;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class CheckAndMutateRowStringByteStringRowFilterListMutationListMutation {
+
+  public static void main(String[] args) throws Exception {
+    checkAndMutateRowStringByteStringRowFilterListMutationListMutation();
+  }
+
+  public static void checkAndMutateRowStringByteStringRowFilterListMutationListMutation()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
+      ByteString rowKey = ByteString.EMPTY;
+      RowFilter predicateFilter = RowFilter.newBuilder().build();
+      List trueMutations = new ArrayList<>();
+      List falseMutations = new ArrayList<>();
+      CheckAndMutateRowResponse response =
+          baseBigtableDataClient.checkAndMutateRow(
+              tableName, rowKey, predicateFilter, trueMutations, falseMutations);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java
new file mode 100644
index 0000000000..006fb254b1
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring]
+import com.google.bigtable.v2.CheckAndMutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.RowFilter;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString {
+
+  public static void main(String[] args) throws Exception {
+    checkAndMutateRowStringByteStringRowFilterListMutationListMutationString();
+  }
+
+  public static void checkAndMutateRowStringByteStringRowFilterListMutationListMutationString()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
+      ByteString rowKey = ByteString.EMPTY;
+      RowFilter predicateFilter = RowFilter.newBuilder().build();
+      List trueMutations = new ArrayList<>();
+      List falseMutations = new ArrayList<>();
+      String appProfileId = "appProfileId704923523";
+      CheckAndMutateRowResponse response =
+          baseBigtableDataClient.checkAndMutateRow(
+              tableName, rowKey, predicateFilter, trueMutations, falseMutations, appProfileId);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java
new file mode 100644
index 0000000000..58611bd996
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation]
+import com.google.bigtable.v2.CheckAndMutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.RowFilter;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation {
+
+  public static void main(String[] args) throws Exception {
+    checkAndMutateRowTableNameByteStringRowFilterListMutationListMutation();
+  }
+
+  public static void checkAndMutateRowTableNameByteStringRowFilterListMutationListMutation()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
+      ByteString rowKey = ByteString.EMPTY;
+      RowFilter predicateFilter = RowFilter.newBuilder().build();
+      List trueMutations = new ArrayList<>();
+      List falseMutations = new ArrayList<>();
+      CheckAndMutateRowResponse response =
+          baseBigtableDataClient.checkAndMutateRow(
+              tableName, rowKey, predicateFilter, trueMutations, falseMutations);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java
new file mode 100644
index 0000000000..836740733d
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring]
+import com.google.bigtable.v2.CheckAndMutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.RowFilter;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString {
+
+  public static void main(String[] args) throws Exception {
+    checkAndMutateRowTableNameByteStringRowFilterListMutationListMutationString();
+  }
+
+  public static void checkAndMutateRowTableNameByteStringRowFilterListMutationListMutationString()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
+      ByteString rowKey = ByteString.EMPTY;
+      RowFilter predicateFilter = RowFilter.newBuilder().build();
+      List trueMutations = new ArrayList<>();
+      List falseMutations = new ArrayList<>();
+      String appProfileId = "appProfileId704923523";
+      CheckAndMutateRowResponse response =
+          baseBigtableDataClient.checkAndMutateRow(
+              tableName, rowKey, predicateFilter, trueMutations, falseMutations, appProfileId);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings1.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings1.java
new file mode 100644
index 0000000000..d311f78e2f
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings1.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings;
+import com.google.cloud.bigtable.data.v2.myCredentials;
+
+public class CreateBaseBigtableDataSettings1 {
+
+  public static void main(String[] args) throws Exception {
+    createBaseBigtableDataSettings1();
+  }
+
+  public static void createBaseBigtableDataSettings1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    BaseBigtableDataSettings baseBigtableDataSettings =
+        BaseBigtableDataSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    BaseBigtableDataClient baseBigtableDataClient =
+        BaseBigtableDataClient.create(baseBigtableDataSettings);
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings2.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings2.java
new file mode 100644
index 0000000000..40cd58542f
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings2.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2]
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings;
+import com.google.cloud.bigtable.data.v2.myEndpoint;
+
+public class CreateBaseBigtableDataSettings2 {
+
+  public static void main(String[] args) throws Exception {
+    createBaseBigtableDataSettings2();
+  }
+
+  public static void createBaseBigtableDataSettings2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    BaseBigtableDataSettings baseBigtableDataSettings =
+        BaseBigtableDataSettings.newBuilder().setEndpoint(myEndpoint).build();
+    BaseBigtableDataClient baseBigtableDataClient =
+        BaseBigtableDataClient.create(baseBigtableDataSettings);
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowCallableFutureCallMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowCallableFutureCallMutateRowRequest.java
new file mode 100644
index 0000000000..d83bea5864
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowCallableFutureCallMutateRowRequest.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest]
+import com.google.api.core.ApiFuture;
+import com.google.bigtable.v2.MutateRowRequest;
+import com.google.bigtable.v2.MutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+
+public class MutateRowCallableFutureCallMutateRowRequest {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowCallableFutureCallMutateRowRequest();
+  }
+
+  public static void mutateRowCallableFutureCallMutateRowRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      MutateRowRequest request =
+          MutateRowRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .setRowKey(ByteString.EMPTY)
+              .addAllMutations(new ArrayList())
+              .build();
+      ApiFuture future =
+          baseBigtableDataClient.mutateRowCallable().futureCall(request);
+      // Do something.
+      MutateRowResponse response = future.get();
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowMutateRowRequest.java
new file mode 100644
index 0000000000..31fe74d654
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowMutateRowRequest.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest]
+import com.google.bigtable.v2.MutateRowRequest;
+import com.google.bigtable.v2.MutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+
+public class MutateRowMutateRowRequest {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowMutateRowRequest();
+  }
+
+  public static void mutateRowMutateRowRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      MutateRowRequest request =
+          MutateRowRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .setRowKey(ByteString.EMPTY)
+              .addAllMutations(new ArrayList())
+              .build();
+      MutateRowResponse response = baseBigtableDataClient.mutateRow(request);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutation.java
new file mode 100644
index 0000000000..dac1ce9b86
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutation.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation]
+import com.google.bigtable.v2.MutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class MutateRowStringByteStringListMutation {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowStringByteStringListMutation();
+  }
+
+  public static void mutateRowStringByteStringListMutation() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
+      ByteString rowKey = ByteString.EMPTY;
+      List mutations = new ArrayList<>();
+      MutateRowResponse response = baseBigtableDataClient.mutateRow(tableName, rowKey, mutations);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutationString.java
new file mode 100644
index 0000000000..58fa35fb9d
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutationString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring]
+import com.google.bigtable.v2.MutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class MutateRowStringByteStringListMutationString {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowStringByteStringListMutationString();
+  }
+
+  public static void mutateRowStringByteStringListMutationString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
+      ByteString rowKey = ByteString.EMPTY;
+      List mutations = new ArrayList<>();
+      String appProfileId = "appProfileId704923523";
+      MutateRowResponse response =
+          baseBigtableDataClient.mutateRow(tableName, rowKey, mutations, appProfileId);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutation.java
new file mode 100644
index 0000000000..b7285e37e4
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutation.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation]
+import com.google.bigtable.v2.MutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class MutateRowTableNameByteStringListMutation {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowTableNameByteStringListMutation();
+  }
+
+  public static void mutateRowTableNameByteStringListMutation() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
+      ByteString rowKey = ByteString.EMPTY;
+      List mutations = new ArrayList<>();
+      MutateRowResponse response = baseBigtableDataClient.mutateRow(tableName, rowKey, mutations);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutationString.java
new file mode 100644
index 0000000000..4b29f571fc
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutationString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring]
+import com.google.bigtable.v2.MutateRowResponse;
+import com.google.bigtable.v2.Mutation;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class MutateRowTableNameByteStringListMutationString {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowTableNameByteStringListMutationString();
+  }
+
+  public static void mutateRowTableNameByteStringListMutationString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
+      ByteString rowKey = ByteString.EMPTY;
+      List mutations = new ArrayList<>();
+      String appProfileId = "appProfileId704923523";
+      MutateRowResponse response =
+          baseBigtableDataClient.mutateRow(tableName, rowKey, mutations, appProfileId);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRows/MutateRowsCallableCallMutateRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRows/MutateRowsCallableCallMutateRowsRequest.java
new file mode 100644
index 0000000000..ec15915043
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRows/MutateRowsCallableCallMutateRowsRequest.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest]
+import com.google.api.gax.rpc.ServerStream;
+import com.google.bigtable.v2.MutateRowsRequest;
+import com.google.bigtable.v2.MutateRowsResponse;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import java.util.ArrayList;
+
+public class MutateRowsCallableCallMutateRowsRequest {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowsCallableCallMutateRowsRequest();
+  }
+
+  public static void mutateRowsCallableCallMutateRowsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      MutateRowsRequest request =
+          MutateRowsRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .addAllEntries(new ArrayList())
+              .build();
+      ServerStream stream =
+          baseBigtableDataClient.mutateRowsCallable().call(request);
+      for (MutateRowsResponse response : stream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java
new file mode 100644
index 0000000000..c6a90394c3
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest]
+import com.google.api.core.ApiFuture;
+import com.google.bigtable.v2.ReadModifyWriteRowRequest;
+import com.google.bigtable.v2.ReadModifyWriteRowResponse;
+import com.google.bigtable.v2.ReadModifyWriteRule;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+
+public class ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest {
+
+  public static void main(String[] args) throws Exception {
+    readModifyWriteRowCallableFutureCallReadModifyWriteRowRequest();
+  }
+
+  public static void readModifyWriteRowCallableFutureCallReadModifyWriteRowRequest()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      ReadModifyWriteRowRequest request =
+          ReadModifyWriteRowRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .setRowKey(ByteString.EMPTY)
+              .addAllRules(new ArrayList())
+              .build();
+      ApiFuture future =
+          baseBigtableDataClient.readModifyWriteRowCallable().futureCall(request);
+      // Do something.
+      ReadModifyWriteRowResponse response = future.get();
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowReadModifyWriteRowRequest.java
new file mode 100644
index 0000000000..3b20106fad
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowReadModifyWriteRowRequest.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest]
+import com.google.bigtable.v2.ReadModifyWriteRowRequest;
+import com.google.bigtable.v2.ReadModifyWriteRowResponse;
+import com.google.bigtable.v2.ReadModifyWriteRule;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+
+public class ReadModifyWriteRowReadModifyWriteRowRequest {
+
+  public static void main(String[] args) throws Exception {
+    readModifyWriteRowReadModifyWriteRowRequest();
+  }
+
+  public static void readModifyWriteRowReadModifyWriteRowRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      ReadModifyWriteRowRequest request =
+          ReadModifyWriteRowRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .setRowKey(ByteString.EMPTY)
+              .addAllRules(new ArrayList())
+              .build();
+      ReadModifyWriteRowResponse response = baseBigtableDataClient.readModifyWriteRow(request);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java
new file mode 100644
index 0000000000..563cb3448e
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule]
+import com.google.bigtable.v2.ReadModifyWriteRowResponse;
+import com.google.bigtable.v2.ReadModifyWriteRule;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class ReadModifyWriteRowStringByteStringListReadModifyWriteRule {
+
+  public static void main(String[] args) throws Exception {
+    readModifyWriteRowStringByteStringListReadModifyWriteRule();
+  }
+
+  public static void readModifyWriteRowStringByteStringListReadModifyWriteRule() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
+      ByteString rowKey = ByteString.EMPTY;
+      List rules = new ArrayList<>();
+      ReadModifyWriteRowResponse response =
+          baseBigtableDataClient.readModifyWriteRow(tableName, rowKey, rules);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java
new file mode 100644
index 0000000000..258ecd25bd
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring]
+import com.google.bigtable.v2.ReadModifyWriteRowResponse;
+import com.google.bigtable.v2.ReadModifyWriteRule;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString {
+
+  public static void main(String[] args) throws Exception {
+    readModifyWriteRowStringByteStringListReadModifyWriteRuleString();
+  }
+
+  public static void readModifyWriteRowStringByteStringListReadModifyWriteRuleString()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
+      ByteString rowKey = ByteString.EMPTY;
+      List rules = new ArrayList<>();
+      String appProfileId = "appProfileId704923523";
+      ReadModifyWriteRowResponse response =
+          baseBigtableDataClient.readModifyWriteRow(tableName, rowKey, rules, appProfileId);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java
new file mode 100644
index 0000000000..980d40a07e
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule]
+import com.google.bigtable.v2.ReadModifyWriteRowResponse;
+import com.google.bigtable.v2.ReadModifyWriteRule;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule {
+
+  public static void main(String[] args) throws Exception {
+    readModifyWriteRowTableNameByteStringListReadModifyWriteRule();
+  }
+
+  public static void readModifyWriteRowTableNameByteStringListReadModifyWriteRule()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
+      ByteString rowKey = ByteString.EMPTY;
+      List rules = new ArrayList<>();
+      ReadModifyWriteRowResponse response =
+          baseBigtableDataClient.readModifyWriteRow(tableName, rowKey, rules);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java
new file mode 100644
index 0000000000..371d030be9
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring]
+import com.google.bigtable.v2.ReadModifyWriteRowResponse;
+import com.google.bigtable.v2.ReadModifyWriteRule;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+import com.google.protobuf.ByteString;
+import java.util.ArrayList;
+import java.util.List;
+
+public class ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString {
+
+  public static void main(String[] args) throws Exception {
+    readModifyWriteRowTableNameByteStringListReadModifyWriteRuleString();
+  }
+
+  public static void readModifyWriteRowTableNameByteStringListReadModifyWriteRuleString()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
+      ByteString rowKey = ByteString.EMPTY;
+      List rules = new ArrayList<>();
+      String appProfileId = "appProfileId704923523";
+      ReadModifyWriteRowResponse response =
+          baseBigtableDataClient.readModifyWriteRow(tableName, rowKey, rules, appProfileId);
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readRows/ReadRowsCallableCallReadRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readRows/ReadRowsCallableCallReadRowsRequest.java
new file mode 100644
index 0000000000..b1d83d0919
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readRows/ReadRowsCallableCallReadRowsRequest.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest]
+import com.google.api.gax.rpc.ServerStream;
+import com.google.bigtable.v2.ReadRowsRequest;
+import com.google.bigtable.v2.ReadRowsResponse;
+import com.google.bigtable.v2.RowFilter;
+import com.google.bigtable.v2.RowSet;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+
+public class ReadRowsCallableCallReadRowsRequest {
+
+  public static void main(String[] args) throws Exception {
+    readRowsCallableCallReadRowsRequest();
+  }
+
+  public static void readRowsCallableCallReadRowsRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      ReadRowsRequest request =
+          ReadRowsRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .setRows(RowSet.newBuilder().build())
+              .setFilter(RowFilter.newBuilder().build())
+              .setRowsLimit(-944199211)
+              .build();
+      ServerStream stream =
+          baseBigtableDataClient.readRowsCallable().call(request);
+      for (ReadRowsResponse response : stream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/sampleRowKeys/SampleRowKeysCallableCallSampleRowKeysRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/sampleRowKeys/SampleRowKeysCallableCallSampleRowKeysRequest.java
new file mode 100644
index 0000000000..6ab86c934a
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/sampleRowKeys/SampleRowKeysCallableCallSampleRowKeysRequest.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest]
+import com.google.api.gax.rpc.ServerStream;
+import com.google.bigtable.v2.SampleRowKeysRequest;
+import com.google.bigtable.v2.SampleRowKeysResponse;
+import com.google.bigtable.v2.TableName;
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
+
+public class SampleRowKeysCallableCallSampleRowKeysRequest {
+
+  public static void main(String[] args) throws Exception {
+    sampleRowKeysCallableCallSampleRowKeysRequest();
+  }
+
+  public static void sampleRowKeysCallableCallSampleRowKeysRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
+      SampleRowKeysRequest request =
+          SampleRowKeysRequest.newBuilder()
+              .setTableName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+              .setAppProfileId("appProfileId704923523")
+              .build();
+      ServerStream stream =
+          baseBigtableDataClient.sampleRowKeysCallable().call(request);
+      for (SampleRowKeysResponse response : stream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataSettings/mutateRow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataSettings/mutateRow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java
new file mode 100644
index 0000000000..0807cccc25
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataSettings/mutateRow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.samples;
+
+// [START bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings]
+import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings;
+import java.time.Duration;
+
+public class MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowSettingsSetRetrySettingsBaseBigtableDataSettings();
+  }
+
+  public static void mutateRowSettingsSetRetrySettingsBaseBigtableDataSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    BaseBigtableDataSettings.Builder baseBigtableDataSettingsBuilder =
+        BaseBigtableDataSettings.newBuilder();
+    baseBigtableDataSettingsBuilder
+        .mutateRowSettings()
+        .setRetrySettings(
+            baseBigtableDataSettingsBuilder
+                .mutateRowSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    BaseBigtableDataSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build();
+  }
+}
+// [END bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtableStubSettings/mutateRow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtableStubSettings/mutateRow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java
new file mode 100644
index 0000000000..21ecfbb4db
--- /dev/null
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtableStubSettings/mutateRow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.bigtable.data.v2.stub.samples;
+
+// [START bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings]
+import com.google.cloud.bigtable.data.v2.stub.BigtableStubSettings;
+import java.time.Duration;
+
+public class MutateRowSettingsSetRetrySettingsBigtableStubSettings {
+
+  public static void main(String[] args) throws Exception {
+    mutateRowSettingsSetRetrySettingsBigtableStubSettings();
+  }
+
+  public static void mutateRowSettingsSetRetrySettingsBigtableStubSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    BigtableStubSettings.Builder baseBigtableDataSettingsBuilder =
+        BigtableStubSettings.newBuilder();
+    baseBigtableDataSettingsBuilder
+        .mutateRowSettings()
+        .setRetrySettings(
+            baseBigtableDataSettingsBuilder
+                .mutateRowSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    BigtableStubSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build();
+  }
+}
+// [END bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings]
\ No newline at end of file
diff --git a/test/integration/goldens/bigtable/com/google/bigtable/v2/TableName.java b/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/bigtable/v2/TableName.java
rename to test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/MockBigtable.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtable.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/MockBigtable.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtable.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/gapic_metadata.json b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/gapic_metadata.json
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/gapic_metadata.json
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/gapic_metadata.json
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/package-info.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/package-info.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java
similarity index 100%
rename from test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java
rename to test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListAggregatedListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListAggregatedListAddressesRequestIterateAll.java
new file mode 100644
index 0000000000..154d69e13c
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListAggregatedListAddressesRequestIterateAll.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall]
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.AddressesScopedList;
+import com.google.cloud.compute.v1small.AggregatedListAddressesRequest;
+import java.util.Map;
+
+public class AggregatedListAggregatedListAddressesRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    aggregatedListAggregatedListAddressesRequestIterateAll();
+  }
+
+  public static void aggregatedListAggregatedListAddressesRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      AggregatedListAddressesRequest request =
+          AggregatedListAddressesRequest.newBuilder()
+              .setFilter("filter-1274492040")
+              .setIncludeAllScopes(true)
+              .setMaxResults(1128457243)
+              .setOrderBy("orderBy-1207110587")
+              .setPageToken("pageToken873572522")
+              .setProject("project-309310695")
+              .build();
+      for (Map.Entry element :
+          addressesClient.aggregatedList(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListCallableCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListCallableCallAggregatedListAddressesRequest.java
new file mode 100644
index 0000000000..cc1465323c
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListCallableCallAggregatedListAddressesRequest.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest]
+import com.google.cloud.compute.v1small.AddressAggregatedList;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.AddressesScopedList;
+import com.google.cloud.compute.v1small.AggregatedListAddressesRequest;
+import com.google.common.base.Strings;
+import java.util.Map;
+
+public class AggregatedListCallableCallAggregatedListAddressesRequest {
+
+  public static void main(String[] args) throws Exception {
+    aggregatedListCallableCallAggregatedListAddressesRequest();
+  }
+
+  public static void aggregatedListCallableCallAggregatedListAddressesRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      AggregatedListAddressesRequest request =
+          AggregatedListAddressesRequest.newBuilder()
+              .setFilter("filter-1274492040")
+              .setIncludeAllScopes(true)
+              .setMaxResults(1128457243)
+              .setOrderBy("orderBy-1207110587")
+              .setPageToken("pageToken873572522")
+              .setProject("project-309310695")
+              .build();
+      while (true) {
+        AddressAggregatedList response = addressesClient.aggregatedListCallable().call(request);
+        for (Map.Entry element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java
new file mode 100644
index 0000000000..2ab1b8b34e
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.AddressesScopedList;
+import com.google.cloud.compute.v1small.AggregatedListAddressesRequest;
+import java.util.Map;
+
+public class AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest {
+
+  public static void main(String[] args) throws Exception {
+    aggregatedListPagedCallableFutureCallAggregatedListAddressesRequest();
+  }
+
+  public static void aggregatedListPagedCallableFutureCallAggregatedListAddressesRequest()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      AggregatedListAddressesRequest request =
+          AggregatedListAddressesRequest.newBuilder()
+              .setFilter("filter-1274492040")
+              .setIncludeAllScopes(true)
+              .setMaxResults(1128457243)
+              .setOrderBy("orderBy-1207110587")
+              .setPageToken("pageToken873572522")
+              .setProject("project-309310695")
+              .build();
+      ApiFuture> future =
+          addressesClient.aggregatedListPagedCallable().futureCall(request);
+      // Do something.
+      for (Map.Entry element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListStringIterateAll.java
new file mode 100644
index 0000000000..699d5bcae4
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListStringIterateAll.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall]
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.AddressesScopedList;
+import java.util.Map;
+
+public class AggregatedListStringIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    aggregatedListStringIterateAll();
+  }
+
+  public static void aggregatedListStringIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      String project = "project-309310695";
+      for (Map.Entry element :
+          addressesClient.aggregatedList(project).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings1.java
new file mode 100644
index 0000000000..05d1ce08f8
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings1.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_create_addressessettings1]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.AddressesSettings;
+import com.google.cloud.compute.v1small.myCredentials;
+
+public class CreateAddressesSettings1 {
+
+  public static void main(String[] args) throws Exception {
+    createAddressesSettings1();
+  }
+
+  public static void createAddressesSettings1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    AddressesSettings addressesSettings =
+        AddressesSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    AddressesClient addressesClient = AddressesClient.create(addressesSettings);
+  }
+}
+// [END compute_v1small_generated_addressesclient_create_addressessettings1]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings2.java
new file mode 100644
index 0000000000..1e0b7150c3
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings2.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_create_addressessettings2]
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.AddressesSettings;
+import com.google.cloud.compute.v1small.myEndpoint;
+
+public class CreateAddressesSettings2 {
+
+  public static void main(String[] args) throws Exception {
+    createAddressesSettings2();
+  }
+
+  public static void createAddressesSettings2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    AddressesSettings addressesSettings =
+        AddressesSettings.newBuilder().setEndpoint(myEndpoint).build();
+    AddressesClient addressesClient = AddressesClient.create(addressesSettings);
+  }
+}
+// [END compute_v1small_generated_addressesclient_create_addressessettings2]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncDeleteAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncDeleteAddressRequestGet.java
new file mode 100644
index 0000000000..935038ee83
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncDeleteAddressRequestGet.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget]
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.DeleteAddressRequest;
+import com.google.cloud.compute.v1small.Operation;
+
+public class DeleteAsyncDeleteAddressRequestGet {
+
+  public static void main(String[] args) throws Exception {
+    deleteAsyncDeleteAddressRequestGet();
+  }
+
+  public static void deleteAsyncDeleteAddressRequestGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      DeleteAddressRequest request =
+          DeleteAddressRequest.newBuilder()
+              .setAddress("address-1147692044")
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .setRequestId("requestId693933066")
+              .build();
+      Operation response = addressesClient.deleteAsync(request).get();
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncStringStringStringGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncStringStringStringGet.java
new file mode 100644
index 0000000000..aa1d5aea59
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncStringStringStringGet.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_delete_asyncstringstringstringget]
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.Operation;
+
+public class DeleteAsyncStringStringStringGet {
+
+  public static void main(String[] args) throws Exception {
+    deleteAsyncStringStringStringGet();
+  }
+
+  public static void deleteAsyncStringStringStringGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      String project = "project-309310695";
+      String region = "region-934795532";
+      String address = "address-1147692044";
+      Operation response = addressesClient.deleteAsync(project, region, address).get();
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_delete_asyncstringstringstringget]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteCallableFutureCallDeleteAddressRequest.java
new file mode 100644
index 0000000000..cc6680325b
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteCallableFutureCallDeleteAddressRequest.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.DeleteAddressRequest;
+import com.google.longrunning.Operation;
+
+public class DeleteCallableFutureCallDeleteAddressRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteCallableFutureCallDeleteAddressRequest();
+  }
+
+  public static void deleteCallableFutureCallDeleteAddressRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      DeleteAddressRequest request =
+          DeleteAddressRequest.newBuilder()
+              .setAddress("address-1147692044")
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .setRequestId("requestId693933066")
+              .build();
+      ApiFuture future = addressesClient.deleteCallable().futureCall(request);
+      // Do something.
+      com.google.cloud.compute.v1small.Operation response = future.get();
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java
new file mode 100644
index 0000000000..df160a5e0b
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.DeleteAddressRequest;
+import com.google.cloud.compute.v1small.Operation;
+
+public class DeleteOperationCallableFutureCallDeleteAddressRequest {
+
+  public static void main(String[] args) throws Exception {
+    deleteOperationCallableFutureCallDeleteAddressRequest();
+  }
+
+  public static void deleteOperationCallableFutureCallDeleteAddressRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      DeleteAddressRequest request =
+          DeleteAddressRequest.newBuilder()
+              .setAddress("address-1147692044")
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .setRequestId("requestId693933066")
+              .build();
+      OperationFuture future =
+          addressesClient.deleteOperationCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncInsertAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncInsertAddressRequestGet.java
new file mode 100644
index 0000000000..18cb9a5209
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncInsertAddressRequestGet.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget]
+import com.google.cloud.compute.v1small.Address;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.InsertAddressRequest;
+import com.google.cloud.compute.v1small.Operation;
+
+public class InsertAsyncInsertAddressRequestGet {
+
+  public static void main(String[] args) throws Exception {
+    insertAsyncInsertAddressRequestGet();
+  }
+
+  public static void insertAsyncInsertAddressRequestGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      InsertAddressRequest request =
+          InsertAddressRequest.newBuilder()
+              .setAddressResource(Address.newBuilder().build())
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .setRequestId("requestId693933066")
+              .build();
+      Operation response = addressesClient.insertAsync(request).get();
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncStringStringAddressGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncStringStringAddressGet.java
new file mode 100644
index 0000000000..23f1bf4132
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncStringStringAddressGet.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget]
+import com.google.cloud.compute.v1small.Address;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.Operation;
+
+public class InsertAsyncStringStringAddressGet {
+
+  public static void main(String[] args) throws Exception {
+    insertAsyncStringStringAddressGet();
+  }
+
+  public static void insertAsyncStringStringAddressGet() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      String project = "project-309310695";
+      String region = "region-934795532";
+      Address addressResource = Address.newBuilder().build();
+      Operation response = addressesClient.insertAsync(project, region, addressResource).get();
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertCallableFutureCallInsertAddressRequest.java
new file mode 100644
index 0000000000..a481cb1ce1
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertCallableFutureCallInsertAddressRequest.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.compute.v1small.Address;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.InsertAddressRequest;
+import com.google.longrunning.Operation;
+
+public class InsertCallableFutureCallInsertAddressRequest {
+
+  public static void main(String[] args) throws Exception {
+    insertCallableFutureCallInsertAddressRequest();
+  }
+
+  public static void insertCallableFutureCallInsertAddressRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      InsertAddressRequest request =
+          InsertAddressRequest.newBuilder()
+              .setAddressResource(Address.newBuilder().build())
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .setRequestId("requestId693933066")
+              .build();
+      ApiFuture future = addressesClient.insertCallable().futureCall(request);
+      // Do something.
+      com.google.cloud.compute.v1small.Operation response = future.get();
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java
new file mode 100644
index 0000000000..596c557c75
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.compute.v1small.Address;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.InsertAddressRequest;
+import com.google.cloud.compute.v1small.Operation;
+
+public class InsertOperationCallableFutureCallInsertAddressRequest {
+
+  public static void main(String[] args) throws Exception {
+    insertOperationCallableFutureCallInsertAddressRequest();
+  }
+
+  public static void insertOperationCallableFutureCallInsertAddressRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      InsertAddressRequest request =
+          InsertAddressRequest.newBuilder()
+              .setAddressResource(Address.newBuilder().build())
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .setRequestId("requestId693933066")
+              .build();
+      OperationFuture future =
+          addressesClient.insertOperationCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListCallableCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListCallableCallListAddressesRequest.java
new file mode 100644
index 0000000000..2bc8421312
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListCallableCallListAddressesRequest.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest]
+import com.google.cloud.compute.v1small.Address;
+import com.google.cloud.compute.v1small.AddressList;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.ListAddressesRequest;
+import com.google.common.base.Strings;
+
+public class ListCallableCallListAddressesRequest {
+
+  public static void main(String[] args) throws Exception {
+    listCallableCallListAddressesRequest();
+  }
+
+  public static void listCallableCallListAddressesRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      ListAddressesRequest request =
+          ListAddressesRequest.newBuilder()
+              .setFilter("filter-1274492040")
+              .setMaxResults(1128457243)
+              .setOrderBy("orderBy-1207110587")
+              .setPageToken("pageToken873572522")
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .build();
+      while (true) {
+        AddressList response = addressesClient.listCallable().call(request);
+        for (Address element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListListAddressesRequestIterateAll.java
new file mode 100644
index 0000000000..192ead32c4
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListListAddressesRequestIterateAll.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall]
+import com.google.cloud.compute.v1small.Address;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.ListAddressesRequest;
+
+public class ListListAddressesRequestIterateAll {
+
+  public static void main(String[] args) throws Exception {
+    listListAddressesRequestIterateAll();
+  }
+
+  public static void listListAddressesRequestIterateAll() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      ListAddressesRequest request =
+          ListAddressesRequest.newBuilder()
+              .setFilter("filter-1274492040")
+              .setMaxResults(1128457243)
+              .setOrderBy("orderBy-1207110587")
+              .setPageToken("pageToken873572522")
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .build();
+      for (Address element : addressesClient.list(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall]
\ No newline at end of file
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListPagedCallableFutureCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListPagedCallableFutureCallListAddressesRequest.java
new file mode 100644
index 0000000000..8d8272360b
--- /dev/null
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListPagedCallableFutureCallListAddressesRequest.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * 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
+ *
+ *      https://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.cloud.compute.v1small.samples;
+
+// [START compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.compute.v1small.Address;
+import com.google.cloud.compute.v1small.AddressesClient;
+import com.google.cloud.compute.v1small.ListAddressesRequest;
+
+public class ListPagedCallableFutureCallListAddressesRequest {
+
+  public static void main(String[] args) throws Exception {
+    listPagedCallableFutureCallListAddressesRequest();
+  }
+
+  public static void listPagedCallableFutureCallListAddressesRequest() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (AddressesClient addressesClient = AddressesClient.create()) {
+      ListAddressesRequest request =
+          ListAddressesRequest.newBuilder()
+              .setFilter("filter-1274492040")
+              .setMaxResults(1128457243)
+              .setOrderBy("orderBy-1207110587")
+              .setPageToken("pageToken873572522")
+              .setProject("project-309310695")
+              .setRegion("region-934795532")
+              .build();
+      ApiFuture
future = addressesClient.listPagedCallable().futureCall(request); + // Do something. + for (Address element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListStringStringStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListStringStringStringIterateAll.java new file mode 100644 index 0000000000..39eac4e37b --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListStringStringStringIterateAll.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_addressesclient_list_stringstringstringiterateall] +import com.google.cloud.compute.v1small.Address; +import com.google.cloud.compute.v1small.AddressesClient; + +public class ListStringStringStringIterateAll { + + public static void main(String[] args) throws Exception { + listStringStringStringIterateAll(); + } + + public static void listStringStringStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AddressesClient addressesClient = AddressesClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String orderBy = "orderBy-1207110587"; + for (Address element : addressesClient.list(project, region, orderBy).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1small_generated_addressesclient_list_stringstringstringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesSettings.java new file mode 100644 index 0000000000..694a0fbbb6 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings] +import com.google.cloud.compute.v1small.AddressesSettings; +import java.time.Duration; + +public class AggregatedListSettingsSetRetrySettingsAddressesSettings { + + public static void main(String[] args) throws Exception { + aggregatedListSettingsSetRetrySettingsAddressesSettings(); + } + + public static void aggregatedListSettingsSetRetrySettingsAddressesSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AddressesSettings.Builder addressesSettingsBuilder = AddressesSettings.newBuilder(); + addressesSettingsBuilder + .aggregatedListSettings() + .setRetrySettings( + addressesSettingsBuilder + .aggregatedListSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AddressesSettings addressesSettings = addressesSettingsBuilder.build(); + } +} +// [END compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings1.java new file mode 100644 index 0000000000..31dec76596 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1small.RegionOperationsClient; +import com.google.cloud.compute.v1small.RegionOperationsSettings; +import com.google.cloud.compute.v1small.myCredentials; + +public class CreateRegionOperationsSettings1 { + + public static void main(String[] args) throws Exception { + createRegionOperationsSettings1(); + } + + public static void createRegionOperationsSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + RegionOperationsSettings regionOperationsSettings = + RegionOperationsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RegionOperationsClient regionOperationsClient = + RegionOperationsClient.create(regionOperationsSettings); + } +} +// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings2.java new file mode 100644 index 0000000000..e4d72dc19e --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings2.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2] +import com.google.cloud.compute.v1small.RegionOperationsClient; +import com.google.cloud.compute.v1small.RegionOperationsSettings; +import com.google.cloud.compute.v1small.myEndpoint; + +public class CreateRegionOperationsSettings2 { + + public static void main(String[] args) throws Exception { + createRegionOperationsSettings2(); + } + + public static void createRegionOperationsSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + RegionOperationsSettings regionOperationsSettings = + RegionOperationsSettings.newBuilder().setEndpoint(myEndpoint).build(); + RegionOperationsClient regionOperationsClient = + RegionOperationsClient.create(regionOperationsSettings); + } +} +// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetCallableFutureCallGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetCallableFutureCallGetRegionOperationRequest.java new file mode 100644 index 0000000000..27115bf71c --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetCallableFutureCallGetRegionOperationRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1small.GetRegionOperationRequest; +import com.google.cloud.compute.v1small.Operation; +import com.google.cloud.compute.v1small.RegionOperationsClient; + +public class GetCallableFutureCallGetRegionOperationRequest { + + public static void main(String[] args) throws Exception { + getCallableFutureCallGetRegionOperationRequest(); + } + + public static void getCallableFutureCallGetRegionOperationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) { + GetRegionOperationRequest request = + GetRegionOperationRequest.newBuilder() + .setOperation("operation1662702951") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + ApiFuture future = regionOperationsClient.getCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetGetRegionOperationRequest.java new file mode 100644 index 0000000000..8f7522ac9b --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetGetRegionOperationRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest] +import com.google.cloud.compute.v1small.GetRegionOperationRequest; +import com.google.cloud.compute.v1small.Operation; +import com.google.cloud.compute.v1small.RegionOperationsClient; + +public class GetGetRegionOperationRequest { + + public static void main(String[] args) throws Exception { + getGetRegionOperationRequest(); + } + + public static void getGetRegionOperationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) { + GetRegionOperationRequest request = + GetRegionOperationRequest.newBuilder() + .setOperation("operation1662702951") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + Operation response = regionOperationsClient.get(request); + } + } +} +// [END compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetStringStringString.java new file mode 100644 index 0000000000..a6d50266c5 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetStringStringString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationsclient_get_stringstringstring] +import com.google.cloud.compute.v1small.Operation; +import com.google.cloud.compute.v1small.RegionOperationsClient; + +public class GetStringStringString { + + public static void main(String[] args) throws Exception { + getStringStringString(); + } + + public static void getStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String operation = "operation1662702951"; + Operation response = regionOperationsClient.get(project, region, operation); + } + } +} +// [END compute_v1small_generated_regionoperationsclient_get_stringstringstring] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java new file mode 100644 index 0000000000..35868e5f67 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1small.Operation; +import com.google.cloud.compute.v1small.RegionOperationsClient; +import com.google.cloud.compute.v1small.WaitRegionOperationRequest; + +public class WaitCallableFutureCallWaitRegionOperationRequest { + + public static void main(String[] args) throws Exception { + waitCallableFutureCallWaitRegionOperationRequest(); + } + + public static void waitCallableFutureCallWaitRegionOperationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) { + WaitRegionOperationRequest request = + WaitRegionOperationRequest.newBuilder() + .setOperation("operation1662702951") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + ApiFuture future = regionOperationsClient.waitCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitStringStringString.java new file mode 100644 index 0000000000..a0d6a5bb26 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitStringStringString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationsclient_wait_stringstringstring] +import com.google.cloud.compute.v1small.Operation; +import com.google.cloud.compute.v1small.RegionOperationsClient; + +public class WaitStringStringString { + + public static void main(String[] args) throws Exception { + waitStringStringString(); + } + + public static void waitStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String operation = "operation1662702951"; + Operation response = regionOperationsClient.wait(project, region, operation); + } + } +} +// [END compute_v1small_generated_regionoperationsclient_wait_stringstringstring] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitWaitRegionOperationRequest.java new file mode 100644 index 0000000000..f136c86c40 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitWaitRegionOperationRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest] +import com.google.cloud.compute.v1small.Operation; +import com.google.cloud.compute.v1small.RegionOperationsClient; +import com.google.cloud.compute.v1small.WaitRegionOperationRequest; + +public class WaitWaitRegionOperationRequest { + + public static void main(String[] args) throws Exception { + waitWaitRegionOperationRequest(); + } + + public static void waitWaitRegionOperationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) { + WaitRegionOperationRequest request = + WaitRegionOperationRequest.newBuilder() + .setOperation("operation1662702951") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + Operation response = regionOperationsClient.wait(request); + } + } +} +// [END compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsSettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsSettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java new file mode 100644 index 0000000000..0567d73850 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsSettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.samples; + +// [START compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings] +import com.google.cloud.compute.v1small.RegionOperationsSettings; +import java.time.Duration; + +public class GetSettingsSetRetrySettingsRegionOperationsSettings { + + public static void main(String[] args) throws Exception { + getSettingsSetRetrySettingsRegionOperationsSettings(); + } + + public static void getSettingsSetRetrySettingsRegionOperationsSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + RegionOperationsSettings.Builder regionOperationsSettingsBuilder = + RegionOperationsSettings.newBuilder(); + regionOperationsSettingsBuilder + .getSettings() + .setRetrySettings( + regionOperationsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + RegionOperationsSettings regionOperationsSettings = regionOperationsSettingsBuilder.build(); + } +} +// [END compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesStubSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesStubSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java new file mode 100644 index 0000000000..a0b9c4cc05 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesStubSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.stub.samples; + +// [START compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings] +import com.google.cloud.compute.v1small.stub.AddressesStubSettings; +import java.time.Duration; + +public class AggregatedListSettingsSetRetrySettingsAddressesStubSettings { + + public static void main(String[] args) throws Exception { + aggregatedListSettingsSetRetrySettingsAddressesStubSettings(); + } + + public static void aggregatedListSettingsSetRetrySettingsAddressesStubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AddressesStubSettings.Builder addressesSettingsBuilder = AddressesStubSettings.newBuilder(); + addressesSettingsBuilder + .aggregatedListSettings() + .setRetrySettings( + addressesSettingsBuilder + .aggregatedListSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AddressesStubSettings addressesSettings = addressesSettingsBuilder.build(); + } +} +// [END compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings] \ No newline at end of file diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionOperationsStubSettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionOperationsStubSettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java new file mode 100644 index 0000000000..f8cdb0c511 --- /dev/null +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionOperationsStubSettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.compute.v1small.stub.samples; + +// [START compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings] +import com.google.cloud.compute.v1small.stub.RegionOperationsStubSettings; +import java.time.Duration; + +public class GetSettingsSetRetrySettingsRegionOperationsStubSettings { + + public static void main(String[] args) throws Exception { + getSettingsSetRetrySettingsRegionOperationsStubSettings(); + } + + public static void getSettingsSetRetrySettingsRegionOperationsStubSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + RegionOperationsStubSettings.Builder regionOperationsSettingsBuilder = + RegionOperationsStubSettings.newBuilder(); + regionOperationsSettingsBuilder + .getSettings() + .setRetrySettings( + regionOperationsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + RegionOperationsStubSettings regionOperationsSettings = regionOperationsSettingsBuilder.build(); + } +} +// [END compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings] \ No newline at end of file diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClientTest.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClientTest.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClientTest.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClientTest.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClientTest.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClientTest.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClientTest.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClientTest.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/gapic_metadata.json b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/gapic_metadata.json similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/gapic_metadata.json rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/gapic_metadata.json diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/package-info.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/package-info.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStub.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java similarity index 100% rename from test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java rename to test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings1.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings1.java new file mode 100644 index 0000000000..419a302cad --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.IamCredentialsSettings; +import com.google.cloud.iam.credentials.v1.myCredentials; + +public class CreateIamCredentialsSettings1 { + + public static void main(String[] args) throws Exception { + createIamCredentialsSettings1(); + } + + public static void createIamCredentialsSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + IamCredentialsSettings iamCredentialsSettings = + IamCredentialsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); + } +} +// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings2.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings2.java new file mode 100644 index 0000000000..bcb80a9f9f --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings2.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2] +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.IamCredentialsSettings; +import com.google.cloud.iam.credentials.v1.myEndpoint; + +public class CreateIamCredentialsSettings2 { + + public static void main(String[] args) throws Exception { + createIamCredentialsSettings2(); + } + + public static void createIamCredentialsSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + IamCredentialsSettings iamCredentialsSettings = + IamCredentialsSettings.newBuilder().setEndpoint(myEndpoint).build(); + IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); + } +} +// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java new file mode 100644 index 0000000000..9ab356fc55 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java @@ -0,0 +1,52 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest; +import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.protobuf.Duration; +import java.util.ArrayList; + +public class GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest { + + public static void main(String[] args) throws Exception { + generateAccessTokenCallableFutureCallGenerateAccessTokenRequest(); + } + + public static void generateAccessTokenCallableFutureCallGenerateAccessTokenRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + GenerateAccessTokenRequest request = + GenerateAccessTokenRequest.newBuilder() + .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) + .addAllDelegates(new ArrayList()) + .addAllScope(new ArrayList()) + .setLifetime(Duration.newBuilder().build()) + .build(); + ApiFuture future = + iamCredentialsClient.generateAccessTokenCallable().futureCall(request); + // Do something. + GenerateAccessTokenResponse response = future.get(); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenGenerateAccessTokenRequest.java new file mode 100644 index 0000000000..14e0b81fc3 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenGenerateAccessTokenRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest] +import com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest; +import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.protobuf.Duration; +import java.util.ArrayList; + +public class GenerateAccessTokenGenerateAccessTokenRequest { + + public static void main(String[] args) throws Exception { + generateAccessTokenGenerateAccessTokenRequest(); + } + + public static void generateAccessTokenGenerateAccessTokenRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + GenerateAccessTokenRequest request = + GenerateAccessTokenRequest.newBuilder() + .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) + .addAllDelegates(new ArrayList()) + .addAllScope(new ArrayList()) + .setLifetime(Duration.newBuilder().build()) + .build(); + GenerateAccessTokenResponse response = iamCredentialsClient.generateAccessToken(request); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java new file mode 100644 index 0000000000..853762b74e --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration] +import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.protobuf.Duration; +import java.util.ArrayList; +import java.util.List; + +public class GenerateAccessTokenServiceAccountNameListStringListStringDuration { + + public static void main(String[] args) throws Exception { + generateAccessTokenServiceAccountNameListStringListStringDuration(); + } + + public static void generateAccessTokenServiceAccountNameListStringListStringDuration() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); + List delegates = new ArrayList<>(); + List scope = new ArrayList<>(); + Duration lifetime = Duration.newBuilder().build(); + GenerateAccessTokenResponse response = + iamCredentialsClient.generateAccessToken(name, delegates, scope, lifetime); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenStringListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenStringListStringListStringDuration.java new file mode 100644 index 0000000000..18e5aa92c4 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenStringListStringListStringDuration.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration] +import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.protobuf.Duration; +import java.util.ArrayList; +import java.util.List; + +public class GenerateAccessTokenStringListStringListStringDuration { + + public static void main(String[] args) throws Exception { + generateAccessTokenStringListStringListStringDuration(); + } + + public static void generateAccessTokenStringListStringListStringDuration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString(); + List delegates = new ArrayList<>(); + List scope = new ArrayList<>(); + Duration lifetime = Duration.newBuilder().build(); + GenerateAccessTokenResponse response = + iamCredentialsClient.generateAccessToken(name, delegates, scope, lifetime); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java new file mode 100644 index 0000000000..98d3751573 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.iam.credentials.v1.GenerateIdTokenRequest; +import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import java.util.ArrayList; + +public class GenerateIdTokenCallableFutureCallGenerateIdTokenRequest { + + public static void main(String[] args) throws Exception { + generateIdTokenCallableFutureCallGenerateIdTokenRequest(); + } + + public static void generateIdTokenCallableFutureCallGenerateIdTokenRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + GenerateIdTokenRequest request = + GenerateIdTokenRequest.newBuilder() + .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) + .addAllDelegates(new ArrayList()) + .setAudience("audience975628804") + .setIncludeEmail(true) + .build(); + ApiFuture future = + iamCredentialsClient.generateIdTokenCallable().futureCall(request); + // Do something. + GenerateIdTokenResponse response = future.get(); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenGenerateIdTokenRequest.java new file mode 100644 index 0000000000..245d0f6b7e --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenGenerateIdTokenRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest] +import com.google.cloud.iam.credentials.v1.GenerateIdTokenRequest; +import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import java.util.ArrayList; + +public class GenerateIdTokenGenerateIdTokenRequest { + + public static void main(String[] args) throws Exception { + generateIdTokenGenerateIdTokenRequest(); + } + + public static void generateIdTokenGenerateIdTokenRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + GenerateIdTokenRequest request = + GenerateIdTokenRequest.newBuilder() + .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) + .addAllDelegates(new ArrayList()) + .setAudience("audience975628804") + .setIncludeEmail(true) + .build(); + GenerateIdTokenResponse response = iamCredentialsClient.generateIdToken(request); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java new file mode 100644 index 0000000000..fd2920d9e9 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean] +import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import java.util.ArrayList; +import java.util.List; + +public class GenerateIdTokenServiceAccountNameListStringStringBoolean { + + public static void main(String[] args) throws Exception { + generateIdTokenServiceAccountNameListStringStringBoolean(); + } + + public static void generateIdTokenServiceAccountNameListStringStringBoolean() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); + List delegates = new ArrayList<>(); + String audience = "audience975628804"; + boolean includeEmail = true; + GenerateIdTokenResponse response = + iamCredentialsClient.generateIdToken(name, delegates, audience, includeEmail); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenStringListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenStringListStringStringBoolean.java new file mode 100644 index 0000000000..df656ab584 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenStringListStringStringBoolean.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean] +import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import java.util.ArrayList; +import java.util.List; + +public class GenerateIdTokenStringListStringStringBoolean { + + public static void main(String[] args) throws Exception { + generateIdTokenStringListStringStringBoolean(); + } + + public static void generateIdTokenStringListStringStringBoolean() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString(); + List delegates = new ArrayList<>(); + String audience = "audience975628804"; + boolean includeEmail = true; + GenerateIdTokenResponse response = + iamCredentialsClient.generateIdToken(name, delegates, audience, includeEmail); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobCallableFutureCallSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobCallableFutureCallSignBlobRequest.java new file mode 100644 index 0000000000..aceff97566 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobCallableFutureCallSignBlobRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.cloud.iam.credentials.v1.SignBlobRequest; +import com.google.cloud.iam.credentials.v1.SignBlobResponse; +import com.google.protobuf.ByteString; +import java.util.ArrayList; + +public class SignBlobCallableFutureCallSignBlobRequest { + + public static void main(String[] args) throws Exception { + signBlobCallableFutureCallSignBlobRequest(); + } + + public static void signBlobCallableFutureCallSignBlobRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + SignBlobRequest request = + SignBlobRequest.newBuilder() + .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) + .addAllDelegates(new ArrayList()) + .setPayload(ByteString.EMPTY) + .build(); + ApiFuture future = + iamCredentialsClient.signBlobCallable().futureCall(request); + // Do something. + SignBlobResponse response = future.get(); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobServiceAccountNameListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobServiceAccountNameListStringByteString.java new file mode 100644 index 0000000000..5d20bb5b01 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobServiceAccountNameListStringByteString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring] +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.cloud.iam.credentials.v1.SignBlobResponse; +import com.google.protobuf.ByteString; +import java.util.ArrayList; +import java.util.List; + +public class SignBlobServiceAccountNameListStringByteString { + + public static void main(String[] args) throws Exception { + signBlobServiceAccountNameListStringByteString(); + } + + public static void signBlobServiceAccountNameListStringByteString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); + List delegates = new ArrayList<>(); + ByteString payload = ByteString.EMPTY; + SignBlobResponse response = iamCredentialsClient.signBlob(name, delegates, payload); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobSignBlobRequest.java new file mode 100644 index 0000000000..b2e543aec8 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobSignBlobRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest] +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.cloud.iam.credentials.v1.SignBlobRequest; +import com.google.cloud.iam.credentials.v1.SignBlobResponse; +import com.google.protobuf.ByteString; +import java.util.ArrayList; + +public class SignBlobSignBlobRequest { + + public static void main(String[] args) throws Exception { + signBlobSignBlobRequest(); + } + + public static void signBlobSignBlobRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + SignBlobRequest request = + SignBlobRequest.newBuilder() + .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) + .addAllDelegates(new ArrayList()) + .setPayload(ByteString.EMPTY) + .build(); + SignBlobResponse response = iamCredentialsClient.signBlob(request); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobStringListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobStringListStringByteString.java new file mode 100644 index 0000000000..ee5458f95a --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobStringListStringByteString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring] +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.cloud.iam.credentials.v1.SignBlobResponse; +import com.google.protobuf.ByteString; +import java.util.ArrayList; +import java.util.List; + +public class SignBlobStringListStringByteString { + + public static void main(String[] args) throws Exception { + signBlobStringListStringByteString(); + } + + public static void signBlobStringListStringByteString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString(); + List delegates = new ArrayList<>(); + ByteString payload = ByteString.EMPTY; + SignBlobResponse response = iamCredentialsClient.signBlob(name, delegates, payload); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtCallableFutureCallSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtCallableFutureCallSignJwtRequest.java new file mode 100644 index 0000000000..2ae94bb351 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtCallableFutureCallSignJwtRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.cloud.iam.credentials.v1.SignJwtRequest; +import com.google.cloud.iam.credentials.v1.SignJwtResponse; +import java.util.ArrayList; + +public class SignJwtCallableFutureCallSignJwtRequest { + + public static void main(String[] args) throws Exception { + signJwtCallableFutureCallSignJwtRequest(); + } + + public static void signJwtCallableFutureCallSignJwtRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + SignJwtRequest request = + SignJwtRequest.newBuilder() + .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) + .addAllDelegates(new ArrayList()) + .setPayload("payload-786701938") + .build(); + ApiFuture future = + iamCredentialsClient.signJwtCallable().futureCall(request); + // Do something. + SignJwtResponse response = future.get(); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtServiceAccountNameListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtServiceAccountNameListStringString.java new file mode 100644 index 0000000000..d3fd1acf61 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtServiceAccountNameListStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring] +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.cloud.iam.credentials.v1.SignJwtResponse; +import java.util.ArrayList; +import java.util.List; + +public class SignJwtServiceAccountNameListStringString { + + public static void main(String[] args) throws Exception { + signJwtServiceAccountNameListStringString(); + } + + public static void signJwtServiceAccountNameListStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); + List delegates = new ArrayList<>(); + String payload = "payload-786701938"; + SignJwtResponse response = iamCredentialsClient.signJwt(name, delegates, payload); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtSignJwtRequest.java new file mode 100644 index 0000000000..9d1fd78a41 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtSignJwtRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest] +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.cloud.iam.credentials.v1.SignJwtRequest; +import com.google.cloud.iam.credentials.v1.SignJwtResponse; +import java.util.ArrayList; + +public class SignJwtSignJwtRequest { + + public static void main(String[] args) throws Exception { + signJwtSignJwtRequest(); + } + + public static void signJwtSignJwtRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + SignJwtRequest request = + SignJwtRequest.newBuilder() + .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) + .addAllDelegates(new ArrayList()) + .setPayload("payload-786701938") + .build(); + SignJwtResponse response = iamCredentialsClient.signJwt(request); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtStringListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtStringListStringString.java new file mode 100644 index 0000000000..78f2f7a52e --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtStringListStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring] +import com.google.cloud.iam.credentials.v1.IamCredentialsClient; +import com.google.cloud.iam.credentials.v1.ServiceAccountName; +import com.google.cloud.iam.credentials.v1.SignJwtResponse; +import java.util.ArrayList; +import java.util.List; + +public class SignJwtStringListStringString { + + public static void main(String[] args) throws Exception { + signJwtStringListStringString(); + } + + public static void signJwtStringListStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { + String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString(); + List delegates = new ArrayList<>(); + String payload = "payload-786701938"; + SignJwtResponse response = iamCredentialsClient.signJwt(name, delegates, payload); + } + } +} +// [END credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java new file mode 100644 index 0000000000..4580d28591 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.samples; + +// [START credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings] +import com.google.cloud.iam.credentials.v1.IamCredentialsSettings; +import java.time.Duration; + +public class GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings { + + public static void main(String[] args) throws Exception { + generateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings(); + } + + public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + IamCredentialsSettings.Builder iamCredentialsSettingsBuilder = + IamCredentialsSettings.newBuilder(); + iamCredentialsSettingsBuilder + .generateAccessTokenSettings() + .setRetrySettings( + iamCredentialsSettingsBuilder + .generateAccessTokenSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + IamCredentialsSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build(); + } +} +// [END credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings] \ No newline at end of file diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamCredentialsStubSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamCredentialsStubSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java new file mode 100644 index 0000000000..ca13e6bbb4 --- /dev/null +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamCredentialsStubSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.iam.credentials.v1.stub.samples; + +// [START credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings] +import com.google.cloud.iam.credentials.v1.stub.IamCredentialsStubSettings; +import java.time.Duration; + +public class GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings { + + public static void main(String[] args) throws Exception { + generateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings(); + } + + public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + IamCredentialsStubSettings.Builder iamCredentialsSettingsBuilder = + IamCredentialsStubSettings.newBuilder(); + iamCredentialsSettingsBuilder + .generateAccessTokenSettings() + .setRetrySettings( + iamCredentialsSettingsBuilder + .generateAccessTokenSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + IamCredentialsStubSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build(); + } +} +// [END credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings] \ No newline at end of file diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/ServiceAccountName.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/ServiceAccountName.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/gapic_metadata.json b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/gapic_metadata.json similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/gapic_metadata.json rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/gapic_metadata.json diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/package-info.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/package-info.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java similarity index 100% rename from test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java rename to test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings1.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings1.java new file mode 100644 index 0000000000..83cb630aaf --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicyclient_create_iampolicysettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.iam.v1.IAMPolicyClient; +import com.google.iam.v1.IAMPolicySettings; +import com.google.iam.v1.myCredentials; + +public class CreateIAMPolicySettings1 { + + public static void main(String[] args) throws Exception { + createIAMPolicySettings1(); + } + + public static void createIAMPolicySettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + IAMPolicySettings iAMPolicySettings = + IAMPolicySettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings); + } +} +// [END iam_v1_generated_iampolicyclient_create_iampolicysettings1] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings2.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings2.java new file mode 100644 index 0000000000..489eb602e9 --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings2.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicyclient_create_iampolicysettings2] +import com.google.iam.v1.IAMPolicyClient; +import com.google.iam.v1.IAMPolicySettings; +import com.google.iam.v1.myEndpoint; + +public class CreateIAMPolicySettings2 { + + public static void main(String[] args) throws Exception { + createIAMPolicySettings2(); + } + + public static void createIAMPolicySettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + IAMPolicySettings iAMPolicySettings = + IAMPolicySettings.newBuilder().setEndpoint(myEndpoint).build(); + IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings); + } +} +// [END iam_v1_generated_iampolicyclient_create_iampolicysettings2] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java new file mode 100644 index 0000000000..907191d7ee --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.IAMPolicyClient; +import com.google.iam.v1.Policy; + +public class GetIamPolicyCallableFutureCallGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyCallableFutureCallGetIamPolicyRequest(); + } + + public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource("GetIamPolicyRequest-1527610370".toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = iAMPolicyClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java new file mode 100644 index 0000000000..717f96be75 --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest] +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.IAMPolicyClient; +import com.google.iam.v1.Policy; + +public class GetIamPolicyGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyGetIamPolicyRequest(); + } + + public static void getIamPolicyGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource("GetIamPolicyRequest-1527610370".toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = iAMPolicyClient.getIamPolicy(request); + } + } +} +// [END iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java new file mode 100644 index 0000000000..20d7d2dd31 --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.IAMPolicyClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; + +public class SetIamPolicyCallableFutureCallSetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicyCallableFutureCallSetIamPolicyRequest(); + } + + public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource("SetIamPolicyRequest1223629066".toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + ApiFuture future = iAMPolicyClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java new file mode 100644 index 0000000000..12177c0620 --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest] +import com.google.iam.v1.IAMPolicyClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; + +public class SetIamPolicySetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicySetIamPolicyRequest(); + } + + public static void setIamPolicySetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource("SetIamPolicyRequest1223629066".toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + Policy response = iAMPolicyClient.setIamPolicy(request); + } + } +} +// [END iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java new file mode 100644 index 0000000000..388050d418 --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.IAMPolicyClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsCallableFutureCallTestIamPermissionsRequest(); + } + + public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource("TestIamPermissionsRequest942398222".toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + iAMPolicyClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java new file mode 100644 index 0000000000..1a68379dd0 --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest] +import com.google.iam.v1.IAMPolicyClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class TestIamPermissionsTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsTestIamPermissionsRequest(); + } + + public static void testIamPermissionsTestIamPermissionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource("TestIamPermissionsRequest942398222".toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = iAMPolicyClient.testIamPermissions(request); + } + } +} +// [END iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicySettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicySettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java new file mode 100644 index 0000000000..eacab86dee --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicySettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.samples; + +// [START iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings] +import com.google.iam.v1.IAMPolicySettings; +import java.time.Duration; + +public class SetIamPolicySettingsSetRetrySettingsIAMPolicySettings { + + public static void main(String[] args) throws Exception { + setIamPolicySettingsSetRetrySettingsIAMPolicySettings(); + } + + public static void setIamPolicySettingsSetRetrySettingsIAMPolicySettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + IAMPolicySettings.Builder iAMPolicySettingsBuilder = IAMPolicySettings.newBuilder(); + iAMPolicySettingsBuilder + .setIamPolicySettings() + .setRetrySettings( + iAMPolicySettingsBuilder + .setIamPolicySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + IAMPolicySettings iAMPolicySettings = iAMPolicySettingsBuilder.build(); + } +} +// [END iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings] \ No newline at end of file diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iAMPolicyStubSettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iAMPolicyStubSettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java new file mode 100644 index 0000000000..e9e8102baf --- /dev/null +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iAMPolicyStubSettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.iam.v1.stub.samples; + +// [START iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings] +import com.google.iam.v1.stub.IAMPolicyStubSettings; +import java.time.Duration; + +public class SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings { + + public static void main(String[] args) throws Exception { + setIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings(); + } + + public static void setIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + IAMPolicyStubSettings.Builder iAMPolicySettingsBuilder = IAMPolicyStubSettings.newBuilder(); + iAMPolicySettingsBuilder + .setIamPolicySettings() + .setRetrySettings( + iAMPolicySettingsBuilder + .setIamPolicySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + IAMPolicyStubSettings iAMPolicySettings = iAMPolicySettingsBuilder.build(); + } +} +// [END iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings] \ No newline at end of file diff --git a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java rename to test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClientTest.java b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClientTest.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClientTest.java rename to test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClientTest.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java rename to test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/MockIAMPolicy.java b/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicy.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/MockIAMPolicy.java rename to test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicy.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/MockIAMPolicyImpl.java b/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicyImpl.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/MockIAMPolicyImpl.java rename to test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicyImpl.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/gapic_metadata.json b/test/integration/goldens/iam/src/com/google/iam/v1/gapic_metadata.json similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/gapic_metadata.json rename to test/integration/goldens/iam/src/com/google/iam/v1/gapic_metadata.json diff --git a/test/integration/goldens/iam/com/google/iam/v1/package-info.java b/test/integration/goldens/iam/src/com/google/iam/v1/package-info.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/package-info.java rename to test/integration/goldens/iam/src/com/google/iam/v1/package-info.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java rename to test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/stub/GrpcIAMPolicyStub.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/stub/GrpcIAMPolicyStub.java rename to test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStub.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStub.java rename to test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java diff --git a/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java similarity index 100% rename from test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java rename to test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java new file mode 100644 index 0000000000..0898f33e64 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest] +import com.google.cloud.kms.v1.AsymmetricDecryptRequest; +import com.google.cloud.kms.v1.AsymmetricDecryptResponse; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; +import com.google.protobuf.Int64Value; + +public class AsymmetricDecryptAsymmetricDecryptRequest { + + public static void main(String[] args) throws Exception { + asymmetricDecryptAsymmetricDecryptRequest(); + } + + public static void asymmetricDecryptAsymmetricDecryptRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + AsymmetricDecryptRequest request = + AsymmetricDecryptRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .setCiphertext(ByteString.EMPTY) + .setCiphertextCrc32C(Int64Value.newBuilder().build()) + .build(); + AsymmetricDecryptResponse response = keyManagementServiceClient.asymmetricDecrypt(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java new file mode 100644 index 0000000000..1c1ccdcc4d --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.AsymmetricDecryptRequest; +import com.google.cloud.kms.v1.AsymmetricDecryptResponse; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; +import com.google.protobuf.Int64Value; + +public class AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest { + + public static void main(String[] args) throws Exception { + asymmetricDecryptCallableFutureCallAsymmetricDecryptRequest(); + } + + public static void asymmetricDecryptCallableFutureCallAsymmetricDecryptRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + AsymmetricDecryptRequest request = + AsymmetricDecryptRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .setCiphertext(ByteString.EMPTY) + .setCiphertextCrc32C(Int64Value.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.asymmetricDecryptCallable().futureCall(request); + // Do something. + AsymmetricDecryptResponse response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java new file mode 100644 index 0000000000..102fabce9c --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring] +import com.google.cloud.kms.v1.AsymmetricDecryptResponse; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; + +public class AsymmetricDecryptCryptoKeyVersionNameByteString { + + public static void main(String[] args) throws Exception { + asymmetricDecryptCryptoKeyVersionNameByteString(); + } + + public static void asymmetricDecryptCryptoKeyVersionNameByteString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + ByteString ciphertext = ByteString.EMPTY; + AsymmetricDecryptResponse response = + keyManagementServiceClient.asymmetricDecrypt(name, ciphertext); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptStringByteString.java new file mode 100644 index 0000000000..03afb42e8b --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptStringByteString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring] +import com.google.cloud.kms.v1.AsymmetricDecryptResponse; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; + +public class AsymmetricDecryptStringByteString { + + public static void main(String[] args) throws Exception { + asymmetricDecryptStringByteString(); + } + + public static void asymmetricDecryptStringByteString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]") + .toString(); + ByteString ciphertext = ByteString.EMPTY; + AsymmetricDecryptResponse response = + keyManagementServiceClient.asymmetricDecrypt(name, ciphertext); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignAsymmetricSignRequest.java new file mode 100644 index 0000000000..b8c7b610e0 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignAsymmetricSignRequest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest] +import com.google.cloud.kms.v1.AsymmetricSignRequest; +import com.google.cloud.kms.v1.AsymmetricSignResponse; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.Digest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Int64Value; + +public class AsymmetricSignAsymmetricSignRequest { + + public static void main(String[] args) throws Exception { + asymmetricSignAsymmetricSignRequest(); + } + + public static void asymmetricSignAsymmetricSignRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + AsymmetricSignRequest request = + AsymmetricSignRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .setDigest(Digest.newBuilder().build()) + .setDigestCrc32C(Int64Value.newBuilder().build()) + .build(); + AsymmetricSignResponse response = keyManagementServiceClient.asymmetricSign(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java new file mode 100644 index 0000000000..f5e1794016 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java @@ -0,0 +1,58 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.AsymmetricSignRequest; +import com.google.cloud.kms.v1.AsymmetricSignResponse; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.Digest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Int64Value; + +public class AsymmetricSignCallableFutureCallAsymmetricSignRequest { + + public static void main(String[] args) throws Exception { + asymmetricSignCallableFutureCallAsymmetricSignRequest(); + } + + public static void asymmetricSignCallableFutureCallAsymmetricSignRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + AsymmetricSignRequest request = + AsymmetricSignRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .setDigest(Digest.newBuilder().build()) + .setDigestCrc32C(Int64Value.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.asymmetricSignCallable().futureCall(request); + // Do something. + AsymmetricSignResponse response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCryptoKeyVersionNameDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCryptoKeyVersionNameDigest.java new file mode 100644 index 0000000000..6ca4e379ee --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCryptoKeyVersionNameDigest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest] +import com.google.cloud.kms.v1.AsymmetricSignResponse; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.Digest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class AsymmetricSignCryptoKeyVersionNameDigest { + + public static void main(String[] args) throws Exception { + asymmetricSignCryptoKeyVersionNameDigest(); + } + + public static void asymmetricSignCryptoKeyVersionNameDigest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + Digest digest = Digest.newBuilder().build(); + AsymmetricSignResponse response = keyManagementServiceClient.asymmetricSign(name, digest); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignStringDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignStringDigest.java new file mode 100644 index 0000000000..c55883f341 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignStringDigest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest] +import com.google.cloud.kms.v1.AsymmetricSignResponse; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.Digest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class AsymmetricSignStringDigest { + + public static void main(String[] args) throws Exception { + asymmetricSignStringDigest(); + } + + public static void asymmetricSignStringDigest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]") + .toString(); + Digest digest = Digest.newBuilder().build(); + AsymmetricSignResponse response = keyManagementServiceClient.asymmetricSign(name, digest); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings1.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings1.java new file mode 100644 index 0000000000..b2133d5352 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyManagementServiceSettings; +import com.google.cloud.kms.v1.myCredentials; + +public class CreateKeyManagementServiceSettings1 { + + public static void main(String[] args) throws Exception { + createKeyManagementServiceSettings1(); + } + + public static void createKeyManagementServiceSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + KeyManagementServiceSettings keyManagementServiceSettings = + KeyManagementServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create(keyManagementServiceSettings); + } +} +// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings2.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings2.java new file mode 100644 index 0000000000..e58560f37c --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings2.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyManagementServiceSettings; +import com.google.cloud.kms.v1.myEndpoint; + +public class CreateKeyManagementServiceSettings2 { + + public static void main(String[] args) throws Exception { + createKeyManagementServiceSettings2(); + } + + public static void createKeyManagementServiceSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + KeyManagementServiceSettings keyManagementServiceSettings = + KeyManagementServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create(keyManagementServiceSettings); + } +} +// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java new file mode 100644 index 0000000000..d92ad8d71d --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CreateCryptoKeyRequest; +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest { + + public static void main(String[] args) throws Exception { + createCryptoKeyCallableFutureCallCreateCryptoKeyRequest(); + } + + public static void createCryptoKeyCallableFutureCallCreateCryptoKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CreateCryptoKeyRequest request = + CreateCryptoKeyRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setCryptoKeyId("cryptoKeyId-1643185255") + .setCryptoKey(CryptoKey.newBuilder().build()) + .setSkipInitialVersionCreation(true) + .build(); + ApiFuture future = + keyManagementServiceClient.createCryptoKeyCallable().futureCall(request); + // Do something. + CryptoKey response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCreateCryptoKeyRequest.java new file mode 100644 index 0000000000..c55540e7bb --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCreateCryptoKeyRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest] +import com.google.cloud.kms.v1.CreateCryptoKeyRequest; +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class CreateCryptoKeyCreateCryptoKeyRequest { + + public static void main(String[] args) throws Exception { + createCryptoKeyCreateCryptoKeyRequest(); + } + + public static void createCryptoKeyCreateCryptoKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CreateCryptoKeyRequest request = + CreateCryptoKeyRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setCryptoKeyId("cryptoKeyId-1643185255") + .setCryptoKey(CryptoKey.newBuilder().build()) + .setSkipInitialVersionCreation(true) + .build(); + CryptoKey response = keyManagementServiceClient.createCryptoKey(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyKeyRingNameStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyKeyRingNameStringCryptoKey.java new file mode 100644 index 0000000000..dbc7a7a84c --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyKeyRingNameStringCryptoKey.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class CreateCryptoKeyKeyRingNameStringCryptoKey { + + public static void main(String[] args) throws Exception { + createCryptoKeyKeyRingNameStringCryptoKey(); + } + + public static void createCryptoKeyKeyRingNameStringCryptoKey() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]"); + String cryptoKeyId = "cryptoKeyId-1643185255"; + CryptoKey cryptoKey = CryptoKey.newBuilder().build(); + CryptoKey response = + keyManagementServiceClient.createCryptoKey(parent, cryptoKeyId, cryptoKey); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyStringStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyStringStringCryptoKey.java new file mode 100644 index 0000000000..dd0bb05866 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyStringStringCryptoKey.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class CreateCryptoKeyStringStringCryptoKey { + + public static void main(String[] args) throws Exception { + createCryptoKeyStringStringCryptoKey(); + } + + public static void createCryptoKeyStringStringCryptoKey() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString(); + String cryptoKeyId = "cryptoKeyId-1643185255"; + CryptoKey cryptoKey = CryptoKey.newBuilder().build(); + CryptoKey response = + keyManagementServiceClient.createCryptoKey(parent, cryptoKeyId, cryptoKey); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..3e0e2b0411 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + createCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest(); + } + + public static void createCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CreateCryptoKeyVersionRequest request = + CreateCryptoKeyVersionRequest.newBuilder() + .setParent( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.createCryptoKeyVersionCallable().futureCall(request); + // Do something. + CryptoKeyVersion response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..344b6676cf --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest] +import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class CreateCryptoKeyVersionCreateCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + createCryptoKeyVersionCreateCryptoKeyVersionRequest(); + } + + public static void createCryptoKeyVersionCreateCryptoKeyVersionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CreateCryptoKeyVersionRequest request = + CreateCryptoKeyVersionRequest.newBuilder() + .setParent( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build()) + .build(); + CryptoKeyVersion response = keyManagementServiceClient.createCryptoKeyVersion(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java new file mode 100644 index 0000000000..6e1dd4e58b --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion { + + public static void main(String[] args) throws Exception { + createCryptoKeyVersionCryptoKeyNameCryptoKeyVersion(); + } + + public static void createCryptoKeyVersionCryptoKeyNameCryptoKeyVersion() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyName parent = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build(); + CryptoKeyVersion response = + keyManagementServiceClient.createCryptoKeyVersion(parent, cryptoKeyVersion); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionStringCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionStringCryptoKeyVersion.java new file mode 100644 index 0000000000..8827d724a3 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionStringCryptoKeyVersion.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class CreateCryptoKeyVersionStringCryptoKeyVersion { + + public static void main(String[] args) throws Exception { + createCryptoKeyVersionStringCryptoKeyVersion(); + } + + public static void createCryptoKeyVersionStringCryptoKeyVersion() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build(); + CryptoKeyVersion response = + keyManagementServiceClient.createCryptoKeyVersion(parent, cryptoKeyVersion); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCallableFutureCallCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCallableFutureCallCreateImportJobRequest.java new file mode 100644 index 0000000000..c3bc13ff0a --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCallableFutureCallCreateImportJobRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CreateImportJobRequest; +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class CreateImportJobCallableFutureCallCreateImportJobRequest { + + public static void main(String[] args) throws Exception { + createImportJobCallableFutureCallCreateImportJobRequest(); + } + + public static void createImportJobCallableFutureCallCreateImportJobRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CreateImportJobRequest request = + CreateImportJobRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setImportJobId("importJobId1449444627") + .setImportJob(ImportJob.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.createImportJobCallable().futureCall(request); + // Do something. + ImportJob response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCreateImportJobRequest.java new file mode 100644 index 0000000000..b11acbc002 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCreateImportJobRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest] +import com.google.cloud.kms.v1.CreateImportJobRequest; +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class CreateImportJobCreateImportJobRequest { + + public static void main(String[] args) throws Exception { + createImportJobCreateImportJobRequest(); + } + + public static void createImportJobCreateImportJobRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CreateImportJobRequest request = + CreateImportJobRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setImportJobId("importJobId1449444627") + .setImportJob(ImportJob.newBuilder().build()) + .build(); + ImportJob response = keyManagementServiceClient.createImportJob(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobKeyRingNameStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobKeyRingNameStringImportJob.java new file mode 100644 index 0000000000..60f00d248e --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobKeyRingNameStringImportJob.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob] +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class CreateImportJobKeyRingNameStringImportJob { + + public static void main(String[] args) throws Exception { + createImportJobKeyRingNameStringImportJob(); + } + + public static void createImportJobKeyRingNameStringImportJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]"); + String importJobId = "importJobId1449444627"; + ImportJob importJob = ImportJob.newBuilder().build(); + ImportJob response = + keyManagementServiceClient.createImportJob(parent, importJobId, importJob); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobStringStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobStringStringImportJob.java new file mode 100644 index 0000000000..a8e83c219b --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobStringStringImportJob.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob] +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class CreateImportJobStringStringImportJob { + + public static void main(String[] args) throws Exception { + createImportJobStringStringImportJob(); + } + + public static void createImportJobStringStringImportJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString(); + String importJobId = "importJobId1449444627"; + ImportJob importJob = ImportJob.newBuilder().build(); + ImportJob response = + keyManagementServiceClient.createImportJob(parent, importJobId, importJob); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java new file mode 100644 index 0000000000..631abffe05 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CreateKeyRingRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.LocationName; + +public class CreateKeyRingCallableFutureCallCreateKeyRingRequest { + + public static void main(String[] args) throws Exception { + createKeyRingCallableFutureCallCreateKeyRingRequest(); + } + + public static void createKeyRingCallableFutureCallCreateKeyRingRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CreateKeyRingRequest request = + CreateKeyRingRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setKeyRingId("keyRingId-2027180374") + .setKeyRing(KeyRing.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.createKeyRingCallable().futureCall(request); + // Do something. + KeyRing response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCreateKeyRingRequest.java new file mode 100644 index 0000000000..a5d4fcb9a7 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCreateKeyRingRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest] +import com.google.cloud.kms.v1.CreateKeyRingRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.LocationName; + +public class CreateKeyRingCreateKeyRingRequest { + + public static void main(String[] args) throws Exception { + createKeyRingCreateKeyRingRequest(); + } + + public static void createKeyRingCreateKeyRingRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CreateKeyRingRequest request = + CreateKeyRingRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setKeyRingId("keyRingId-2027180374") + .setKeyRing(KeyRing.newBuilder().build()) + .build(); + KeyRing response = keyManagementServiceClient.createKeyRing(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingLocationNameStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingLocationNameStringKeyRing.java new file mode 100644 index 0000000000..61f0f3b315 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingLocationNameStringKeyRing.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.LocationName; + +public class CreateKeyRingLocationNameStringKeyRing { + + public static void main(String[] args) throws Exception { + createKeyRingLocationNameStringKeyRing(); + } + + public static void createKeyRingLocationNameStringKeyRing() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String keyRingId = "keyRingId-2027180374"; + KeyRing keyRing = KeyRing.newBuilder().build(); + KeyRing response = keyManagementServiceClient.createKeyRing(parent, keyRingId, keyRing); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingStringStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingStringStringKeyRing.java new file mode 100644 index 0000000000..00466c562c --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingStringStringKeyRing.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.LocationName; + +public class CreateKeyRingStringStringKeyRing { + + public static void main(String[] args) throws Exception { + createKeyRingStringStringKeyRing(); + } + + public static void createKeyRingStringStringKeyRing() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String keyRingId = "keyRingId-2027180374"; + KeyRing keyRing = KeyRing.newBuilder().build(); + KeyRing response = keyManagementServiceClient.createKeyRing(parent, keyRingId, keyRing); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCallableFutureCallDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCallableFutureCallDecryptRequest.java new file mode 100644 index 0000000000..9b344c57b8 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCallableFutureCallDecryptRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.DecryptRequest; +import com.google.cloud.kms.v1.DecryptResponse; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; +import com.google.protobuf.Int64Value; + +public class DecryptCallableFutureCallDecryptRequest { + + public static void main(String[] args) throws Exception { + decryptCallableFutureCallDecryptRequest(); + } + + public static void decryptCallableFutureCallDecryptRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DecryptRequest request = + DecryptRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setCiphertext(ByteString.EMPTY) + .setAdditionalAuthenticatedData(ByteString.EMPTY) + .setCiphertextCrc32C(Int64Value.newBuilder().build()) + .setAdditionalAuthenticatedDataCrc32C(Int64Value.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.decryptCallable().futureCall(request); + // Do something. + DecryptResponse response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCryptoKeyNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCryptoKeyNameByteString.java new file mode 100644 index 0000000000..19dc47e1b5 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCryptoKeyNameByteString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.DecryptResponse; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; + +public class DecryptCryptoKeyNameByteString { + + public static void main(String[] args) throws Exception { + decryptCryptoKeyNameByteString(); + } + + public static void decryptCryptoKeyNameByteString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyName name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + ByteString ciphertext = ByteString.EMPTY; + DecryptResponse response = keyManagementServiceClient.decrypt(name, ciphertext); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptDecryptRequest.java new file mode 100644 index 0000000000..3bc8b39296 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptDecryptRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.DecryptRequest; +import com.google.cloud.kms.v1.DecryptResponse; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; +import com.google.protobuf.Int64Value; + +public class DecryptDecryptRequest { + + public static void main(String[] args) throws Exception { + decryptDecryptRequest(); + } + + public static void decryptDecryptRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DecryptRequest request = + DecryptRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setCiphertext(ByteString.EMPTY) + .setAdditionalAuthenticatedData(ByteString.EMPTY) + .setCiphertextCrc32C(Int64Value.newBuilder().build()) + .setAdditionalAuthenticatedDataCrc32C(Int64Value.newBuilder().build()) + .build(); + DecryptResponse response = keyManagementServiceClient.decrypt(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptStringByteString.java new file mode 100644 index 0000000000..5e4b03a796 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptStringByteString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.DecryptResponse; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; + +public class DecryptStringByteString { + + public static void main(String[] args) throws Exception { + decryptStringByteString(); + } + + public static void decryptStringByteString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + ByteString ciphertext = ByteString.EMPTY; + DecryptResponse response = keyManagementServiceClient.decrypt(name, ciphertext); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..e0b00dafb4 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + destroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest(); + } + + public static void destroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DestroyCryptoKeyVersionRequest request = + DestroyCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.destroyCryptoKeyVersionCallable().futureCall(request); + // Do something. + CryptoKeyVersion response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCryptoKeyVersionName.java new file mode 100644 index 0000000000..917ef8df7e --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCryptoKeyVersionName.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class DestroyCryptoKeyVersionCryptoKeyVersionName { + + public static void main(String[] args) throws Exception { + destroyCryptoKeyVersionCryptoKeyVersionName(); + } + + public static void destroyCryptoKeyVersionCryptoKeyVersionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + CryptoKeyVersion response = keyManagementServiceClient.destroyCryptoKeyVersion(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..43799edc14 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + destroyCryptoKeyVersionDestroyCryptoKeyVersionRequest(); + } + + public static void destroyCryptoKeyVersionDestroyCryptoKeyVersionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DestroyCryptoKeyVersionRequest request = + DestroyCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + CryptoKeyVersion response = keyManagementServiceClient.destroyCryptoKeyVersion(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionString.java new file mode 100644 index 0000000000..65552bbe43 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class DestroyCryptoKeyVersionString { + + public static void main(String[] args) throws Exception { + destroyCryptoKeyVersionString(); + } + + public static void destroyCryptoKeyVersionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]") + .toString(); + CryptoKeyVersion response = keyManagementServiceClient.destroyCryptoKeyVersion(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptCallableFutureCallEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptCallableFutureCallEncryptRequest.java new file mode 100644 index 0000000000..909b013c31 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptCallableFutureCallEncryptRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.EncryptRequest; +import com.google.cloud.kms.v1.EncryptResponse; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; +import com.google.protobuf.Int64Value; + +public class EncryptCallableFutureCallEncryptRequest { + + public static void main(String[] args) throws Exception { + encryptCallableFutureCallEncryptRequest(); + } + + public static void encryptCallableFutureCallEncryptRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + EncryptRequest request = + EncryptRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setPlaintext(ByteString.EMPTY) + .setAdditionalAuthenticatedData(ByteString.EMPTY) + .setPlaintextCrc32C(Int64Value.newBuilder().build()) + .setAdditionalAuthenticatedDataCrc32C(Int64Value.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.encryptCallable().futureCall(request); + // Do something. + EncryptResponse response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptEncryptRequest.java new file mode 100644 index 0000000000..8ffa31906a --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptEncryptRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.EncryptRequest; +import com.google.cloud.kms.v1.EncryptResponse; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; +import com.google.protobuf.Int64Value; + +public class EncryptEncryptRequest { + + public static void main(String[] args) throws Exception { + encryptEncryptRequest(); + } + + public static void encryptEncryptRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + EncryptRequest request = + EncryptRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setPlaintext(ByteString.EMPTY) + .setAdditionalAuthenticatedData(ByteString.EMPTY) + .setPlaintextCrc32C(Int64Value.newBuilder().build()) + .setAdditionalAuthenticatedDataCrc32C(Int64Value.newBuilder().build()) + .build(); + EncryptResponse response = keyManagementServiceClient.encrypt(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptResourceNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptResourceNameByteString.java new file mode 100644 index 0000000000..79cb639085 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptResourceNameByteString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.EncryptResponse; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; + +public class EncryptResourceNameByteString { + + public static void main(String[] args) throws Exception { + encryptResourceNameByteString(); + } + + public static void encryptResourceNameByteString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ResourceName name = CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + ByteString plaintext = ByteString.EMPTY; + EncryptResponse response = keyManagementServiceClient.encrypt(name, plaintext); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptStringByteString.java new file mode 100644 index 0000000000..1de6457530 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptStringByteString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.EncryptResponse; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.ByteString; + +public class EncryptStringByteString { + + public static void main(String[] args) throws Exception { + encryptStringByteString(); + } + + public static void encryptStringByteString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + ByteString plaintext = ByteString.EMPTY; + EncryptResponse response = keyManagementServiceClient.encrypt(name, plaintext); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java new file mode 100644 index 0000000000..1e75a13e85 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.GetCryptoKeyRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetCryptoKeyCallableFutureCallGetCryptoKeyRequest { + + public static void main(String[] args) throws Exception { + getCryptoKeyCallableFutureCallGetCryptoKeyRequest(); + } + + public static void getCryptoKeyCallableFutureCallGetCryptoKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetCryptoKeyRequest request = + GetCryptoKeyRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.getCryptoKeyCallable().futureCall(request); + // Do something. + CryptoKey response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCryptoKeyName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCryptoKeyName.java new file mode 100644 index 0000000000..57adcd44b2 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCryptoKeyName.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetCryptoKeyCryptoKeyName { + + public static void main(String[] args) throws Exception { + getCryptoKeyCryptoKeyName(); + } + + public static void getCryptoKeyCryptoKeyName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyName name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + CryptoKey response = keyManagementServiceClient.getCryptoKey(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyGetCryptoKeyRequest.java new file mode 100644 index 0000000000..90478709ab --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyGetCryptoKeyRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.GetCryptoKeyRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetCryptoKeyGetCryptoKeyRequest { + + public static void main(String[] args) throws Exception { + getCryptoKeyGetCryptoKeyRequest(); + } + + public static void getCryptoKeyGetCryptoKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetCryptoKeyRequest request = + GetCryptoKeyRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + CryptoKey response = keyManagementServiceClient.getCryptoKey(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyString.java new file mode 100644 index 0000000000..1c6bb400c8 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_string] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetCryptoKeyString { + + public static void main(String[] args) throws Exception { + getCryptoKeyString(); + } + + public static void getCryptoKeyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + CryptoKey response = keyManagementServiceClient.getCryptoKey(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_string] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..ebb574938f --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + getCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest(); + } + + public static void getCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetCryptoKeyVersionRequest request = + GetCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.getCryptoKeyVersionCallable().futureCall(request); + // Do something. + CryptoKeyVersion response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCryptoKeyVersionName.java new file mode 100644 index 0000000000..798df88b35 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCryptoKeyVersionName.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetCryptoKeyVersionCryptoKeyVersionName { + + public static void main(String[] args) throws Exception { + getCryptoKeyVersionCryptoKeyVersionName(); + } + + public static void getCryptoKeyVersionCryptoKeyVersionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + CryptoKeyVersion response = keyManagementServiceClient.getCryptoKeyVersion(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..6545b8e386 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetCryptoKeyVersionGetCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + getCryptoKeyVersionGetCryptoKeyVersionRequest(); + } + + public static void getCryptoKeyVersionGetCryptoKeyVersionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetCryptoKeyVersionRequest request = + GetCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + CryptoKeyVersion response = keyManagementServiceClient.getCryptoKeyVersion(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionString.java new file mode 100644 index 0000000000..d71aa674af --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetCryptoKeyVersionString { + + public static void main(String[] args) throws Exception { + getCryptoKeyVersionString(); + } + + public static void getCryptoKeyVersionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]") + .toString(); + CryptoKeyVersion response = keyManagementServiceClient.getCryptoKeyVersion(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java new file mode 100644 index 0000000000..5e3e3d2d70 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class GetIamPolicyCallableFutureCallGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyCallableFutureCallGetIamPolicyRequest(); + } + + public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java new file mode 100644 index 0000000000..2d07d0cfad --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class GetIamPolicyGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyGetIamPolicyRequest(); + } + + public static void getIamPolicyGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = keyManagementServiceClient.getIamPolicy(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobCallableFutureCallGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobCallableFutureCallGetImportJobRequest.java new file mode 100644 index 0000000000..529115d1a6 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobCallableFutureCallGetImportJobRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.GetImportJobRequest; +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.ImportJobName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetImportJobCallableFutureCallGetImportJobRequest { + + public static void main(String[] args) throws Exception { + getImportJobCallableFutureCallGetImportJobRequest(); + } + + public static void getImportJobCallableFutureCallGetImportJobRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetImportJobRequest request = + GetImportJobRequest.newBuilder() + .setName( + ImportJobName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[IMPORT_JOB]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.getImportJobCallable().futureCall(request); + // Do something. + ImportJob response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobGetImportJobRequest.java new file mode 100644 index 0000000000..31aed7e7db --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobGetImportJobRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest] +import com.google.cloud.kms.v1.GetImportJobRequest; +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.ImportJobName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetImportJobGetImportJobRequest { + + public static void main(String[] args) throws Exception { + getImportJobGetImportJobRequest(); + } + + public static void getImportJobGetImportJobRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetImportJobRequest request = + GetImportJobRequest.newBuilder() + .setName( + ImportJobName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[IMPORT_JOB]") + .toString()) + .build(); + ImportJob response = keyManagementServiceClient.getImportJob(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobImportJobName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobImportJobName.java new file mode 100644 index 0000000000..0ccdc067de --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobImportJobName.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname] +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.ImportJobName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetImportJobImportJobName { + + public static void main(String[] args) throws Exception { + getImportJobImportJobName(); + } + + public static void getImportJobImportJobName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ImportJobName name = + ImportJobName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[IMPORT_JOB]"); + ImportJob response = keyManagementServiceClient.getImportJob(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobString.java new file mode 100644 index 0000000000..3a13e4406f --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getimportjob_string] +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.ImportJobName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class GetImportJobString { + + public static void main(String[] args) throws Exception { + getImportJobString(); + } + + public static void getImportJobString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + ImportJobName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[IMPORT_JOB]").toString(); + ImportJob response = keyManagementServiceClient.getImportJob(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_string] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingCallableFutureCallGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingCallableFutureCallGetKeyRingRequest.java new file mode 100644 index 0000000000..784cfe69c1 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingCallableFutureCallGetKeyRingRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.GetKeyRingRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.KeyRingName; + +public class GetKeyRingCallableFutureCallGetKeyRingRequest { + + public static void main(String[] args) throws Exception { + getKeyRingCallableFutureCallGetKeyRingRequest(); + } + + public static void getKeyRingCallableFutureCallGetKeyRingRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetKeyRingRequest request = + GetKeyRingRequest.newBuilder() + .setName(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.getKeyRingCallable().futureCall(request); + // Do something. + KeyRing response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingGetKeyRingRequest.java new file mode 100644 index 0000000000..1b0692fc70 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingGetKeyRingRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest] +import com.google.cloud.kms.v1.GetKeyRingRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.KeyRingName; + +public class GetKeyRingGetKeyRingRequest { + + public static void main(String[] args) throws Exception { + getKeyRingGetKeyRingRequest(); + } + + public static void getKeyRingGetKeyRingRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetKeyRingRequest request = + GetKeyRingRequest.newBuilder() + .setName(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .build(); + KeyRing response = keyManagementServiceClient.getKeyRing(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingKeyRingName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingKeyRingName.java new file mode 100644 index 0000000000..02de4baca3 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingKeyRingName.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.KeyRingName; + +public class GetKeyRingKeyRingName { + + public static void main(String[] args) throws Exception { + getKeyRingKeyRingName(); + } + + public static void getKeyRingKeyRingName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]"); + KeyRing response = keyManagementServiceClient.getKeyRing(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingString.java new file mode 100644 index 0000000000..5a98d309ed --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getkeyring_string] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.KeyRingName; + +public class GetKeyRingString { + + public static void main(String[] args) throws Exception { + getKeyRingString(); + } + + public static void getKeyRingString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString(); + KeyRing response = keyManagementServiceClient.getKeyRing(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_string] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationCallableFutureCallGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationCallableFutureCallGetLocationRequest.java new file mode 100644 index 0000000000..3954c23984 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationCallableFutureCallGetLocationRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class GetLocationCallableFutureCallGetLocationRequest { + + public static void main(String[] args) throws Exception { + getLocationCallableFutureCallGetLocationRequest(); + } + + public static void getLocationCallableFutureCallGetLocationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + keyManagementServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationGetLocationRequest.java new file mode 100644 index 0000000000..98c3ec554f --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationGetLocationRequest.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class GetLocationGetLocationRequest { + + public static void main(String[] args) throws Exception { + getLocationGetLocationRequest(); + } + + public static void getLocationGetLocationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = keyManagementServiceClient.getLocation(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java new file mode 100644 index 0000000000..4f0dcae0d0 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.GetPublicKeyRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.PublicKey; + +public class GetPublicKeyCallableFutureCallGetPublicKeyRequest { + + public static void main(String[] args) throws Exception { + getPublicKeyCallableFutureCallGetPublicKeyRequest(); + } + + public static void getPublicKeyCallableFutureCallGetPublicKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetPublicKeyRequest request = + GetPublicKeyRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.getPublicKeyCallable().futureCall(request); + // Do something. + PublicKey response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCryptoKeyVersionName.java new file mode 100644 index 0000000000..f33e263d11 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCryptoKeyVersionName.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname] +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.PublicKey; + +public class GetPublicKeyCryptoKeyVersionName { + + public static void main(String[] args) throws Exception { + getPublicKeyCryptoKeyVersionName(); + } + + public static void getPublicKeyCryptoKeyVersionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + PublicKey response = keyManagementServiceClient.getPublicKey(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyGetPublicKeyRequest.java new file mode 100644 index 0000000000..672c28cd85 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyGetPublicKeyRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest] +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.GetPublicKeyRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.PublicKey; + +public class GetPublicKeyGetPublicKeyRequest { + + public static void main(String[] args) throws Exception { + getPublicKeyGetPublicKeyRequest(); + } + + public static void getPublicKeyGetPublicKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetPublicKeyRequest request = + GetPublicKeyRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + PublicKey response = keyManagementServiceClient.getPublicKey(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyString.java new file mode 100644 index 0000000000..4e6211bcb0 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_getpublickey_string] +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.PublicKey; + +public class GetPublicKeyString { + + public static void main(String[] args) throws Exception { + getPublicKeyString(); + } + + public static void getPublicKeyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]") + .toString(); + PublicKey response = keyManagementServiceClient.getPublicKey(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_string] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..2bd0ebea18 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + importCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest(); + } + + public static void importCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ImportCryptoKeyVersionRequest request = + ImportCryptoKeyVersionRequest.newBuilder() + .setParent( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setImportJob("importJob-208547368") + .build(); + ApiFuture future = + keyManagementServiceClient.importCryptoKeyVersionCallable().futureCall(request); + // Do something. + CryptoKeyVersion response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..97df9724cf --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class ImportCryptoKeyVersionImportCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + importCryptoKeyVersionImportCryptoKeyVersionRequest(); + } + + public static void importCryptoKeyVersionImportCryptoKeyVersionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ImportCryptoKeyVersionRequest request = + ImportCryptoKeyVersionRequest.newBuilder() + .setParent( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setImportJob("importJob-208547368") + .build(); + CryptoKeyVersion response = keyManagementServiceClient.importCryptoKeyVersion(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java new file mode 100644 index 0000000000..1aa88a4ecf --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java @@ -0,0 +1,64 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest; +import com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse; +import com.google.common.base.Strings; + +public class ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest { + + public static void main(String[] args) throws Exception { + listCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest(); + } + + public static void listCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListCryptoKeyVersionsRequest request = + ListCryptoKeyVersionsRequest.newBuilder() + .setParent( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCryptoKeyVersionsResponse response = + keyManagementServiceClient.listCryptoKeyVersionsCallable().call(request); + for (CryptoKeyVersion element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java new file mode 100644 index 0000000000..010f9b9607 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class ListCryptoKeyVersionsCryptoKeyNameIterateAll { + + public static void main(String[] args) throws Exception { + listCryptoKeyVersionsCryptoKeyNameIterateAll(); + } + + public static void listCryptoKeyVersionsCryptoKeyNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyName parent = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + for (CryptoKeyVersion element : + keyManagementServiceClient.listCryptoKeyVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java new file mode 100644 index 0000000000..0206afbc39 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest; + +public class ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll(); + } + + public static void listCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListCryptoKeyVersionsRequest request = + ListCryptoKeyVersionsRequest.newBuilder() + .setParent( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CryptoKeyVersion element : + keyManagementServiceClient.listCryptoKeyVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java new file mode 100644 index 0000000000..0fece00656 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java @@ -0,0 +1,56 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest; + +public class ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest { + + public static void main(String[] args) throws Exception { + listCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest(); + } + + public static void listCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListCryptoKeyVersionsRequest request = + ListCryptoKeyVersionsRequest.newBuilder() + .setParent( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + keyManagementServiceClient.listCryptoKeyVersionsPagedCallable().futureCall(request); + // Do something. + for (CryptoKeyVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsStringIterateAll.java new file mode 100644 index 0000000000..9362ad3d02 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsStringIterateAll.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class ListCryptoKeyVersionsStringIterateAll { + + public static void main(String[] args) throws Exception { + listCryptoKeyVersionsStringIterateAll(); + } + + public static void listCryptoKeyVersionsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + for (CryptoKeyVersion element : + keyManagementServiceClient.listCryptoKeyVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java new file mode 100644 index 0000000000..73a3527df2 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java @@ -0,0 +1,61 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; +import com.google.cloud.kms.v1.ListCryptoKeysRequest; +import com.google.cloud.kms.v1.ListCryptoKeysResponse; +import com.google.common.base.Strings; + +public class ListCryptoKeysCallableCallListCryptoKeysRequest { + + public static void main(String[] args) throws Exception { + listCryptoKeysCallableCallListCryptoKeysRequest(); + } + + public static void listCryptoKeysCallableCallListCryptoKeysRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListCryptoKeysRequest request = + ListCryptoKeysRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCryptoKeysResponse response = + keyManagementServiceClient.listCryptoKeysCallable().call(request); + for (CryptoKey element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysKeyRingNameIterateAll.java new file mode 100644 index 0000000000..ca91115317 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysKeyRingNameIterateAll.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class ListCryptoKeysKeyRingNameIterateAll { + + public static void main(String[] args) throws Exception { + listCryptoKeysKeyRingNameIterateAll(); + } + + public static void listCryptoKeysKeyRingNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]"); + for (CryptoKey element : keyManagementServiceClient.listCryptoKeys(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java new file mode 100644 index 0000000000..b0cb3db001 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; +import com.google.cloud.kms.v1.ListCryptoKeysRequest; + +public class ListCryptoKeysListCryptoKeysRequestIterateAll { + + public static void main(String[] args) throws Exception { + listCryptoKeysListCryptoKeysRequestIterateAll(); + } + + public static void listCryptoKeysListCryptoKeysRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListCryptoKeysRequest request = + ListCryptoKeysRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CryptoKey element : keyManagementServiceClient.listCryptoKeys(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java new file mode 100644 index 0000000000..d19c549cd6 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; +import com.google.cloud.kms.v1.ListCryptoKeysRequest; + +public class ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest { + + public static void main(String[] args) throws Exception { + listCryptoKeysPagedCallableFutureCallListCryptoKeysRequest(); + } + + public static void listCryptoKeysPagedCallableFutureCallListCryptoKeysRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListCryptoKeysRequest request = + ListCryptoKeysRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + keyManagementServiceClient.listCryptoKeysPagedCallable().futureCall(request); + // Do something. + for (CryptoKey element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysStringIterateAll.java new file mode 100644 index 0000000000..df37a3b3bb --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysStringIterateAll.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class ListCryptoKeysStringIterateAll { + + public static void main(String[] args) throws Exception { + listCryptoKeysStringIterateAll(); + } + + public static void listCryptoKeysStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString(); + for (CryptoKey element : keyManagementServiceClient.listCryptoKeys(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsCallableCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsCallableCallListImportJobsRequest.java new file mode 100644 index 0000000000..ca4d055de7 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsCallableCallListImportJobsRequest.java @@ -0,0 +1,61 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest] +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; +import com.google.cloud.kms.v1.ListImportJobsRequest; +import com.google.cloud.kms.v1.ListImportJobsResponse; +import com.google.common.base.Strings; + +public class ListImportJobsCallableCallListImportJobsRequest { + + public static void main(String[] args) throws Exception { + listImportJobsCallableCallListImportJobsRequest(); + } + + public static void listImportJobsCallableCallListImportJobsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListImportJobsRequest request = + ListImportJobsRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListImportJobsResponse response = + keyManagementServiceClient.listImportJobsCallable().call(request); + for (ImportJob element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsKeyRingNameIterateAll.java new file mode 100644 index 0000000000..5afdbbe6ec --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsKeyRingNameIterateAll.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall] +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class ListImportJobsKeyRingNameIterateAll { + + public static void main(String[] args) throws Exception { + listImportJobsKeyRingNameIterateAll(); + } + + public static void listImportJobsKeyRingNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]"); + for (ImportJob element : keyManagementServiceClient.listImportJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsListImportJobsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsListImportJobsRequestIterateAll.java new file mode 100644 index 0000000000..1b28132133 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsListImportJobsRequestIterateAll.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall] +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; +import com.google.cloud.kms.v1.ListImportJobsRequest; + +public class ListImportJobsListImportJobsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listImportJobsListImportJobsRequestIterateAll(); + } + + public static void listImportJobsListImportJobsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListImportJobsRequest request = + ListImportJobsRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ImportJob element : keyManagementServiceClient.listImportJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java new file mode 100644 index 0000000000..ae0fb1b448 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; +import com.google.cloud.kms.v1.ListImportJobsRequest; + +public class ListImportJobsPagedCallableFutureCallListImportJobsRequest { + + public static void main(String[] args) throws Exception { + listImportJobsPagedCallableFutureCallListImportJobsRequest(); + } + + public static void listImportJobsPagedCallableFutureCallListImportJobsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListImportJobsRequest request = + ListImportJobsRequest.newBuilder() + .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + keyManagementServiceClient.listImportJobsPagedCallable().futureCall(request); + // Do something. + for (ImportJob element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsStringIterateAll.java new file mode 100644 index 0000000000..97d192c562 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsStringIterateAll.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall] +import com.google.cloud.kms.v1.ImportJob; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRingName; + +public class ListImportJobsStringIterateAll { + + public static void main(String[] args) throws Exception { + listImportJobsStringIterateAll(); + } + + public static void listImportJobsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString(); + for (ImportJob element : keyManagementServiceClient.listImportJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsCallableCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsCallableCallListKeyRingsRequest.java new file mode 100644 index 0000000000..1b7859b8b1 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsCallableCallListKeyRingsRequest.java @@ -0,0 +1,61 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.ListKeyRingsRequest; +import com.google.cloud.kms.v1.ListKeyRingsResponse; +import com.google.cloud.kms.v1.LocationName; +import com.google.common.base.Strings; + +public class ListKeyRingsCallableCallListKeyRingsRequest { + + public static void main(String[] args) throws Exception { + listKeyRingsCallableCallListKeyRingsRequest(); + } + + public static void listKeyRingsCallableCallListKeyRingsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListKeyRingsRequest request = + ListKeyRingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListKeyRingsResponse response = + keyManagementServiceClient.listKeyRingsCallable().call(request); + for (KeyRing element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsListKeyRingsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsListKeyRingsRequestIterateAll.java new file mode 100644 index 0000000000..d7569ad2a9 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsListKeyRingsRequestIterateAll.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.ListKeyRingsRequest; +import com.google.cloud.kms.v1.LocationName; + +public class ListKeyRingsListKeyRingsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listKeyRingsListKeyRingsRequestIterateAll(); + } + + public static void listKeyRingsListKeyRingsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListKeyRingsRequest request = + ListKeyRingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (KeyRing element : keyManagementServiceClient.listKeyRings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsLocationNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsLocationNameIterateAll.java new file mode 100644 index 0000000000..99a09ff615 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsLocationNameIterateAll.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.LocationName; + +public class ListKeyRingsLocationNameIterateAll { + + public static void main(String[] args) throws Exception { + listKeyRingsLocationNameIterateAll(); + } + + public static void listKeyRingsLocationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (KeyRing element : keyManagementServiceClient.listKeyRings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java new file mode 100644 index 0000000000..6c2c9150a9 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.ListKeyRingsRequest; +import com.google.cloud.kms.v1.LocationName; + +public class ListKeyRingsPagedCallableFutureCallListKeyRingsRequest { + + public static void main(String[] args) throws Exception { + listKeyRingsPagedCallableFutureCallListKeyRingsRequest(); + } + + public static void listKeyRingsPagedCallableFutureCallListKeyRingsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListKeyRingsRequest request = + ListKeyRingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + keyManagementServiceClient.listKeyRingsPagedCallable().futureCall(request); + // Do something. + for (KeyRing element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsStringIterateAll.java new file mode 100644 index 0000000000..cb0818d8f2 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsStringIterateAll.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.KeyRing; +import com.google.cloud.kms.v1.LocationName; + +public class ListKeyRingsStringIterateAll { + + public static void main(String[] args) throws Exception { + listKeyRingsStringIterateAll(); + } + + public static void listKeyRingsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (KeyRing element : keyManagementServiceClient.listKeyRings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsCallableCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsCallableCallListLocationsRequest.java new file mode 100644 index 0000000000..6127534c25 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsCallableCallListLocationsRequest.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class ListLocationsCallableCallListLocationsRequest { + + public static void main(String[] args) throws Exception { + listLocationsCallableCallListLocationsRequest(); + } + + public static void listLocationsCallableCallListLocationsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + keyManagementServiceClient.listLocationsCallable().call(request); + for (Location element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsListLocationsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsListLocationsRequestIterateAll.java new file mode 100644 index 0000000000..15ca7b3c86 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsListLocationsRequestIterateAll.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class ListLocationsListLocationsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listLocationsListLocationsRequestIterateAll(); + } + + public static void listLocationsListLocationsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : keyManagementServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java new file mode 100644 index 0000000000..117857a51d --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class ListLocationsPagedCallableFutureCallListLocationsRequest { + + public static void main(String[] args) throws Exception { + listLocationsPagedCallableFutureCallListLocationsRequest(); + } + + public static void listLocationsPagedCallableFutureCallListLocationsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + keyManagementServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..4ef8653f78 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; + +public class RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + restoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest(); + } + + public static void restoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + RestoreCryptoKeyVersionRequest request = + RestoreCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.restoreCryptoKeyVersionCallable().futureCall(request); + // Do something. + CryptoKeyVersion response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCryptoKeyVersionName.java new file mode 100644 index 0000000000..a0ff8e5684 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCryptoKeyVersionName.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class RestoreCryptoKeyVersionCryptoKeyVersionName { + + public static void main(String[] args) throws Exception { + restoreCryptoKeyVersionCryptoKeyVersionName(); + } + + public static void restoreCryptoKeyVersionCryptoKeyVersionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + CryptoKeyVersion response = keyManagementServiceClient.restoreCryptoKeyVersion(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..028aa72f38 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; + +public class RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + restoreCryptoKeyVersionRestoreCryptoKeyVersionRequest(); + } + + public static void restoreCryptoKeyVersionRestoreCryptoKeyVersionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + RestoreCryptoKeyVersionRequest request = + RestoreCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + CryptoKeyVersion response = keyManagementServiceClient.restoreCryptoKeyVersion(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionString.java new file mode 100644 index 0000000000..c1bbbbb8b6 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class RestoreCryptoKeyVersionString { + + public static void main(String[] args) throws Exception { + restoreCryptoKeyVersionString(); + } + + public static void restoreCryptoKeyVersionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]") + .toString(); + CryptoKeyVersion response = keyManagementServiceClient.restoreCryptoKeyVersion(name); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java new file mode 100644 index 0000000000..72bea92ddd --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -0,0 +1,52 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsCallableFutureCallTestIamPermissionsRequest(); + } + + public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + keyManagementServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java new file mode 100644 index 0000000000..f04572ef8e --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class TestIamPermissionsTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsTestIamPermissionsRequest(); + } + + public static void testIamPermissionsTestIamPermissionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = keyManagementServiceClient.testIamPermissions(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java new file mode 100644 index 0000000000..294b3171bf --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; +import com.google.protobuf.FieldMask; + +public class UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest { + + public static void main(String[] args) throws Exception { + updateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest(); + } + + public static void updateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + UpdateCryptoKeyRequest request = + UpdateCryptoKeyRequest.newBuilder() + .setCryptoKey(CryptoKey.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.updateCryptoKeyCallable().futureCall(request); + // Do something. + CryptoKey response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCryptoKeyFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCryptoKeyFieldMask.java new file mode 100644 index 0000000000..24a917db33 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCryptoKeyFieldMask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.FieldMask; + +public class UpdateCryptoKeyCryptoKeyFieldMask { + + public static void main(String[] args) throws Exception { + updateCryptoKeyCryptoKeyFieldMask(); + } + + public static void updateCryptoKeyCryptoKeyFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKey cryptoKey = CryptoKey.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CryptoKey response = keyManagementServiceClient.updateCryptoKey(cryptoKey, updateMask); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyUpdateCryptoKeyRequest.java new file mode 100644 index 0000000000..1d3e95ad18 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyUpdateCryptoKeyRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; +import com.google.protobuf.FieldMask; + +public class UpdateCryptoKeyUpdateCryptoKeyRequest { + + public static void main(String[] args) throws Exception { + updateCryptoKeyUpdateCryptoKeyRequest(); + } + + public static void updateCryptoKeyUpdateCryptoKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + UpdateCryptoKeyRequest request = + UpdateCryptoKeyRequest.newBuilder() + .setCryptoKey(CryptoKey.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CryptoKey response = keyManagementServiceClient.updateCryptoKey(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java new file mode 100644 index 0000000000..463eec5d76 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java @@ -0,0 +1,52 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; + +public class UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest { + + public static void main(String[] args) throws Exception { + updateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest(); + } + + public static void + updateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + UpdateCryptoKeyPrimaryVersionRequest request = + UpdateCryptoKeyPrimaryVersionRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setCryptoKeyVersionId("cryptoKeyVersionId987674581") + .build(); + ApiFuture future = + keyManagementServiceClient.updateCryptoKeyPrimaryVersionCallable().futureCall(request); + // Do something. + CryptoKey response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java new file mode 100644 index 0000000000..9152868b43 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class UpdateCryptoKeyPrimaryVersionCryptoKeyNameString { + + public static void main(String[] args) throws Exception { + updateCryptoKeyPrimaryVersionCryptoKeyNameString(); + } + + public static void updateCryptoKeyPrimaryVersionCryptoKeyNameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyName name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + String cryptoKeyVersionId = "cryptoKeyVersionId987674581"; + CryptoKey response = + keyManagementServiceClient.updateCryptoKeyPrimaryVersion(name, cryptoKeyVersionId); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionStringString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionStringString.java new file mode 100644 index 0000000000..1992640f4b --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; + +public class UpdateCryptoKeyPrimaryVersionStringString { + + public static void main(String[] args) throws Exception { + updateCryptoKeyPrimaryVersionStringString(); + } + + public static void updateCryptoKeyPrimaryVersionStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + String cryptoKeyVersionId = "cryptoKeyVersionId987674581"; + CryptoKey response = + keyManagementServiceClient.updateCryptoKeyPrimaryVersion(name, cryptoKeyVersionId); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java new file mode 100644 index 0000000000..adf3dbf62c --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest] +import com.google.cloud.kms.v1.CryptoKey; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; + +public class UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest { + + public static void main(String[] args) throws Exception { + updateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest(); + } + + public static void updateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + UpdateCryptoKeyPrimaryVersionRequest request = + UpdateCryptoKeyPrimaryVersionRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setCryptoKeyVersionId("cryptoKeyVersionId987674581") + .build(); + CryptoKey response = keyManagementServiceClient.updateCryptoKeyPrimaryVersion(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..47b2690701 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest; +import com.google.protobuf.FieldMask; + +public class UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + updateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest(); + } + + public static void updateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + UpdateCryptoKeyVersionRequest request = + UpdateCryptoKeyVersionRequest.newBuilder() + .setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + keyManagementServiceClient.updateCryptoKeyVersionCallable().futureCall(request); + // Do something. + CryptoKeyVersion response = future.get(); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java new file mode 100644 index 0000000000..746d63936e --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.FieldMask; + +public class UpdateCryptoKeyVersionCryptoKeyVersionFieldMask { + + public static void main(String[] args) throws Exception { + updateCryptoKeyVersionCryptoKeyVersionFieldMask(); + } + + public static void updateCryptoKeyVersionCryptoKeyVersionFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CryptoKeyVersion response = + keyManagementServiceClient.updateCryptoKeyVersion(cryptoKeyVersion, updateMask); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java new file mode 100644 index 0000000000..0723f78907 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest] +import com.google.cloud.kms.v1.CryptoKeyVersion; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest; +import com.google.protobuf.FieldMask; + +public class UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest { + + public static void main(String[] args) throws Exception { + updateCryptoKeyVersionUpdateCryptoKeyVersionRequest(); + } + + public static void updateCryptoKeyVersionUpdateCryptoKeyVersionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + UpdateCryptoKeyVersionRequest request = + UpdateCryptoKeyVersionRequest.newBuilder() + .setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CryptoKeyVersion response = keyManagementServiceClient.updateCryptoKeyVersion(request); + } + } +} +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java new file mode 100644 index 0000000000..45a8f65b1b --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.samples; + +// [START kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings] +import com.google.cloud.kms.v1.KeyManagementServiceSettings; +import java.time.Duration; + +public class GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings { + + public static void main(String[] args) throws Exception { + getKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings(); + } + + public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder = + KeyManagementServiceSettings.newBuilder(); + keyManagementServiceSettingsBuilder + .getKeyRingSettings() + .setRetrySettings( + keyManagementServiceSettingsBuilder + .getKeyRingSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + KeyManagementServiceSettings keyManagementServiceSettings = + keyManagementServiceSettingsBuilder.build(); + } +} +// [END kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings] \ No newline at end of file diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keyManagementServiceStubSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keyManagementServiceStubSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java new file mode 100644 index 0000000000..866b63b5a3 --- /dev/null +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keyManagementServiceStubSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.kms.v1.stub.samples; + +// [START kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings] +import com.google.cloud.kms.v1.stub.KeyManagementServiceStubSettings; +import java.time.Duration; + +public class GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings { + + public static void main(String[] args) throws Exception { + getKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings(); + } + + public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + KeyManagementServiceStubSettings.Builder keyManagementServiceSettingsBuilder = + KeyManagementServiceStubSettings.newBuilder(); + keyManagementServiceSettingsBuilder + .getKeyRingSettings() + .setRetrySettings( + keyManagementServiceSettingsBuilder + .getKeyRingSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + KeyManagementServiceStubSettings keyManagementServiceSettings = + keyManagementServiceSettingsBuilder.build(); + } +} +// [END kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings] \ No newline at end of file diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/CryptoKeyName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/CryptoKeyName.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/CryptoKeyVersionName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/CryptoKeyVersionName.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/ImportJobName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/ImportJobName.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyRingName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/KeyRingName.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/LocationName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/LocationName.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/MockKeyManagementService.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementService.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/MockKeyManagementService.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementService.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/gapic_metadata.json b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/gapic_metadata.json similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/gapic_metadata.json rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/gapic_metadata.json diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/package-info.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/package-info.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java rename to test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java diff --git a/test/integration/goldens/kms/com/google/cloud/location/MockLocations.java b/test/integration/goldens/kms/src/com/google/cloud/location/MockLocations.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/location/MockLocations.java rename to test/integration/goldens/kms/src/com/google/cloud/location/MockLocations.java diff --git a/test/integration/goldens/kms/com/google/cloud/location/MockLocationsImpl.java b/test/integration/goldens/kms/src/com/google/cloud/location/MockLocationsImpl.java similarity index 100% rename from test/integration/goldens/kms/com/google/cloud/location/MockLocationsImpl.java rename to test/integration/goldens/kms/src/com/google/cloud/location/MockLocationsImpl.java diff --git a/test/integration/goldens/kms/com/google/iam/v1/MockIAMPolicy.java b/test/integration/goldens/kms/src/com/google/iam/v1/MockIAMPolicy.java similarity index 100% rename from test/integration/goldens/kms/com/google/iam/v1/MockIAMPolicy.java rename to test/integration/goldens/kms/src/com/google/iam/v1/MockIAMPolicy.java diff --git a/test/integration/goldens/kms/com/google/iam/v1/MockIAMPolicyImpl.java b/test/integration/goldens/kms/src/com/google/iam/v1/MockIAMPolicyImpl.java similarity index 100% rename from test/integration/goldens/kms/com/google/iam/v1/MockIAMPolicyImpl.java rename to test/integration/goldens/kms/src/com/google/iam/v1/MockIAMPolicyImpl.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings1.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings1.java new file mode 100644 index 0000000000..f83add1ec7 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_create_libraryservicesettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.cloud.example.library.v1.LibraryServiceSettings; +import com.google.cloud.example.library.v1.myCredentials; + +public class CreateLibraryServiceSettings1 { + + public static void main(String[] args) throws Exception { + createLibraryServiceSettings1(); + } + + public static void createLibraryServiceSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + LibraryServiceSettings libraryServiceSettings = + LibraryServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings); + } +} +// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings1] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings2.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings2.java new file mode 100644 index 0000000000..f662ff7f01 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings2.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_create_libraryservicesettings2] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.cloud.example.library.v1.LibraryServiceSettings; +import com.google.cloud.example.library.v1.myEndpoint; + +public class CreateLibraryServiceSettings2 { + + public static void main(String[] args) throws Exception { + createLibraryServiceSettings2(); + } + + public static void createLibraryServiceSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + LibraryServiceSettings libraryServiceSettings = + LibraryServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings); + } +} +// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings2] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCallableFutureCallCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCallableFutureCallCreateBookRequest.java new file mode 100644 index 0000000000..6edd38d719 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCallableFutureCallCreateBookRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.CreateBookRequest; +import com.google.example.library.v1.ShelfName; + +public class CreateBookCallableFutureCallCreateBookRequest { + + public static void main(String[] args) throws Exception { + createBookCallableFutureCallCreateBookRequest(); + } + + public static void createBookCallableFutureCallCreateBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + CreateBookRequest request = + CreateBookRequest.newBuilder() + .setParent(ShelfName.of("[SHELF_ID]").toString()) + .setBook(Book.newBuilder().build()) + .build(); + ApiFuture future = libraryServiceClient.createBookCallable().futureCall(request); + // Do something. + Book response = future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCreateBookRequest.java new file mode 100644 index 0000000000..e800591f3f --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCreateBookRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_createbook_createbookrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.CreateBookRequest; +import com.google.example.library.v1.ShelfName; + +public class CreateBookCreateBookRequest { + + public static void main(String[] args) throws Exception { + createBookCreateBookRequest(); + } + + public static void createBookCreateBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + CreateBookRequest request = + CreateBookRequest.newBuilder() + .setParent(ShelfName.of("[SHELF_ID]").toString()) + .setBook(Book.newBuilder().build()) + .build(); + Book response = libraryServiceClient.createBook(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_createbook_createbookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookShelfNameBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookShelfNameBook.java new file mode 100644 index 0000000000..f433de963a --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookShelfNameBook.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_createbook_shelfnamebook] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.ShelfName; + +public class CreateBookShelfNameBook { + + public static void main(String[] args) throws Exception { + createBookShelfNameBook(); + } + + public static void createBookShelfNameBook() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ShelfName parent = ShelfName.of("[SHELF_ID]"); + Book book = Book.newBuilder().build(); + Book response = libraryServiceClient.createBook(parent, book); + } + } +} +// [END library_v1_generated_libraryserviceclient_createbook_shelfnamebook] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookStringBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookStringBook.java new file mode 100644 index 0000000000..4570c8d24b --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookStringBook.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_createbook_stringbook] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.ShelfName; + +public class CreateBookStringBook { + + public static void main(String[] args) throws Exception { + createBookStringBook(); + } + + public static void createBookStringBook() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String parent = ShelfName.of("[SHELF_ID]").toString(); + Book book = Book.newBuilder().build(); + Book response = libraryServiceClient.createBook(parent, book); + } + } +} +// [END library_v1_generated_libraryserviceclient_createbook_stringbook] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCallableFutureCallCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCallableFutureCallCreateShelfRequest.java new file mode 100644 index 0000000000..6db1dd2e6a --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCallableFutureCallCreateShelfRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.CreateShelfRequest; +import com.google.example.library.v1.Shelf; + +public class CreateShelfCallableFutureCallCreateShelfRequest { + + public static void main(String[] args) throws Exception { + createShelfCallableFutureCallCreateShelfRequest(); + } + + public static void createShelfCallableFutureCallCreateShelfRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + CreateShelfRequest request = + CreateShelfRequest.newBuilder().setShelf(Shelf.newBuilder().build()).build(); + ApiFuture future = libraryServiceClient.createShelfCallable().futureCall(request); + // Do something. + Shelf response = future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCreateShelfRequest.java new file mode 100644 index 0000000000..583b0ee80a --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCreateShelfRequest.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_createshelf_createshelfrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.CreateShelfRequest; +import com.google.example.library.v1.Shelf; + +public class CreateShelfCreateShelfRequest { + + public static void main(String[] args) throws Exception { + createShelfCreateShelfRequest(); + } + + public static void createShelfCreateShelfRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + CreateShelfRequest request = + CreateShelfRequest.newBuilder().setShelf(Shelf.newBuilder().build()).build(); + Shelf response = libraryServiceClient.createShelf(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_createshelf_createshelfrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfShelf.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfShelf.java new file mode 100644 index 0000000000..dedad66b20 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfShelf.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_createshelf_shelf] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Shelf; + +public class CreateShelfShelf { + + public static void main(String[] args) throws Exception { + createShelfShelf(); + } + + public static void createShelfShelf() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + Shelf shelf = Shelf.newBuilder().build(); + Shelf response = libraryServiceClient.createShelf(shelf); + } + } +} +// [END library_v1_generated_libraryserviceclient_createshelf_shelf] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookBookName.java new file mode 100644 index 0000000000..c9d79452bf --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookBookName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_deletebook_bookname] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.BookName; +import com.google.protobuf.Empty; + +public class DeleteBookBookName { + + public static void main(String[] args) throws Exception { + deleteBookBookName(); + } + + public static void deleteBookBookName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + BookName name = BookName.of("[SHELF]", "[BOOK]"); + libraryServiceClient.deleteBook(name); + } + } +} +// [END library_v1_generated_libraryserviceclient_deletebook_bookname] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookCallableFutureCallDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookCallableFutureCallDeleteBookRequest.java new file mode 100644 index 0000000000..67c5cb400d --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookCallableFutureCallDeleteBookRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.DeleteBookRequest; +import com.google.protobuf.Empty; + +public class DeleteBookCallableFutureCallDeleteBookRequest { + + public static void main(String[] args) throws Exception { + deleteBookCallableFutureCallDeleteBookRequest(); + } + + public static void deleteBookCallableFutureCallDeleteBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + DeleteBookRequest request = + DeleteBookRequest.newBuilder() + .setName(BookName.of("[SHELF]", "[BOOK]").toString()) + .build(); + ApiFuture future = libraryServiceClient.deleteBookCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookDeleteBookRequest.java new file mode 100644 index 0000000000..7fc4b0f8ab --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookDeleteBookRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_deletebook_deletebookrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.DeleteBookRequest; +import com.google.protobuf.Empty; + +public class DeleteBookDeleteBookRequest { + + public static void main(String[] args) throws Exception { + deleteBookDeleteBookRequest(); + } + + public static void deleteBookDeleteBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + DeleteBookRequest request = + DeleteBookRequest.newBuilder() + .setName(BookName.of("[SHELF]", "[BOOK]").toString()) + .build(); + libraryServiceClient.deleteBook(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_deletebook_deletebookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookString.java new file mode 100644 index 0000000000..72edee404a --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_deletebook_string] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.BookName; +import com.google.protobuf.Empty; + +public class DeleteBookString { + + public static void main(String[] args) throws Exception { + deleteBookString(); + } + + public static void deleteBookString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String name = BookName.of("[SHELF]", "[BOOK]").toString(); + libraryServiceClient.deleteBook(name); + } + } +} +// [END library_v1_generated_libraryserviceclient_deletebook_string] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java new file mode 100644 index 0000000000..790f673784 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.DeleteShelfRequest; +import com.google.example.library.v1.ShelfName; +import com.google.protobuf.Empty; + +public class DeleteShelfCallableFutureCallDeleteShelfRequest { + + public static void main(String[] args) throws Exception { + deleteShelfCallableFutureCallDeleteShelfRequest(); + } + + public static void deleteShelfCallableFutureCallDeleteShelfRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + DeleteShelfRequest request = + DeleteShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build(); + ApiFuture future = libraryServiceClient.deleteShelfCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfDeleteShelfRequest.java new file mode 100644 index 0000000000..673d9f96d9 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfDeleteShelfRequest.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.DeleteShelfRequest; +import com.google.example.library.v1.ShelfName; +import com.google.protobuf.Empty; + +public class DeleteShelfDeleteShelfRequest { + + public static void main(String[] args) throws Exception { + deleteShelfDeleteShelfRequest(); + } + + public static void deleteShelfDeleteShelfRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + DeleteShelfRequest request = + DeleteShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build(); + libraryServiceClient.deleteShelf(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfShelfName.java new file mode 100644 index 0000000000..dd3810f20d --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfShelfName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_deleteshelf_shelfname] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.ShelfName; +import com.google.protobuf.Empty; + +public class DeleteShelfShelfName { + + public static void main(String[] args) throws Exception { + deleteShelfShelfName(); + } + + public static void deleteShelfShelfName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ShelfName name = ShelfName.of("[SHELF_ID]"); + libraryServiceClient.deleteShelf(name); + } + } +} +// [END library_v1_generated_libraryserviceclient_deleteshelf_shelfname] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfString.java new file mode 100644 index 0000000000..528a001132 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_deleteshelf_string] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.ShelfName; +import com.google.protobuf.Empty; + +public class DeleteShelfString { + + public static void main(String[] args) throws Exception { + deleteShelfString(); + } + + public static void deleteShelfString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String name = ShelfName.of("[SHELF_ID]").toString(); + libraryServiceClient.deleteShelf(name); + } + } +} +// [END library_v1_generated_libraryserviceclient_deleteshelf_string] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookBookName.java new file mode 100644 index 0000000000..b1e161df02 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookBookName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_getbook_bookname] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; + +public class GetBookBookName { + + public static void main(String[] args) throws Exception { + getBookBookName(); + } + + public static void getBookBookName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + BookName name = BookName.of("[SHELF]", "[BOOK]"); + Book response = libraryServiceClient.getBook(name); + } + } +} +// [END library_v1_generated_libraryserviceclient_getbook_bookname] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookCallableFutureCallGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookCallableFutureCallGetBookRequest.java new file mode 100644 index 0000000000..2caea720af --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookCallableFutureCallGetBookRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.GetBookRequest; + +public class GetBookCallableFutureCallGetBookRequest { + + public static void main(String[] args) throws Exception { + getBookCallableFutureCallGetBookRequest(); + } + + public static void getBookCallableFutureCallGetBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + GetBookRequest request = + GetBookRequest.newBuilder().setName(BookName.of("[SHELF]", "[BOOK]").toString()).build(); + ApiFuture future = libraryServiceClient.getBookCallable().futureCall(request); + // Do something. + Book response = future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookGetBookRequest.java new file mode 100644 index 0000000000..4126edcac9 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookGetBookRequest.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_getbook_getbookrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.GetBookRequest; + +public class GetBookGetBookRequest { + + public static void main(String[] args) throws Exception { + getBookGetBookRequest(); + } + + public static void getBookGetBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + GetBookRequest request = + GetBookRequest.newBuilder().setName(BookName.of("[SHELF]", "[BOOK]").toString()).build(); + Book response = libraryServiceClient.getBook(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_getbook_getbookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookString.java new file mode 100644 index 0000000000..a1564c5d85 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_getbook_string] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; + +public class GetBookString { + + public static void main(String[] args) throws Exception { + getBookString(); + } + + public static void getBookString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String name = BookName.of("[SHELF]", "[BOOK]").toString(); + Book response = libraryServiceClient.getBook(name); + } + } +} +// [END library_v1_generated_libraryserviceclient_getbook_string] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfCallableFutureCallGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfCallableFutureCallGetShelfRequest.java new file mode 100644 index 0000000000..7b5be47cd2 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfCallableFutureCallGetShelfRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.GetShelfRequest; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class GetShelfCallableFutureCallGetShelfRequest { + + public static void main(String[] args) throws Exception { + getShelfCallableFutureCallGetShelfRequest(); + } + + public static void getShelfCallableFutureCallGetShelfRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + GetShelfRequest request = + GetShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build(); + ApiFuture future = libraryServiceClient.getShelfCallable().futureCall(request); + // Do something. + Shelf response = future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfGetShelfRequest.java new file mode 100644 index 0000000000..d9a89b5c9d --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfGetShelfRequest.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_getshelf_getshelfrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.GetShelfRequest; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class GetShelfGetShelfRequest { + + public static void main(String[] args) throws Exception { + getShelfGetShelfRequest(); + } + + public static void getShelfGetShelfRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + GetShelfRequest request = + GetShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build(); + Shelf response = libraryServiceClient.getShelf(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_getshelf_getshelfrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfShelfName.java new file mode 100644 index 0000000000..e8a26321ab --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfShelfName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_getshelf_shelfname] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class GetShelfShelfName { + + public static void main(String[] args) throws Exception { + getShelfShelfName(); + } + + public static void getShelfShelfName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ShelfName name = ShelfName.of("[SHELF_ID]"); + Shelf response = libraryServiceClient.getShelf(name); + } + } +} +// [END library_v1_generated_libraryserviceclient_getshelf_shelfname] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfString.java new file mode 100644 index 0000000000..6b624ecab0 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_getshelf_string] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class GetShelfString { + + public static void main(String[] args) throws Exception { + getShelfString(); + } + + public static void getShelfString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String name = ShelfName.of("[SHELF_ID]").toString(); + Shelf response = libraryServiceClient.getShelf(name); + } + } +} +// [END library_v1_generated_libraryserviceclient_getshelf_string] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksCallableCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksCallableCallListBooksRequest.java new file mode 100644 index 0000000000..c0dcfb58c7 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksCallableCallListBooksRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.common.base.Strings; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.ListBooksRequest; +import com.google.example.library.v1.ListBooksResponse; +import com.google.example.library.v1.ShelfName; + +public class ListBooksCallableCallListBooksRequest { + + public static void main(String[] args) throws Exception { + listBooksCallableCallListBooksRequest(); + } + + public static void listBooksCallableCallListBooksRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ListBooksRequest request = + ListBooksRequest.newBuilder() + .setParent(ShelfName.of("[SHELF_ID]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBooksResponse response = libraryServiceClient.listBooksCallable().call(request); + for (Book element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksListBooksRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksListBooksRequestIterateAll.java new file mode 100644 index 0000000000..b8e79b2536 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksListBooksRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.ListBooksRequest; +import com.google.example.library.v1.ShelfName; + +public class ListBooksListBooksRequestIterateAll { + + public static void main(String[] args) throws Exception { + listBooksListBooksRequestIterateAll(); + } + + public static void listBooksListBooksRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ListBooksRequest request = + ListBooksRequest.newBuilder() + .setParent(ShelfName.of("[SHELF_ID]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Book element : libraryServiceClient.listBooks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksPagedCallableFutureCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksPagedCallableFutureCallListBooksRequest.java new file mode 100644 index 0000000000..671d303e9f --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksPagedCallableFutureCallListBooksRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.ListBooksRequest; +import com.google.example.library.v1.ShelfName; + +public class ListBooksPagedCallableFutureCallListBooksRequest { + + public static void main(String[] args) throws Exception { + listBooksPagedCallableFutureCallListBooksRequest(); + } + + public static void listBooksPagedCallableFutureCallListBooksRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ListBooksRequest request = + ListBooksRequest.newBuilder() + .setParent(ShelfName.of("[SHELF_ID]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = libraryServiceClient.listBooksPagedCallable().futureCall(request); + // Do something. + for (Book element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksShelfNameIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksShelfNameIterateAll.java new file mode 100644 index 0000000000..e937a9a318 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksShelfNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.ShelfName; + +public class ListBooksShelfNameIterateAll { + + public static void main(String[] args) throws Exception { + listBooksShelfNameIterateAll(); + } + + public static void listBooksShelfNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ShelfName parent = ShelfName.of("[SHELF_ID]"); + for (Book element : libraryServiceClient.listBooks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksStringIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksStringIterateAll.java new file mode 100644 index 0000000000..b2a4a2d2de --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_listbooks_stringiterateall] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.ShelfName; + +public class ListBooksStringIterateAll { + + public static void main(String[] args) throws Exception { + listBooksStringIterateAll(); + } + + public static void listBooksStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String parent = ShelfName.of("[SHELF_ID]").toString(); + for (Book element : libraryServiceClient.listBooks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END library_v1_generated_libraryserviceclient_listbooks_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesCallableCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesCallableCallListShelvesRequest.java new file mode 100644 index 0000000000..6243673e02 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesCallableCallListShelvesRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.common.base.Strings; +import com.google.example.library.v1.ListShelvesRequest; +import com.google.example.library.v1.ListShelvesResponse; +import com.google.example.library.v1.Shelf; + +public class ListShelvesCallableCallListShelvesRequest { + + public static void main(String[] args) throws Exception { + listShelvesCallableCallListShelvesRequest(); + } + + public static void listShelvesCallableCallListShelvesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ListShelvesRequest request = + ListShelvesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListShelvesResponse response = libraryServiceClient.listShelvesCallable().call(request); + for (Shelf element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesListShelvesRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesListShelvesRequestIterateAll.java new file mode 100644 index 0000000000..0d6c08a34a --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesListShelvesRequestIterateAll.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.ListShelvesRequest; +import com.google.example.library.v1.Shelf; + +public class ListShelvesListShelvesRequestIterateAll { + + public static void main(String[] args) throws Exception { + listShelvesListShelvesRequestIterateAll(); + } + + public static void listShelvesListShelvesRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ListShelvesRequest request = + ListShelvesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Shelf element : libraryServiceClient.listShelves(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java new file mode 100644 index 0000000000..248ab6034c --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.ListShelvesRequest; +import com.google.example.library.v1.Shelf; + +public class ListShelvesPagedCallableFutureCallListShelvesRequest { + + public static void main(String[] args) throws Exception { + listShelvesPagedCallableFutureCallListShelvesRequest(); + } + + public static void listShelvesPagedCallableFutureCallListShelvesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ListShelvesRequest request = + ListShelvesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = libraryServiceClient.listShelvesPagedCallable().futureCall(request); + // Do something. + for (Shelf element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java new file mode 100644 index 0000000000..4c272a08bc --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.MergeShelvesRequest; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class MergeShelvesCallableFutureCallMergeShelvesRequest { + + public static void main(String[] args) throws Exception { + mergeShelvesCallableFutureCallMergeShelvesRequest(); + } + + public static void mergeShelvesCallableFutureCallMergeShelvesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + MergeShelvesRequest request = + MergeShelvesRequest.newBuilder() + .setName(ShelfName.of("[SHELF_ID]").toString()) + .setOtherShelf(ShelfName.of("[SHELF_ID]").toString()) + .build(); + ApiFuture future = libraryServiceClient.mergeShelvesCallable().futureCall(request); + // Do something. + Shelf response = future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesMergeShelvesRequest.java new file mode 100644 index 0000000000..80067edaf8 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesMergeShelvesRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.MergeShelvesRequest; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class MergeShelvesMergeShelvesRequest { + + public static void main(String[] args) throws Exception { + mergeShelvesMergeShelvesRequest(); + } + + public static void mergeShelvesMergeShelvesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + MergeShelvesRequest request = + MergeShelvesRequest.newBuilder() + .setName(ShelfName.of("[SHELF_ID]").toString()) + .setOtherShelf(ShelfName.of("[SHELF_ID]").toString()) + .build(); + Shelf response = libraryServiceClient.mergeShelves(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameShelfName.java new file mode 100644 index 0000000000..987d1a1afc --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameShelfName.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class MergeShelvesShelfNameShelfName { + + public static void main(String[] args) throws Exception { + mergeShelvesShelfNameShelfName(); + } + + public static void mergeShelvesShelfNameShelfName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ShelfName name = ShelfName.of("[SHELF_ID]"); + ShelfName otherShelf = ShelfName.of("[SHELF_ID]"); + Shelf response = libraryServiceClient.mergeShelves(name, otherShelf); + } + } +} +// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameString.java new file mode 100644 index 0000000000..346802f50d --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class MergeShelvesShelfNameString { + + public static void main(String[] args) throws Exception { + mergeShelvesShelfNameString(); + } + + public static void mergeShelvesShelfNameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + ShelfName name = ShelfName.of("[SHELF_ID]"); + String otherShelf = ShelfName.of("[SHELF_ID]").toString(); + Shelf response = libraryServiceClient.mergeShelves(name, otherShelf); + } + } +} +// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringShelfName.java new file mode 100644 index 0000000000..fc86cf7c30 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringShelfName.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class MergeShelvesStringShelfName { + + public static void main(String[] args) throws Exception { + mergeShelvesStringShelfName(); + } + + public static void mergeShelvesStringShelfName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String name = ShelfName.of("[SHELF_ID]").toString(); + ShelfName otherShelf = ShelfName.of("[SHELF_ID]"); + Shelf response = libraryServiceClient.mergeShelves(name, otherShelf); + } + } +} +// [END library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringString.java new file mode 100644 index 0000000000..509f8b507f --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_mergeshelves_stringstring] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Shelf; +import com.google.example.library.v1.ShelfName; + +public class MergeShelvesStringString { + + public static void main(String[] args) throws Exception { + mergeShelvesStringString(); + } + + public static void mergeShelvesStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String name = ShelfName.of("[SHELF_ID]").toString(); + String otherShelf = ShelfName.of("[SHELF_ID]").toString(); + Shelf response = libraryServiceClient.mergeShelves(name, otherShelf); + } + } +} +// [END library_v1_generated_libraryserviceclient_mergeshelves_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameShelfName.java new file mode 100644 index 0000000000..24d282e15f --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameShelfName.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_movebook_booknameshelfname] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.ShelfName; + +public class MoveBookBookNameShelfName { + + public static void main(String[] args) throws Exception { + moveBookBookNameShelfName(); + } + + public static void moveBookBookNameShelfName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + BookName name = BookName.of("[SHELF]", "[BOOK]"); + ShelfName otherShelfName = ShelfName.of("[SHELF_ID]"); + Book response = libraryServiceClient.moveBook(name, otherShelfName); + } + } +} +// [END library_v1_generated_libraryserviceclient_movebook_booknameshelfname] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameString.java new file mode 100644 index 0000000000..fb0a8c1f9f --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_movebook_booknamestring] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.ShelfName; + +public class MoveBookBookNameString { + + public static void main(String[] args) throws Exception { + moveBookBookNameString(); + } + + public static void moveBookBookNameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + BookName name = BookName.of("[SHELF]", "[BOOK]"); + String otherShelfName = ShelfName.of("[SHELF_ID]").toString(); + Book response = libraryServiceClient.moveBook(name, otherShelfName); + } + } +} +// [END library_v1_generated_libraryserviceclient_movebook_booknamestring] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookCallableFutureCallMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookCallableFutureCallMoveBookRequest.java new file mode 100644 index 0000000000..ab839d08e9 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookCallableFutureCallMoveBookRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.MoveBookRequest; +import com.google.example.library.v1.ShelfName; + +public class MoveBookCallableFutureCallMoveBookRequest { + + public static void main(String[] args) throws Exception { + moveBookCallableFutureCallMoveBookRequest(); + } + + public static void moveBookCallableFutureCallMoveBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + MoveBookRequest request = + MoveBookRequest.newBuilder() + .setName(BookName.of("[SHELF]", "[BOOK]").toString()) + .setOtherShelfName(ShelfName.of("[SHELF_ID]").toString()) + .build(); + ApiFuture future = libraryServiceClient.moveBookCallable().futureCall(request); + // Do something. + Book response = future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookMoveBookRequest.java new file mode 100644 index 0000000000..4bfab82b36 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookMoveBookRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_movebook_movebookrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.MoveBookRequest; +import com.google.example.library.v1.ShelfName; + +public class MoveBookMoveBookRequest { + + public static void main(String[] args) throws Exception { + moveBookMoveBookRequest(); + } + + public static void moveBookMoveBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + MoveBookRequest request = + MoveBookRequest.newBuilder() + .setName(BookName.of("[SHELF]", "[BOOK]").toString()) + .setOtherShelfName(ShelfName.of("[SHELF_ID]").toString()) + .build(); + Book response = libraryServiceClient.moveBook(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_movebook_movebookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringShelfName.java new file mode 100644 index 0000000000..e831c40b9b --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringShelfName.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_movebook_stringshelfname] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.ShelfName; + +public class MoveBookStringShelfName { + + public static void main(String[] args) throws Exception { + moveBookStringShelfName(); + } + + public static void moveBookStringShelfName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String name = BookName.of("[SHELF]", "[BOOK]").toString(); + ShelfName otherShelfName = ShelfName.of("[SHELF_ID]"); + Book response = libraryServiceClient.moveBook(name, otherShelfName); + } + } +} +// [END library_v1_generated_libraryserviceclient_movebook_stringshelfname] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringString.java new file mode 100644 index 0000000000..e8978ccbdb --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_movebook_stringstring] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.BookName; +import com.google.example.library.v1.ShelfName; + +public class MoveBookStringString { + + public static void main(String[] args) throws Exception { + moveBookStringString(); + } + + public static void moveBookStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + String name = BookName.of("[SHELF]", "[BOOK]").toString(); + String otherShelfName = ShelfName.of("[SHELF_ID]").toString(); + Book response = libraryServiceClient.moveBook(name, otherShelfName); + } + } +} +// [END library_v1_generated_libraryserviceclient_movebook_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookBookFieldMask.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookBookFieldMask.java new file mode 100644 index 0000000000..da009f3664 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookBookFieldMask.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_updatebook_bookfieldmask] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.protobuf.FieldMask; + +public class UpdateBookBookFieldMask { + + public static void main(String[] args) throws Exception { + updateBookBookFieldMask(); + } + + public static void updateBookBookFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + Book book = Book.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Book response = libraryServiceClient.updateBook(book, updateMask); + } + } +} +// [END library_v1_generated_libraryserviceclient_updatebook_bookfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookCallableFutureCallUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookCallableFutureCallUpdateBookRequest.java new file mode 100644 index 0000000000..43f5b35e09 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookCallableFutureCallUpdateBookRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.UpdateBookRequest; +import com.google.protobuf.FieldMask; + +public class UpdateBookCallableFutureCallUpdateBookRequest { + + public static void main(String[] args) throws Exception { + updateBookCallableFutureCallUpdateBookRequest(); + } + + public static void updateBookCallableFutureCallUpdateBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + UpdateBookRequest request = + UpdateBookRequest.newBuilder() + .setBook(Book.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = libraryServiceClient.updateBookCallable().futureCall(request); + // Do something. + Book response = future.get(); + } + } +} +// [END library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookUpdateBookRequest.java new file mode 100644 index 0000000000..68b7c0ce6f --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookUpdateBookRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryserviceclient_updatebook_updatebookrequest] +import com.google.cloud.example.library.v1.LibraryServiceClient; +import com.google.example.library.v1.Book; +import com.google.example.library.v1.UpdateBookRequest; +import com.google.protobuf.FieldMask; + +public class UpdateBookUpdateBookRequest { + + public static void main(String[] args) throws Exception { + updateBookUpdateBookRequest(); + } + + public static void updateBookUpdateBookRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) { + UpdateBookRequest request = + UpdateBookRequest.newBuilder() + .setBook(Book.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Book response = libraryServiceClient.updateBook(request); + } + } +} +// [END library_v1_generated_libraryserviceclient_updatebook_updatebookrequest] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java new file mode 100644 index 0000000000..b5401cec2f --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.samples; + +// [START library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings] +import com.google.cloud.example.library.v1.LibraryServiceSettings; +import java.time.Duration; + +public class CreateShelfSettingsSetRetrySettingsLibraryServiceSettings { + + public static void main(String[] args) throws Exception { + createShelfSettingsSetRetrySettingsLibraryServiceSettings(); + } + + public static void createShelfSettingsSetRetrySettingsLibraryServiceSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + LibraryServiceSettings.Builder libraryServiceSettingsBuilder = + LibraryServiceSettings.newBuilder(); + libraryServiceSettingsBuilder + .createShelfSettings() + .setRetrySettings( + libraryServiceSettingsBuilder + .createShelfSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + LibraryServiceSettings libraryServiceSettings = libraryServiceSettingsBuilder.build(); + } +} +// [END library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings] \ No newline at end of file diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryServiceStubSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryServiceStubSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java new file mode 100644 index 0000000000..04b6cb0118 --- /dev/null +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryServiceStubSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.example.library.v1.stub.samples; + +// [START library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings] +import com.google.cloud.example.library.v1.stub.LibraryServiceStubSettings; +import java.time.Duration; + +public class CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings { + + public static void main(String[] args) throws Exception { + createShelfSettingsSetRetrySettingsLibraryServiceStubSettings(); + } + + public static void createShelfSettingsSetRetrySettingsLibraryServiceStubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + LibraryServiceStubSettings.Builder libraryServiceSettingsBuilder = + LibraryServiceStubSettings.newBuilder(); + libraryServiceSettingsBuilder + .createShelfSettings() + .setRetrySettings( + libraryServiceSettingsBuilder + .createShelfSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + LibraryServiceStubSettings libraryServiceSettings = libraryServiceSettingsBuilder.build(); + } +} +// [END library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings] \ No newline at end of file diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClientTest.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientTest.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClientTest.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientTest.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/MockLibraryService.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryService.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/MockLibraryService.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryService.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/gapic_metadata.json b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/gapic_metadata.json similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/gapic_metadata.json rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/gapic_metadata.json diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/package-info.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/package-info.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java similarity index 100% rename from test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java rename to test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java diff --git a/test/integration/goldens/library/com/google/example/library/v1/BookName.java b/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java similarity index 100% rename from test/integration/goldens/library/com/google/example/library/v1/BookName.java rename to test/integration/goldens/library/src/com/google/example/library/v1/BookName.java diff --git a/test/integration/goldens/library/com/google/example/library/v1/ShelfName.java b/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java similarity index 100% rename from test/integration/goldens/library/com/google/example/library/v1/ShelfName.java rename to test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings1.java new file mode 100644 index 0000000000..600a857825 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_create_configsettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.cloud.logging.v2.ConfigSettings; +import com.google.cloud.logging.v2.myCredentials; + +public class CreateConfigSettings1 { + + public static void main(String[] args) throws Exception { + createConfigSettings1(); + } + + public static void createConfigSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConfigSettings configSettings = + ConfigSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ConfigClient configClient = ConfigClient.create(configSettings); + } +} +// [END logging_v2_generated_configclient_create_configsettings1] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings2.java new file mode 100644 index 0000000000..f1a50a94b9 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings2.java @@ -0,0 +1,36 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_create_configsettings2] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.cloud.logging.v2.ConfigSettings; +import com.google.cloud.logging.v2.myEndpoint; + +public class CreateConfigSettings2 { + + public static void main(String[] args) throws Exception { + createConfigSettings2(); + } + + public static void createConfigSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConfigSettings configSettings = ConfigSettings.newBuilder().setEndpoint(myEndpoint).build(); + ConfigClient configClient = ConfigClient.create(configSettings); + } +} +// [END logging_v2_generated_configclient_create_configsettings2] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java new file mode 100644 index 0000000000..d63f81a7ea --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; + +public class CreateBucketCallableFutureCallCreateBucketRequest { + + public static void main(String[] args) throws Exception { + createBucketCallableFutureCallCreateBucketRequest(); + } + + public static void createBucketCallableFutureCallCreateBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBucketId("bucketId-1603305307") + .setBucket(LogBucket.newBuilder().build()) + .build(); + ApiFuture future = configClient.createBucketCallable().futureCall(request); + // Do something. + LogBucket response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCreateBucketRequest.java new file mode 100644 index 0000000000..999cb79bf5 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCreateBucketRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createbucket_createbucketrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CreateBucketRequest; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; + +public class CreateBucketCreateBucketRequest { + + public static void main(String[] args) throws Exception { + createBucketCreateBucketRequest(); + } + + public static void createBucketCreateBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBucketId("bucketId-1603305307") + .setBucket(LogBucket.newBuilder().build()) + .build(); + LogBucket response = configClient.createBucket(request); + } + } +} +// [END logging_v2_generated_configclient_createbucket_createbucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionBillingAccountNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionBillingAccountNameLogExclusion.java new file mode 100644 index 0000000000..f78854ac0b --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionBillingAccountNameLogExclusion.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.LogExclusion; + +public class CreateExclusionBillingAccountNameLogExclusion { + + public static void main(String[] args) throws Exception { + createExclusionBillingAccountNameLogExclusion(); + } + + public static void createExclusionBillingAccountNameLogExclusion() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + LogExclusion response = configClient.createExclusion(parent, exclusion); + } + } +} +// [END logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java new file mode 100644 index 0000000000..4484917458 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class CreateExclusionCallableFutureCallCreateExclusionRequest { + + public static void main(String[] args) throws Exception { + createExclusionCallableFutureCallCreateExclusionRequest(); + } + + public static void createExclusionCallableFutureCallCreateExclusionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + CreateExclusionRequest request = + CreateExclusionRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setExclusion(LogExclusion.newBuilder().build()) + .build(); + ApiFuture future = configClient.createExclusionCallable().futureCall(request); + // Do something. + LogExclusion response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCreateExclusionRequest.java new file mode 100644 index 0000000000..817cd34b5c --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCreateExclusionRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createexclusion_createexclusionrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class CreateExclusionCreateExclusionRequest { + + public static void main(String[] args) throws Exception { + createExclusionCreateExclusionRequest(); + } + + public static void createExclusionCreateExclusionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + CreateExclusionRequest request = + CreateExclusionRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setExclusion(LogExclusion.newBuilder().build()) + .build(); + LogExclusion response = configClient.createExclusion(request); + } + } +} +// [END logging_v2_generated_configclient_createexclusion_createexclusionrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionFolderNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionFolderNameLogExclusion.java new file mode 100644 index 0000000000..79107fb488 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionFolderNameLogExclusion.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createexclusion_foldernamelogexclusion] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.FolderName; +import com.google.logging.v2.LogExclusion; + +public class CreateExclusionFolderNameLogExclusion { + + public static void main(String[] args) throws Exception { + createExclusionFolderNameLogExclusion(); + } + + public static void createExclusionFolderNameLogExclusion() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + FolderName parent = FolderName.of("[FOLDER]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + LogExclusion response = configClient.createExclusion(parent, exclusion); + } + } +} +// [END logging_v2_generated_configclient_createexclusion_foldernamelogexclusion] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionOrganizationNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionOrganizationNameLogExclusion.java new file mode 100644 index 0000000000..97e890cac0 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionOrganizationNameLogExclusion.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.OrganizationName; + +public class CreateExclusionOrganizationNameLogExclusion { + + public static void main(String[] args) throws Exception { + createExclusionOrganizationNameLogExclusion(); + } + + public static void createExclusionOrganizationNameLogExclusion() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + LogExclusion response = configClient.createExclusion(parent, exclusion); + } + } +} +// [END logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionProjectNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionProjectNameLogExclusion.java new file mode 100644 index 0000000000..37ba43abba --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionProjectNameLogExclusion.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createexclusion_projectnamelogexclusion] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class CreateExclusionProjectNameLogExclusion { + + public static void main(String[] args) throws Exception { + createExclusionProjectNameLogExclusion(); + } + + public static void createExclusionProjectNameLogExclusion() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + LogExclusion response = configClient.createExclusion(parent, exclusion); + } + } +} +// [END logging_v2_generated_configclient_createexclusion_projectnamelogexclusion] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionStringLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionStringLogExclusion.java new file mode 100644 index 0000000000..d193a78c31 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionStringLogExclusion.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createexclusion_stringlogexclusion] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class CreateExclusionStringLogExclusion { + + public static void main(String[] args) throws Exception { + createExclusionStringLogExclusion(); + } + + public static void createExclusionStringLogExclusion() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + LogExclusion response = configClient.createExclusion(parent, exclusion); + } + } +} +// [END logging_v2_generated_configclient_createexclusion_stringlogexclusion] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkBillingAccountNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkBillingAccountNameLogSink.java new file mode 100644 index 0000000000..4dc261e1c9 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkBillingAccountNameLogSink.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createsink_billingaccountnamelogsink] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.LogSink; + +public class CreateSinkBillingAccountNameLogSink { + + public static void main(String[] args) throws Exception { + createSinkBillingAccountNameLogSink(); + } + + public static void createSinkBillingAccountNameLogSink() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + LogSink sink = LogSink.newBuilder().build(); + LogSink response = configClient.createSink(parent, sink); + } + } +} +// [END logging_v2_generated_configclient_createsink_billingaccountnamelogsink] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCallableFutureCallCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCallableFutureCallCreateSinkRequest.java new file mode 100644 index 0000000000..b4b897d669 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCallableFutureCallCreateSinkRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class CreateSinkCallableFutureCallCreateSinkRequest { + + public static void main(String[] args) throws Exception { + createSinkCallableFutureCallCreateSinkRequest(); + } + + public static void createSinkCallableFutureCallCreateSinkRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + CreateSinkRequest request = + CreateSinkRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setSink(LogSink.newBuilder().build()) + .setUniqueWriterIdentity(true) + .build(); + ApiFuture future = configClient.createSinkCallable().futureCall(request); + // Do something. + LogSink response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCreateSinkRequest.java new file mode 100644 index 0000000000..e8729f5070 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCreateSinkRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createsink_createsinkrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class CreateSinkCreateSinkRequest { + + public static void main(String[] args) throws Exception { + createSinkCreateSinkRequest(); + } + + public static void createSinkCreateSinkRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + CreateSinkRequest request = + CreateSinkRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setSink(LogSink.newBuilder().build()) + .setUniqueWriterIdentity(true) + .build(); + LogSink response = configClient.createSink(request); + } + } +} +// [END logging_v2_generated_configclient_createsink_createsinkrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkFolderNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkFolderNameLogSink.java new file mode 100644 index 0000000000..46dd7f0d51 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkFolderNameLogSink.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createsink_foldernamelogsink] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.FolderName; +import com.google.logging.v2.LogSink; + +public class CreateSinkFolderNameLogSink { + + public static void main(String[] args) throws Exception { + createSinkFolderNameLogSink(); + } + + public static void createSinkFolderNameLogSink() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + FolderName parent = FolderName.of("[FOLDER]"); + LogSink sink = LogSink.newBuilder().build(); + LogSink response = configClient.createSink(parent, sink); + } + } +} +// [END logging_v2_generated_configclient_createsink_foldernamelogsink] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkOrganizationNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkOrganizationNameLogSink.java new file mode 100644 index 0000000000..4e995d2bd9 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkOrganizationNameLogSink.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createsink_organizationnamelogsink] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.OrganizationName; + +public class CreateSinkOrganizationNameLogSink { + + public static void main(String[] args) throws Exception { + createSinkOrganizationNameLogSink(); + } + + public static void createSinkOrganizationNameLogSink() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + LogSink sink = LogSink.newBuilder().build(); + LogSink response = configClient.createSink(parent, sink); + } + } +} +// [END logging_v2_generated_configclient_createsink_organizationnamelogsink] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkProjectNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkProjectNameLogSink.java new file mode 100644 index 0000000000..b572a1e3c0 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkProjectNameLogSink.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createsink_projectnamelogsink] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class CreateSinkProjectNameLogSink { + + public static void main(String[] args) throws Exception { + createSinkProjectNameLogSink(); + } + + public static void createSinkProjectNameLogSink() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + LogSink sink = LogSink.newBuilder().build(); + LogSink response = configClient.createSink(parent, sink); + } + } +} +// [END logging_v2_generated_configclient_createsink_projectnamelogsink] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkStringLogSink.java new file mode 100644 index 0000000000..d2e0fc17ef --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkStringLogSink.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createsink_stringlogsink] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class CreateSinkStringLogSink { + + public static void main(String[] args) throws Exception { + createSinkStringLogSink(); + } + + public static void createSinkStringLogSink() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + LogSink sink = LogSink.newBuilder().build(); + LogSink response = configClient.createSink(parent, sink); + } + } +} +// [END logging_v2_generated_configclient_createsink_stringlogsink] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCallableFutureCallCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCallableFutureCallCreateViewRequest.java new file mode 100644 index 0000000000..fdebdb8127 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCallableFutureCallCreateViewRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.LogView; + +public class CreateViewCallableFutureCallCreateViewRequest { + + public static void main(String[] args) throws Exception { + createViewCallableFutureCallCreateViewRequest(); + } + + public static void createViewCallableFutureCallCreateViewRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + CreateViewRequest request = + CreateViewRequest.newBuilder() + .setParent("parent-995424086") + .setViewId("viewId-816632160") + .setView(LogView.newBuilder().build()) + .build(); + ApiFuture future = configClient.createViewCallable().futureCall(request); + // Do something. + LogView response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCreateViewRequest.java new file mode 100644 index 0000000000..7b1663c8be --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCreateViewRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_createview_createviewrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.LogView; + +public class CreateViewCreateViewRequest { + + public static void main(String[] args) throws Exception { + createViewCreateViewRequest(); + } + + public static void createViewCreateViewRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + CreateViewRequest request = + CreateViewRequest.newBuilder() + .setParent("parent-995424086") + .setViewId("viewId-816632160") + .setView(LogView.newBuilder().build()) + .build(); + LogView response = configClient.createView(request); + } + } +} +// [END logging_v2_generated_configclient_createview_createviewrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java new file mode 100644 index 0000000000..e958176022 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.LogBucketName; +import com.google.protobuf.Empty; + +public class DeleteBucketCallableFutureCallDeleteBucketRequest { + + public static void main(String[] args) throws Exception { + deleteBucketCallableFutureCallDeleteBucketRequest(); + } + + public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + DeleteBucketRequest request = + DeleteBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + ApiFuture future = configClient.deleteBucketCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketDeleteBucketRequest.java new file mode 100644 index 0000000000..73d314001a --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketDeleteBucketRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deletebucket_deletebucketrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.LogBucketName; +import com.google.protobuf.Empty; + +public class DeleteBucketDeleteBucketRequest { + + public static void main(String[] args) throws Exception { + deleteBucketDeleteBucketRequest(); + } + + public static void deleteBucketDeleteBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + DeleteBucketRequest request = + DeleteBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + configClient.deleteBucket(request); + } + } +} +// [END logging_v2_generated_configclient_deletebucket_deletebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java new file mode 100644 index 0000000000..722804b12e --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.LogExclusionName; +import com.google.protobuf.Empty; + +public class DeleteExclusionCallableFutureCallDeleteExclusionRequest { + + public static void main(String[] args) throws Exception { + deleteExclusionCallableFutureCallDeleteExclusionRequest(); + } + + public static void deleteExclusionCallableFutureCallDeleteExclusionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + DeleteExclusionRequest request = + DeleteExclusionRequest.newBuilder() + .setName( + LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .build(); + ApiFuture future = configClient.deleteExclusionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionDeleteExclusionRequest.java new file mode 100644 index 0000000000..2014c45da1 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionDeleteExclusionRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.LogExclusionName; +import com.google.protobuf.Empty; + +public class DeleteExclusionDeleteExclusionRequest { + + public static void main(String[] args) throws Exception { + deleteExclusionDeleteExclusionRequest(); + } + + public static void deleteExclusionDeleteExclusionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + DeleteExclusionRequest request = + DeleteExclusionRequest.newBuilder() + .setName( + LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .build(); + configClient.deleteExclusion(request); + } + } +} +// [END logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionLogExclusionName.java new file mode 100644 index 0000000000..b8783886d4 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionLogExclusionName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deleteexclusion_logexclusionname] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusionName; +import com.google.protobuf.Empty; + +public class DeleteExclusionLogExclusionName { + + public static void main(String[] args) throws Exception { + deleteExclusionLogExclusionName(); + } + + public static void deleteExclusionLogExclusionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + configClient.deleteExclusion(name); + } + } +} +// [END logging_v2_generated_configclient_deleteexclusion_logexclusionname] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionString.java new file mode 100644 index 0000000000..a74994eb4e --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deleteexclusion_string] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusionName; +import com.google.protobuf.Empty; + +public class DeleteExclusionString { + + public static void main(String[] args) throws Exception { + deleteExclusionString(); + } + + public static void deleteExclusionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString(); + configClient.deleteExclusion(name); + } + } +} +// [END logging_v2_generated_configclient_deleteexclusion_string] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkCallableFutureCallDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkCallableFutureCallDeleteSinkRequest.java new file mode 100644 index 0000000000..b52501e83a --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkCallableFutureCallDeleteSinkRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.LogSinkName; +import com.google.protobuf.Empty; + +public class DeleteSinkCallableFutureCallDeleteSinkRequest { + + public static void main(String[] args) throws Exception { + deleteSinkCallableFutureCallDeleteSinkRequest(); + } + + public static void deleteSinkCallableFutureCallDeleteSinkRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + DeleteSinkRequest request = + DeleteSinkRequest.newBuilder() + .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .build(); + ApiFuture future = configClient.deleteSinkCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkDeleteSinkRequest.java new file mode 100644 index 0000000000..dc88d18b41 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkDeleteSinkRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deletesink_deletesinkrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.LogSinkName; +import com.google.protobuf.Empty; + +public class DeleteSinkDeleteSinkRequest { + + public static void main(String[] args) throws Exception { + deleteSinkDeleteSinkRequest(); + } + + public static void deleteSinkDeleteSinkRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + DeleteSinkRequest request = + DeleteSinkRequest.newBuilder() + .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .build(); + configClient.deleteSink(request); + } + } +} +// [END logging_v2_generated_configclient_deletesink_deletesinkrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkLogSinkName.java new file mode 100644 index 0000000000..f568cae194 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkLogSinkName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deletesink_logsinkname] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSinkName; +import com.google.protobuf.Empty; + +public class DeleteSinkLogSinkName { + + public static void main(String[] args) throws Exception { + deleteSinkLogSinkName(); + } + + public static void deleteSinkLogSinkName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + configClient.deleteSink(sinkName); + } + } +} +// [END logging_v2_generated_configclient_deletesink_logsinkname] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkString.java new file mode 100644 index 0000000000..496295011b --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deletesink_string] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSinkName; +import com.google.protobuf.Empty; + +public class DeleteSinkString { + + public static void main(String[] args) throws Exception { + deleteSinkString(); + } + + public static void deleteSinkString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString(); + configClient.deleteSink(sinkName); + } + } +} +// [END logging_v2_generated_configclient_deletesink_string] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewCallableFutureCallDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewCallableFutureCallDeleteViewRequest.java new file mode 100644 index 0000000000..c351fbef0a --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewCallableFutureCallDeleteViewRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.LogViewName; +import com.google.protobuf.Empty; + +public class DeleteViewCallableFutureCallDeleteViewRequest { + + public static void main(String[] args) throws Exception { + deleteViewCallableFutureCallDeleteViewRequest(); + } + + public static void deleteViewCallableFutureCallDeleteViewRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + DeleteViewRequest request = + DeleteViewRequest.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .build(); + ApiFuture future = configClient.deleteViewCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewDeleteViewRequest.java new file mode 100644 index 0000000000..592f65210f --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewDeleteViewRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_deleteview_deleteviewrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.DeleteViewRequest; +import com.google.logging.v2.LogViewName; +import com.google.protobuf.Empty; + +public class DeleteViewDeleteViewRequest { + + public static void main(String[] args) throws Exception { + deleteViewDeleteViewRequest(); + } + + public static void deleteViewDeleteViewRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + DeleteViewRequest request = + DeleteViewRequest.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .build(); + configClient.deleteView(request); + } + } +} +// [END logging_v2_generated_configclient_deleteview_deleteviewrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java new file mode 100644 index 0000000000..c74c8be32e --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogBucketName; + +public class GetBucketCallableFutureCallGetBucketRequest { + + public static void main(String[] args) throws Exception { + getBucketCallableFutureCallGetBucketRequest(); + } + + public static void getBucketCallableFutureCallGetBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetBucketRequest request = + GetBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + ApiFuture future = configClient.getBucketCallable().futureCall(request); + // Do something. + LogBucket response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketGetBucketRequest.java new file mode 100644 index 0000000000..236e7e87eb --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketGetBucketRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getbucket_getbucketrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.GetBucketRequest; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogBucketName; + +public class GetBucketGetBucketRequest { + + public static void main(String[] args) throws Exception { + getBucketGetBucketRequest(); + } + + public static void getBucketGetBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetBucketRequest request = + GetBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + LogBucket response = configClient.getBucket(request); + } + } +} +// [END logging_v2_generated_configclient_getbucket_getbucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java new file mode 100644 index 0000000000..51577f099a --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CmekSettingsName; +import com.google.logging.v2.GetCmekSettingsRequest; + +public class GetCmekSettingsCallableFutureCallGetCmekSettingsRequest { + + public static void main(String[] args) throws Exception { + getCmekSettingsCallableFutureCallGetCmekSettingsRequest(); + } + + public static void getCmekSettingsCallableFutureCallGetCmekSettingsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetCmekSettingsRequest request = + GetCmekSettingsRequest.newBuilder() + .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) + .build(); + ApiFuture future = configClient.getCmekSettingsCallable().futureCall(request); + // Do something. + CmekSettings response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsGetCmekSettingsRequest.java new file mode 100644 index 0000000000..0bff0cc1a1 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsGetCmekSettingsRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CmekSettingsName; +import com.google.logging.v2.GetCmekSettingsRequest; + +public class GetCmekSettingsGetCmekSettingsRequest { + + public static void main(String[] args) throws Exception { + getCmekSettingsGetCmekSettingsRequest(); + } + + public static void getCmekSettingsGetCmekSettingsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetCmekSettingsRequest request = + GetCmekSettingsRequest.newBuilder() + .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) + .build(); + CmekSettings response = configClient.getCmekSettings(request); + } + } +} +// [END logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionCallableFutureCallGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionCallableFutureCallGetExclusionRequest.java new file mode 100644 index 0000000000..4d032976b4 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionCallableFutureCallGetExclusionRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; + +public class GetExclusionCallableFutureCallGetExclusionRequest { + + public static void main(String[] args) throws Exception { + getExclusionCallableFutureCallGetExclusionRequest(); + } + + public static void getExclusionCallableFutureCallGetExclusionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetExclusionRequest request = + GetExclusionRequest.newBuilder() + .setName( + LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .build(); + ApiFuture future = configClient.getExclusionCallable().futureCall(request); + // Do something. + LogExclusion response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionGetExclusionRequest.java new file mode 100644 index 0000000000..a122fb3c4c --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionGetExclusionRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getexclusion_getexclusionrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; + +public class GetExclusionGetExclusionRequest { + + public static void main(String[] args) throws Exception { + getExclusionGetExclusionRequest(); + } + + public static void getExclusionGetExclusionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetExclusionRequest request = + GetExclusionRequest.newBuilder() + .setName( + LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .build(); + LogExclusion response = configClient.getExclusion(request); + } + } +} +// [END logging_v2_generated_configclient_getexclusion_getexclusionrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionLogExclusionName.java new file mode 100644 index 0000000000..ad0511c0b3 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionLogExclusionName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getexclusion_logexclusionname] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; + +public class GetExclusionLogExclusionName { + + public static void main(String[] args) throws Exception { + getExclusionLogExclusionName(); + } + + public static void getExclusionLogExclusionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + LogExclusion response = configClient.getExclusion(name); + } + } +} +// [END logging_v2_generated_configclient_getexclusion_logexclusionname] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionString.java new file mode 100644 index 0000000000..e19dcde937 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getexclusion_string] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; + +public class GetExclusionString { + + public static void main(String[] args) throws Exception { + getExclusionString(); + } + + public static void getExclusionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString(); + LogExclusion response = configClient.getExclusion(name); + } + } +} +// [END logging_v2_generated_configclient_getexclusion_string] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkCallableFutureCallGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkCallableFutureCallGetSinkRequest.java new file mode 100644 index 0000000000..0d8a0bd641 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkCallableFutureCallGetSinkRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; + +public class GetSinkCallableFutureCallGetSinkRequest { + + public static void main(String[] args) throws Exception { + getSinkCallableFutureCallGetSinkRequest(); + } + + public static void getSinkCallableFutureCallGetSinkRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetSinkRequest request = + GetSinkRequest.newBuilder() + .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .build(); + ApiFuture future = configClient.getSinkCallable().futureCall(request); + // Do something. + LogSink response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkGetSinkRequest.java new file mode 100644 index 0000000000..82e8bf1311 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkGetSinkRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getsink_getsinkrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; + +public class GetSinkGetSinkRequest { + + public static void main(String[] args) throws Exception { + getSinkGetSinkRequest(); + } + + public static void getSinkGetSinkRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetSinkRequest request = + GetSinkRequest.newBuilder() + .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .build(); + LogSink response = configClient.getSink(request); + } + } +} +// [END logging_v2_generated_configclient_getsink_getsinkrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkLogSinkName.java new file mode 100644 index 0000000000..9f1e67ff3f --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkLogSinkName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getsink_logsinkname] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; + +public class GetSinkLogSinkName { + + public static void main(String[] args) throws Exception { + getSinkLogSinkName(); + } + + public static void getSinkLogSinkName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + LogSink response = configClient.getSink(sinkName); + } + } +} +// [END logging_v2_generated_configclient_getsink_logsinkname] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkString.java new file mode 100644 index 0000000000..2e7c8a98de --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getsink_string] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; + +public class GetSinkString { + + public static void main(String[] args) throws Exception { + getSinkString(); + } + + public static void getSinkString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString(); + LogSink response = configClient.getSink(sinkName); + } + } +} +// [END logging_v2_generated_configclient_getsink_string] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewCallableFutureCallGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewCallableFutureCallGetViewRequest.java new file mode 100644 index 0000000000..993725fce9 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewCallableFutureCallGetViewRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.LogView; +import com.google.logging.v2.LogViewName; + +public class GetViewCallableFutureCallGetViewRequest { + + public static void main(String[] args) throws Exception { + getViewCallableFutureCallGetViewRequest(); + } + + public static void getViewCallableFutureCallGetViewRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetViewRequest request = + GetViewRequest.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .build(); + ApiFuture future = configClient.getViewCallable().futureCall(request); + // Do something. + LogView response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewGetViewRequest.java new file mode 100644 index 0000000000..cc144ab168 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewGetViewRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_getview_getviewrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.LogView; +import com.google.logging.v2.LogViewName; + +public class GetViewGetViewRequest { + + public static void main(String[] args) throws Exception { + getViewGetViewRequest(); + } + + public static void getViewGetViewRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + GetViewRequest request = + GetViewRequest.newBuilder() + .setName( + LogViewName.ofProjectLocationBucketViewName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") + .toString()) + .build(); + LogView response = configClient.getView(request); + } + } +} +// [END logging_v2_generated_configclient_getview_getviewrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsBillingAccountLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsBillingAccountLocationNameIterateAll.java new file mode 100644 index 0000000000..a851c6e8bd --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsBillingAccountLocationNameIterateAll.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.BillingAccountLocationName; +import com.google.logging.v2.LogBucket; + +public class ListBucketsBillingAccountLocationNameIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsBillingAccountLocationNameIterateAll(); + } + + public static void listBucketsBillingAccountLocationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + BillingAccountLocationName parent = + BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]"); + for (LogBucket element : configClient.listBuckets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java new file mode 100644 index 0000000000..143d9baab9 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.common.base.Strings; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.ListBucketsResponse; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; + +public class ListBucketsCallableCallListBucketsRequest { + + public static void main(String[] args) throws Exception { + listBucketsCallableCallListBucketsRequest(); + } + + public static void listBucketsCallableCallListBucketsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListBucketsResponse response = configClient.listBucketsCallable().call(request); + for (LogBucket element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsFolderLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsFolderLocationNameIterateAll.java new file mode 100644 index 0000000000..5c874ac6a6 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsFolderLocationNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.FolderLocationName; +import com.google.logging.v2.LogBucket; + +public class ListBucketsFolderLocationNameIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsFolderLocationNameIterateAll(); + } + + public static void listBucketsFolderLocationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + for (LogBucket element : configClient.listBuckets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java new file mode 100644 index 0000000000..5cbc40112b --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; + +public class ListBucketsListBucketsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsListBucketsRequestIterateAll(); + } + + public static void listBucketsListBucketsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (LogBucket element : configClient.listBuckets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsLocationNameIterateAll.java new file mode 100644 index 0000000000..7460d01d86 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsLocationNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listbuckets_locationnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; + +public class ListBucketsLocationNameIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsLocationNameIterateAll(); + } + + public static void listBucketsLocationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (LogBucket element : configClient.listBuckets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listbuckets_locationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsOrganizationLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsOrganizationLocationNameIterateAll.java new file mode 100644 index 0000000000..edd9f86ff8 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsOrganizationLocationNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.OrganizationLocationName; + +public class ListBucketsOrganizationLocationNameIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsOrganizationLocationNameIterateAll(); + } + + public static void listBucketsOrganizationLocationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (LogBucket element : configClient.listBuckets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java new file mode 100644 index 0000000000..97deda2041 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.ListBucketsRequest; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; + +public class ListBucketsPagedCallableFutureCallListBucketsRequest { + + public static void main(String[] args) throws Exception { + listBucketsPagedCallableFutureCallListBucketsRequest(); + } + + public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = configClient.listBucketsPagedCallable().futureCall(request); + // Do something. + for (LogBucket element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsStringIterateAll.java new file mode 100644 index 0000000000..188594259b --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listbuckets_stringiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LocationName; +import com.google.logging.v2.LogBucket; + +public class ListBucketsStringIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsStringIterateAll(); + } + + public static void listBucketsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (LogBucket element : configClient.listBuckets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listbuckets_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsBillingAccountNameIterateAll.java new file mode 100644 index 0000000000..668c44f979 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsBillingAccountNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.LogExclusion; + +public class ListExclusionsBillingAccountNameIterateAll { + + public static void main(String[] args) throws Exception { + listExclusionsBillingAccountNameIterateAll(); + } + + public static void listExclusionsBillingAccountNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsCallableCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsCallableCallListExclusionsRequest.java new file mode 100644 index 0000000000..a86c03c5ed --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsCallableCallListExclusionsRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.common.base.Strings; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class ListExclusionsCallableCallListExclusionsRequest { + + public static void main(String[] args) throws Exception { + listExclusionsCallableCallListExclusionsRequest(); + } + + public static void listExclusionsCallableCallListExclusionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListExclusionsRequest request = + ListExclusionsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListExclusionsResponse response = configClient.listExclusionsCallable().call(request); + for (LogExclusion element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsFolderNameIterateAll.java new file mode 100644 index 0000000000..6a60a66c74 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsFolderNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listexclusions_foldernameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.FolderName; +import com.google.logging.v2.LogExclusion; + +public class ListExclusionsFolderNameIterateAll { + + public static void main(String[] args) throws Exception { + listExclusionsFolderNameIterateAll(); + } + + public static void listExclusionsFolderNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + FolderName parent = FolderName.of("[FOLDER]"); + for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listexclusions_foldernameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsListExclusionsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsListExclusionsRequestIterateAll.java new file mode 100644 index 0000000000..fed8ac565f --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsListExclusionsRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class ListExclusionsListExclusionsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listExclusionsListExclusionsRequestIterateAll(); + } + + public static void listExclusionsListExclusionsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListExclusionsRequest request = + ListExclusionsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (LogExclusion element : configClient.listExclusions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsOrganizationNameIterateAll.java new file mode 100644 index 0000000000..9904bb29e2 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsOrganizationNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listexclusions_organizationnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.OrganizationName; + +public class ListExclusionsOrganizationNameIterateAll { + + public static void main(String[] args) throws Exception { + listExclusionsOrganizationNameIterateAll(); + } + + public static void listExclusionsOrganizationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listexclusions_organizationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java new file mode 100644 index 0000000000..a682d8d258 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class ListExclusionsPagedCallableFutureCallListExclusionsRequest { + + public static void main(String[] args) throws Exception { + listExclusionsPagedCallableFutureCallListExclusionsRequest(); + } + + public static void listExclusionsPagedCallableFutureCallListExclusionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListExclusionsRequest request = + ListExclusionsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = + configClient.listExclusionsPagedCallable().futureCall(request); + // Do something. + for (LogExclusion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsProjectNameIterateAll.java new file mode 100644 index 0000000000..d10e03c4ec --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listexclusions_projectnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class ListExclusionsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listExclusionsProjectNameIterateAll(); + } + + public static void listExclusionsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listexclusions_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsStringIterateAll.java new file mode 100644 index 0000000000..3885d3cd0b --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listexclusions_stringiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.ProjectName; + +public class ListExclusionsStringIterateAll { + + public static void main(String[] args) throws Exception { + listExclusionsStringIterateAll(); + } + + public static void listExclusionsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listexclusions_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksBillingAccountNameIterateAll.java new file mode 100644 index 0000000000..a9c0ff1931 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksBillingAccountNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listsinks_billingaccountnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.LogSink; + +public class ListSinksBillingAccountNameIterateAll { + + public static void main(String[] args) throws Exception { + listSinksBillingAccountNameIterateAll(); + } + + public static void listSinksBillingAccountNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + for (LogSink element : configClient.listSinks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listsinks_billingaccountnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksCallableCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksCallableCallListSinksRequest.java new file mode 100644 index 0000000000..3c2da13c05 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksCallableCallListSinksRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.common.base.Strings; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class ListSinksCallableCallListSinksRequest { + + public static void main(String[] args) throws Exception { + listSinksCallableCallListSinksRequest(); + } + + public static void listSinksCallableCallListSinksRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListSinksRequest request = + ListSinksRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListSinksResponse response = configClient.listSinksCallable().call(request); + for (LogSink element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksFolderNameIterateAll.java new file mode 100644 index 0000000000..bcdb2cc221 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksFolderNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listsinks_foldernameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.FolderName; +import com.google.logging.v2.LogSink; + +public class ListSinksFolderNameIterateAll { + + public static void main(String[] args) throws Exception { + listSinksFolderNameIterateAll(); + } + + public static void listSinksFolderNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + FolderName parent = FolderName.of("[FOLDER]"); + for (LogSink element : configClient.listSinks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listsinks_foldernameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksListSinksRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksListSinksRequestIterateAll.java new file mode 100644 index 0000000000..b021a8e7f7 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksListSinksRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listsinks_listsinksrequestiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class ListSinksListSinksRequestIterateAll { + + public static void main(String[] args) throws Exception { + listSinksListSinksRequestIterateAll(); + } + + public static void listSinksListSinksRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListSinksRequest request = + ListSinksRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (LogSink element : configClient.listSinks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listsinks_listsinksrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksOrganizationNameIterateAll.java new file mode 100644 index 0000000000..e5268c2ee7 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksOrganizationNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listsinks_organizationnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.OrganizationName; + +public class ListSinksOrganizationNameIterateAll { + + public static void main(String[] args) throws Exception { + listSinksOrganizationNameIterateAll(); + } + + public static void listSinksOrganizationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + for (LogSink element : configClient.listSinks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listsinks_organizationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksPagedCallableFutureCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksPagedCallableFutureCallListSinksRequest.java new file mode 100644 index 0000000000..c10fab4624 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksPagedCallableFutureCallListSinksRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class ListSinksPagedCallableFutureCallListSinksRequest { + + public static void main(String[] args) throws Exception { + listSinksPagedCallableFutureCallListSinksRequest(); + } + + public static void listSinksPagedCallableFutureCallListSinksRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListSinksRequest request = + ListSinksRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = configClient.listSinksPagedCallable().futureCall(request); + // Do something. + for (LogSink element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksProjectNameIterateAll.java new file mode 100644 index 0000000000..5da4ab00fe --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listsinks_projectnameiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class ListSinksProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listSinksProjectNameIterateAll(); + } + + public static void listSinksProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (LogSink element : configClient.listSinks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listsinks_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksStringIterateAll.java new file mode 100644 index 0000000000..87cb103b8d --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listsinks_stringiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.ProjectName; + +public class ListSinksStringIterateAll { + + public static void main(String[] args) throws Exception { + listSinksStringIterateAll(); + } + + public static void listSinksStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (LogSink element : configClient.listSinks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listsinks_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsCallableCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsCallableCallListViewsRequest.java new file mode 100644 index 0000000000..c7b9ec67a4 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsCallableCallListViewsRequest.java @@ -0,0 +1,56 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listviews_callablecalllistviewsrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.common.base.Strings; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.ListViewsResponse; +import com.google.logging.v2.LogView; + +public class ListViewsCallableCallListViewsRequest { + + public static void main(String[] args) throws Exception { + listViewsCallableCallListViewsRequest(); + } + + public static void listViewsCallableCallListViewsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListViewsRequest request = + ListViewsRequest.newBuilder() + .setParent("parent-995424086") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListViewsResponse response = configClient.listViewsCallable().call(request); + for (LogView element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END logging_v2_generated_configclient_listviews_callablecalllistviewsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsListViewsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsListViewsRequestIterateAll.java new file mode 100644 index 0000000000..c6ced98623 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsListViewsRequestIterateAll.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listviews_listviewsrequestiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.LogView; + +public class ListViewsListViewsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listViewsListViewsRequestIterateAll(); + } + + public static void listViewsListViewsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListViewsRequest request = + ListViewsRequest.newBuilder() + .setParent("parent-995424086") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (LogView element : configClient.listViews(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listviews_listviewsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsPagedCallableFutureCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsPagedCallableFutureCallListViewsRequest.java new file mode 100644 index 0000000000..c0c365f9f7 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsPagedCallableFutureCallListViewsRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.ListViewsRequest; +import com.google.logging.v2.LogView; + +public class ListViewsPagedCallableFutureCallListViewsRequest { + + public static void main(String[] args) throws Exception { + listViewsPagedCallableFutureCallListViewsRequest(); + } + + public static void listViewsPagedCallableFutureCallListViewsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + ListViewsRequest request = + ListViewsRequest.newBuilder() + .setParent("parent-995424086") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = configClient.listViewsPagedCallable().futureCall(request); + // Do something. + for (LogView element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsStringIterateAll.java new file mode 100644 index 0000000000..8984885521 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsStringIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_listviews_stringiterateall] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogView; + +public class ListViewsStringIterateAll { + + public static void main(String[] args) throws Exception { + listViewsStringIterateAll(); + } + + public static void listViewsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String parent = "parent-995424086"; + for (LogView element : configClient.listViews(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_configclient_listviews_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java new file mode 100644 index 0000000000..e4e1e81796 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogBucketName; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.protobuf.Empty; + +public class UndeleteBucketCallableFutureCallUndeleteBucketRequest { + + public static void main(String[] args) throws Exception { + undeleteBucketCallableFutureCallUndeleteBucketRequest(); + } + + public static void undeleteBucketCallableFutureCallUndeleteBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UndeleteBucketRequest request = + UndeleteBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + ApiFuture future = configClient.undeleteBucketCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketUndeleteBucketRequest.java new file mode 100644 index 0000000000..71cc2d4f86 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketUndeleteBucketRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_undeletebucket_undeletebucketrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogBucketName; +import com.google.logging.v2.UndeleteBucketRequest; +import com.google.protobuf.Empty; + +public class UndeleteBucketUndeleteBucketRequest { + + public static void main(String[] args) throws Exception { + undeleteBucketUndeleteBucketRequest(); + } + + public static void undeleteBucketUndeleteBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UndeleteBucketRequest request = + UndeleteBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .build(); + configClient.undeleteBucket(request); + } + } +} +// [END logging_v2_generated_configclient_undeletebucket_undeletebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java new file mode 100644 index 0000000000..d647082519 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogBucketName; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.protobuf.FieldMask; + +public class UpdateBucketCallableFutureCallUpdateBucketRequest { + + public static void main(String[] args) throws Exception { + updateBucketCallableFutureCallUpdateBucketRequest(); + } + + public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setBucket(LogBucket.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = configClient.updateBucketCallable().futureCall(request); + // Do something. + LogBucket response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketUpdateBucketRequest.java new file mode 100644 index 0000000000..c635cbd20c --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketUpdateBucketRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatebucket_updatebucketrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogBucketName; +import com.google.logging.v2.UpdateBucketRequest; +import com.google.protobuf.FieldMask; + +public class UpdateBucketUpdateBucketRequest { + + public static void main(String[] args) throws Exception { + updateBucketUpdateBucketRequest(); + } + + public static void updateBucketUpdateBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setBucket(LogBucket.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + LogBucket response = configClient.updateBucket(request); + } + } +} +// [END logging_v2_generated_configclient_updatebucket_updatebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java new file mode 100644 index 0000000000..a3af75202c --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.protobuf.FieldMask; + +public class UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest { + + public static void main(String[] args) throws Exception { + updateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest(); + } + + public static void updateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateCmekSettingsRequest request = + UpdateCmekSettingsRequest.newBuilder() + .setName("name3373707") + .setCmekSettings(CmekSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + configClient.updateCmekSettingsCallable().futureCall(request); + // Do something. + CmekSettings response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java new file mode 100644 index 0000000000..d63dcc1af4 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.UpdateCmekSettingsRequest; +import com.google.protobuf.FieldMask; + +public class UpdateCmekSettingsUpdateCmekSettingsRequest { + + public static void main(String[] args) throws Exception { + updateCmekSettingsUpdateCmekSettingsRequest(); + } + + public static void updateCmekSettingsUpdateCmekSettingsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateCmekSettingsRequest request = + UpdateCmekSettingsRequest.newBuilder() + .setName("name3373707") + .setCmekSettings(CmekSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CmekSettings response = configClient.updateCmekSettings(request); + } + } +} +// [END logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java new file mode 100644 index 0000000000..ad2f7db0ce --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.protobuf.FieldMask; + +public class UpdateExclusionCallableFutureCallUpdateExclusionRequest { + + public static void main(String[] args) throws Exception { + updateExclusionCallableFutureCallUpdateExclusionRequest(); + } + + public static void updateExclusionCallableFutureCallUpdateExclusionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateExclusionRequest request = + UpdateExclusionRequest.newBuilder() + .setName( + LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setExclusion(LogExclusion.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = configClient.updateExclusionCallable().futureCall(request); + // Do something. + LogExclusion response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java new file mode 100644 index 0000000000..842e8f6a2f --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; +import com.google.protobuf.FieldMask; + +public class UpdateExclusionLogExclusionNameLogExclusionFieldMask { + + public static void main(String[] args) throws Exception { + updateExclusionLogExclusionNameLogExclusionFieldMask(); + } + + public static void updateExclusionLogExclusionNameLogExclusionFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LogExclusion response = configClient.updateExclusion(name, exclusion, updateMask); + } + } +} +// [END logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionStringLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionStringLogExclusionFieldMask.java new file mode 100644 index 0000000000..d93af3cb5f --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionStringLogExclusionFieldMask.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; +import com.google.protobuf.FieldMask; + +public class UpdateExclusionStringLogExclusionFieldMask { + + public static void main(String[] args) throws Exception { + updateExclusionStringLogExclusionFieldMask(); + } + + public static void updateExclusionStringLogExclusionFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString(); + LogExclusion exclusion = LogExclusion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LogExclusion response = configClient.updateExclusion(name, exclusion, updateMask); + } + } +} +// [END logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionUpdateExclusionRequest.java new file mode 100644 index 0000000000..1feb799b29 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionUpdateExclusionRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updateexclusion_updateexclusionrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogExclusion; +import com.google.logging.v2.LogExclusionName; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.protobuf.FieldMask; + +public class UpdateExclusionUpdateExclusionRequest { + + public static void main(String[] args) throws Exception { + updateExclusionUpdateExclusionRequest(); + } + + public static void updateExclusionUpdateExclusionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateExclusionRequest request = + UpdateExclusionRequest.newBuilder() + .setName( + LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) + .setExclusion(LogExclusion.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + LogExclusion response = configClient.updateExclusion(request); + } + } +} +// [END logging_v2_generated_configclient_updateexclusion_updateexclusionrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkCallableFutureCallUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkCallableFutureCallUpdateSinkRequest.java new file mode 100644 index 0000000000..d3a3dc0367 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkCallableFutureCallUpdateSinkRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.protobuf.FieldMask; + +public class UpdateSinkCallableFutureCallUpdateSinkRequest { + + public static void main(String[] args) throws Exception { + updateSinkCallableFutureCallUpdateSinkRequest(); + } + + public static void updateSinkCallableFutureCallUpdateSinkRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateSinkRequest request = + UpdateSinkRequest.newBuilder() + .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setSink(LogSink.newBuilder().build()) + .setUniqueWriterIdentity(true) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = configClient.updateSinkCallable().futureCall(request); + // Do something. + LogSink response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSink.java new file mode 100644 index 0000000000..d3a4dd38df --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSink.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatesink_logsinknamelogsink] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; + +public class UpdateSinkLogSinkNameLogSink { + + public static void main(String[] args) throws Exception { + updateSinkLogSinkNameLogSink(); + } + + public static void updateSinkLogSinkNameLogSink() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + LogSink sink = LogSink.newBuilder().build(); + LogSink response = configClient.updateSink(sinkName, sink); + } + } +} +// [END logging_v2_generated_configclient_updatesink_logsinknamelogsink] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSinkFieldMask.java new file mode 100644 index 0000000000..17432914f0 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSinkFieldMask.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; +import com.google.protobuf.FieldMask; + +public class UpdateSinkLogSinkNameLogSinkFieldMask { + + public static void main(String[] args) throws Exception { + updateSinkLogSinkNameLogSinkFieldMask(); + } + + public static void updateSinkLogSinkNameLogSinkFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); + LogSink sink = LogSink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LogSink response = configClient.updateSink(sinkName, sink, updateMask); + } + } +} +// [END logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSink.java new file mode 100644 index 0000000000..c859464e70 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSink.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatesink_stringlogsink] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; + +public class UpdateSinkStringLogSink { + + public static void main(String[] args) throws Exception { + updateSinkStringLogSink(); + } + + public static void updateSinkStringLogSink() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString(); + LogSink sink = LogSink.newBuilder().build(); + LogSink response = configClient.updateSink(sinkName, sink); + } + } +} +// [END logging_v2_generated_configclient_updatesink_stringlogsink] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSinkFieldMask.java new file mode 100644 index 0000000000..4872e66a13 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSinkFieldMask.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; +import com.google.protobuf.FieldMask; + +public class UpdateSinkStringLogSinkFieldMask { + + public static void main(String[] args) throws Exception { + updateSinkStringLogSinkFieldMask(); + } + + public static void updateSinkStringLogSinkFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString(); + LogSink sink = LogSink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LogSink response = configClient.updateSink(sinkName, sink, updateMask); + } + } +} +// [END logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkUpdateSinkRequest.java new file mode 100644 index 0000000000..f36ba4393a --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkUpdateSinkRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updatesink_updatesinkrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogSink; +import com.google.logging.v2.LogSinkName; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.protobuf.FieldMask; + +public class UpdateSinkUpdateSinkRequest { + + public static void main(String[] args) throws Exception { + updateSinkUpdateSinkRequest(); + } + + public static void updateSinkUpdateSinkRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateSinkRequest request = + UpdateSinkRequest.newBuilder() + .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + .setSink(LogSink.newBuilder().build()) + .setUniqueWriterIdentity(true) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + LogSink response = configClient.updateSink(request); + } + } +} +// [END logging_v2_generated_configclient_updatesink_updatesinkrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewCallableFutureCallUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewCallableFutureCallUpdateViewRequest.java new file mode 100644 index 0000000000..479a7faf73 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewCallableFutureCallUpdateViewRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogView; +import com.google.logging.v2.UpdateViewRequest; +import com.google.protobuf.FieldMask; + +public class UpdateViewCallableFutureCallUpdateViewRequest { + + public static void main(String[] args) throws Exception { + updateViewCallableFutureCallUpdateViewRequest(); + } + + public static void updateViewCallableFutureCallUpdateViewRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateViewRequest request = + UpdateViewRequest.newBuilder() + .setName("name3373707") + .setView(LogView.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = configClient.updateViewCallable().futureCall(request); + // Do something. + LogView response = future.get(); + } + } +} +// [END logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewUpdateViewRequest.java new file mode 100644 index 0000000000..73552c3f3e --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewUpdateViewRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configclient_updateview_updateviewrequest] +import com.google.cloud.logging.v2.ConfigClient; +import com.google.logging.v2.LogView; +import com.google.logging.v2.UpdateViewRequest; +import com.google.protobuf.FieldMask; + +public class UpdateViewUpdateViewRequest { + + public static void main(String[] args) throws Exception { + updateViewUpdateViewRequest(); + } + + public static void updateViewUpdateViewRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConfigClient configClient = ConfigClient.create()) { + UpdateViewRequest request = + UpdateViewRequest.newBuilder() + .setName("name3373707") + .setView(LogView.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + LogView response = configClient.updateView(request); + } + } +} +// [END logging_v2_generated_configclient_updateview_updateviewrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigSettings.java new file mode 100644 index 0000000000..9b4a2c5168 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings] +import com.google.cloud.logging.v2.ConfigSettings; +import java.time.Duration; + +public class GetBucketSettingsSetRetrySettingsConfigSettings { + + public static void main(String[] args) throws Exception { + getBucketSettingsSetRetrySettingsConfigSettings(); + } + + public static void getBucketSettingsSetRetrySettingsConfigSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder(); + configSettingsBuilder + .getBucketSettings() + .setRetrySettings( + configSettingsBuilder + .getBucketSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConfigSettings configSettings = configSettingsBuilder.build(); + } +} +// [END logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings1.java new file mode 100644 index 0000000000..7e6b14526b --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_create_loggingsettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.cloud.logging.v2.LoggingSettings; +import com.google.cloud.logging.v2.myCredentials; + +public class CreateLoggingSettings1 { + + public static void main(String[] args) throws Exception { + createLoggingSettings1(); + } + + public static void createLoggingSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + LoggingSettings loggingSettings = + LoggingSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + LoggingClient loggingClient = LoggingClient.create(loggingSettings); + } +} +// [END logging_v2_generated_loggingclient_create_loggingsettings1] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings2.java new file mode 100644 index 0000000000..3a20eeb187 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings2.java @@ -0,0 +1,36 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_create_loggingsettings2] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.cloud.logging.v2.LoggingSettings; +import com.google.cloud.logging.v2.myEndpoint; + +public class CreateLoggingSettings2 { + + public static void main(String[] args) throws Exception { + createLoggingSettings2(); + } + + public static void createLoggingSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + LoggingSettings loggingSettings = LoggingSettings.newBuilder().setEndpoint(myEndpoint).build(); + LoggingClient loggingClient = LoggingClient.create(loggingSettings); + } +} +// [END logging_v2_generated_loggingclient_create_loggingsettings2] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogCallableFutureCallDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogCallableFutureCallDeleteLogRequest.java new file mode 100644 index 0000000000..dd7c2888e4 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogCallableFutureCallDeleteLogRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.LogName; +import com.google.protobuf.Empty; + +public class DeleteLogCallableFutureCallDeleteLogRequest { + + public static void main(String[] args) throws Exception { + deleteLogCallableFutureCallDeleteLogRequest(); + } + + public static void deleteLogCallableFutureCallDeleteLogRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + DeleteLogRequest request = + DeleteLogRequest.newBuilder() + .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString()) + .build(); + ApiFuture future = loggingClient.deleteLogCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogDeleteLogRequest.java new file mode 100644 index 0000000000..87423bad56 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogDeleteLogRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_deletelog_deletelogrequest] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.LogName; +import com.google.protobuf.Empty; + +public class DeleteLogDeleteLogRequest { + + public static void main(String[] args) throws Exception { + deleteLogDeleteLogRequest(); + } + + public static void deleteLogDeleteLogRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + DeleteLogRequest request = + DeleteLogRequest.newBuilder() + .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString()) + .build(); + loggingClient.deleteLog(request); + } + } +} +// [END logging_v2_generated_loggingclient_deletelog_deletelogrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogLogName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogLogName.java new file mode 100644 index 0000000000..d122bb63f0 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogLogName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_deletelog_logname] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.LogName; +import com.google.protobuf.Empty; + +public class DeleteLogLogName { + + public static void main(String[] args) throws Exception { + deleteLogLogName(); + } + + public static void deleteLogLogName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); + loggingClient.deleteLog(logName); + } + } +} +// [END logging_v2_generated_loggingclient_deletelog_logname] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogString.java new file mode 100644 index 0000000000..23a0ca96b2 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_deletelog_string] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.LogName; +import com.google.protobuf.Empty; + +public class DeleteLogString { + + public static void main(String[] args) throws Exception { + deleteLogString(); + } + + public static void deleteLogString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString(); + loggingClient.deleteLog(logName); + } + } +} +// [END logging_v2_generated_loggingclient_deletelog_string] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesCallableCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesCallableCallListLogEntriesRequest.java new file mode 100644 index 0000000000..71aa58c3b1 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesCallableCallListLogEntriesRequest.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.common.base.Strings; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.LogEntry; +import java.util.ArrayList; + +public class ListLogEntriesCallableCallListLogEntriesRequest { + + public static void main(String[] args) throws Exception { + listLogEntriesCallableCallListLogEntriesRequest(); + } + + public static void listLogEntriesCallableCallListLogEntriesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListLogEntriesRequest request = + ListLogEntriesRequest.newBuilder() + .addAllResourceNames(new ArrayList()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLogEntriesResponse response = loggingClient.listLogEntriesCallable().call(request); + for (LogEntry element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListLogEntriesRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListLogEntriesRequestIterateAll.java new file mode 100644 index 0000000000..615e440cb5 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListLogEntriesRequestIterateAll.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.LogEntry; +import java.util.ArrayList; + +public class ListLogEntriesListLogEntriesRequestIterateAll { + + public static void main(String[] args) throws Exception { + listLogEntriesListLogEntriesRequestIterateAll(); + } + + public static void listLogEntriesListLogEntriesRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListLogEntriesRequest request = + ListLogEntriesRequest.newBuilder() + .addAllResourceNames(new ArrayList()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (LogEntry element : loggingClient.listLogEntries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListStringStringStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListStringStringStringIterateAll.java new file mode 100644 index 0000000000..217dbf166e --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListStringStringStringIterateAll.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.LogEntry; +import java.util.ArrayList; +import java.util.List; + +public class ListLogEntriesListStringStringStringIterateAll { + + public static void main(String[] args) throws Exception { + listLogEntriesListStringStringStringIterateAll(); + } + + public static void listLogEntriesListStringStringStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + List resourceNames = new ArrayList<>(); + String filter = "filter-1274492040"; + String orderBy = "orderBy-1207110587"; + for (LogEntry element : + loggingClient.listLogEntries(resourceNames, filter, orderBy).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java new file mode 100644 index 0000000000..88c240a2b2 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.LogEntry; +import java.util.ArrayList; + +public class ListLogEntriesPagedCallableFutureCallListLogEntriesRequest { + + public static void main(String[] args) throws Exception { + listLogEntriesPagedCallableFutureCallListLogEntriesRequest(); + } + + public static void listLogEntriesPagedCallableFutureCallListLogEntriesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListLogEntriesRequest request = + ListLogEntriesRequest.newBuilder() + .addAllResourceNames(new ArrayList()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = loggingClient.listLogEntriesPagedCallable().futureCall(request); + // Do something. + for (LogEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsBillingAccountNameIterateAll.java new file mode 100644 index 0000000000..d9d7b676a1 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsBillingAccountNameIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.BillingAccountName; + +public class ListLogsBillingAccountNameIterateAll { + + public static void main(String[] args) throws Exception { + listLogsBillingAccountNameIterateAll(); + } + + public static void listLogsBillingAccountNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); + for (String element : loggingClient.listLogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsCallableCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsCallableCallListLogsRequest.java new file mode 100644 index 0000000000..d5c38b23eb --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsCallableCallListLogsRequest.java @@ -0,0 +1,58 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.common.base.Strings; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ProjectName; +import java.util.ArrayList; + +public class ListLogsCallableCallListLogsRequest { + + public static void main(String[] args) throws Exception { + listLogsCallableCallListLogsRequest(); + } + + public static void listLogsCallableCallListLogsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListLogsRequest request = + ListLogsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .addAllResourceNames(new ArrayList()) + .build(); + while (true) { + ListLogsResponse response = loggingClient.listLogsCallable().call(request); + for (String element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsFolderNameIterateAll.java new file mode 100644 index 0000000000..13b572548d --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsFolderNameIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogs_foldernameiterateall] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.FolderName; + +public class ListLogsFolderNameIterateAll { + + public static void main(String[] args) throws Exception { + listLogsFolderNameIterateAll(); + } + + public static void listLogsFolderNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + FolderName parent = FolderName.of("[FOLDER]"); + for (String element : loggingClient.listLogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogs_foldernameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsListLogsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsListLogsRequestIterateAll.java new file mode 100644 index 0000000000..a7c50788bd --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsListLogsRequestIterateAll.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ProjectName; +import java.util.ArrayList; + +public class ListLogsListLogsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listLogsListLogsRequestIterateAll(); + } + + public static void listLogsListLogsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListLogsRequest request = + ListLogsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .addAllResourceNames(new ArrayList()) + .build(); + for (String element : loggingClient.listLogs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsOrganizationNameIterateAll.java new file mode 100644 index 0000000000..ef4008b273 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsOrganizationNameIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogs_organizationnameiterateall] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.OrganizationName; + +public class ListLogsOrganizationNameIterateAll { + + public static void main(String[] args) throws Exception { + listLogsOrganizationNameIterateAll(); + } + + public static void listLogsOrganizationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + for (String element : loggingClient.listLogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogs_organizationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsPagedCallableFutureCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsPagedCallableFutureCallListLogsRequest.java new file mode 100644 index 0000000000..12201ed59c --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsPagedCallableFutureCallListLogsRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ProjectName; +import java.util.ArrayList; + +public class ListLogsPagedCallableFutureCallListLogsRequest { + + public static void main(String[] args) throws Exception { + listLogsPagedCallableFutureCallListLogsRequest(); + } + + public static void listLogsPagedCallableFutureCallListLogsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListLogsRequest request = + ListLogsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .addAllResourceNames(new ArrayList()) + .build(); + ApiFuture future = loggingClient.listLogsPagedCallable().futureCall(request); + // Do something. + for (String element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsProjectNameIterateAll.java new file mode 100644 index 0000000000..9145a1ec11 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsProjectNameIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogs_projectnameiterateall] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.ProjectName; + +public class ListLogsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listLogsProjectNameIterateAll(); + } + + public static void listLogsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (String element : loggingClient.listLogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogs_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsStringIterateAll.java new file mode 100644 index 0000000000..f4f881a39f --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsStringIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listlogs_stringiterateall] +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.ProjectName; + +public class ListLogsStringIterateAll { + + public static void main(String[] args) throws Exception { + listLogsStringIterateAll(); + } + + public static void listLogsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (String element : loggingClient.listLogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listlogs_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java new file mode 100644 index 0000000000..046e2d5bf7 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java @@ -0,0 +1,58 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest] +import com.google.api.MonitoredResourceDescriptor; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.common.base.Strings; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; + +public class ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest { + + public static void main(String[] args) throws Exception { + listMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest(); + } + + public static void + listMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListMonitoredResourceDescriptorsRequest request = + ListMonitoredResourceDescriptorsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListMonitoredResourceDescriptorsResponse response = + loggingClient.listMonitoredResourceDescriptorsCallable().call(request); + for (MonitoredResourceDescriptor element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java new file mode 100644 index 0000000000..d4e4d855fa --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall] +import com.google.api.MonitoredResourceDescriptor; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; + +public class ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll(); + } + + public static void + listMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListMonitoredResourceDescriptorsRequest request = + ListMonitoredResourceDescriptorsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (MonitoredResourceDescriptor element : + loggingClient.listMonitoredResourceDescriptors(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java new file mode 100644 index 0000000000..21ea6d19bc --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest] +import com.google.api.MonitoredResourceDescriptor; +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; + +public +class ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest { + + public static void main(String[] args) throws Exception { + listMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest(); + } + + public static void + listMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + ListMonitoredResourceDescriptorsRequest request = + ListMonitoredResourceDescriptorsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + loggingClient.listMonitoredResourceDescriptorsPagedCallable().futureCall(request); + // Do something. + for (MonitoredResourceDescriptor element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/tailLogEntries/TailLogEntriesCallableCallTailLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/tailLogEntries/TailLogEntriesCallableCallTailLogEntriesRequest.java new file mode 100644 index 0000000000..76d5414ac8 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/tailLogEntries/TailLogEntriesCallableCallTailLogEntriesRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.protobuf.Duration; +import java.util.ArrayList; + +public class TailLogEntriesCallableCallTailLogEntriesRequest { + + public static void main(String[] args) throws Exception { + tailLogEntriesCallableCallTailLogEntriesRequest(); + } + + public static void tailLogEntriesCallableCallTailLogEntriesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + BidiStream bidiStream = + loggingClient.tailLogEntriesCallable().call(); + TailLogEntriesRequest request = + TailLogEntriesRequest.newBuilder() + .addAllResourceNames(new ArrayList()) + .setFilter("filter-1274492040") + .setBufferWindow(Duration.newBuilder().build()) + .build(); + bidiStream.send(request); + for (TailLogEntriesResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java new file mode 100644 index 0000000000..f9f7f744fd --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest] +import com.google.api.MonitoredResource; +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.LogEntry; +import com.google.logging.v2.LogName; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import java.util.ArrayList; +import java.util.HashMap; + +public class WriteLogEntriesCallableFutureCallWriteLogEntriesRequest { + + public static void main(String[] args) throws Exception { + writeLogEntriesCallableFutureCallWriteLogEntriesRequest(); + } + + public static void writeLogEntriesCallableFutureCallWriteLogEntriesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + WriteLogEntriesRequest request = + WriteLogEntriesRequest.newBuilder() + .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString()) + .setResource(MonitoredResource.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllEntries(new ArrayList()) + .setPartialSuccess(true) + .setDryRun(true) + .build(); + ApiFuture future = + loggingClient.writeLogEntriesCallable().futureCall(request); + // Do something. + WriteLogEntriesResponse response = future.get(); + } + } +} +// [END logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java new file mode 100644 index 0000000000..df72be28cf --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry] +import com.google.api.MonitoredResource; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.LogEntry; +import com.google.logging.v2.LogName; +import com.google.logging.v2.WriteLogEntriesResponse; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry { + + public static void main(String[] args) throws Exception { + writeLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry(); + } + + public static void writeLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); + MonitoredResource resource = MonitoredResource.newBuilder().build(); + Map labels = new HashMap<>(); + List entries = new ArrayList<>(); + WriteLogEntriesResponse response = + loggingClient.writeLogEntries(logName, resource, labels, entries); + } + } +} +// [END logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java new file mode 100644 index 0000000000..961a1d51f5 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry] +import com.google.api.MonitoredResource; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.LogEntry; +import com.google.logging.v2.LogName; +import com.google.logging.v2.WriteLogEntriesResponse; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry { + + public static void main(String[] args) throws Exception { + writeLogEntriesStringMonitoredResourceMapStringStringListLogEntry(); + } + + public static void writeLogEntriesStringMonitoredResourceMapStringStringListLogEntry() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString(); + MonitoredResource resource = MonitoredResource.newBuilder().build(); + Map labels = new HashMap<>(); + List entries = new ArrayList<>(); + WriteLogEntriesResponse response = + loggingClient.writeLogEntries(logName, resource, labels, entries); + } + } +} +// [END logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesWriteLogEntriesRequest.java new file mode 100644 index 0000000000..3a0cd302d0 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesWriteLogEntriesRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest] +import com.google.api.MonitoredResource; +import com.google.cloud.logging.v2.LoggingClient; +import com.google.logging.v2.LogEntry; +import com.google.logging.v2.LogName; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import java.util.ArrayList; +import java.util.HashMap; + +public class WriteLogEntriesWriteLogEntriesRequest { + + public static void main(String[] args) throws Exception { + writeLogEntriesWriteLogEntriesRequest(); + } + + public static void writeLogEntriesWriteLogEntriesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (LoggingClient loggingClient = LoggingClient.create()) { + WriteLogEntriesRequest request = + WriteLogEntriesRequest.newBuilder() + .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString()) + .setResource(MonitoredResource.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllEntries(new ArrayList()) + .setPartialSuccess(true) + .setDryRun(true) + .build(); + WriteLogEntriesResponse response = loggingClient.writeLogEntries(request); + } + } +} +// [END logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java new file mode 100644 index 0000000000..943db2b5a3 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings] +import com.google.cloud.logging.v2.LoggingSettings; +import java.time.Duration; + +public class DeleteLogSettingsSetRetrySettingsLoggingSettings { + + public static void main(String[] args) throws Exception { + deleteLogSettingsSetRetrySettingsLoggingSettings(); + } + + public static void deleteLogSettingsSetRetrySettingsLoggingSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + LoggingSettings.Builder loggingSettingsBuilder = LoggingSettings.newBuilder(); + loggingSettingsBuilder + .deleteLogSettings() + .setRetrySettings( + loggingSettingsBuilder + .deleteLogSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + LoggingSettings loggingSettings = loggingSettingsBuilder.build(); + } +} +// [END logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings1.java new file mode 100644 index 0000000000..2a56bcff3d --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_create_metricssettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.logging.v2.MetricsClient; +import com.google.cloud.logging.v2.MetricsSettings; +import com.google.cloud.logging.v2.myCredentials; + +public class CreateMetricsSettings1 { + + public static void main(String[] args) throws Exception { + createMetricsSettings1(); + } + + public static void createMetricsSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + MetricsSettings metricsSettings = + MetricsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + MetricsClient metricsClient = MetricsClient.create(metricsSettings); + } +} +// [END logging_v2_generated_metricsclient_create_metricssettings1] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings2.java new file mode 100644 index 0000000000..e008a66ec4 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings2.java @@ -0,0 +1,36 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_create_metricssettings2] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.cloud.logging.v2.MetricsSettings; +import com.google.cloud.logging.v2.myEndpoint; + +public class CreateMetricsSettings2 { + + public static void main(String[] args) throws Exception { + createMetricsSettings2(); + } + + public static void createMetricsSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + MetricsSettings metricsSettings = MetricsSettings.newBuilder().setEndpoint(myEndpoint).build(); + MetricsClient metricsClient = MetricsClient.create(metricsSettings); + } +} +// [END logging_v2_generated_metricsclient_create_metricssettings2] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java new file mode 100644 index 0000000000..c6bf2fc5d6 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class CreateLogMetricCallableFutureCallCreateLogMetricRequest { + + public static void main(String[] args) throws Exception { + createLogMetricCallableFutureCallCreateLogMetricRequest(); + } + + public static void createLogMetricCallableFutureCallCreateLogMetricRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + CreateLogMetricRequest request = + CreateLogMetricRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMetric(LogMetric.newBuilder().build()) + .build(); + ApiFuture future = metricsClient.createLogMetricCallable().futureCall(request); + // Do something. + LogMetric response = future.get(); + } + } +} +// [END logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCreateLogMetricRequest.java new file mode 100644 index 0000000000..84eddf37d9 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCreateLogMetricRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class CreateLogMetricCreateLogMetricRequest { + + public static void main(String[] args) throws Exception { + createLogMetricCreateLogMetricRequest(); + } + + public static void createLogMetricCreateLogMetricRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + CreateLogMetricRequest request = + CreateLogMetricRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMetric(LogMetric.newBuilder().build()) + .build(); + LogMetric response = metricsClient.createLogMetric(request); + } + } +} +// [END logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricProjectNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricProjectNameLogMetric.java new file mode 100644 index 0000000000..fd373aea26 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricProjectNameLogMetric.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class CreateLogMetricProjectNameLogMetric { + + public static void main(String[] args) throws Exception { + createLogMetricProjectNameLogMetric(); + } + + public static void createLogMetricProjectNameLogMetric() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + LogMetric metric = LogMetric.newBuilder().build(); + LogMetric response = metricsClient.createLogMetric(parent, metric); + } + } +} +// [END logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricStringLogMetric.java new file mode 100644 index 0000000000..6ebb92b15a --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricStringLogMetric.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_createlogmetric_stringlogmetric] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class CreateLogMetricStringLogMetric { + + public static void main(String[] args) throws Exception { + createLogMetricStringLogMetric(); + } + + public static void createLogMetricStringLogMetric() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + LogMetric metric = LogMetric.newBuilder().build(); + LogMetric response = metricsClient.createLogMetric(parent, metric); + } + } +} +// [END logging_v2_generated_metricsclient_createlogmetric_stringlogmetric] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java new file mode 100644 index 0000000000..feafae0e8a --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.LogMetricName; +import com.google.protobuf.Empty; + +public class DeleteLogMetricCallableFutureCallDeleteLogMetricRequest { + + public static void main(String[] args) throws Exception { + deleteLogMetricCallableFutureCallDeleteLogMetricRequest(); + } + + public static void deleteLogMetricCallableFutureCallDeleteLogMetricRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + DeleteLogMetricRequest request = + DeleteLogMetricRequest.newBuilder() + .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .build(); + ApiFuture future = metricsClient.deleteLogMetricCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricDeleteLogMetricRequest.java new file mode 100644 index 0000000000..c286c50554 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricDeleteLogMetricRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.LogMetricName; +import com.google.protobuf.Empty; + +public class DeleteLogMetricDeleteLogMetricRequest { + + public static void main(String[] args) throws Exception { + deleteLogMetricDeleteLogMetricRequest(); + } + + public static void deleteLogMetricDeleteLogMetricRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + DeleteLogMetricRequest request = + DeleteLogMetricRequest.newBuilder() + .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .build(); + metricsClient.deleteLogMetric(request); + } + } +} +// [END logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricLogMetricName.java new file mode 100644 index 0000000000..550cdb53b6 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricLogMetricName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_deletelogmetric_logmetricname] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetricName; +import com.google.protobuf.Empty; + +public class DeleteLogMetricLogMetricName { + + public static void main(String[] args) throws Exception { + deleteLogMetricLogMetricName(); + } + + public static void deleteLogMetricLogMetricName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + metricsClient.deleteLogMetric(metricName); + } + } +} +// [END logging_v2_generated_metricsclient_deletelogmetric_logmetricname] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricString.java new file mode 100644 index 0000000000..514656877e --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_deletelogmetric_string] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetricName; +import com.google.protobuf.Empty; + +public class DeleteLogMetricString { + + public static void main(String[] args) throws Exception { + deleteLogMetricString(); + } + + public static void deleteLogMetricString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString(); + metricsClient.deleteLogMetric(metricName); + } + } +} +// [END logging_v2_generated_metricsclient_deletelogmetric_string] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java new file mode 100644 index 0000000000..1eebcc20af --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; + +public class GetLogMetricCallableFutureCallGetLogMetricRequest { + + public static void main(String[] args) throws Exception { + getLogMetricCallableFutureCallGetLogMetricRequest(); + } + + public static void getLogMetricCallableFutureCallGetLogMetricRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + GetLogMetricRequest request = + GetLogMetricRequest.newBuilder() + .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .build(); + ApiFuture future = metricsClient.getLogMetricCallable().futureCall(request); + // Do something. + LogMetric response = future.get(); + } + } +} +// [END logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricGetLogMetricRequest.java new file mode 100644 index 0000000000..d815be1fde --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricGetLogMetricRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; + +public class GetLogMetricGetLogMetricRequest { + + public static void main(String[] args) throws Exception { + getLogMetricGetLogMetricRequest(); + } + + public static void getLogMetricGetLogMetricRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + GetLogMetricRequest request = + GetLogMetricRequest.newBuilder() + .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .build(); + LogMetric response = metricsClient.getLogMetric(request); + } + } +} +// [END logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricLogMetricName.java new file mode 100644 index 0000000000..bc4dcdbad0 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricLogMetricName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_getlogmetric_logmetricname] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; + +public class GetLogMetricLogMetricName { + + public static void main(String[] args) throws Exception { + getLogMetricLogMetricName(); + } + + public static void getLogMetricLogMetricName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + LogMetric response = metricsClient.getLogMetric(metricName); + } + } +} +// [END logging_v2_generated_metricsclient_getlogmetric_logmetricname] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricString.java new file mode 100644 index 0000000000..cb971ebe17 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_getlogmetric_string] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; + +public class GetLogMetricString { + + public static void main(String[] args) throws Exception { + getLogMetricString(); + } + + public static void getLogMetricString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString(); + LogMetric response = metricsClient.getLogMetric(metricName); + } + } +} +// [END logging_v2_generated_metricsclient_getlogmetric_string] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsCallableCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsCallableCallListLogMetricsRequest.java new file mode 100644 index 0000000000..6ab55be970 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsCallableCallListLogMetricsRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.common.base.Strings; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class ListLogMetricsCallableCallListLogMetricsRequest { + + public static void main(String[] args) throws Exception { + listLogMetricsCallableCallListLogMetricsRequest(); + } + + public static void listLogMetricsCallableCallListLogMetricsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + ListLogMetricsRequest request = + ListLogMetricsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListLogMetricsResponse response = metricsClient.listLogMetricsCallable().call(request); + for (LogMetric element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsListLogMetricsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsListLogMetricsRequestIterateAll.java new file mode 100644 index 0000000000..d8a7d01665 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsListLogMetricsRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class ListLogMetricsListLogMetricsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listLogMetricsListLogMetricsRequestIterateAll(); + } + + public static void listLogMetricsListLogMetricsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + ListLogMetricsRequest request = + ListLogMetricsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (LogMetric element : metricsClient.listLogMetrics(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java new file mode 100644 index 0000000000..907deee515 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class ListLogMetricsPagedCallableFutureCallListLogMetricsRequest { + + public static void main(String[] args) throws Exception { + listLogMetricsPagedCallableFutureCallListLogMetricsRequest(); + } + + public static void listLogMetricsPagedCallableFutureCallListLogMetricsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + ListLogMetricsRequest request = + ListLogMetricsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = metricsClient.listLogMetricsPagedCallable().futureCall(request); + // Do something. + for (LogMetric element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsProjectNameIterateAll.java new file mode 100644 index 0000000000..c019d5bbe4 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class ListLogMetricsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listLogMetricsProjectNameIterateAll(); + } + + public static void listLogMetricsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsStringIterateAll.java new file mode 100644 index 0000000000..7f3b63a264 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_listlogmetrics_stringiterateall] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.ProjectName; + +public class ListLogMetricsStringIterateAll { + + public static void main(String[] args) throws Exception { + listLogMetricsStringIterateAll(); + } + + public static void listLogMetricsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END logging_v2_generated_metricsclient_listlogmetrics_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java new file mode 100644 index 0000000000..3f18d96bef --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; +import com.google.logging.v2.UpdateLogMetricRequest; + +public class UpdateLogMetricCallableFutureCallUpdateLogMetricRequest { + + public static void main(String[] args) throws Exception { + updateLogMetricCallableFutureCallUpdateLogMetricRequest(); + } + + public static void updateLogMetricCallableFutureCallUpdateLogMetricRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + UpdateLogMetricRequest request = + UpdateLogMetricRequest.newBuilder() + .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .setMetric(LogMetric.newBuilder().build()) + .build(); + ApiFuture future = metricsClient.updateLogMetricCallable().futureCall(request); + // Do something. + LogMetric response = future.get(); + } + } +} +// [END logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricLogMetricNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricLogMetricNameLogMetric.java new file mode 100644 index 0000000000..643991a3de --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricLogMetricNameLogMetric.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; + +public class UpdateLogMetricLogMetricNameLogMetric { + + public static void main(String[] args) throws Exception { + updateLogMetricLogMetricNameLogMetric(); + } + + public static void updateLogMetricLogMetricNameLogMetric() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); + LogMetric metric = LogMetric.newBuilder().build(); + LogMetric response = metricsClient.updateLogMetric(metricName, metric); + } + } +} +// [END logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricStringLogMetric.java new file mode 100644 index 0000000000..1f9f041bc2 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricStringLogMetric.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; + +public class UpdateLogMetricStringLogMetric { + + public static void main(String[] args) throws Exception { + updateLogMetricStringLogMetric(); + } + + public static void updateLogMetricStringLogMetric() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString(); + LogMetric metric = LogMetric.newBuilder().build(); + LogMetric response = metricsClient.updateLogMetric(metricName, metric); + } + } +} +// [END logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricUpdateLogMetricRequest.java new file mode 100644 index 0000000000..6652e0b747 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricUpdateLogMetricRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest] +import com.google.cloud.logging.v2.MetricsClient; +import com.google.logging.v2.LogMetric; +import com.google.logging.v2.LogMetricName; +import com.google.logging.v2.UpdateLogMetricRequest; + +public class UpdateLogMetricUpdateLogMetricRequest { + + public static void main(String[] args) throws Exception { + updateLogMetricUpdateLogMetricRequest(); + } + + public static void updateLogMetricUpdateLogMetricRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (MetricsClient metricsClient = MetricsClient.create()) { + UpdateLogMetricRequest request = + UpdateLogMetricRequest.newBuilder() + .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) + .setMetric(LogMetric.newBuilder().build()) + .build(); + LogMetric response = metricsClient.updateLogMetric(request); + } + } +} +// [END logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java new file mode 100644 index 0000000000..be58c853c1 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.samples; + +// [START logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings] +import com.google.cloud.logging.v2.MetricsSettings; +import java.time.Duration; + +public class GetLogMetricSettingsSetRetrySettingsMetricsSettings { + + public static void main(String[] args) throws Exception { + getLogMetricSettingsSetRetrySettingsMetricsSettings(); + } + + public static void getLogMetricSettingsSetRetrySettingsMetricsSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + MetricsSettings.Builder metricsSettingsBuilder = MetricsSettings.newBuilder(); + metricsSettingsBuilder + .getLogMetricSettings() + .setRetrySettings( + metricsSettingsBuilder + .getLogMetricSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + MetricsSettings metricsSettings = metricsSettingsBuilder.build(); + } +} +// [END logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configServiceV2StubSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configServiceV2StubSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java new file mode 100644 index 0000000000..17a80a87d3 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configServiceV2StubSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.stub.samples; + +// [START logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings] +import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; +import java.time.Duration; + +public class GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings { + + public static void main(String[] args) throws Exception { + getBucketSettingsSetRetrySettingsConfigServiceV2StubSettings(); + } + + public static void getBucketSettingsSetRetrySettingsConfigServiceV2StubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConfigServiceV2StubSettings.Builder configSettingsBuilder = + ConfigServiceV2StubSettings.newBuilder(); + configSettingsBuilder + .getBucketSettings() + .setRetrySettings( + configSettingsBuilder + .getBucketSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build(); + } +} +// [END logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingServiceV2StubSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingServiceV2StubSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java new file mode 100644 index 0000000000..9c7cf2f3cb --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingServiceV2StubSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.stub.samples; + +// [START logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] +import com.google.cloud.logging.v2.stub.LoggingServiceV2StubSettings; +import java.time.Duration; + +public class DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings { + + public static void main(String[] args) throws Exception { + deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings(); + } + + public static void deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + LoggingServiceV2StubSettings.Builder loggingSettingsBuilder = + LoggingServiceV2StubSettings.newBuilder(); + loggingSettingsBuilder + .deleteLogSettings() + .setRetrySettings( + loggingSettingsBuilder + .deleteLogSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + LoggingServiceV2StubSettings loggingSettings = loggingSettingsBuilder.build(); + } +} +// [END logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] \ No newline at end of file diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsServiceV2StubSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsServiceV2StubSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java new file mode 100644 index 0000000000..7dc05f3197 --- /dev/null +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsServiceV2StubSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.logging.v2.stub.samples; + +// [START logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings] +import com.google.cloud.logging.v2.stub.MetricsServiceV2StubSettings; +import java.time.Duration; + +public class GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings { + + public static void main(String[] args) throws Exception { + getLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings(); + } + + public static void getLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + MetricsServiceV2StubSettings.Builder metricsSettingsBuilder = + MetricsServiceV2StubSettings.newBuilder(); + metricsSettingsBuilder + .getLogMetricSettings() + .setRetrySettings( + metricsSettingsBuilder + .getLogMetricSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build(); + } +} +// [END logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings] \ No newline at end of file diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClientTest.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClientTest.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClientTest.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClientTest.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClientTest.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClientTest.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClientTest.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClientTest.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClientTest.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClientTest.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClientTest.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClientTest.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MockConfigServiceV2.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MockConfigServiceV2.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MockLoggingServiceV2.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MockLoggingServiceV2.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MockMetricsServiceV2.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MockMetricsServiceV2.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/gapic_metadata.json b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/gapic_metadata.json similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/gapic_metadata.json rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/gapic_metadata.json diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/package-info.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/package-info.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java similarity index 100% rename from test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java rename to test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/BillingAccountLocationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/BillingAccountLocationName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/BillingAccountName.java b/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/BillingAccountName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/CmekSettingsName.java b/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/CmekSettingsName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/FolderLocationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/FolderLocationName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/FolderName.java b/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/FolderName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/LocationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/LocationName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/LogBucketName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/LogBucketName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/LogExclusionName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/LogExclusionName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/LogMetricName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/LogMetricName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/LogName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/LogName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/LogName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/LogSinkName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/LogSinkName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/LogViewName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/LogViewName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/OrganizationLocationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/OrganizationLocationName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/OrganizationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/OrganizationName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java diff --git a/test/integration/goldens/logging/com/google/logging/v2/ProjectName.java b/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java similarity index 100% rename from test/integration/goldens/logging/com/google/logging/v2/ProjectName.java rename to test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings1.java new file mode 100644 index 0000000000..98112ac7be --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.cloud.pubsub.v1.SchemaServiceSettings; +import com.google.cloud.pubsub.v1.myCredentials; + +public class CreateSchemaServiceSettings1 { + + public static void main(String[] args) throws Exception { + createSchemaServiceSettings1(); + } + + public static void createSchemaServiceSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SchemaServiceSettings schemaServiceSettings = + SchemaServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + } +} +// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings2.java new file mode 100644 index 0000000000..214a0e7275 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings2.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.cloud.pubsub.v1.SchemaServiceSettings; +import com.google.cloud.pubsub.v1.myEndpoint; + +public class CreateSchemaServiceSettings2 { + + public static void main(String[] args) throws Exception { + createSchemaServiceSettings2(); + } + + public static void createSchemaServiceSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SchemaServiceSettings schemaServiceSettings = + SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + } +} +// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCallableFutureCallCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCallableFutureCallCreateSchemaRequest.java new file mode 100644 index 0000000000..a6e5020dd5 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCallableFutureCallCreateSchemaRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; + +public class CreateSchemaCallableFutureCallCreateSchemaRequest { + + public static void main(String[] args) throws Exception { + createSchemaCallableFutureCallCreateSchemaRequest(); + } + + public static void createSchemaCallableFutureCallCreateSchemaRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setSchema(Schema.newBuilder().build()) + .setSchemaId("schemaId-697673060") + .build(); + ApiFuture future = schemaServiceClient.createSchemaCallable().futureCall(request); + // Do something. + Schema response = future.get(); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCreateSchemaRequest.java new file mode 100644 index 0000000000..36d94db66b --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCreateSchemaRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; + +public class CreateSchemaCreateSchemaRequest { + + public static void main(String[] args) throws Exception { + createSchemaCreateSchemaRequest(); + } + + public static void createSchemaCreateSchemaRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setSchema(Schema.newBuilder().build()) + .setSchemaId("schemaId-697673060") + .build(); + Schema response = schemaServiceClient.createSchema(request); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaProjectNameSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaProjectNameSchemaString.java new file mode 100644 index 0000000000..6118cbf7ad --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaProjectNameSchemaString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; + +public class CreateSchemaProjectNameSchemaString { + + public static void main(String[] args) throws Exception { + createSchemaProjectNameSchemaString(); + } + + public static void createSchemaProjectNameSchemaString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + Schema response = schemaServiceClient.createSchema(parent, schema, schemaId); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaStringSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaStringSchemaString.java new file mode 100644 index 0000000000..5d0298eef9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaStringSchemaString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; + +public class CreateSchemaStringSchemaString { + + public static void main(String[] args) throws Exception { + createSchemaStringSchemaString(); + } + + public static void createSchemaStringSchemaString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + Schema response = schemaServiceClient.createSchema(parent, schema, schemaId); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java new file mode 100644 index 0000000000..9843bf6b5b --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.SchemaName; + +public class DeleteSchemaCallableFutureCallDeleteSchemaRequest { + + public static void main(String[] args) throws Exception { + deleteSchemaCallableFutureCallDeleteSchemaRequest(); + } + + public static void deleteSchemaCallableFutureCallDeleteSchemaRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + DeleteSchemaRequest request = + DeleteSchemaRequest.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .build(); + ApiFuture future = schemaServiceClient.deleteSchemaCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaDeleteSchemaRequest.java new file mode 100644 index 0000000000..51bf752c46 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaDeleteSchemaRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.SchemaName; + +public class DeleteSchemaDeleteSchemaRequest { + + public static void main(String[] args) throws Exception { + deleteSchemaDeleteSchemaRequest(); + } + + public static void deleteSchemaDeleteSchemaRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + DeleteSchemaRequest request = + DeleteSchemaRequest.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .build(); + schemaServiceClient.deleteSchema(request); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaSchemaName.java new file mode 100644 index 0000000000..714f3040ac --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaSchemaName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SchemaName; + +public class DeleteSchemaSchemaName { + + public static void main(String[] args) throws Exception { + deleteSchemaSchemaName(); + } + + public static void deleteSchemaSchemaName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + schemaServiceClient.deleteSchema(name); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaString.java new file mode 100644 index 0000000000..86df844fd0 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_deleteschema_string] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SchemaName; + +public class DeleteSchemaString { + + public static void main(String[] args) throws Exception { + deleteSchemaString(); + } + + public static void deleteSchemaString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString(); + schemaServiceClient.deleteSchema(name); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java new file mode 100644 index 0000000000..89ff6dad13 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.pubsub.v1.ProjectName; + +public class GetIamPolicyCallableFutureCallGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyCallableFutureCallGetIamPolicyRequest(); + } + + public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = schemaServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java new file mode 100644 index 0000000000..f505834e39 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.pubsub.v1.ProjectName; + +public class GetIamPolicyGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyGetIamPolicyRequest(); + } + + public static void getIamPolicyGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = schemaServiceClient.getIamPolicy(request); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaCallableFutureCallGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaCallableFutureCallGetSchemaRequest.java new file mode 100644 index 0000000000..9309c455eb --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaCallableFutureCallGetSchemaRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.SchemaView; + +public class GetSchemaCallableFutureCallGetSchemaRequest { + + public static void main(String[] args) throws Exception { + getSchemaCallableFutureCallGetSchemaRequest(); + } + + public static void getSchemaCallableFutureCallGetSchemaRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + GetSchemaRequest request = + GetSchemaRequest.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setView(SchemaView.forNumber(0)) + .build(); + ApiFuture future = schemaServiceClient.getSchemaCallable().futureCall(request); + // Do something. + Schema response = future.get(); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaGetSchemaRequest.java new file mode 100644 index 0000000000..7a390f2ded --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaGetSchemaRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.SchemaView; + +public class GetSchemaGetSchemaRequest { + + public static void main(String[] args) throws Exception { + getSchemaGetSchemaRequest(); + } + + public static void getSchemaGetSchemaRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + GetSchemaRequest request = + GetSchemaRequest.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setView(SchemaView.forNumber(0)) + .build(); + Schema response = schemaServiceClient.getSchema(request); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaSchemaName.java new file mode 100644 index 0000000000..b093b27d8e --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaSchemaName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_getschema_schemaname] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; + +public class GetSchemaSchemaName { + + public static void main(String[] args) throws Exception { + getSchemaSchemaName(); + } + + public static void getSchemaSchemaName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + Schema response = schemaServiceClient.getSchema(name); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_getschema_schemaname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaString.java new file mode 100644 index 0000000000..cacaad7250 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_getschema_string] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; + +public class GetSchemaString { + + public static void main(String[] args) throws Exception { + getSchemaString(); + } + + public static void getSchemaString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString(); + Schema response = schemaServiceClient.getSchema(name); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_getschema_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasCallableCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasCallableCallListSchemasRequest.java new file mode 100644 index 0000000000..29f3eac2f0 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasCallableCallListSchemasRequest.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.common.base.Strings; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaView; + +public class ListSchemasCallableCallListSchemasRequest { + + public static void main(String[] args) throws Exception { + listSchemasCallableCallListSchemasRequest(); + } + + public static void listSchemasCallableCallListSchemasRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ListSchemasRequest request = + ListSchemasRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setView(SchemaView.forNumber(0)) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request); + for (Schema element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasListSchemasRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasListSchemasRequestIterateAll.java new file mode 100644 index 0000000000..6dfa4a4fbf --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasListSchemasRequestIterateAll.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaView; + +public class ListSchemasListSchemasRequestIterateAll { + + public static void main(String[] args) throws Exception { + listSchemasListSchemasRequestIterateAll(); + } + + public static void listSchemasListSchemasRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ListSchemasRequest request = + ListSchemasRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setView(SchemaView.forNumber(0)) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Schema element : schemaServiceClient.listSchemas(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java new file mode 100644 index 0000000000..49906d4804 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaView; + +public class ListSchemasPagedCallableFutureCallListSchemasRequest { + + public static void main(String[] args) throws Exception { + listSchemasPagedCallableFutureCallListSchemasRequest(); + } + + public static void listSchemasPagedCallableFutureCallListSchemasRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ListSchemasRequest request = + ListSchemasRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setView(SchemaView.forNumber(0)) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = schemaServiceClient.listSchemasPagedCallable().futureCall(request); + // Do something. + for (Schema element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasProjectNameIterateAll.java new file mode 100644 index 0000000000..b7b2d5560c --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; + +public class ListSchemasProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listSchemasProjectNameIterateAll(); + } + + public static void listSchemasProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasStringIterateAll.java new file mode 100644 index 0000000000..99c7028482 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; + +public class ListSchemasStringIterateAll { + + public static void main(String[] args) throws Exception { + listSchemasStringIterateAll(); + } + + public static void listSchemasStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java new file mode 100644 index 0000000000..33df082a73 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.pubsub.v1.ProjectName; + +public class SetIamPolicyCallableFutureCallSetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicyCallableFutureCallSetIamPolicyRequest(); + } + + public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + ApiFuture future = schemaServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java new file mode 100644 index 0000000000..c1de7690a9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.pubsub.v1.ProjectName; + +public class SetIamPolicySetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicySetIamPolicyRequest(); + } + + public static void setIamPolicySetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + Policy response = schemaServiceClient.setIamPolicy(request); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java new file mode 100644 index 0000000000..b09420997a --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.pubsub.v1.ProjectName; +import java.util.ArrayList; + +public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsCallableFutureCallTestIamPermissionsRequest(); + } + + public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + schemaServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java new file mode 100644 index 0000000000..9562298021 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.pubsub.v1.ProjectName; +import java.util.ArrayList; + +public class TestIamPermissionsTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsTestIamPermissionsRequest(); + } + + public static void testIamPermissionsTestIamPermissionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = schemaServiceClient.testIamPermissions(request); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageCallableFutureCallValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageCallableFutureCallValidateMessageRequest.java new file mode 100644 index 0000000000..bb23081780 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageCallableFutureCallValidateMessageRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; + +public class ValidateMessageCallableFutureCallValidateMessageRequest { + + public static void main(String[] args) throws Exception { + validateMessageCallableFutureCallValidateMessageRequest(); + } + + public static void validateMessageCallableFutureCallValidateMessageRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ValidateMessageRequest request = + ValidateMessageRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMessage(ByteString.EMPTY) + .setEncoding(Encoding.forNumber(0)) + .build(); + ApiFuture future = + schemaServiceClient.validateMessageCallable().futureCall(request); + // Do something. + ValidateMessageResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageValidateMessageRequest.java new file mode 100644 index 0000000000..3d0c804e5f --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageValidateMessageRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; + +public class ValidateMessageValidateMessageRequest { + + public static void main(String[] args) throws Exception { + validateMessageValidateMessageRequest(); + } + + public static void validateMessageValidateMessageRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ValidateMessageRequest request = + ValidateMessageRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMessage(ByteString.EMPTY) + .setEncoding(Encoding.forNumber(0)) + .build(); + ValidateMessageResponse response = schemaServiceClient.validateMessage(request); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java new file mode 100644 index 0000000000..db260ffd51 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; + +public class ValidateSchemaCallableFutureCallValidateSchemaRequest { + + public static void main(String[] args) throws Exception { + validateSchemaCallableFutureCallValidateSchemaRequest(); + } + + public static void validateSchemaCallableFutureCallValidateSchemaRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ValidateSchemaRequest request = + ValidateSchemaRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setSchema(Schema.newBuilder().build()) + .build(); + ApiFuture future = + schemaServiceClient.validateSchemaCallable().futureCall(request); + // Do something. + ValidateSchemaResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaProjectNameSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaProjectNameSchema.java new file mode 100644 index 0000000000..b51de5f461 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaProjectNameSchema.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.ValidateSchemaResponse; + +public class ValidateSchemaProjectNameSchema { + + public static void main(String[] args) throws Exception { + validateSchemaProjectNameSchema(); + } + + public static void validateSchemaProjectNameSchema() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + ValidateSchemaResponse response = schemaServiceClient.validateSchema(parent, schema); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaStringSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaStringSchema.java new file mode 100644 index 0000000000..eafa274b55 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaStringSchema.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_validateschema_stringschema] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.ValidateSchemaResponse; + +public class ValidateSchemaStringSchema { + + public static void main(String[] args) throws Exception { + validateSchemaStringSchema(); + } + + public static void validateSchemaStringSchema() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + Schema schema = Schema.newBuilder().build(); + ValidateSchemaResponse response = schemaServiceClient.validateSchema(parent, schema); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_validateschema_stringschema] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaValidateSchemaRequest.java new file mode 100644 index 0000000000..46be736d1d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaValidateSchemaRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; + +public class ValidateSchemaValidateSchemaRequest { + + public static void main(String[] args) throws Exception { + validateSchemaValidateSchemaRequest(); + } + + public static void validateSchemaValidateSchemaRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ValidateSchemaRequest request = + ValidateSchemaRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setSchema(Schema.newBuilder().build()) + .build(); + ValidateSchemaResponse response = schemaServiceClient.validateSchema(request); + } + } +} +// [END pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java new file mode 100644 index 0000000000..a1dac27fd3 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings] +import com.google.cloud.pubsub.v1.SchemaServiceSettings; +import java.time.Duration; + +public class CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings { + + public static void main(String[] args) throws Exception { + createSchemaSettingsSetRetrySettingsSchemaServiceSettings(); + } + + public static void createSchemaSettingsSetRetrySettingsSchemaServiceSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder(); + schemaServiceSettingsBuilder + .createSchemaSettings() + .setRetrySettings( + schemaServiceSettingsBuilder + .createSchemaSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); + } +} +// [END pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherStubSettings/createTopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherStubSettings/createTopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java new file mode 100644 index 0000000000..89520d9a45 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherStubSettings/createTopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.stub.samples; + +// [START pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] +import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; +import java.time.Duration; + +public class CreateTopicSettingsSetRetrySettingsPublisherStubSettings { + + public static void main(String[] args) throws Exception { + createTopicSettingsSetRetrySettingsPublisherStubSettings(); + } + + public static void createTopicSettingsSetRetrySettingsPublisherStubSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder(); + topicAdminSettingsBuilder + .createTopicSettings() + .setRetrySettings( + topicAdminSettingsBuilder + .createTopicSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build(); + } +} +// [END pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaServiceStubSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaServiceStubSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java new file mode 100644 index 0000000000..dc8f86d488 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaServiceStubSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.stub.samples; + +// [START pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings] +import com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings; +import java.time.Duration; + +public class CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings { + + public static void main(String[] args) throws Exception { + createSchemaSettingsSetRetrySettingsSchemaServiceStubSettings(); + } + + public static void createSchemaSettingsSetRetrySettingsSchemaServiceStubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder = + SchemaServiceStubSettings.newBuilder(); + schemaServiceSettingsBuilder + .createSchemaSettings() + .setRetrySettings( + schemaServiceSettingsBuilder + .createSchemaSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); + } +} +// [END pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberStubSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberStubSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java new file mode 100644 index 0000000000..85e1708043 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberStubSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.stub.samples; + +// [START pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings] +import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; +import java.time.Duration; + +public class CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings { + + public static void main(String[] args) throws Exception { + createSubscriptionSettingsSetRetrySettingsSubscriberStubSettings(); + } + + public static void createSubscriptionSettingsSetRetrySettingsSubscriberStubSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder = + SubscriberStubSettings.newBuilder(); + subscriptionAdminSettingsBuilder + .createSubscriptionSettings() + .setRetrySettings( + subscriptionAdminSettingsBuilder + .createSubscriptionSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build(); + } +} +// [END pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeAcknowledgeRequest.java new file mode 100644 index 0000000000..a503ea7882 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeAcknowledgeRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; + +public class AcknowledgeAcknowledgeRequest { + + public static void main(String[] args) throws Exception { + acknowledgeAcknowledgeRequest(); + } + + public static void acknowledgeAcknowledgeRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + AcknowledgeRequest request = + AcknowledgeRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .addAllAckIds(new ArrayList()) + .build(); + subscriptionAdminClient.acknowledge(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java new file mode 100644 index 0000000000..fb56efa0c9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; + +public class AcknowledgeCallableFutureCallAcknowledgeRequest { + + public static void main(String[] args) throws Exception { + acknowledgeCallableFutureCallAcknowledgeRequest(); + } + + public static void acknowledgeCallableFutureCallAcknowledgeRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + AcknowledgeRequest request = + AcknowledgeRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .addAllAckIds(new ArrayList()) + .build(); + ApiFuture future = subscriptionAdminClient.acknowledgeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeStringListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeStringListString.java new file mode 100644 index 0000000000..71de097889 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeStringListString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; +import java.util.List; + +public class AcknowledgeStringListString { + + public static void main(String[] args) throws Exception { + acknowledgeStringListString(); + } + + public static void acknowledgeStringListString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + List ackIds = new ArrayList<>(); + subscriptionAdminClient.acknowledge(subscription, ackIds); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeSubscriptionNameListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeSubscriptionNameListString.java new file mode 100644 index 0000000000..6aaf7a224f --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeSubscriptionNameListString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; +import java.util.List; + +public class AcknowledgeSubscriptionNameListString { + + public static void main(String[] args) throws Exception { + acknowledgeSubscriptionNameListString(); + } + + public static void acknowledgeSubscriptionNameListString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + subscriptionAdminClient.acknowledge(subscription, ackIds); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings1.java new file mode 100644 index 0000000000..e9ea9213cb --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.SubscriptionAdminSettings; +import com.google.cloud.pubsub.v1.myCredentials; + +public class CreateSubscriptionAdminSettings1 { + + public static void main(String[] args) throws Exception { + createSubscriptionAdminSettings1(); + } + + public static void createSubscriptionAdminSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SubscriptionAdminSettings subscriptionAdminSettings = + SubscriptionAdminSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SubscriptionAdminClient subscriptionAdminClient = + SubscriptionAdminClient.create(subscriptionAdminSettings); + } +} +// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings2.java new file mode 100644 index 0000000000..1f05b47f25 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings2.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.SubscriptionAdminSettings; +import com.google.cloud.pubsub.v1.myEndpoint; + +public class CreateSubscriptionAdminSettings2 { + + public static void main(String[] args) throws Exception { + createSubscriptionAdminSettings2(); + } + + public static void createSubscriptionAdminSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SubscriptionAdminSettings subscriptionAdminSettings = + SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build(); + SubscriptionAdminClient subscriptionAdminClient = + SubscriptionAdminClient.create(subscriptionAdminSettings); + } +} +// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java new file mode 100644 index 0000000000..72f14f7203 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; +import com.google.pubsub.v1.SubscriptionName; +import java.util.HashMap; + +public class CreateSnapshotCallableFutureCallCreateSnapshotRequest { + + public static void main(String[] args) throws Exception { + createSnapshotCallableFutureCallCreateSnapshotRequest(); + } + + public static void createSnapshotCallableFutureCallCreateSnapshotRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .putAllLabels(new HashMap()) + .build(); + ApiFuture future = + subscriptionAdminClient.createSnapshotCallable().futureCall(request); + // Do something. + Snapshot response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCreateSnapshotRequest.java new file mode 100644 index 0000000000..15f7a27168 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCreateSnapshotRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; +import com.google.pubsub.v1.SubscriptionName; +import java.util.HashMap; + +public class CreateSnapshotCreateSnapshotRequest { + + public static void main(String[] args) throws Exception { + createSnapshotCreateSnapshotRequest(); + } + + public static void createSnapshotCreateSnapshotRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .putAllLabels(new HashMap()) + .build(); + Snapshot response = subscriptionAdminClient.createSnapshot(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameString.java new file mode 100644 index 0000000000..3615910a42 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; +import com.google.pubsub.v1.SubscriptionName; + +public class CreateSnapshotSnapshotNameString { + + public static void main(String[] args) throws Exception { + createSnapshotSnapshotNameString(); + } + + public static void createSnapshotSnapshotNameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameSubscriptionName.java new file mode 100644 index 0000000000..8b44458ab4 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameSubscriptionName.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; +import com.google.pubsub.v1.SubscriptionName; + +public class CreateSnapshotSnapshotNameSubscriptionName { + + public static void main(String[] args) throws Exception { + createSnapshotSnapshotNameSubscriptionName(); + } + + public static void createSnapshotSnapshotNameSubscriptionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringString.java new file mode 100644 index 0000000000..c77139a347 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; +import com.google.pubsub.v1.SubscriptionName; + +public class CreateSnapshotStringString { + + public static void main(String[] args) throws Exception { + createSnapshotStringString(); + } + + public static void createSnapshotStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString(); + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringSubscriptionName.java new file mode 100644 index 0000000000..5c22c96bd3 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringSubscriptionName.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; +import com.google.pubsub.v1.SubscriptionName; + +public class CreateSnapshotStringSubscriptionName { + + public static void main(String[] args) throws Exception { + createSnapshotStringSubscriptionName(); + } + + public static void createSnapshotStringSubscriptionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString(); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionCallableFutureCallSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionCallableFutureCallSubscription.java new file mode 100644 index 0000000000..204f600b83 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionCallableFutureCallSubscription.java @@ -0,0 +1,66 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Duration; +import com.google.pubsub.v1.DeadLetterPolicy; +import com.google.pubsub.v1.ExpirationPolicy; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.RetryPolicy; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import java.util.HashMap; + +public class CreateSubscriptionCallableFutureCallSubscription { + + public static void main(String[] args) throws Exception { + createSubscriptionCallableFutureCallSubscription(); + } + + public static void createSubscriptionCallableFutureCallSubscription() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + Subscription request = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + ApiFuture future = + subscriptionAdminClient.createSubscriptionCallable().futureCall(request); + // Do something. + Subscription response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringStringPushConfigInt.java new file mode 100644 index 0000000000..bd8c3d15db --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringStringPushConfigInt.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; + +public class CreateSubscriptionStringStringPushConfigInt { + + public static void main(String[] args) throws Exception { + createSubscriptionStringStringPushConfigInt(); + } + + public static void createSubscriptionStringStringPushConfigInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString(); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + Subscription response = + subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringTopicNamePushConfigInt.java new file mode 100644 index 0000000000..f95d9f48b3 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringTopicNamePushConfigInt.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; + +public class CreateSubscriptionStringTopicNamePushConfigInt { + + public static void main(String[] args) throws Exception { + createSubscriptionStringTopicNamePushConfigInt(); + } + + public static void createSubscriptionStringTopicNamePushConfigInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + Subscription response = + subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscription.java new file mode 100644 index 0000000000..b8b3073778 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscription.java @@ -0,0 +1,62 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Duration; +import com.google.pubsub.v1.DeadLetterPolicy; +import com.google.pubsub.v1.ExpirationPolicy; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.RetryPolicy; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import java.util.HashMap; + +public class CreateSubscriptionSubscription { + + public static void main(String[] args) throws Exception { + createSubscriptionSubscription(); + } + + public static void createSubscriptionSubscription() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + Subscription request = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + Subscription response = subscriptionAdminClient.createSubscription(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java new file mode 100644 index 0000000000..2e340a0d79 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; + +public class CreateSubscriptionSubscriptionNameStringPushConfigInt { + + public static void main(String[] args) throws Exception { + createSubscriptionSubscriptionNameStringPushConfigInt(); + } + + public static void createSubscriptionSubscriptionNameStringPushConfigInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString(); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + Subscription response = + subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java new file mode 100644 index 0000000000..16885e72e4 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; + +public class CreateSubscriptionSubscriptionNameTopicNamePushConfigInt { + + public static void main(String[] args) throws Exception { + createSubscriptionSubscriptionNameTopicNamePushConfigInt(); + } + + public static void createSubscriptionSubscriptionNameTopicNamePushConfigInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + Subscription response = + subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java new file mode 100644 index 0000000000..6d7b35a3bd --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.SnapshotName; + +public class DeleteSnapshotCallableFutureCallDeleteSnapshotRequest { + + public static void main(String[] args) throws Exception { + deleteSnapshotCallableFutureCallDeleteSnapshotRequest(); + } + + public static void deleteSnapshotCallableFutureCallDeleteSnapshotRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .build(); + ApiFuture future = + subscriptionAdminClient.deleteSnapshotCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotDeleteSnapshotRequest.java new file mode 100644 index 0000000000..67d446678a --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotDeleteSnapshotRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.SnapshotName; + +public class DeleteSnapshotDeleteSnapshotRequest { + + public static void main(String[] args) throws Exception { + deleteSnapshotDeleteSnapshotRequest(); + } + + public static void deleteSnapshotDeleteSnapshotRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .build(); + subscriptionAdminClient.deleteSnapshot(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotSnapshotName.java new file mode 100644 index 0000000000..ac333777c7 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotSnapshotName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SnapshotName; + +public class DeleteSnapshotSnapshotName { + + public static void main(String[] args) throws Exception { + deleteSnapshotSnapshotName(); + } + + public static void deleteSnapshotSnapshotName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + subscriptionAdminClient.deleteSnapshot(snapshot); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotString.java new file mode 100644 index 0000000000..7812a84949 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SnapshotName; + +public class DeleteSnapshotString { + + public static void main(String[] args) throws Exception { + deleteSnapshotString(); + } + + public static void deleteSnapshotString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString(); + subscriptionAdminClient.deleteSnapshot(snapshot); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java new file mode 100644 index 0000000000..5e23c72803 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.SubscriptionName; + +public class DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest { + + public static void main(String[] args) throws Exception { + deleteSubscriptionCallableFutureCallDeleteSubscriptionRequest(); + } + + public static void deleteSubscriptionCallableFutureCallDeleteSubscriptionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + DeleteSubscriptionRequest request = + DeleteSubscriptionRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + ApiFuture future = + subscriptionAdminClient.deleteSubscriptionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionDeleteSubscriptionRequest.java new file mode 100644 index 0000000000..51451a709d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionDeleteSubscriptionRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.SubscriptionName; + +public class DeleteSubscriptionDeleteSubscriptionRequest { + + public static void main(String[] args) throws Exception { + deleteSubscriptionDeleteSubscriptionRequest(); + } + + public static void deleteSubscriptionDeleteSubscriptionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + DeleteSubscriptionRequest request = + DeleteSubscriptionRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + subscriptionAdminClient.deleteSubscription(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionString.java new file mode 100644 index 0000000000..f7e2802c79 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_string] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SubscriptionName; + +public class DeleteSubscriptionString { + + public static void main(String[] args) throws Exception { + deleteSubscriptionString(); + } + + public static void deleteSubscriptionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + subscriptionAdminClient.deleteSubscription(subscription); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionSubscriptionName.java new file mode 100644 index 0000000000..ee07cdd0be --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionSubscriptionName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SubscriptionName; + +public class DeleteSubscriptionSubscriptionName { + + public static void main(String[] args) throws Exception { + deleteSubscriptionSubscriptionName(); + } + + public static void deleteSubscriptionSubscriptionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + subscriptionAdminClient.deleteSubscription(subscription); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java new file mode 100644 index 0000000000..98ec60a3f1 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.pubsub.v1.ProjectName; + +public class GetIamPolicyCallableFutureCallGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyCallableFutureCallGetIamPolicyRequest(); + } + + public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = subscriptionAdminClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java new file mode 100644 index 0000000000..74bec6ff54 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.pubsub.v1.ProjectName; + +public class GetIamPolicyGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyGetIamPolicyRequest(); + } + + public static void getIamPolicyGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = subscriptionAdminClient.getIamPolicy(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java new file mode 100644 index 0000000000..47eda0f2f0 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.GetSnapshotRequest; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; + +public class GetSnapshotCallableFutureCallGetSnapshotRequest { + + public static void main(String[] args) throws Exception { + getSnapshotCallableFutureCallGetSnapshotRequest(); + } + + public static void getSnapshotCallableFutureCallGetSnapshotRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .build(); + ApiFuture future = + subscriptionAdminClient.getSnapshotCallable().futureCall(request); + // Do something. + Snapshot response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotGetSnapshotRequest.java new file mode 100644 index 0000000000..c64df8c945 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotGetSnapshotRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.GetSnapshotRequest; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; + +public class GetSnapshotGetSnapshotRequest { + + public static void main(String[] args) throws Exception { + getSnapshotGetSnapshotRequest(); + } + + public static void getSnapshotGetSnapshotRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .build(); + Snapshot response = subscriptionAdminClient.getSnapshot(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotSnapshotName.java new file mode 100644 index 0000000000..6c81d1f1dd --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotSnapshotName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; + +public class GetSnapshotSnapshotName { + + public static void main(String[] args) throws Exception { + getSnapshotSnapshotName(); + } + + public static void getSnapshotSnapshotName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + Snapshot response = subscriptionAdminClient.getSnapshot(snapshot); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotString.java new file mode 100644 index 0000000000..3882af8c8f --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_string] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; + +public class GetSnapshotString { + + public static void main(String[] args) throws Exception { + getSnapshotString(); + } + + public static void getSnapshotString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString(); + Snapshot response = subscriptionAdminClient.getSnapshot(snapshot); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java new file mode 100644 index 0000000000..0129a8f55b --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; + +public class GetSubscriptionCallableFutureCallGetSubscriptionRequest { + + public static void main(String[] args) throws Exception { + getSubscriptionCallableFutureCallGetSubscriptionRequest(); + } + + public static void getSubscriptionCallableFutureCallGetSubscriptionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + GetSubscriptionRequest request = + GetSubscriptionRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + ApiFuture future = + subscriptionAdminClient.getSubscriptionCallable().futureCall(request); + // Do something. + Subscription response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionGetSubscriptionRequest.java new file mode 100644 index 0000000000..b698df9039 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionGetSubscriptionRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; + +public class GetSubscriptionGetSubscriptionRequest { + + public static void main(String[] args) throws Exception { + getSubscriptionGetSubscriptionRequest(); + } + + public static void getSubscriptionGetSubscriptionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + GetSubscriptionRequest request = + GetSubscriptionRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + Subscription response = subscriptionAdminClient.getSubscription(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionString.java new file mode 100644 index 0000000000..083f79d9a6 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_string] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; + +public class GetSubscriptionString { + + public static void main(String[] args) throws Exception { + getSubscriptionString(); + } + + public static void getSubscriptionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + Subscription response = subscriptionAdminClient.getSubscription(subscription); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionSubscriptionName.java new file mode 100644 index 0000000000..738a2f7ed5 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionSubscriptionName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; + +public class GetSubscriptionSubscriptionName { + + public static void main(String[] args) throws Exception { + getSubscriptionSubscriptionName(); + } + + public static void getSubscriptionSubscriptionName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + Subscription response = subscriptionAdminClient.getSubscription(subscription); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java new file mode 100644 index 0000000000..f868d78d81 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java @@ -0,0 +1,58 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.common.base.Strings; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Snapshot; + +public class ListSnapshotsCallableCallListSnapshotsRequest { + + public static void main(String[] args) throws Exception { + listSnapshotsCallableCallListSnapshotsRequest(); + } + + public static void listSnapshotsCallableCallListSnapshotsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ListSnapshotsRequest request = + ListSnapshotsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSnapshotsResponse response = + subscriptionAdminClient.listSnapshotsCallable().call(request); + for (Snapshot element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java new file mode 100644 index 0000000000..00dd25283c --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Snapshot; + +public class ListSnapshotsListSnapshotsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listSnapshotsListSnapshotsRequestIterateAll(); + } + + public static void listSnapshotsListSnapshotsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ListSnapshotsRequest request = + ListSnapshotsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Snapshot element : subscriptionAdminClient.listSnapshots(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java new file mode 100644 index 0000000000..f437b5f5d0 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Snapshot; + +public class ListSnapshotsPagedCallableFutureCallListSnapshotsRequest { + + public static void main(String[] args) throws Exception { + listSnapshotsPagedCallableFutureCallListSnapshotsRequest(); + } + + public static void listSnapshotsPagedCallableFutureCallListSnapshotsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ListSnapshotsRequest request = + ListSnapshotsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + subscriptionAdminClient.listSnapshotsPagedCallable().futureCall(request); + // Do something. + for (Snapshot element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsProjectNameIterateAll.java new file mode 100644 index 0000000000..3524220604 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Snapshot; + +public class ListSnapshotsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listSnapshotsProjectNameIterateAll(); + } + + public static void listSnapshotsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectName project = ProjectName.of("[PROJECT]"); + for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsStringIterateAll.java new file mode 100644 index 0000000000..c52e420ee2 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Snapshot; + +public class ListSnapshotsStringIterateAll { + + public static void main(String[] args) throws Exception { + listSnapshotsStringIterateAll(); + } + + public static void listSnapshotsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String project = ProjectName.of("[PROJECT]").toString(); + for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java new file mode 100644 index 0000000000..89ac330bd9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java @@ -0,0 +1,58 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.common.base.Strings; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Subscription; + +public class ListSubscriptionsCallableCallListSubscriptionsRequest { + + public static void main(String[] args) throws Exception { + listSubscriptionsCallableCallListSubscriptionsRequest(); + } + + public static void listSubscriptionsCallableCallListSubscriptionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ListSubscriptionsRequest request = + ListSubscriptionsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSubscriptionsResponse response = + subscriptionAdminClient.listSubscriptionsCallable().call(request); + for (Subscription element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java new file mode 100644 index 0000000000..8523342140 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Subscription; + +public class ListSubscriptionsListSubscriptionsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listSubscriptionsListSubscriptionsRequestIterateAll(); + } + + public static void listSubscriptionsListSubscriptionsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ListSubscriptionsRequest request = + ListSubscriptionsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Subscription element : subscriptionAdminClient.listSubscriptions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java new file mode 100644 index 0000000000..2959431c7b --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Subscription; + +public class ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest { + + public static void main(String[] args) throws Exception { + listSubscriptionsPagedCallableFutureCallListSubscriptionsRequest(); + } + + public static void listSubscriptionsPagedCallableFutureCallListSubscriptionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ListSubscriptionsRequest request = + ListSubscriptionsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + subscriptionAdminClient.listSubscriptionsPagedCallable().futureCall(request); + // Do something. + for (Subscription element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsProjectNameIterateAll.java new file mode 100644 index 0000000000..b1e1e0fbc5 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Subscription; + +public class ListSubscriptionsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listSubscriptionsProjectNameIterateAll(); + } + + public static void listSubscriptionsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectName project = ProjectName.of("[PROJECT]"); + for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsStringIterateAll.java new file mode 100644 index 0000000000..7f9b72fc83 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Subscription; + +public class ListSubscriptionsStringIterateAll { + + public static void main(String[] args) throws Exception { + listSubscriptionsStringIterateAll(); + } + + public static void listSubscriptionsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String project = ProjectName.of("[PROJECT]").toString(); + for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java new file mode 100644 index 0000000000..1999c083cd --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; + +public class ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest { + + public static void main(String[] args) throws Exception { + modifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest(); + } + + public static void modifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ModifyAckDeadlineRequest request = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .addAllAckIds(new ArrayList()) + .setAckDeadlineSeconds(2135351438) + .build(); + ApiFuture future = + subscriptionAdminClient.modifyAckDeadlineCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java new file mode 100644 index 0000000000..f968a39d79 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; + +public class ModifyAckDeadlineModifyAckDeadlineRequest { + + public static void main(String[] args) throws Exception { + modifyAckDeadlineModifyAckDeadlineRequest(); + } + + public static void modifyAckDeadlineModifyAckDeadlineRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ModifyAckDeadlineRequest request = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .addAllAckIds(new ArrayList()) + .setAckDeadlineSeconds(2135351438) + .build(); + subscriptionAdminClient.modifyAckDeadline(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineStringListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineStringListStringInt.java new file mode 100644 index 0000000000..0fafaf7873 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineStringListStringInt.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; +import java.util.List; + +public class ModifyAckDeadlineStringListStringInt { + + public static void main(String[] args) throws Exception { + modifyAckDeadlineStringListStringInt(); + } + + public static void modifyAckDeadlineStringListStringInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java new file mode 100644 index 0000000000..2fdb04917d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; +import java.util.List; + +public class ModifyAckDeadlineSubscriptionNameListStringInt { + + public static void main(String[] args) throws Exception { + modifyAckDeadlineSubscriptionNameListStringInt(); + } + + public static void modifyAckDeadlineSubscriptionNameListStringInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java new file mode 100644 index 0000000000..5a6308f8c9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.SubscriptionName; + +public class ModifyPushConfigCallableFutureCallModifyPushConfigRequest { + + public static void main(String[] args) throws Exception { + modifyPushConfigCallableFutureCallModifyPushConfigRequest(); + } + + public static void modifyPushConfigCallableFutureCallModifyPushConfigRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ModifyPushConfigRequest request = + ModifyPushConfigRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .build(); + ApiFuture future = + subscriptionAdminClient.modifyPushConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigModifyPushConfigRequest.java new file mode 100644 index 0000000000..13b31750d9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigModifyPushConfigRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.SubscriptionName; + +public class ModifyPushConfigModifyPushConfigRequest { + + public static void main(String[] args) throws Exception { + modifyPushConfigModifyPushConfigRequest(); + } + + public static void modifyPushConfigModifyPushConfigRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ModifyPushConfigRequest request = + ModifyPushConfigRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .build(); + subscriptionAdminClient.modifyPushConfig(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigStringPushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigStringPushConfig.java new file mode 100644 index 0000000000..5023955f53 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigStringPushConfig.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.SubscriptionName; + +public class ModifyPushConfigStringPushConfig { + + public static void main(String[] args) throws Exception { + modifyPushConfigStringPushConfig(); + } + + public static void modifyPushConfigStringPushConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + PushConfig pushConfig = PushConfig.newBuilder().build(); + subscriptionAdminClient.modifyPushConfig(subscription, pushConfig); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigSubscriptionNamePushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigSubscriptionNamePushConfig.java new file mode 100644 index 0000000000..fccd7f2571 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigSubscriptionNamePushConfig.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.SubscriptionName; + +public class ModifyPushConfigSubscriptionNamePushConfig { + + public static void main(String[] args) throws Exception { + modifyPushConfigSubscriptionNamePushConfig(); + } + + public static void modifyPushConfigSubscriptionNamePushConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + subscriptionAdminClient.modifyPushConfig(subscription, pushConfig); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullCallableFutureCallPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullCallableFutureCallPullRequest.java new file mode 100644 index 0000000000..5e3f6d3bc9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullCallableFutureCallPullRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class PullCallableFutureCallPullRequest { + + public static void main(String[] args) throws Exception { + pullCallableFutureCallPullRequest(); + } + + public static void pullCallableFutureCallPullRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setReturnImmediately(true) + .setMaxMessages(496131527) + .build(); + ApiFuture future = subscriptionAdminClient.pullCallable().futureCall(request); + // Do something. + PullResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullPullRequest.java new file mode 100644 index 0000000000..3125503403 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullPullRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_pull_pullrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class PullPullRequest { + + public static void main(String[] args) throws Exception { + pullPullRequest(); + } + + public static void pullPullRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setReturnImmediately(true) + .setMaxMessages(496131527) + .build(); + PullResponse response = subscriptionAdminClient.pull(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_pull_pullrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringBooleanInt.java new file mode 100644 index 0000000000..7c9c769103 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringBooleanInt.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class PullStringBooleanInt { + + public static void main(String[] args) throws Exception { + pullStringBooleanInt(); + } + + public static void pullStringBooleanInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + boolean returnImmediately = true; + int maxMessages = 496131527; + PullResponse response = + subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringInt.java new file mode 100644 index 0000000000..4ff697d912 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringInt.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_pull_stringint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class PullStringInt { + + public static void main(String[] args) throws Exception { + pullStringInt(); + } + + public static void pullStringInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString(); + int maxMessages = 496131527; + PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_pull_stringint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameBooleanInt.java new file mode 100644 index 0000000000..186b7e4902 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameBooleanInt.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class PullSubscriptionNameBooleanInt { + + public static void main(String[] args) throws Exception { + pullSubscriptionNameBooleanInt(); + } + + public static void pullSubscriptionNameBooleanInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + boolean returnImmediately = true; + int maxMessages = 496131527; + PullResponse response = + subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameInt.java new file mode 100644 index 0000000000..356a1c7148 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameInt.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class PullSubscriptionNameInt { + + public static void main(String[] args) throws Exception { + pullSubscriptionNameInt(); + } + + public static void pullSubscriptionNameInt() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + int maxMessages = 496131527; + PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekCallableFutureCallSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekCallableFutureCallSeekRequest.java new file mode 100644 index 0000000000..5071d19752 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekCallableFutureCallSeekRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class SeekCallableFutureCallSeekRequest { + + public static void main(String[] args) throws Exception { + seekCallableFutureCallSeekRequest(); + } + + public static void seekCallableFutureCallSeekRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SeekRequest request = + SeekRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + ApiFuture future = subscriptionAdminClient.seekCallable().futureCall(request); + // Do something. + SeekResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekSeekRequest.java new file mode 100644 index 0000000000..f20f0be032 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekSeekRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_seek_seekrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class SeekSeekRequest { + + public static void main(String[] args) throws Exception { + seekSeekRequest(); + } + + public static void seekSeekRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SeekRequest request = + SeekRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + SeekResponse response = subscriptionAdminClient.seek(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_seek_seekrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java new file mode 100644 index 0000000000..1e103bea8d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.pubsub.v1.ProjectName; + +public class SetIamPolicyCallableFutureCallSetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicyCallableFutureCallSetIamPolicyRequest(); + } + + public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + ApiFuture future = subscriptionAdminClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java new file mode 100644 index 0000000000..a80180ff92 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.pubsub.v1.ProjectName; + +public class SetIamPolicySetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicySetIamPolicyRequest(); + } + + public static void setIamPolicySetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + Policy response = subscriptionAdminClient.setIamPolicy(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/streamingPull/StreamingPullCallableCallStreamingPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/streamingPull/StreamingPullCallableCallStreamingPullRequest.java new file mode 100644 index 0000000000..e28b149e55 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/streamingPull/StreamingPullCallableCallStreamingPullRequest.java @@ -0,0 +1,56 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.SubscriptionName; +import java.util.ArrayList; + +public class StreamingPullCallableCallStreamingPullRequest { + + public static void main(String[] args) throws Exception { + streamingPullCallableCallStreamingPullRequest(); + } + + public static void streamingPullCallableCallStreamingPullRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + BidiStream bidiStream = + subscriptionAdminClient.streamingPullCallable().call(); + StreamingPullRequest request = + StreamingPullRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .addAllAckIds(new ArrayList()) + .addAllModifyDeadlineSeconds(new ArrayList()) + .addAllModifyDeadlineAckIds(new ArrayList()) + .setStreamAckDeadlineSeconds(1875467245) + .setClientId("clientId908408390") + .setMaxOutstandingMessages(-1315266996) + .setMaxOutstandingBytes(-2103098517) + .build(); + bidiStream.send(request); + for (StreamingPullResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java new file mode 100644 index 0000000000..cdb95bc080 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.pubsub.v1.ProjectName; +import java.util.ArrayList; + +public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsCallableFutureCallTestIamPermissionsRequest(); + } + + public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + subscriptionAdminClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java new file mode 100644 index 0000000000..ffbd5a6871 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.pubsub.v1.ProjectName; +import java.util.ArrayList; + +public class TestIamPermissionsTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsTestIamPermissionsRequest(); + } + + public static void testIamPermissionsTestIamPermissionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java new file mode 100644 index 0000000000..cb436c37c8 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.UpdateSnapshotRequest; + +public class UpdateSnapshotCallableFutureCallUpdateSnapshotRequest { + + public static void main(String[] args) throws Exception { + updateSnapshotCallableFutureCallUpdateSnapshotRequest(); + } + + public static void updateSnapshotCallableFutureCallUpdateSnapshotRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder() + .setSnapshot(Snapshot.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + subscriptionAdminClient.updateSnapshotCallable().futureCall(request); + // Do something. + Snapshot response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotUpdateSnapshotRequest.java new file mode 100644 index 0000000000..18eac79c43 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotUpdateSnapshotRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.UpdateSnapshotRequest; + +public class UpdateSnapshotUpdateSnapshotRequest { + + public static void main(String[] args) throws Exception { + updateSnapshotUpdateSnapshotRequest(); + } + + public static void updateSnapshotUpdateSnapshotRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder() + .setSnapshot(Snapshot.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Snapshot response = subscriptionAdminClient.updateSnapshot(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java new file mode 100644 index 0000000000..4e34ce4fab --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSubscriptionRequest; + +public class UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest { + + public static void main(String[] args) throws Exception { + updateSubscriptionCallableFutureCallUpdateSubscriptionRequest(); + } + + public static void updateSubscriptionCallableFutureCallUpdateSubscriptionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription(Subscription.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + subscriptionAdminClient.updateSubscriptionCallable().futureCall(request); + // Do something. + Subscription response = future.get(); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionUpdateSubscriptionRequest.java new file mode 100644 index 0000000000..edf9376484 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionUpdateSubscriptionRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSubscriptionRequest; + +public class UpdateSubscriptionUpdateSubscriptionRequest { + + public static void main(String[] args) throws Exception { + updateSubscriptionUpdateSubscriptionRequest(); + } + + public static void updateSubscriptionUpdateSubscriptionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription(Subscription.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Subscription response = subscriptionAdminClient.updateSubscription(request); + } + } +} +// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java new file mode 100644 index 0000000000..d331653710 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings] +import com.google.cloud.pubsub.v1.SubscriptionAdminSettings; +import java.time.Duration; + +public class CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings { + + public static void main(String[] args) throws Exception { + createSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings(); + } + + public static void createSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder = + SubscriptionAdminSettings.newBuilder(); + subscriptionAdminSettingsBuilder + .createSubscriptionSettings() + .setRetrySettings( + subscriptionAdminSettingsBuilder + .createSubscriptionSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build(); + } +} +// [END pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings1.java new file mode 100644 index 0000000000..a621283899 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_create_topicadminsettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.cloud.pubsub.v1.myCredentials; + +public class CreateTopicAdminSettings1 { + + public static void main(String[] args) throws Exception { + createTopicAdminSettings1(); + } + + public static void createTopicAdminSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + TopicAdminSettings topicAdminSettings = + TopicAdminSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); + } +} +// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings1] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings2.java new file mode 100644 index 0000000000..f877598dce --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings2.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_create_topicadminsettings2] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.cloud.pubsub.v1.myEndpoint; + +public class CreateTopicAdminSettings2 { + + public static void main(String[] args) throws Exception { + createTopicAdminSettings2(); + } + + public static void createTopicAdminSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + TopicAdminSettings topicAdminSettings = + TopicAdminSettings.newBuilder().setEndpoint(myEndpoint).build(); + TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); + } +} +// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings2] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicCallableFutureCallTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicCallableFutureCallTopic.java new file mode 100644 index 0000000000..003f814b84 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicCallableFutureCallTopic.java @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.Duration; +import com.google.pubsub.v1.MessageStoragePolicy; +import com.google.pubsub.v1.SchemaSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.util.HashMap; + +public class CreateTopicCallableFutureCallTopic { + + public static void main(String[] args) throws Exception { + createTopicCallableFutureCallTopic(); + } + + public static void createTopicCallableFutureCallTopic() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + Topic request = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + ApiFuture future = topicAdminClient.createTopicCallable().futureCall(request); + // Do something. + Topic response = future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicString.java new file mode 100644 index 0000000000..4376d2b2c4 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_createtopic_string] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; + +public class CreateTopicString { + + public static void main(String[] args) throws Exception { + createTopicString(); + } + + public static void createTopicString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + String name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString(); + Topic response = topicAdminClient.createTopic(name); + } + } +} +// [END pubsub_v1_generated_topicadminclient_createtopic_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopic.java new file mode 100644 index 0000000000..85c713b3a6 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopic.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_createtopic_topic] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.Duration; +import com.google.pubsub.v1.MessageStoragePolicy; +import com.google.pubsub.v1.SchemaSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.util.HashMap; + +public class CreateTopicTopic { + + public static void main(String[] args) throws Exception { + createTopicTopic(); + } + + public static void createTopicTopic() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + Topic request = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + Topic response = topicAdminClient.createTopic(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_createtopic_topic] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopicName.java new file mode 100644 index 0000000000..cffb7d6d24 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopicName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_createtopic_topicname] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; + +public class CreateTopicTopicName { + + public static void main(String[] args) throws Exception { + createTopicTopicName(); + } + + public static void createTopicTopicName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + Topic response = topicAdminClient.createTopic(name); + } + } +} +// [END pubsub_v1_generated_topicadminclient_createtopic_topicname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java new file mode 100644 index 0000000000..4f7b3ca290 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.TopicName; + +public class DeleteTopicCallableFutureCallDeleteTopicRequest { + + public static void main(String[] args) throws Exception { + deleteTopicCallableFutureCallDeleteTopicRequest(); + } + + public static void deleteTopicCallableFutureCallDeleteTopicRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + DeleteTopicRequest request = + DeleteTopicRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .build(); + ApiFuture future = topicAdminClient.deleteTopicCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicDeleteTopicRequest.java new file mode 100644 index 0000000000..1fe93b61d3 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicDeleteTopicRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.TopicName; + +public class DeleteTopicDeleteTopicRequest { + + public static void main(String[] args) throws Exception { + deleteTopicDeleteTopicRequest(); + } + + public static void deleteTopicDeleteTopicRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + DeleteTopicRequest request = + DeleteTopicRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .build(); + topicAdminClient.deleteTopic(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicString.java new file mode 100644 index 0000000000..7e88ba342b --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_deletetopic_string] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.TopicName; + +public class DeleteTopicString { + + public static void main(String[] args) throws Exception { + deleteTopicString(); + } + + public static void deleteTopicString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString(); + topicAdminClient.deleteTopic(topic); + } + } +} +// [END pubsub_v1_generated_topicadminclient_deletetopic_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicTopicName.java new file mode 100644 index 0000000000..aeac4c3021 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicTopicName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_deletetopic_topicname] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.TopicName; + +public class DeleteTopicTopicName { + + public static void main(String[] args) throws Exception { + deleteTopicTopicName(); + } + + public static void deleteTopicTopicName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + topicAdminClient.deleteTopic(topic); + } + } +} +// [END pubsub_v1_generated_topicadminclient_deletetopic_topicname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java new file mode 100644 index 0000000000..bff559346d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class DetachSubscriptionCallableFutureCallDetachSubscriptionRequest { + + public static void main(String[] args) throws Exception { + detachSubscriptionCallableFutureCallDetachSubscriptionRequest(); + } + + public static void detachSubscriptionCallableFutureCallDetachSubscriptionRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + DetachSubscriptionRequest request = + DetachSubscriptionRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + ApiFuture future = + topicAdminClient.detachSubscriptionCallable().futureCall(request); + // Do something. + DetachSubscriptionResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionDetachSubscriptionRequest.java new file mode 100644 index 0000000000..ff5e9e6a9d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionDetachSubscriptionRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; +import com.google.pubsub.v1.SubscriptionName; + +public class DetachSubscriptionDetachSubscriptionRequest { + + public static void main(String[] args) throws Exception { + detachSubscriptionDetachSubscriptionRequest(); + } + + public static void detachSubscriptionDetachSubscriptionRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + DetachSubscriptionRequest request = + DetachSubscriptionRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + DetachSubscriptionResponse response = topicAdminClient.detachSubscription(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java new file mode 100644 index 0000000000..8f80c131a3 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.pubsub.v1.ProjectName; + +public class GetIamPolicyCallableFutureCallGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyCallableFutureCallGetIamPolicyRequest(); + } + + public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = topicAdminClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java new file mode 100644 index 0000000000..73bc967d2d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.pubsub.v1.ProjectName; + +public class GetIamPolicyGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyGetIamPolicyRequest(); + } + + public static void getIamPolicyGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = topicAdminClient.getIamPolicy(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicCallableFutureCallGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicCallableFutureCallGetTopicRequest.java new file mode 100644 index 0000000000..3dcee4d98a --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicCallableFutureCallGetTopicRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; + +public class GetTopicCallableFutureCallGetTopicRequest { + + public static void main(String[] args) throws Exception { + getTopicCallableFutureCallGetTopicRequest(); + } + + public static void getTopicCallableFutureCallGetTopicRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + GetTopicRequest request = + GetTopicRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .build(); + ApiFuture future = topicAdminClient.getTopicCallable().futureCall(request); + // Do something. + Topic response = future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicGetTopicRequest.java new file mode 100644 index 0000000000..85333bed13 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicGetTopicRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; + +public class GetTopicGetTopicRequest { + + public static void main(String[] args) throws Exception { + getTopicGetTopicRequest(); + } + + public static void getTopicGetTopicRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + GetTopicRequest request = + GetTopicRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .build(); + Topic response = topicAdminClient.getTopic(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicString.java new file mode 100644 index 0000000000..bfaf22db79 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_gettopic_string] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; + +public class GetTopicString { + + public static void main(String[] args) throws Exception { + getTopicString(); + } + + public static void getTopicString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString(); + Topic response = topicAdminClient.getTopic(topic); + } + } +} +// [END pubsub_v1_generated_topicadminclient_gettopic_string] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicTopicName.java new file mode 100644 index 0000000000..e4a99279e3 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicTopicName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_gettopic_topicname] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; + +public class GetTopicTopicName { + + public static void main(String[] args) throws Exception { + getTopicTopicName(); + } + + public static void getTopicTopicName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + Topic response = topicAdminClient.getTopic(topic); + } + } +} +// [END pubsub_v1_generated_topicadminclient_gettopic_topicname] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java new file mode 100644 index 0000000000..7fb3c06ea2 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.common.base.Strings; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSnapshotsCallableCallListTopicSnapshotsRequest { + + public static void main(String[] args) throws Exception { + listTopicSnapshotsCallableCallListTopicSnapshotsRequest(); + } + + public static void listTopicSnapshotsCallableCallListTopicSnapshotsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicSnapshotsRequest request = + ListTopicSnapshotsRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTopicSnapshotsResponse response = + topicAdminClient.listTopicSnapshotsCallable().call(request); + for (String element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java new file mode 100644 index 0000000000..413f977d2f --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSnapshotsListTopicSnapshotsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listTopicSnapshotsListTopicSnapshotsRequestIterateAll(); + } + + public static void listTopicSnapshotsListTopicSnapshotsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicSnapshotsRequest request = + ListTopicSnapshotsRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (String element : topicAdminClient.listTopicSnapshots(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java new file mode 100644 index 0000000000..529e906aff --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest { + + public static void main(String[] args) throws Exception { + listTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest(); + } + + public static void listTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicSnapshotsRequest request = + ListTopicSnapshotsRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + topicAdminClient.listTopicSnapshotsPagedCallable().futureCall(request); + // Do something. + for (String element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsStringIterateAll.java new file mode 100644 index 0000000000..fe2305e443 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsStringIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSnapshotsStringIterateAll { + + public static void main(String[] args) throws Exception { + listTopicSnapshotsStringIterateAll(); + } + + public static void listTopicSnapshotsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString(); + for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsTopicNameIterateAll.java new file mode 100644 index 0000000000..075ab05137 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsTopicNameIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSnapshotsTopicNameIterateAll { + + public static void main(String[] args) throws Exception { + listTopicSnapshotsTopicNameIterateAll(); + } + + public static void listTopicSnapshotsTopicNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java new file mode 100644 index 0000000000..d41fb629c9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java @@ -0,0 +1,58 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.common.base.Strings; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest { + + public static void main(String[] args) throws Exception { + listTopicSubscriptionsCallableCallListTopicSubscriptionsRequest(); + } + + public static void listTopicSubscriptionsCallableCallListTopicSubscriptionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicSubscriptionsRequest request = + ListTopicSubscriptionsRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTopicSubscriptionsResponse response = + topicAdminClient.listTopicSubscriptionsCallable().call(request); + for (String element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java new file mode 100644 index 0000000000..f3c376e5aa --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listTopicSubscriptionsListTopicSubscriptionsRequestIterateAll(); + } + + public static void listTopicSubscriptionsListTopicSubscriptionsRequestIterateAll() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicSubscriptionsRequest request = + ListTopicSubscriptionsRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (String element : topicAdminClient.listTopicSubscriptions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java new file mode 100644 index 0000000000..32c40d6a32 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest { + + public static void main(String[] args) throws Exception { + listTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest(); + } + + public static void listTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicSubscriptionsRequest request = + ListTopicSubscriptionsRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + topicAdminClient.listTopicSubscriptionsPagedCallable().futureCall(request); + // Do something. + for (String element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsStringIterateAll.java new file mode 100644 index 0000000000..79a44c2147 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsStringIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSubscriptionsStringIterateAll { + + public static void main(String[] args) throws Exception { + listTopicSubscriptionsStringIterateAll(); + } + + public static void listTopicSubscriptionsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString(); + for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java new file mode 100644 index 0000000000..c18157fc06 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.TopicName; + +public class ListTopicSubscriptionsTopicNameIterateAll { + + public static void main(String[] args) throws Exception { + listTopicSubscriptionsTopicNameIterateAll(); + } + + public static void listTopicSubscriptionsTopicNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsCallableCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsCallableCallListTopicsRequest.java new file mode 100644 index 0000000000..2b16a6d50b --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsCallableCallListTopicsRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.common.base.Strings; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Topic; + +public class ListTopicsCallableCallListTopicsRequest { + + public static void main(String[] args) throws Exception { + listTopicsCallableCallListTopicsRequest(); + } + + public static void listTopicsCallableCallListTopicsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicsRequest request = + ListTopicsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTopicsResponse response = topicAdminClient.listTopicsCallable().call(request); + for (Topic element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsListTopicsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsListTopicsRequestIterateAll.java new file mode 100644 index 0000000000..d27aba66d4 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsListTopicsRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Topic; + +public class ListTopicsListTopicsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listTopicsListTopicsRequestIterateAll(); + } + + public static void listTopicsListTopicsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicsRequest request = + ListTopicsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Topic element : topicAdminClient.listTopics(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java new file mode 100644 index 0000000000..fe14116a3d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Topic; + +public class ListTopicsPagedCallableFutureCallListTopicsRequest { + + public static void main(String[] args) throws Exception { + listTopicsPagedCallableFutureCallListTopicsRequest(); + } + + public static void listTopicsPagedCallableFutureCallListTopicsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ListTopicsRequest request = + ListTopicsRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = topicAdminClient.listTopicsPagedCallable().futureCall(request); + // Do something. + for (Topic element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsProjectNameIterateAll.java new file mode 100644 index 0000000000..a39ef53c50 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Topic; + +public class ListTopicsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listTopicsProjectNameIterateAll(); + } + + public static void listTopicsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ProjectName project = ProjectName.of("[PROJECT]"); + for (Topic element : topicAdminClient.listTopics(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsStringIterateAll.java new file mode 100644 index 0000000000..fbd2996a09 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_listtopics_stringiterateall] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Topic; + +public class ListTopicsStringIterateAll { + + public static void main(String[] args) throws Exception { + listTopicsStringIterateAll(); + } + + public static void listTopicsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + String project = ProjectName.of("[PROJECT]").toString(); + for (Topic element : topicAdminClient.listTopics(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END pubsub_v1_generated_topicadminclient_listtopics_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishCallableFutureCallPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishCallableFutureCallPublishRequest.java new file mode 100644 index 0000000000..48290f2902 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishCallableFutureCallPublishRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.util.ArrayList; + +public class PublishCallableFutureCallPublishRequest { + + public static void main(String[] args) throws Exception { + publishCallableFutureCallPublishRequest(); + } + + public static void publishCallableFutureCallPublishRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + PublishRequest request = + PublishRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .addAllMessages(new ArrayList()) + .build(); + ApiFuture future = topicAdminClient.publishCallable().futureCall(request); + // Do something. + PublishResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishPublishRequest.java new file mode 100644 index 0000000000..a007672db2 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishPublishRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_publish_publishrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.util.ArrayList; + +public class PublishPublishRequest { + + public static void main(String[] args) throws Exception { + publishPublishRequest(); + } + + public static void publishPublishRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + PublishRequest request = + PublishRequest.newBuilder() + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .addAllMessages(new ArrayList()) + .build(); + PublishResponse response = topicAdminClient.publish(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_publish_publishrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishStringListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishStringListPubsubMessage.java new file mode 100644 index 0000000000..f90e143b3d --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishStringListPubsubMessage.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.util.ArrayList; +import java.util.List; + +public class PublishStringListPubsubMessage { + + public static void main(String[] args) throws Exception { + publishStringListPubsubMessage(); + } + + public static void publishStringListPubsubMessage() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString(); + List messages = new ArrayList<>(); + PublishResponse response = topicAdminClient.publish(topic, messages); + } + } +} +// [END pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishTopicNameListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishTopicNameListPubsubMessage.java new file mode 100644 index 0000000000..7ea36b3ea9 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishTopicNameListPubsubMessage.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.util.ArrayList; +import java.util.List; + +public class PublishTopicNameListPubsubMessage { + + public static void main(String[] args) throws Exception { + publishTopicNameListPubsubMessage(); + } + + public static void publishTopicNameListPubsubMessage() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + List messages = new ArrayList<>(); + PublishResponse response = topicAdminClient.publish(topic, messages); + } + } +} +// [END pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java new file mode 100644 index 0000000000..cea0722062 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.pubsub.v1.ProjectName; + +public class SetIamPolicyCallableFutureCallSetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicyCallableFutureCallSetIamPolicyRequest(); + } + + public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + ApiFuture future = topicAdminClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java new file mode 100644 index 0000000000..da90976c61 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.pubsub.v1.ProjectName; + +public class SetIamPolicySetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicySetIamPolicyRequest(); + } + + public static void setIamPolicySetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + Policy response = topicAdminClient.setIamPolicy(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java new file mode 100644 index 0000000000..9ecef23810 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.pubsub.v1.ProjectName; +import java.util.ArrayList; + +public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsCallableFutureCallTestIamPermissionsRequest(); + } + + public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + topicAdminClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java new file mode 100644 index 0000000000..757caba3b2 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.pubsub.v1.ProjectName; +import java.util.ArrayList; + +public class TestIamPermissionsTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsTestIamPermissionsRequest(); + } + + public static void testIamPermissionsTestIamPermissionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java new file mode 100644 index 0000000000..dbbe800adf --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; + +public class UpdateTopicCallableFutureCallUpdateTopicRequest { + + public static void main(String[] args) throws Exception { + updateTopicCallableFutureCallUpdateTopicRequest(); + } + + public static void updateTopicCallableFutureCallUpdateTopicRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder() + .setTopic(Topic.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = topicAdminClient.updateTopicCallable().futureCall(request); + // Do something. + Topic response = future.get(); + } + } +} +// [END pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicUpdateTopicRequest.java new file mode 100644 index 0000000000..654cbdc044 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicUpdateTopicRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest] +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; + +public class UpdateTopicUpdateTopicRequest { + + public static void main(String[] args) throws Exception { + updateTopicUpdateTopicRequest(); + } + + public static void updateTopicUpdateTopicRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder() + .setTopic(Topic.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Topic response = topicAdminClient.updateTopic(request); + } + } +} +// [END pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminSettings/createTopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminSettings/createTopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java new file mode 100644 index 0000000000..b78be58206 --- /dev/null +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminSettings/createTopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.pubsub.v1.samples; + +// [START pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings] +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import java.time.Duration; + +public class CreateTopicSettingsSetRetrySettingsTopicAdminSettings { + + public static void main(String[] args) throws Exception { + createTopicSettingsSetRetrySettingsTopicAdminSettings(); + } + + public static void createTopicSettingsSetRetrySettingsTopicAdminSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder(); + topicAdminSettingsBuilder + .createTopicSettings() + .setRetrySettings( + topicAdminSettingsBuilder + .createTopicSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build(); + } +} +// [END pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings] \ No newline at end of file diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicy.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockIAMPolicy.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicy.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockPublisher.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisher.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockPublisher.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisher.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisherImpl.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockPublisherImpl.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisherImpl.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockSchemaService.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaService.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockSchemaService.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaService.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockSubscriber.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriber.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockSubscriber.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriber.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriberImpl.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/MockSubscriberImpl.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriberImpl.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClientTest.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClientTest.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClientTest.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/gapic_metadata.json b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/gapic_metadata.json similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/gapic_metadata.json rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/gapic_metadata.json diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/package-info.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/package-info.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStub.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStub.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java rename to test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java diff --git a/test/integration/goldens/pubsub/com/google/pubsub/v1/ProjectName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/pubsub/v1/ProjectName.java rename to test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java diff --git a/test/integration/goldens/pubsub/com/google/pubsub/v1/SchemaName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/pubsub/v1/SchemaName.java rename to test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java diff --git a/test/integration/goldens/pubsub/com/google/pubsub/v1/SnapshotName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/pubsub/v1/SnapshotName.java rename to test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java diff --git a/test/integration/goldens/pubsub/com/google/pubsub/v1/SubscriptionName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/pubsub/v1/SubscriptionName.java rename to test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java diff --git a/test/integration/goldens/pubsub/com/google/pubsub/v1/TopicName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java similarity index 100% rename from test/integration/goldens/pubsub/com/google/pubsub/v1/TopicName.java rename to test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings1.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings1.java new file mode 100644 index 0000000000..da60afc6ca --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.CloudRedisSettings; +import com.google.cloud.redis.v1beta1.myCredentials; + +public class CreateCloudRedisSettings1 { + + public static void main(String[] args) throws Exception { + createCloudRedisSettings1(); + } + + public static void createCloudRedisSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudRedisSettings cloudRedisSettings = + CloudRedisSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); + } +} +// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings2.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings2.java new file mode 100644 index 0000000000..9a4298a43e --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings2.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.CloudRedisSettings; +import com.google.cloud.redis.v1beta1.myEndpoint; + +public class CreateCloudRedisSettings2 { + + public static void main(String[] args) throws Exception { + createCloudRedisSettings2(); + } + + public static void createCloudRedisSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudRedisSettings cloudRedisSettings = + CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build(); + CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); + } +} +// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncCreateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncCreateInstanceRequestGet.java new file mode 100644 index 0000000000..9734e3a4a5 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncCreateInstanceRequestGet.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.CreateInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.LocationName; + +public class CreateInstanceAsyncCreateInstanceRequestGet { + + public static void main(String[] args) throws Exception { + createInstanceAsyncCreateInstanceRequestGet(); + } + + public static void createInstanceAsyncCreateInstanceRequestGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + Instance response = cloudRedisClient.createInstanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncLocationNameStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncLocationNameStringInstanceGet.java new file mode 100644 index 0000000000..0117526bc2 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncLocationNameStringInstanceGet.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.LocationName; + +public class CreateInstanceAsyncLocationNameStringInstanceGet { + + public static void main(String[] args) throws Exception { + createInstanceAsyncLocationNameStringInstanceGet(); + } + + public static void createInstanceAsyncLocationNameStringInstanceGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + Instance response = cloudRedisClient.createInstanceAsync(parent, instanceId, instance).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncStringStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncStringStringInstanceGet.java new file mode 100644 index 0000000000..24cbb565cc --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncStringStringInstanceGet.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.LocationName; + +public class CreateInstanceAsyncStringStringInstanceGet { + + public static void main(String[] args) throws Exception { + createInstanceAsyncStringStringInstanceGet(); + } + + public static void createInstanceAsyncStringStringInstanceGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + Instance response = cloudRedisClient.createInstanceAsync(parent, instanceId, instance).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java new file mode 100644 index 0000000000..ee62fe4f75 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.CreateInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.LocationName; +import com.google.longrunning.Operation; + +public class CreateInstanceCallableFutureCallCreateInstanceRequest { + + public static void main(String[] args) throws Exception { + createInstanceCallableFutureCallCreateInstanceRequest(); + } + + public static void createInstanceCallableFutureCallCreateInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + ApiFuture future = cloudRedisClient.createInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java new file mode 100644 index 0000000000..03b38219ed --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.CreateInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.LocationName; +import com.google.protobuf.Any; + +public class CreateInstanceOperationCallableFutureCallCreateInstanceRequest { + + public static void main(String[] args) throws Exception { + createInstanceOperationCallableFutureCallCreateInstanceRequest(); + } + + public static void createInstanceOperationCallableFutureCallCreateInstanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + OperationFuture future = + cloudRedisClient.createInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java new file mode 100644 index 0000000000..c80248d8d9 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.DeleteInstanceRequest; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.protobuf.Empty; + +public class DeleteInstanceAsyncDeleteInstanceRequestGet { + + public static void main(String[] args) throws Exception { + deleteInstanceAsyncDeleteInstanceRequestGet(); + } + + public static void deleteInstanceAsyncDeleteInstanceRequestGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + cloudRedisClient.deleteInstanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncInstanceNameGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncInstanceNameGet.java new file mode 100644 index 0000000000..f0b7a3da0b --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncInstanceNameGet.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.protobuf.Empty; + +public class DeleteInstanceAsyncInstanceNameGet { + + public static void main(String[] args) throws Exception { + deleteInstanceAsyncInstanceNameGet(); + } + + public static void deleteInstanceAsyncInstanceNameGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + cloudRedisClient.deleteInstanceAsync(name).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncStringGet.java new file mode 100644 index 0000000000..d5971eed4a --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncStringGet.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.protobuf.Empty; + +public class DeleteInstanceAsyncStringGet { + + public static void main(String[] args) throws Exception { + deleteInstanceAsyncStringGet(); + } + + public static void deleteInstanceAsyncStringGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + cloudRedisClient.deleteInstanceAsync(name).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java new file mode 100644 index 0000000000..511572f6e1 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.DeleteInstanceRequest; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.longrunning.Operation; + +public class DeleteInstanceCallableFutureCallDeleteInstanceRequest { + + public static void main(String[] args) throws Exception { + deleteInstanceCallableFutureCallDeleteInstanceRequest(); + } + + public static void deleteInstanceCallableFutureCallDeleteInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = cloudRedisClient.deleteInstanceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java new file mode 100644 index 0000000000..4b467fb053 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.DeleteInstanceRequest; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; + +public class DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest { + + public static void main(String[] args) throws Exception { + deleteInstanceOperationCallableFutureCallDeleteInstanceRequest(); + } + + public static void deleteInstanceOperationCallableFutureCallDeleteInstanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + OperationFuture future = + cloudRedisClient.deleteInstanceOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncExportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncExportInstanceRequestGet.java new file mode 100644 index 0000000000..ad05c37389 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncExportInstanceRequestGet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.ExportInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.OutputConfig; + +public class ExportInstanceAsyncExportInstanceRequestGet { + + public static void main(String[] args) throws Exception { + exportInstanceAsyncExportInstanceRequestGet(); + } + + public static void exportInstanceAsyncExportInstanceRequestGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ExportInstanceRequest request = + ExportInstanceRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputConfig.newBuilder().build()) + .build(); + Instance response = cloudRedisClient.exportInstanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncStringOutputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncStringOutputConfigGet.java new file mode 100644 index 0000000000..2354cee865 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncStringOutputConfigGet.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.OutputConfig; + +public class ExportInstanceAsyncStringOutputConfigGet { + + public static void main(String[] args) throws Exception { + exportInstanceAsyncStringOutputConfigGet(); + } + + public static void exportInstanceAsyncStringOutputConfigGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String name = "name3373707"; + OutputConfig outputConfig = OutputConfig.newBuilder().build(); + Instance response = cloudRedisClient.exportInstanceAsync(name, outputConfig).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceCallableFutureCallExportInstanceRequest.java new file mode 100644 index 0000000000..d59919786b --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceCallableFutureCallExportInstanceRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.ExportInstanceRequest; +import com.google.cloud.redis.v1beta1.OutputConfig; +import com.google.longrunning.Operation; + +public class ExportInstanceCallableFutureCallExportInstanceRequest { + + public static void main(String[] args) throws Exception { + exportInstanceCallableFutureCallExportInstanceRequest(); + } + + public static void exportInstanceCallableFutureCallExportInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ExportInstanceRequest request = + ExportInstanceRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputConfig.newBuilder().build()) + .build(); + ApiFuture future = cloudRedisClient.exportInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java new file mode 100644 index 0000000000..47a1aa70c9 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.ExportInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.OutputConfig; +import com.google.protobuf.Any; + +public class ExportInstanceOperationCallableFutureCallExportInstanceRequest { + + public static void main(String[] args) throws Exception { + exportInstanceOperationCallableFutureCallExportInstanceRequest(); + } + + public static void exportInstanceOperationCallableFutureCallExportInstanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ExportInstanceRequest request = + ExportInstanceRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputConfig.newBuilder().build()) + .build(); + OperationFuture future = + cloudRedisClient.exportInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java new file mode 100644 index 0000000000..a793f752f2 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class FailoverInstanceAsyncFailoverInstanceRequestGet { + + public static void main(String[] args) throws Exception { + failoverInstanceAsyncFailoverInstanceRequestGet(); + } + + public static void failoverInstanceAsyncFailoverInstanceRequestGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + FailoverInstanceRequest request = + FailoverInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + Instance response = cloudRedisClient.failoverInstanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java new file mode 100644 index 0000000000..c49b8c5ef3 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet { + + public static void main(String[] args) throws Exception { + failoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet(); + } + + public static void failoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + FailoverInstanceRequest.DataProtectionMode dataProtectionMode = + FailoverInstanceRequest.DataProtectionMode.forNumber(0); + Instance response = cloudRedisClient.failoverInstanceAsync(name, dataProtectionMode).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java new file mode 100644 index 0000000000..eb3bcd1eba --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet { + + public static void main(String[] args) throws Exception { + failoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet(); + } + + public static void failoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + FailoverInstanceRequest.DataProtectionMode dataProtectionMode = + FailoverInstanceRequest.DataProtectionMode.forNumber(0); + Instance response = cloudRedisClient.failoverInstanceAsync(name, dataProtectionMode).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java new file mode 100644 index 0000000000..aece1d80b4 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.longrunning.Operation; + +public class FailoverInstanceCallableFutureCallFailoverInstanceRequest { + + public static void main(String[] args) throws Exception { + failoverInstanceCallableFutureCallFailoverInstanceRequest(); + } + + public static void failoverInstanceCallableFutureCallFailoverInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + FailoverInstanceRequest request = + FailoverInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = cloudRedisClient.failoverInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java new file mode 100644 index 0000000000..fc2e20b566 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.protobuf.Any; + +public class FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest { + + public static void main(String[] args) throws Exception { + failoverInstanceOperationCallableFutureCallFailoverInstanceRequest(); + } + + public static void failoverInstanceOperationCallableFutureCallFailoverInstanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + FailoverInstanceRequest request = + FailoverInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + OperationFuture future = + cloudRedisClient.failoverInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceCallableFutureCallGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceCallableFutureCallGetInstanceRequest.java new file mode 100644 index 0000000000..631c39a0e4 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceCallableFutureCallGetInstanceRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.GetInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class GetInstanceCallableFutureCallGetInstanceRequest { + + public static void main(String[] args) throws Exception { + getInstanceCallableFutureCallGetInstanceRequest(); + } + + public static void getInstanceCallableFutureCallGetInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = cloudRedisClient.getInstanceCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceGetInstanceRequest.java new file mode 100644 index 0000000000..69cfe49dd2 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceGetInstanceRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.GetInstanceRequest; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class GetInstanceGetInstanceRequest { + + public static void main(String[] args) throws Exception { + getInstanceGetInstanceRequest(); + } + + public static void getInstanceGetInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + Instance response = cloudRedisClient.getInstance(request); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceInstanceName.java new file mode 100644 index 0000000000..4f4949a82c --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceInstanceName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_getinstance_instancename] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class GetInstanceInstanceName { + + public static void main(String[] args) throws Exception { + getInstanceInstanceName(); + } + + public static void getInstanceInstanceName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Instance response = cloudRedisClient.getInstance(name); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_getinstance_instancename] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceString.java new file mode 100644 index 0000000000..04166ad8ee --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_getinstance_string] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class GetInstanceString { + + public static void main(String[] args) throws Exception { + getInstanceString(); + } + + public static void getInstanceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + Instance response = cloudRedisClient.getInstance(name); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_getinstance_string] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java new file mode 100644 index 0000000000..42c047955d --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest; +import com.google.cloud.redis.v1beta1.InstanceAuthString; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest { + + public static void main(String[] args) throws Exception { + getInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest(); + } + + public static void getInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + GetInstanceAuthStringRequest request = + GetInstanceAuthStringRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = + cloudRedisClient.getInstanceAuthStringCallable().futureCall(request); + // Do something. + InstanceAuthString response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringGetInstanceAuthStringRequest.java new file mode 100644 index 0000000000..3d3121511b --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringGetInstanceAuthStringRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest; +import com.google.cloud.redis.v1beta1.InstanceAuthString; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class GetInstanceAuthStringGetInstanceAuthStringRequest { + + public static void main(String[] args) throws Exception { + getInstanceAuthStringGetInstanceAuthStringRequest(); + } + + public static void getInstanceAuthStringGetInstanceAuthStringRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + GetInstanceAuthStringRequest request = + GetInstanceAuthStringRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + InstanceAuthString response = cloudRedisClient.getInstanceAuthString(request); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringInstanceName.java new file mode 100644 index 0000000000..d46c3f1575 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringInstanceName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.InstanceAuthString; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class GetInstanceAuthStringInstanceName { + + public static void main(String[] args) throws Exception { + getInstanceAuthStringInstanceName(); + } + + public static void getInstanceAuthStringInstanceName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringString.java new file mode 100644 index 0000000000..0ab2b73901 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.InstanceAuthString; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class GetInstanceAuthStringString { + + public static void main(String[] args) throws Exception { + getInstanceAuthStringString(); + } + + public static void getInstanceAuthStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncImportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncImportInstanceRequestGet.java new file mode 100644 index 0000000000..01d071f670 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncImportInstanceRequestGet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.ImportInstanceRequest; +import com.google.cloud.redis.v1beta1.InputConfig; +import com.google.cloud.redis.v1beta1.Instance; + +public class ImportInstanceAsyncImportInstanceRequestGet { + + public static void main(String[] args) throws Exception { + importInstanceAsyncImportInstanceRequestGet(); + } + + public static void importInstanceAsyncImportInstanceRequestGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ImportInstanceRequest request = + ImportInstanceRequest.newBuilder() + .setName("name3373707") + .setInputConfig(InputConfig.newBuilder().build()) + .build(); + Instance response = cloudRedisClient.importInstanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncStringInputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncStringInputConfigGet.java new file mode 100644 index 0000000000..715db0bb73 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncStringInputConfigGet.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.InputConfig; +import com.google.cloud.redis.v1beta1.Instance; + +public class ImportInstanceAsyncStringInputConfigGet { + + public static void main(String[] args) throws Exception { + importInstanceAsyncStringInputConfigGet(); + } + + public static void importInstanceAsyncStringInputConfigGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String name = "name3373707"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + Instance response = cloudRedisClient.importInstanceAsync(name, inputConfig).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceCallableFutureCallImportInstanceRequest.java new file mode 100644 index 0000000000..247777cc69 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceCallableFutureCallImportInstanceRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.ImportInstanceRequest; +import com.google.cloud.redis.v1beta1.InputConfig; +import com.google.longrunning.Operation; + +public class ImportInstanceCallableFutureCallImportInstanceRequest { + + public static void main(String[] args) throws Exception { + importInstanceCallableFutureCallImportInstanceRequest(); + } + + public static void importInstanceCallableFutureCallImportInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ImportInstanceRequest request = + ImportInstanceRequest.newBuilder() + .setName("name3373707") + .setInputConfig(InputConfig.newBuilder().build()) + .build(); + ApiFuture future = cloudRedisClient.importInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java new file mode 100644 index 0000000000..5c0f21d1e1 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.ImportInstanceRequest; +import com.google.cloud.redis.v1beta1.InputConfig; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.protobuf.Any; + +public class ImportInstanceOperationCallableFutureCallImportInstanceRequest { + + public static void main(String[] args) throws Exception { + importInstanceOperationCallableFutureCallImportInstanceRequest(); + } + + public static void importInstanceOperationCallableFutureCallImportInstanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ImportInstanceRequest request = + ImportInstanceRequest.newBuilder() + .setName("name3373707") + .setInputConfig(InputConfig.newBuilder().build()) + .build(); + OperationFuture future = + cloudRedisClient.importInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesCallableCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesCallableCallListInstancesRequest.java new file mode 100644 index 0000000000..8dd11d94d7 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesCallableCallListInstancesRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.ListInstancesRequest; +import com.google.cloud.redis.v1beta1.ListInstancesResponse; +import com.google.cloud.redis.v1beta1.LocationName; +import com.google.common.base.Strings; + +public class ListInstancesCallableCallListInstancesRequest { + + public static void main(String[] args) throws Exception { + listInstancesCallableCallListInstancesRequest(); + } + + public static void listInstancesCallableCallListInstancesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListInstancesResponse response = cloudRedisClient.listInstancesCallable().call(request); + for (Instance element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesListInstancesRequestIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesListInstancesRequestIterateAll.java new file mode 100644 index 0000000000..1daf7c52cd --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesListInstancesRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.ListInstancesRequest; +import com.google.cloud.redis.v1beta1.LocationName; + +public class ListInstancesListInstancesRequestIterateAll { + + public static void main(String[] args) throws Exception { + listInstancesListInstancesRequestIterateAll(); + } + + public static void listInstancesListInstancesRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Instance element : cloudRedisClient.listInstances(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesLocationNameIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesLocationNameIterateAll.java new file mode 100644 index 0000000000..7ca49b702c --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesLocationNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.LocationName; + +public class ListInstancesLocationNameIterateAll { + + public static void main(String[] args) throws Exception { + listInstancesLocationNameIterateAll(); + } + + public static void listInstancesLocationNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java new file mode 100644 index 0000000000..2ca969350d --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.ListInstancesRequest; +import com.google.cloud.redis.v1beta1.LocationName; + +public class ListInstancesPagedCallableFutureCallListInstancesRequest { + + public static void main(String[] args) throws Exception { + listInstancesPagedCallableFutureCallListInstancesRequest(); + } + + public static void listInstancesPagedCallableFutureCallListInstancesRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClient.listInstancesPagedCallable().futureCall(request); + // Do something. + for (Instance element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesStringIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesStringIterateAll.java new file mode 100644 index 0000000000..7f5b6e83db --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.LocationName; + +public class ListInstancesStringIterateAll { + + public static void main(String[] args) throws Exception { + listInstancesStringIterateAll(); + } + + public static void listInstancesStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java new file mode 100644 index 0000000000..82f5b69e09 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public +class RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet { + + public static void main(String[] args) throws Exception { + rescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet(); + } + + public static void + rescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + RescheduleMaintenanceRequest.RescheduleType rescheduleType = + RescheduleMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Instance response = + cloudRedisClient.rescheduleMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java new file mode 100644 index 0000000000..46325d6a32 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public class RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet { + + public static void main(String[] args) throws Exception { + rescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet(); + } + + public static void rescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + RescheduleMaintenanceRequest request = + RescheduleMaintenanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + Instance response = cloudRedisClient.rescheduleMaintenanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java new file mode 100644 index 0000000000..60c290f2ba --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public +class RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet { + + public static void main(String[] args) throws Exception { + rescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet(); + } + + public static void + rescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + RescheduleMaintenanceRequest.RescheduleType rescheduleType = + RescheduleMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Instance response = + cloudRedisClient.rescheduleMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java new file mode 100644 index 0000000000..f63ee3d98d --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Timestamp; + +public class RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest { + + public static void main(String[] args) throws Exception { + rescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest(); + } + + public static void rescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + RescheduleMaintenanceRequest request = + RescheduleMaintenanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + cloudRedisClient.rescheduleMaintenanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java new file mode 100644 index 0000000000..fb69912795 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; + +public class RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest { + + public static void main(String[] args) throws Exception { + rescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest(); + } + + public static void rescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + RescheduleMaintenanceRequest request = + RescheduleMaintenanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + OperationFuture future = + cloudRedisClient.rescheduleMaintenanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncFieldMaskInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncFieldMaskInstanceGet.java new file mode 100644 index 0000000000..58caa8df18 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncFieldMaskInstanceGet.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.protobuf.FieldMask; + +public class UpdateInstanceAsyncFieldMaskInstanceGet { + + public static void main(String[] args) throws Exception { + updateInstanceAsyncFieldMaskInstanceGet(); + } + + public static void updateInstanceAsyncFieldMaskInstanceGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + FieldMask updateMask = FieldMask.newBuilder().build(); + Instance instance = Instance.newBuilder().build(); + Instance response = cloudRedisClient.updateInstanceAsync(updateMask, instance).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java new file mode 100644 index 0000000000..3348eb88db --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.UpdateInstanceRequest; +import com.google.protobuf.FieldMask; + +public class UpdateInstanceAsyncUpdateInstanceRequestGet { + + public static void main(String[] args) throws Exception { + updateInstanceAsyncUpdateInstanceRequestGet(); + } + + public static void updateInstanceAsyncUpdateInstanceRequestGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInstance(Instance.newBuilder().build()) + .build(); + Instance response = cloudRedisClient.updateInstanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java new file mode 100644 index 0000000000..0005096db1 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.UpdateInstanceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class UpdateInstanceCallableFutureCallUpdateInstanceRequest { + + public static void main(String[] args) throws Exception { + updateInstanceCallableFutureCallUpdateInstanceRequest(); + } + + public static void updateInstanceCallableFutureCallUpdateInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInstance(Instance.newBuilder().build()) + .build(); + ApiFuture future = cloudRedisClient.updateInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java new file mode 100644 index 0000000000..115e954de0 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.UpdateInstanceRequest; +import com.google.protobuf.Any; +import com.google.protobuf.FieldMask; + +public class UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest { + + public static void main(String[] args) throws Exception { + updateInstanceOperationCallableFutureCallUpdateInstanceRequest(); + } + + public static void updateInstanceOperationCallableFutureCallUpdateInstanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInstance(Instance.newBuilder().build()) + .build(); + OperationFuture future = + cloudRedisClient.updateInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncInstanceNameStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncInstanceNameStringGet.java new file mode 100644 index 0000000000..9a84513d68 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncInstanceNameStringGet.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class UpgradeInstanceAsyncInstanceNameStringGet { + + public static void main(String[] args) throws Exception { + upgradeInstanceAsyncInstanceNameStringGet(); + } + + public static void upgradeInstanceAsyncInstanceNameStringGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String redisVersion = "redisVersion-1972584739"; + Instance response = cloudRedisClient.upgradeInstanceAsync(name, redisVersion).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncStringStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncStringStringGet.java new file mode 100644 index 0000000000..cc49cc4761 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncStringStringGet.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; + +public class UpgradeInstanceAsyncStringStringGet { + + public static void main(String[] args) throws Exception { + upgradeInstanceAsyncStringStringGet(); + } + + public static void upgradeInstanceAsyncStringStringGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + String redisVersion = "redisVersion-1972584739"; + Instance response = cloudRedisClient.upgradeInstanceAsync(name, redisVersion).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java new file mode 100644 index 0000000000..68b09ac30e --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget] +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.cloud.redis.v1beta1.UpgradeInstanceRequest; + +public class UpgradeInstanceAsyncUpgradeInstanceRequestGet { + + public static void main(String[] args) throws Exception { + upgradeInstanceAsyncUpgradeInstanceRequestGet(); + } + + public static void upgradeInstanceAsyncUpgradeInstanceRequestGet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setRedisVersion("redisVersion-1972584739") + .build(); + Instance response = cloudRedisClient.upgradeInstanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java new file mode 100644 index 0000000000..c561deaef5 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.cloud.redis.v1beta1.UpgradeInstanceRequest; +import com.google.longrunning.Operation; + +public class UpgradeInstanceCallableFutureCallUpgradeInstanceRequest { + + public static void main(String[] args) throws Exception { + upgradeInstanceCallableFutureCallUpgradeInstanceRequest(); + } + + public static void upgradeInstanceCallableFutureCallUpgradeInstanceRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setRedisVersion("redisVersion-1972584739") + .build(); + ApiFuture future = cloudRedisClient.upgradeInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java new file mode 100644 index 0000000000..e2c89c963b --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.v1beta1.CloudRedisClient; +import com.google.cloud.redis.v1beta1.Instance; +import com.google.cloud.redis.v1beta1.InstanceName; +import com.google.cloud.redis.v1beta1.UpgradeInstanceRequest; +import com.google.protobuf.Any; + +public class UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest { + + public static void main(String[] args) throws Exception { + upgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest(); + } + + public static void upgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setRedisVersion("redisVersion-1972584739") + .build(); + OperationFuture future = + cloudRedisClient.upgradeInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java new file mode 100644 index 0000000000..58b4e92bd6 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.samples; + +// [START redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings] +import com.google.cloud.redis.v1beta1.CloudRedisSettings; +import java.time.Duration; + +public class GetInstanceSettingsSetRetrySettingsCloudRedisSettings { + + public static void main(String[] args) throws Exception { + getInstanceSettingsSetRetrySettingsCloudRedisSettings(); + } + + public static void getInstanceSettingsSetRetrySettingsCloudRedisSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudRedisSettings.Builder cloudRedisSettingsBuilder = CloudRedisSettings.newBuilder(); + cloudRedisSettingsBuilder + .getInstanceSettings() + .setRetrySettings( + cloudRedisSettingsBuilder + .getInstanceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); + } +} +// [END redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings] \ No newline at end of file diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudRedisStubSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudRedisStubSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java new file mode 100644 index 0000000000..8a013c9729 --- /dev/null +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudRedisStubSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.cloud.redis.v1beta1.stub.samples; + +// [START redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings] +import com.google.cloud.redis.v1beta1.stub.CloudRedisStubSettings; +import java.time.Duration; + +public class GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings { + + public static void main(String[] args) throws Exception { + getInstanceSettingsSetRetrySettingsCloudRedisStubSettings(); + } + + public static void getInstanceSettingsSetRetrySettingsCloudRedisStubSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder(); + cloudRedisSettingsBuilder + .getInstanceSettings() + .setRetrySettings( + cloudRedisSettingsBuilder + .getInstanceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); + } +} +// [END redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings] \ No newline at end of file diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/InstanceName.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/InstanceName.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/LocationName.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/LocationName.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/MockCloudRedis.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedis.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/MockCloudRedis.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedis.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/gapic_metadata.json b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/gapic_metadata.json similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/gapic_metadata.json rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/gapic_metadata.json diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/package-info.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/package-info.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java similarity index 100% rename from test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java rename to test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectCallableFutureCallComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectCallableFutureCallComposeObjectRequest.java new file mode 100644 index 0000000000..522ddac2ef --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectCallableFutureCallComposeObjectRequest.java @@ -0,0 +1,58 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ComposeObjectRequest; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.Object; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.StorageClient; +import java.util.ArrayList; + +public class ComposeObjectCallableFutureCallComposeObjectRequest { + + public static void main(String[] args) throws Exception { + composeObjectCallableFutureCallComposeObjectRequest(); + } + + public static void composeObjectCallableFutureCallComposeObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ComposeObjectRequest request = + ComposeObjectRequest.newBuilder() + .setDestination(Object.newBuilder().build()) + .addAllSourceObjects(new ArrayList()) + .setDestinationPredefinedAcl(PredefinedObjectAcl.forNumber(0)) + .setIfGenerationMatch(-1086241088) + .setIfMetagenerationMatch(1043427781) + .setKmsKey( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.composeObjectCallable().futureCall(request); + // Do something. + Object response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectComposeObjectRequest.java new file mode 100644 index 0000000000..655402180f --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectComposeObjectRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_composeobject_composeobjectrequest] +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ComposeObjectRequest; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.Object; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.StorageClient; +import java.util.ArrayList; + +public class ComposeObjectComposeObjectRequest { + + public static void main(String[] args) throws Exception { + composeObjectComposeObjectRequest(); + } + + public static void composeObjectComposeObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ComposeObjectRequest request = + ComposeObjectRequest.newBuilder() + .setDestination(Object.newBuilder().build()) + .addAllSourceObjects(new ArrayList()) + .setDestinationPredefinedAcl(PredefinedObjectAcl.forNumber(0)) + .setIfGenerationMatch(-1086241088) + .setIfMetagenerationMatch(1043427781) + .setKmsKey( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + Object response = storageClient.composeObject(request); + } + } +} +// [END storage_v2_generated_storageclient_composeobject_composeobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings1.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings1.java new file mode 100644 index 0000000000..9170205956 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_create_storagesettings1] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.StorageSettings; +import com.google.storage.v2.myCredentials; + +public class CreateStorageSettings1 { + + public static void main(String[] args) throws Exception { + createStorageSettings1(); + } + + public static void createStorageSettings1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + StorageSettings storageSettings = + StorageSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + StorageClient storageClient = StorageClient.create(storageSettings); + } +} +// [END storage_v2_generated_storageclient_create_storagesettings1] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings2.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings2.java new file mode 100644 index 0000000000..21039b36bd --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings2.java @@ -0,0 +1,36 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_create_storagesettings2] +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.StorageSettings; +import com.google.storage.v2.myEndpoint; + +public class CreateStorageSettings2 { + + public static void main(String[] args) throws Exception { + createStorageSettings2(); + } + + public static void createStorageSettings2() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + StorageSettings storageSettings = StorageSettings.newBuilder().setEndpoint(myEndpoint).build(); + StorageClient storageClient = StorageClient.create(storageSettings); + } +} +// [END storage_v2_generated_storageclient_create_storagesettings2] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java new file mode 100644 index 0000000000..b2589faaa9 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.CreateBucketRequest; +import com.google.storage.v2.PredefinedBucketAcl; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateBucketCallableFutureCallCreateBucketRequest { + + public static void main(String[] args) throws Exception { + createBucketCallableFutureCallCreateBucketRequest(); + } + + public static void createBucketCallableFutureCallCreateBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setBucket(Bucket.newBuilder().build()) + .setBucketId("bucketId-1603305307") + .setPredefinedAcl(PredefinedBucketAcl.forNumber(0)) + .setPredefinedDefaultObjectAcl(PredefinedObjectAcl.forNumber(0)) + .build(); + ApiFuture future = storageClient.createBucketCallable().futureCall(request); + // Do something. + Bucket response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCreateBucketRequest.java new file mode 100644 index 0000000000..11b608d5e3 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCreateBucketRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createbucket_createbucketrequest] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.CreateBucketRequest; +import com.google.storage.v2.PredefinedBucketAcl; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateBucketCreateBucketRequest { + + public static void main(String[] args) throws Exception { + createBucketCreateBucketRequest(); + } + + public static void createBucketCreateBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setBucket(Bucket.newBuilder().build()) + .setBucketId("bucketId-1603305307") + .setPredefinedAcl(PredefinedBucketAcl.forNumber(0)) + .setPredefinedDefaultObjectAcl(PredefinedObjectAcl.forNumber(0)) + .build(); + Bucket response = storageClient.createBucket(request); + } + } +} +// [END storage_v2_generated_storageclient_createbucket_createbucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketProjectNameBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketProjectNameBucketString.java new file mode 100644 index 0000000000..72617e7c69 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketProjectNameBucketString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createbucket_projectnamebucketstring] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateBucketProjectNameBucketString { + + public static void main(String[] args) throws Exception { + createBucketProjectNameBucketString(); + } + + public static void createBucketProjectNameBucketString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Bucket bucket = Bucket.newBuilder().build(); + String bucketId = "bucketId-1603305307"; + Bucket response = storageClient.createBucket(parent, bucket, bucketId); + } + } +} +// [END storage_v2_generated_storageclient_createbucket_projectnamebucketstring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketStringBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketStringBucketString.java new file mode 100644 index 0000000000..9464e20b69 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketStringBucketString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createbucket_stringbucketstring] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateBucketStringBucketString { + + public static void main(String[] args) throws Exception { + createBucketStringBucketString(); + } + + public static void createBucketStringBucketString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + Bucket bucket = Bucket.newBuilder().build(); + String bucketId = "bucketId-1603305307"; + Bucket response = storageClient.createBucket(parent, bucket, bucketId); + } + } +} +// [END storage_v2_generated_storageclient_createbucket_stringbucketstring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java new file mode 100644 index 0000000000..3efaae29b2 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.CreateHmacKeyRequest; +import com.google.storage.v2.CreateHmacKeyResponse; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateHmacKeyCallableFutureCallCreateHmacKeyRequest { + + public static void main(String[] args) throws Exception { + createHmacKeyCallableFutureCallCreateHmacKeyRequest(); + } + + public static void createHmacKeyCallableFutureCallCreateHmacKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + CreateHmacKeyRequest request = + CreateHmacKeyRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setServiceAccountEmail("serviceAccountEmail1825953988") + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = + storageClient.createHmacKeyCallable().futureCall(request); + // Do something. + CreateHmacKeyResponse response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCreateHmacKeyRequest.java new file mode 100644 index 0000000000..9db8761433 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCreateHmacKeyRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createhmackey_createhmackeyrequest] +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.CreateHmacKeyRequest; +import com.google.storage.v2.CreateHmacKeyResponse; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateHmacKeyCreateHmacKeyRequest { + + public static void main(String[] args) throws Exception { + createHmacKeyCreateHmacKeyRequest(); + } + + public static void createHmacKeyCreateHmacKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + CreateHmacKeyRequest request = + CreateHmacKeyRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setServiceAccountEmail("serviceAccountEmail1825953988") + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + CreateHmacKeyResponse response = storageClient.createHmacKey(request); + } + } +} +// [END storage_v2_generated_storageclient_createhmackey_createhmackeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyProjectNameString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyProjectNameString.java new file mode 100644 index 0000000000..f8015cd4bd --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyProjectNameString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createhmackey_projectnamestring] +import com.google.storage.v2.CreateHmacKeyResponse; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateHmacKeyProjectNameString { + + public static void main(String[] args) throws Exception { + createHmacKeyProjectNameString(); + } + + public static void createHmacKeyProjectNameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ProjectName project = ProjectName.of("[PROJECT]"); + String serviceAccountEmail = "serviceAccountEmail1825953988"; + CreateHmacKeyResponse response = storageClient.createHmacKey(project, serviceAccountEmail); + } + } +} +// [END storage_v2_generated_storageclient_createhmackey_projectnamestring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyStringString.java new file mode 100644 index 0000000000..20da7784db --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyStringString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createhmackey_stringstring] +import com.google.storage.v2.CreateHmacKeyResponse; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateHmacKeyStringString { + + public static void main(String[] args) throws Exception { + createHmacKeyStringString(); + } + + public static void createHmacKeyStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String project = ProjectName.of("[PROJECT]").toString(); + String serviceAccountEmail = "serviceAccountEmail1825953988"; + CreateHmacKeyResponse response = storageClient.createHmacKey(project, serviceAccountEmail); + } + } +} +// [END storage_v2_generated_storageclient_createhmackey_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java new file mode 100644 index 0000000000..a23d377f8f --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.CreateNotificationRequest; +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateNotificationCallableFutureCallCreateNotificationRequest { + + public static void main(String[] args) throws Exception { + createNotificationCallableFutureCallCreateNotificationRequest(); + } + + public static void createNotificationCallableFutureCallCreateNotificationRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + CreateNotificationRequest request = + CreateNotificationRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setNotification(Notification.newBuilder().build()) + .build(); + ApiFuture future = + storageClient.createNotificationCallable().futureCall(request); + // Do something. + Notification response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCreateNotificationRequest.java new file mode 100644 index 0000000000..c975d6cc2f --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCreateNotificationRequest.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createnotification_createnotificationrequest] +import com.google.storage.v2.CreateNotificationRequest; +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateNotificationCreateNotificationRequest { + + public static void main(String[] args) throws Exception { + createNotificationCreateNotificationRequest(); + } + + public static void createNotificationCreateNotificationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + CreateNotificationRequest request = + CreateNotificationRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setNotification(Notification.newBuilder().build()) + .build(); + Notification response = storageClient.createNotification(request); + } + } +} +// [END storage_v2_generated_storageclient_createnotification_createnotificationrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationProjectNameNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationProjectNameNotification.java new file mode 100644 index 0000000000..9301a1b9b0 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationProjectNameNotification.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createnotification_projectnamenotification] +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateNotificationProjectNameNotification { + + public static void main(String[] args) throws Exception { + createNotificationProjectNameNotification(); + } + + public static void createNotificationProjectNameNotification() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Notification notification = Notification.newBuilder().build(); + Notification response = storageClient.createNotification(parent, notification); + } + } +} +// [END storage_v2_generated_storageclient_createnotification_projectnamenotification] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationStringNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationStringNotification.java new file mode 100644 index 0000000000..85bb94e5be --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationStringNotification.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_createnotification_stringnotification] +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class CreateNotificationStringNotification { + + public static void main(String[] args) throws Exception { + createNotificationStringNotification(); + } + + public static void createNotificationStringNotification() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + Notification notification = Notification.newBuilder().build(); + Notification response = storageClient.createNotification(parent, notification); + } + } +} +// [END storage_v2_generated_storageclient_createnotification_stringnotification] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketBucketName.java new file mode 100644 index 0000000000..05043043d8 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketBucketName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletebucket_bucketname] +import com.google.protobuf.Empty; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.StorageClient; + +public class DeleteBucketBucketName { + + public static void main(String[] args) throws Exception { + deleteBucketBucketName(); + } + + public static void deleteBucketBucketName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + BucketName name = BucketName.of("[PROJECT]", "[BUCKET]"); + storageClient.deleteBucket(name); + } + } +} +// [END storage_v2_generated_storageclient_deletebucket_bucketname] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java new file mode 100644 index 0000000000..c626271f53 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.DeleteBucketRequest; +import com.google.storage.v2.StorageClient; + +public class DeleteBucketCallableFutureCallDeleteBucketRequest { + + public static void main(String[] args) throws Exception { + deleteBucketCallableFutureCallDeleteBucketRequest(); + } + + public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + DeleteBucketRequest request = + DeleteBucketRequest.newBuilder() + .setName(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.deleteBucketCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketDeleteBucketRequest.java new file mode 100644 index 0000000000..5360b4df78 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketDeleteBucketRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletebucket_deletebucketrequest] +import com.google.protobuf.Empty; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.DeleteBucketRequest; +import com.google.storage.v2.StorageClient; + +public class DeleteBucketDeleteBucketRequest { + + public static void main(String[] args) throws Exception { + deleteBucketDeleteBucketRequest(); + } + + public static void deleteBucketDeleteBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + DeleteBucketRequest request = + DeleteBucketRequest.newBuilder() + .setName(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + storageClient.deleteBucket(request); + } + } +} +// [END storage_v2_generated_storageclient_deletebucket_deletebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketString.java new file mode 100644 index 0000000000..c915a0d7db --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletebucket_string] +import com.google.protobuf.Empty; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.StorageClient; + +public class DeleteBucketString { + + public static void main(String[] args) throws Exception { + deleteBucketString(); + } + + public static void deleteBucketString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String name = BucketName.of("[PROJECT]", "[BUCKET]").toString(); + storageClient.deleteBucket(name); + } + } +} +// [END storage_v2_generated_storageclient_deletebucket_string] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java new file mode 100644 index 0000000000..69cd4be8a0 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.DeleteHmacKeyRequest; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest { + + public static void main(String[] args) throws Exception { + deleteHmacKeyCallableFutureCallDeleteHmacKeyRequest(); + } + + public static void deleteHmacKeyCallableFutureCallDeleteHmacKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + DeleteHmacKeyRequest request = + DeleteHmacKeyRequest.newBuilder() + .setAccessId("accessId-2146437729") + .setProject(ProjectName.of("[PROJECT]").toString()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.deleteHmacKeyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyDeleteHmacKeyRequest.java new file mode 100644 index 0000000000..49ead72246 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyDeleteHmacKeyRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest] +import com.google.protobuf.Empty; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.DeleteHmacKeyRequest; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class DeleteHmacKeyDeleteHmacKeyRequest { + + public static void main(String[] args) throws Exception { + deleteHmacKeyDeleteHmacKeyRequest(); + } + + public static void deleteHmacKeyDeleteHmacKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + DeleteHmacKeyRequest request = + DeleteHmacKeyRequest.newBuilder() + .setAccessId("accessId-2146437729") + .setProject(ProjectName.of("[PROJECT]").toString()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + storageClient.deleteHmacKey(request); + } + } +} +// [END storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringProjectName.java new file mode 100644 index 0000000000..cab5a1a0de --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringProjectName.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletehmackey_stringprojectname] +import com.google.protobuf.Empty; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class DeleteHmacKeyStringProjectName { + + public static void main(String[] args) throws Exception { + deleteHmacKeyStringProjectName(); + } + + public static void deleteHmacKeyStringProjectName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String accessId = "accessId-2146437729"; + ProjectName project = ProjectName.of("[PROJECT]"); + storageClient.deleteHmacKey(accessId, project); + } + } +} +// [END storage_v2_generated_storageclient_deletehmackey_stringprojectname] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringString.java new file mode 100644 index 0000000000..2f9ba4553d --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletehmackey_stringstring] +import com.google.protobuf.Empty; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class DeleteHmacKeyStringString { + + public static void main(String[] args) throws Exception { + deleteHmacKeyStringString(); + } + + public static void deleteHmacKeyStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String accessId = "accessId-2146437729"; + String project = ProjectName.of("[PROJECT]").toString(); + storageClient.deleteHmacKey(accessId, project); + } + } +} +// [END storage_v2_generated_storageclient_deletehmackey_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java new file mode 100644 index 0000000000..9cfe38c504 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.storage.v2.DeleteNotificationRequest; +import com.google.storage.v2.NotificationName; +import com.google.storage.v2.StorageClient; + +public class DeleteNotificationCallableFutureCallDeleteNotificationRequest { + + public static void main(String[] args) throws Exception { + deleteNotificationCallableFutureCallDeleteNotificationRequest(); + } + + public static void deleteNotificationCallableFutureCallDeleteNotificationRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + DeleteNotificationRequest request = + DeleteNotificationRequest.newBuilder() + .setName(NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]").toString()) + .build(); + ApiFuture future = storageClient.deleteNotificationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationDeleteNotificationRequest.java new file mode 100644 index 0000000000..939c3b33fd --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationDeleteNotificationRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletenotification_deletenotificationrequest] +import com.google.protobuf.Empty; +import com.google.storage.v2.DeleteNotificationRequest; +import com.google.storage.v2.NotificationName; +import com.google.storage.v2.StorageClient; + +public class DeleteNotificationDeleteNotificationRequest { + + public static void main(String[] args) throws Exception { + deleteNotificationDeleteNotificationRequest(); + } + + public static void deleteNotificationDeleteNotificationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + DeleteNotificationRequest request = + DeleteNotificationRequest.newBuilder() + .setName(NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]").toString()) + .build(); + storageClient.deleteNotification(request); + } + } +} +// [END storage_v2_generated_storageclient_deletenotification_deletenotificationrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationNotificationName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationNotificationName.java new file mode 100644 index 0000000000..4ac74857c4 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationNotificationName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletenotification_notificationname] +import com.google.protobuf.Empty; +import com.google.storage.v2.NotificationName; +import com.google.storage.v2.StorageClient; + +public class DeleteNotificationNotificationName { + + public static void main(String[] args) throws Exception { + deleteNotificationNotificationName(); + } + + public static void deleteNotificationNotificationName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + NotificationName name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]"); + storageClient.deleteNotification(name); + } + } +} +// [END storage_v2_generated_storageclient_deletenotification_notificationname] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationString.java new file mode 100644 index 0000000000..64a047c071 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deletenotification_string] +import com.google.protobuf.Empty; +import com.google.storage.v2.NotificationName; +import com.google.storage.v2.StorageClient; + +public class DeleteNotificationString { + + public static void main(String[] args) throws Exception { + deleteNotificationString(); + } + + public static void deleteNotificationString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]").toString(); + storageClient.deleteNotification(name); + } + } +} +// [END storage_v2_generated_storageclient_deletenotification_string] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectCallableFutureCallDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectCallableFutureCallDeleteObjectRequest.java new file mode 100644 index 0000000000..2f94fcd722 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectCallableFutureCallDeleteObjectRequest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.DeleteObjectRequest; +import com.google.storage.v2.StorageClient; + +public class DeleteObjectCallableFutureCallDeleteObjectRequest { + + public static void main(String[] args) throws Exception { + deleteObjectCallableFutureCallDeleteObjectRequest(); + } + + public static void deleteObjectCallableFutureCallDeleteObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + DeleteObjectRequest request = + DeleteObjectRequest.newBuilder() + .setBucket("bucket-1378203158") + .setObject("object-1023368385") + .setUploadId("uploadId1563990780") + .setGeneration(305703192) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.deleteObjectCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectDeleteObjectRequest.java new file mode 100644 index 0000000000..ba50643181 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectDeleteObjectRequest.java @@ -0,0 +1,52 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deleteobject_deleteobjectrequest] +import com.google.protobuf.Empty; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.DeleteObjectRequest; +import com.google.storage.v2.StorageClient; + +public class DeleteObjectDeleteObjectRequest { + + public static void main(String[] args) throws Exception { + deleteObjectDeleteObjectRequest(); + } + + public static void deleteObjectDeleteObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + DeleteObjectRequest request = + DeleteObjectRequest.newBuilder() + .setBucket("bucket-1378203158") + .setObject("object-1023368385") + .setUploadId("uploadId1563990780") + .setGeneration(305703192) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + storageClient.deleteObject(request); + } + } +} +// [END storage_v2_generated_storageclient_deleteobject_deleteobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringString.java new file mode 100644 index 0000000000..0d72e1a655 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deleteobject_stringstring] +import com.google.protobuf.Empty; +import com.google.storage.v2.StorageClient; + +public class DeleteObjectStringString { + + public static void main(String[] args) throws Exception { + deleteObjectStringString(); + } + + public static void deleteObjectStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String bucket = "bucket-1378203158"; + String object = "object-1023368385"; + storageClient.deleteObject(bucket, object); + } + } +} +// [END storage_v2_generated_storageclient_deleteobject_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringStringLong.java new file mode 100644 index 0000000000..f92ca76e37 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringStringLong.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_deleteobject_stringstringlong] +import com.google.protobuf.Empty; +import com.google.storage.v2.StorageClient; + +public class DeleteObjectStringStringLong { + + public static void main(String[] args) throws Exception { + deleteObjectStringStringLong(); + } + + public static void deleteObjectStringStringLong() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String bucket = "bucket-1378203158"; + String object = "object-1023368385"; + long generation = 305703192; + storageClient.deleteObject(bucket, object, generation); + } + } +} +// [END storage_v2_generated_storageclient_deleteobject_stringstringlong] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketBucketName.java new file mode 100644 index 0000000000..a904689f02 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketBucketName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getbucket_bucketname] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.StorageClient; + +public class GetBucketBucketName { + + public static void main(String[] args) throws Exception { + getBucketBucketName(); + } + + public static void getBucketBucketName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + BucketName name = BucketName.of("[PROJECT]", "[BUCKET]"); + Bucket response = storageClient.getBucket(name); + } + } +} +// [END storage_v2_generated_storageclient_getbucket_bucketname] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java new file mode 100644 index 0000000000..02bcb0e5f5 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.GetBucketRequest; +import com.google.storage.v2.StorageClient; + +public class GetBucketCallableFutureCallGetBucketRequest { + + public static void main(String[] args) throws Exception { + getBucketCallableFutureCallGetBucketRequest(); + } + + public static void getBucketCallableFutureCallGetBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetBucketRequest request = + GetBucketRequest.newBuilder() + .setName(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = storageClient.getBucketCallable().futureCall(request); + // Do something. + Bucket response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketGetBucketRequest.java new file mode 100644 index 0000000000..28ac0f03e1 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketGetBucketRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getbucket_getbucketrequest] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.GetBucketRequest; +import com.google.storage.v2.StorageClient; + +public class GetBucketGetBucketRequest { + + public static void main(String[] args) throws Exception { + getBucketGetBucketRequest(); + } + + public static void getBucketGetBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetBucketRequest request = + GetBucketRequest.newBuilder() + .setName(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + Bucket response = storageClient.getBucket(request); + } + } +} +// [END storage_v2_generated_storageclient_getbucket_getbucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketString.java new file mode 100644 index 0000000000..c5b4b96b1e --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getbucket_string] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.StorageClient; + +public class GetBucketString { + + public static void main(String[] args) throws Exception { + getBucketString(); + } + + public static void getBucketString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String name = BucketName.of("[PROJECT]", "[BUCKET]").toString(); + Bucket response = storageClient.getBucket(name); + } + } +} +// [END storage_v2_generated_storageclient_getbucket_string] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java new file mode 100644 index 0000000000..287432c3aa --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.GetHmacKeyRequest; +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class GetHmacKeyCallableFutureCallGetHmacKeyRequest { + + public static void main(String[] args) throws Exception { + getHmacKeyCallableFutureCallGetHmacKeyRequest(); + } + + public static void getHmacKeyCallableFutureCallGetHmacKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetHmacKeyRequest request = + GetHmacKeyRequest.newBuilder() + .setAccessId("accessId-2146437729") + .setProject(ProjectName.of("[PROJECT]").toString()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.getHmacKeyCallable().futureCall(request); + // Do something. + HmacKeyMetadata response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyGetHmacKeyRequest.java new file mode 100644 index 0000000000..8746921640 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyGetHmacKeyRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_gethmackey_gethmackeyrequest] +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.GetHmacKeyRequest; +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class GetHmacKeyGetHmacKeyRequest { + + public static void main(String[] args) throws Exception { + getHmacKeyGetHmacKeyRequest(); + } + + public static void getHmacKeyGetHmacKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetHmacKeyRequest request = + GetHmacKeyRequest.newBuilder() + .setAccessId("accessId-2146437729") + .setProject(ProjectName.of("[PROJECT]").toString()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + HmacKeyMetadata response = storageClient.getHmacKey(request); + } + } +} +// [END storage_v2_generated_storageclient_gethmackey_gethmackeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringProjectName.java new file mode 100644 index 0000000000..008112f8eb --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringProjectName.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_gethmackey_stringprojectname] +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class GetHmacKeyStringProjectName { + + public static void main(String[] args) throws Exception { + getHmacKeyStringProjectName(); + } + + public static void getHmacKeyStringProjectName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String accessId = "accessId-2146437729"; + ProjectName project = ProjectName.of("[PROJECT]"); + HmacKeyMetadata response = storageClient.getHmacKey(accessId, project); + } + } +} +// [END storage_v2_generated_storageclient_gethmackey_stringprojectname] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringString.java new file mode 100644 index 0000000000..e0737aff64 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_gethmackey_stringstring] +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class GetHmacKeyStringString { + + public static void main(String[] args) throws Exception { + getHmacKeyStringString(); + } + + public static void getHmacKeyStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String accessId = "accessId-2146437729"; + String project = ProjectName.of("[PROJECT]").toString(); + HmacKeyMetadata response = storageClient.getHmacKey(accessId, project); + } + } +} +// [END storage_v2_generated_storageclient_gethmackey_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java new file mode 100644 index 0000000000..70a9e10db6 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; + +public class GetIamPolicyCallableFutureCallGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyCallableFutureCallGetIamPolicyRequest(); + } + + public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = storageClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java new file mode 100644 index 0000000000..b2d9b453a0 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest] +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; + +public class GetIamPolicyGetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + getIamPolicyGetIamPolicyRequest(); + } + + public static void getIamPolicyGetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = storageClient.getIamPolicy(request); + } + } +} +// [END storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyResourceName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyResourceName.java new file mode 100644 index 0000000000..9ba1a8a852 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyResourceName.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getiampolicy_resourcename] +import com.google.api.resourcenames.ResourceName; +import com.google.iam.v1.Policy; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; + +public class GetIamPolicyResourceName { + + public static void main(String[] args) throws Exception { + getIamPolicyResourceName(); + } + + public static void getIamPolicyResourceName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ResourceName resource = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + Policy response = storageClient.getIamPolicy(resource); + } + } +} +// [END storage_v2_generated_storageclient_getiampolicy_resourcename] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyString.java new file mode 100644 index 0000000000..b448deaf32 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getiampolicy_string] +import com.google.iam.v1.Policy; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; + +public class GetIamPolicyString { + + public static void main(String[] args) throws Exception { + getIamPolicyString(); + } + + public static void getIamPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String resource = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + Policy response = storageClient.getIamPolicy(resource); + } + } +} +// [END storage_v2_generated_storageclient_getiampolicy_string] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationBucketName.java new file mode 100644 index 0000000000..f6e2098681 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationBucketName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getnotification_bucketname] +import com.google.storage.v2.BucketName; +import com.google.storage.v2.Notification; +import com.google.storage.v2.StorageClient; + +public class GetNotificationBucketName { + + public static void main(String[] args) throws Exception { + getNotificationBucketName(); + } + + public static void getNotificationBucketName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + BucketName name = BucketName.of("[PROJECT]", "[BUCKET]"); + Notification response = storageClient.getNotification(name); + } + } +} +// [END storage_v2_generated_storageclient_getnotification_bucketname] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationCallableFutureCallGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationCallableFutureCallGetNotificationRequest.java new file mode 100644 index 0000000000..651087fd51 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationCallableFutureCallGetNotificationRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.GetNotificationRequest; +import com.google.storage.v2.Notification; +import com.google.storage.v2.StorageClient; + +public class GetNotificationCallableFutureCallGetNotificationRequest { + + public static void main(String[] args) throws Exception { + getNotificationCallableFutureCallGetNotificationRequest(); + } + + public static void getNotificationCallableFutureCallGetNotificationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetNotificationRequest request = + GetNotificationRequest.newBuilder() + .setName(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .build(); + ApiFuture future = storageClient.getNotificationCallable().futureCall(request); + // Do something. + Notification response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationGetNotificationRequest.java new file mode 100644 index 0000000000..b094916202 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationGetNotificationRequest.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getnotification_getnotificationrequest] +import com.google.storage.v2.BucketName; +import com.google.storage.v2.GetNotificationRequest; +import com.google.storage.v2.Notification; +import com.google.storage.v2.StorageClient; + +public class GetNotificationGetNotificationRequest { + + public static void main(String[] args) throws Exception { + getNotificationGetNotificationRequest(); + } + + public static void getNotificationGetNotificationRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetNotificationRequest request = + GetNotificationRequest.newBuilder() + .setName(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .build(); + Notification response = storageClient.getNotification(request); + } + } +} +// [END storage_v2_generated_storageclient_getnotification_getnotificationrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationString.java new file mode 100644 index 0000000000..4ed128fe7a --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getnotification_string] +import com.google.storage.v2.BucketName; +import com.google.storage.v2.Notification; +import com.google.storage.v2.StorageClient; + +public class GetNotificationString { + + public static void main(String[] args) throws Exception { + getNotificationString(); + } + + public static void getNotificationString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String name = BucketName.of("[PROJECT]", "[BUCKET]").toString(); + Notification response = storageClient.getNotification(name); + } + } +} +// [END storage_v2_generated_storageclient_getnotification_string] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectCallableFutureCallGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectCallableFutureCallGetObjectRequest.java new file mode 100644 index 0000000000..a41d9741d2 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectCallableFutureCallGetObjectRequest.java @@ -0,0 +1,56 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.GetObjectRequest; +import com.google.storage.v2.Object; +import com.google.storage.v2.StorageClient; + +public class GetObjectCallableFutureCallGetObjectRequest { + + public static void main(String[] args) throws Exception { + getObjectCallableFutureCallGetObjectRequest(); + } + + public static void getObjectCallableFutureCallGetObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetObjectRequest request = + GetObjectRequest.newBuilder() + .setBucket("bucket-1378203158") + .setObject("object-1023368385") + .setGeneration(305703192) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = storageClient.getObjectCallable().futureCall(request); + // Do something. + Object response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectGetObjectRequest.java new file mode 100644 index 0000000000..896b0b146d --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectGetObjectRequest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getobject_getobjectrequest] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.GetObjectRequest; +import com.google.storage.v2.Object; +import com.google.storage.v2.StorageClient; + +public class GetObjectGetObjectRequest { + + public static void main(String[] args) throws Exception { + getObjectGetObjectRequest(); + } + + public static void getObjectGetObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetObjectRequest request = + GetObjectRequest.newBuilder() + .setBucket("bucket-1378203158") + .setObject("object-1023368385") + .setGeneration(305703192) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + Object response = storageClient.getObject(request); + } + } +} +// [END storage_v2_generated_storageclient_getobject_getobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringString.java new file mode 100644 index 0000000000..2e2302ee5a --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getobject_stringstring] +import com.google.storage.v2.Object; +import com.google.storage.v2.StorageClient; + +public class GetObjectStringString { + + public static void main(String[] args) throws Exception { + getObjectStringString(); + } + + public static void getObjectStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String bucket = "bucket-1378203158"; + String object = "object-1023368385"; + Object response = storageClient.getObject(bucket, object); + } + } +} +// [END storage_v2_generated_storageclient_getobject_stringstring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringStringLong.java new file mode 100644 index 0000000000..c70bd4ada7 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringStringLong.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getobject_stringstringlong] +import com.google.storage.v2.Object; +import com.google.storage.v2.StorageClient; + +public class GetObjectStringStringLong { + + public static void main(String[] args) throws Exception { + getObjectStringStringLong(); + } + + public static void getObjectStringStringLong() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String bucket = "bucket-1378203158"; + String object = "object-1023368385"; + long generation = 305703192; + Object response = storageClient.getObject(bucket, object, generation); + } + } +} +// [END storage_v2_generated_storageclient_getobject_stringstringlong] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java new file mode 100644 index 0000000000..ab558b737c --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.GetServiceAccountRequest; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.ServiceAccount; +import com.google.storage.v2.StorageClient; + +public class GetServiceAccountCallableFutureCallGetServiceAccountRequest { + + public static void main(String[] args) throws Exception { + getServiceAccountCallableFutureCallGetServiceAccountRequest(); + } + + public static void getServiceAccountCallableFutureCallGetServiceAccountRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetServiceAccountRequest request = + GetServiceAccountRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = + storageClient.getServiceAccountCallable().futureCall(request); + // Do something. + ServiceAccount response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountGetServiceAccountRequest.java new file mode 100644 index 0000000000..f58331f444 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountGetServiceAccountRequest.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest] +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.GetServiceAccountRequest; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.ServiceAccount; +import com.google.storage.v2.StorageClient; + +public class GetServiceAccountGetServiceAccountRequest { + + public static void main(String[] args) throws Exception { + getServiceAccountGetServiceAccountRequest(); + } + + public static void getServiceAccountGetServiceAccountRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + GetServiceAccountRequest request = + GetServiceAccountRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ServiceAccount response = storageClient.getServiceAccount(request); + } + } +} +// [END storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountProjectName.java new file mode 100644 index 0000000000..8aa7eebf79 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountProjectName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getserviceaccount_projectname] +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.ServiceAccount; +import com.google.storage.v2.StorageClient; + +public class GetServiceAccountProjectName { + + public static void main(String[] args) throws Exception { + getServiceAccountProjectName(); + } + + public static void getServiceAccountProjectName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ProjectName project = ProjectName.of("[PROJECT]"); + ServiceAccount response = storageClient.getServiceAccount(project); + } + } +} +// [END storage_v2_generated_storageclient_getserviceaccount_projectname] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountString.java new file mode 100644 index 0000000000..4dd5e35482 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_getserviceaccount_string] +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.ServiceAccount; +import com.google.storage.v2.StorageClient; + +public class GetServiceAccountString { + + public static void main(String[] args) throws Exception { + getServiceAccountString(); + } + + public static void getServiceAccountString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String project = ProjectName.of("[PROJECT]").toString(); + ServiceAccount response = storageClient.getServiceAccount(project); + } + } +} +// [END storage_v2_generated_storageclient_getserviceaccount_string] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java new file mode 100644 index 0000000000..93c5fadec9 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java @@ -0,0 +1,62 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest] +import com.google.common.base.Strings; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ListBucketsRequest; +import com.google.storage.v2.ListBucketsResponse; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListBucketsCallableCallListBucketsRequest { + + public static void main(String[] args) throws Exception { + listBucketsCallableCallListBucketsRequest(); + } + + public static void listBucketsCallableCallListBucketsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setPrefix("prefix-980110702") + .setReadMask(FieldMask.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + while (true) { + ListBucketsResponse response = storageClient.listBucketsCallable().call(request); + for (Bucket element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java new file mode 100644 index 0000000000..72033abae9 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ListBucketsRequest; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListBucketsListBucketsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsListBucketsRequestIterateAll(); + } + + public static void listBucketsListBucketsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setPrefix("prefix-980110702") + .setReadMask(FieldMask.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + for (Bucket element : storageClient.listBuckets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java new file mode 100644 index 0000000000..66985890aa --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ListBucketsRequest; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListBucketsPagedCallableFutureCallListBucketsRequest { + + public static void main(String[] args) throws Exception { + listBucketsPagedCallableFutureCallListBucketsRequest(); + } + + public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListBucketsRequest request = + ListBucketsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setPrefix("prefix-980110702") + .setReadMask(FieldMask.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.listBucketsPagedCallable().futureCall(request); + // Do something. + for (Bucket element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsProjectNameIterateAll.java new file mode 100644 index 0000000000..cabfbdfa47 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listbuckets_projectnameiterateall] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListBucketsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsProjectNameIterateAll(); + } + + public static void listBucketsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (Bucket element : storageClient.listBuckets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listbuckets_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsStringIterateAll.java new file mode 100644 index 0000000000..6d01ff5db1 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listbuckets_stringiterateall] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListBucketsStringIterateAll { + + public static void main(String[] args) throws Exception { + listBucketsStringIterateAll(); + } + + public static void listBucketsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (Bucket element : storageClient.listBuckets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listbuckets_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysCallableCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysCallableCallListHmacKeysRequest.java new file mode 100644 index 0000000000..6de67b73d5 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysCallableCallListHmacKeysRequest.java @@ -0,0 +1,61 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest] +import com.google.common.base.Strings; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ListHmacKeysRequest; +import com.google.storage.v2.ListHmacKeysResponse; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListHmacKeysCallableCallListHmacKeysRequest { + + public static void main(String[] args) throws Exception { + listHmacKeysCallableCallListHmacKeysRequest(); + } + + public static void listHmacKeysCallableCallListHmacKeysRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListHmacKeysRequest request = + ListHmacKeysRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setServiceAccountEmail("serviceAccountEmail1825953988") + .setShowDeletedKeys(true) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + while (true) { + ListHmacKeysResponse response = storageClient.listHmacKeysCallable().call(request); + for (HmacKeyMetadata element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysListHmacKeysRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysListHmacKeysRequestIterateAll.java new file mode 100644 index 0000000000..49ae116c85 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysListHmacKeysRequestIterateAll.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall] +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ListHmacKeysRequest; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListHmacKeysListHmacKeysRequestIterateAll { + + public static void main(String[] args) throws Exception { + listHmacKeysListHmacKeysRequestIterateAll(); + } + + public static void listHmacKeysListHmacKeysRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListHmacKeysRequest request = + ListHmacKeysRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setServiceAccountEmail("serviceAccountEmail1825953988") + .setShowDeletedKeys(true) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + for (HmacKeyMetadata element : storageClient.listHmacKeys(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java new file mode 100644 index 0000000000..ff28880164 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ListHmacKeysRequest; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListHmacKeysPagedCallableFutureCallListHmacKeysRequest { + + public static void main(String[] args) throws Exception { + listHmacKeysPagedCallableFutureCallListHmacKeysRequest(); + } + + public static void listHmacKeysPagedCallableFutureCallListHmacKeysRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListHmacKeysRequest request = + ListHmacKeysRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setServiceAccountEmail("serviceAccountEmail1825953988") + .setShowDeletedKeys(true) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = + storageClient.listHmacKeysPagedCallable().futureCall(request); + // Do something. + for (HmacKeyMetadata element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysProjectNameIterateAll.java new file mode 100644 index 0000000000..62240f333f --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listhmackeys_projectnameiterateall] +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListHmacKeysProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listHmacKeysProjectNameIterateAll(); + } + + public static void listHmacKeysProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ProjectName project = ProjectName.of("[PROJECT]"); + for (HmacKeyMetadata element : storageClient.listHmacKeys(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listhmackeys_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysStringIterateAll.java new file mode 100644 index 0000000000..6cd1a026d0 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listhmackeys_stringiterateall] +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListHmacKeysStringIterateAll { + + public static void main(String[] args) throws Exception { + listHmacKeysStringIterateAll(); + } + + public static void listHmacKeysStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String project = ProjectName.of("[PROJECT]").toString(); + for (HmacKeyMetadata element : storageClient.listHmacKeys(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listhmackeys_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsCallableCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsCallableCallListNotificationsRequest.java new file mode 100644 index 0000000000..2a438bc708 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsCallableCallListNotificationsRequest.java @@ -0,0 +1,58 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest] +import com.google.common.base.Strings; +import com.google.storage.v2.ListNotificationsRequest; +import com.google.storage.v2.ListNotificationsResponse; +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListNotificationsCallableCallListNotificationsRequest { + + public static void main(String[] args) throws Exception { + listNotificationsCallableCallListNotificationsRequest(); + } + + public static void listNotificationsCallableCallListNotificationsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListNotificationsRequest request = + ListNotificationsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListNotificationsResponse response = + storageClient.listNotificationsCallable().call(request); + for (Notification element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsListNotificationsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsListNotificationsRequestIterateAll.java new file mode 100644 index 0000000000..407d780e47 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsListNotificationsRequestIterateAll.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall] +import com.google.storage.v2.ListNotificationsRequest; +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListNotificationsListNotificationsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listNotificationsListNotificationsRequestIterateAll(); + } + + public static void listNotificationsListNotificationsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListNotificationsRequest request = + ListNotificationsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Notification element : storageClient.listNotifications(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java new file mode 100644 index 0000000000..b2d5f46493 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.ListNotificationsRequest; +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListNotificationsPagedCallableFutureCallListNotificationsRequest { + + public static void main(String[] args) throws Exception { + listNotificationsPagedCallableFutureCallListNotificationsRequest(); + } + + public static void listNotificationsPagedCallableFutureCallListNotificationsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListNotificationsRequest request = + ListNotificationsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + storageClient.listNotificationsPagedCallable().futureCall(request); + // Do something. + for (Notification element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsProjectNameIterateAll.java new file mode 100644 index 0000000000..e7d6914b05 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listnotifications_projectnameiterateall] +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListNotificationsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listNotificationsProjectNameIterateAll(); + } + + public static void listNotificationsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (Notification element : storageClient.listNotifications(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listnotifications_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsStringIterateAll.java new file mode 100644 index 0000000000..c73f4be179 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listnotifications_stringiterateall] +import com.google.storage.v2.Notification; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListNotificationsStringIterateAll { + + public static void main(String[] args) throws Exception { + listNotificationsStringIterateAll(); + } + + public static void listNotificationsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (Notification element : storageClient.listNotifications(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listnotifications_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsCallableCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsCallableCallListObjectsRequest.java new file mode 100644 index 0000000000..b5c9569bfa --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsCallableCallListObjectsRequest.java @@ -0,0 +1,67 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest] +import com.google.common.base.Strings; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ListObjectsRequest; +import com.google.storage.v2.ListObjectsResponse; +import com.google.storage.v2.Object; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListObjectsCallableCallListObjectsRequest { + + public static void main(String[] args) throws Exception { + listObjectsCallableCallListObjectsRequest(); + } + + public static void listObjectsCallableCallListObjectsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListObjectsRequest request = + ListObjectsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setDelimiter("delimiter-250518009") + .setIncludeTrailingDelimiter(true) + .setPrefix("prefix-980110702") + .setVersions(true) + .setReadMask(FieldMask.newBuilder().build()) + .setLexicographicStart("lexicographicStart-2093413008") + .setLexicographicEnd("lexicographicEnd1646968169") + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + while (true) { + ListObjectsResponse response = storageClient.listObjectsCallable().call(request); + for (Object element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsListObjectsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsListObjectsRequestIterateAll.java new file mode 100644 index 0000000000..a3ff153a0d --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsListObjectsRequestIterateAll.java @@ -0,0 +1,56 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ListObjectsRequest; +import com.google.storage.v2.Object; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListObjectsListObjectsRequestIterateAll { + + public static void main(String[] args) throws Exception { + listObjectsListObjectsRequestIterateAll(); + } + + public static void listObjectsListObjectsRequestIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListObjectsRequest request = + ListObjectsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setDelimiter("delimiter-250518009") + .setIncludeTrailingDelimiter(true) + .setPrefix("prefix-980110702") + .setVersions(true) + .setReadMask(FieldMask.newBuilder().build()) + .setLexicographicStart("lexicographicStart-2093413008") + .setLexicographicEnd("lexicographicEnd1646968169") + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + for (Object element : storageClient.listObjects(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java new file mode 100644 index 0000000000..f71989b16e --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ListObjectsRequest; +import com.google.storage.v2.Object; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListObjectsPagedCallableFutureCallListObjectsRequest { + + public static void main(String[] args) throws Exception { + listObjectsPagedCallableFutureCallListObjectsRequest(); + } + + public static void listObjectsPagedCallableFutureCallListObjectsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ListObjectsRequest request = + ListObjectsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setDelimiter("delimiter-250518009") + .setIncludeTrailingDelimiter(true) + .setPrefix("prefix-980110702") + .setVersions(true) + .setReadMask(FieldMask.newBuilder().build()) + .setLexicographicStart("lexicographicStart-2093413008") + .setLexicographicEnd("lexicographicEnd1646968169") + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.listObjectsPagedCallable().futureCall(request); + // Do something. + for (Object element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsProjectNameIterateAll.java new file mode 100644 index 0000000000..d8de8bca18 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsProjectNameIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listobjects_projectnameiterateall] +import com.google.storage.v2.Object; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListObjectsProjectNameIterateAll { + + public static void main(String[] args) throws Exception { + listObjectsProjectNameIterateAll(); + } + + public static void listObjectsProjectNameIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (Object element : storageClient.listObjects(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listobjects_projectnameiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsStringIterateAll.java new file mode 100644 index 0000000000..e2b61e88a1 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsStringIterateAll.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_listobjects_stringiterateall] +import com.google.storage.v2.Object; +import com.google.storage.v2.ProjectName; +import com.google.storage.v2.StorageClient; + +public class ListObjectsStringIterateAll { + + public static void main(String[] args) throws Exception { + listObjectsStringIterateAll(); + } + + public static void listObjectsStringIterateAll() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (Object element : storageClient.listObjects(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storage_v2_generated_storageclient_listobjects_stringiterateall] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyBucketName.java new file mode 100644 index 0000000000..6afbe752a3 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyBucketName.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.StorageClient; + +public class LockBucketRetentionPolicyBucketName { + + public static void main(String[] args) throws Exception { + lockBucketRetentionPolicyBucketName(); + } + + public static void lockBucketRetentionPolicyBucketName() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + BucketName bucket = BucketName.of("[PROJECT]", "[BUCKET]"); + Bucket response = storageClient.lockBucketRetentionPolicy(bucket); + } + } +} +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java new file mode 100644 index 0000000000..55e823315d --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.LockBucketRetentionPolicyRequest; +import com.google.storage.v2.StorageClient; + +public class LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest { + + public static void main(String[] args) throws Exception { + lockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest(); + } + + public static void lockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + LockBucketRetentionPolicyRequest request = + LockBucketRetentionPolicyRequest.newBuilder() + .setBucket(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .setIfMetagenerationMatch(1043427781) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = + storageClient.lockBucketRetentionPolicyCallable().futureCall(request); + // Do something. + Bucket response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java new file mode 100644 index 0000000000..8979089588 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.LockBucketRetentionPolicyRequest; +import com.google.storage.v2.StorageClient; + +public class LockBucketRetentionPolicyLockBucketRetentionPolicyRequest { + + public static void main(String[] args) throws Exception { + lockBucketRetentionPolicyLockBucketRetentionPolicyRequest(); + } + + public static void lockBucketRetentionPolicyLockBucketRetentionPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + LockBucketRetentionPolicyRequest request = + LockBucketRetentionPolicyRequest.newBuilder() + .setBucket(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .setIfMetagenerationMatch(1043427781) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + Bucket response = storageClient.lockBucketRetentionPolicy(request); + } + } +} +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyString.java new file mode 100644 index 0000000000..5d86e8e1b2 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_string] +import com.google.storage.v2.Bucket; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.StorageClient; + +public class LockBucketRetentionPolicyString { + + public static void main(String[] args) throws Exception { + lockBucketRetentionPolicyString(); + } + + public static void lockBucketRetentionPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String bucket = BucketName.of("[PROJECT]", "[BUCKET]").toString(); + Bucket response = storageClient.lockBucketRetentionPolicy(bucket); + } + } +} +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_string] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java new file mode 100644 index 0000000000..e1f0acf08a --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.QueryWriteStatusRequest; +import com.google.storage.v2.QueryWriteStatusResponse; +import com.google.storage.v2.StorageClient; + +public class QueryWriteStatusCallableFutureCallQueryWriteStatusRequest { + + public static void main(String[] args) throws Exception { + queryWriteStatusCallableFutureCallQueryWriteStatusRequest(); + } + + public static void queryWriteStatusCallableFutureCallQueryWriteStatusRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + QueryWriteStatusRequest request = + QueryWriteStatusRequest.newBuilder() + .setUploadId("uploadId1563990780") + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = + storageClient.queryWriteStatusCallable().futureCall(request); + // Do something. + QueryWriteStatusResponse response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusQueryWriteStatusRequest.java new file mode 100644 index 0000000000..9b54333582 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusQueryWriteStatusRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest] +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.QueryWriteStatusRequest; +import com.google.storage.v2.QueryWriteStatusResponse; +import com.google.storage.v2.StorageClient; + +public class QueryWriteStatusQueryWriteStatusRequest { + + public static void main(String[] args) throws Exception { + queryWriteStatusQueryWriteStatusRequest(); + } + + public static void queryWriteStatusQueryWriteStatusRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + QueryWriteStatusRequest request = + QueryWriteStatusRequest.newBuilder() + .setUploadId("uploadId1563990780") + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + QueryWriteStatusResponse response = storageClient.queryWriteStatus(request); + } + } +} +// [END storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusString.java new file mode 100644 index 0000000000..5a53d74a05 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusString.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_querywritestatus_string] +import com.google.storage.v2.QueryWriteStatusResponse; +import com.google.storage.v2.StorageClient; + +public class QueryWriteStatusString { + + public static void main(String[] args) throws Exception { + queryWriteStatusString(); + } + + public static void queryWriteStatusString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String uploadId = "uploadId1563990780"; + QueryWriteStatusResponse response = storageClient.queryWriteStatus(uploadId); + } + } +} +// [END storage_v2_generated_storageclient_querywritestatus_string] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/readObject/ReadObjectCallableCallReadObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/readObject/ReadObjectCallableCallReadObjectRequest.java new file mode 100644 index 0000000000..ccd540d4a6 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/readObject/ReadObjectCallableCallReadObjectRequest.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest] +import com.google.api.gax.rpc.ServerStream; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ReadObjectRequest; +import com.google.storage.v2.ReadObjectResponse; +import com.google.storage.v2.StorageClient; + +public class ReadObjectCallableCallReadObjectRequest { + + public static void main(String[] args) throws Exception { + readObjectCallableCallReadObjectRequest(); + } + + public static void readObjectCallableCallReadObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ReadObjectRequest request = + ReadObjectRequest.newBuilder() + .setBucket("bucket-1378203158") + .setObject("object-1023368385") + .setGeneration(305703192) + .setReadOffset(-715377828) + .setReadLimit(-164298798) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ServerStream stream = storageClient.readObjectCallable().call(request); + for (ReadObjectResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectCallableFutureCallRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectCallableFutureCallRewriteObjectRequest.java new file mode 100644 index 0000000000..32e5e5f110 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectCallableFutureCallRewriteObjectRequest.java @@ -0,0 +1,75 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.ByteString; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.Object; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.RewriteObjectRequest; +import com.google.storage.v2.RewriteResponse; +import com.google.storage.v2.StorageClient; + +public class RewriteObjectCallableFutureCallRewriteObjectRequest { + + public static void main(String[] args) throws Exception { + rewriteObjectCallableFutureCallRewriteObjectRequest(); + } + + public static void rewriteObjectCallableFutureCallRewriteObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + RewriteObjectRequest request = + RewriteObjectRequest.newBuilder() + .setDestinationName("destinationName-1762755655") + .setDestinationBucket(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .setDestinationKmsKey( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setDestination(Object.newBuilder().build()) + .setSourceBucket("sourceBucket841604581") + .setSourceObject("sourceObject1196439354") + .setSourceGeneration(1232209852) + .setRewriteToken("rewriteToken80654285") + .setDestinationPredefinedAcl(PredefinedObjectAcl.forNumber(0)) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setIfSourceGenerationMatch(-1427877280) + .setIfSourceGenerationNotMatch(1575612532) + .setIfSourceMetagenerationMatch(1143319909) + .setIfSourceMetagenerationNotMatch(1900822777) + .setMaxBytesRewrittenPerCall(1178170730) + .setCopySourceEncryptionAlgorithm("copySourceEncryptionAlgorithm-1524952548") + .setCopySourceEncryptionKeyBytes(ByteString.EMPTY) + .setCopySourceEncryptionKeySha256Bytes(ByteString.EMPTY) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.rewriteObjectCallable().futureCall(request); + // Do something. + RewriteResponse response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectRewriteObjectRequest.java new file mode 100644 index 0000000000..c94aeb405a --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectRewriteObjectRequest.java @@ -0,0 +1,72 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest] +import com.google.protobuf.ByteString; +import com.google.storage.v2.BucketName; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.Object; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.RewriteObjectRequest; +import com.google.storage.v2.RewriteResponse; +import com.google.storage.v2.StorageClient; + +public class RewriteObjectRewriteObjectRequest { + + public static void main(String[] args) throws Exception { + rewriteObjectRewriteObjectRequest(); + } + + public static void rewriteObjectRewriteObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + RewriteObjectRequest request = + RewriteObjectRequest.newBuilder() + .setDestinationName("destinationName-1762755655") + .setDestinationBucket(BucketName.of("[PROJECT]", "[BUCKET]").toString()) + .setDestinationKmsKey( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setDestination(Object.newBuilder().build()) + .setSourceBucket("sourceBucket841604581") + .setSourceObject("sourceObject1196439354") + .setSourceGeneration(1232209852) + .setRewriteToken("rewriteToken80654285") + .setDestinationPredefinedAcl(PredefinedObjectAcl.forNumber(0)) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setIfSourceGenerationMatch(-1427877280) + .setIfSourceGenerationNotMatch(1575612532) + .setIfSourceMetagenerationMatch(1143319909) + .setIfSourceMetagenerationNotMatch(1900822777) + .setMaxBytesRewrittenPerCall(1178170730) + .setCopySourceEncryptionAlgorithm("copySourceEncryptionAlgorithm-1524952548") + .setCopySourceEncryptionKeyBytes(ByteString.EMPTY) + .setCopySourceEncryptionKeySha256Bytes(ByteString.EMPTY) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + RewriteResponse response = storageClient.rewriteObject(request); + } + } +} +// [END storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java new file mode 100644 index 0000000000..0f3fdd05b0 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; + +public class SetIamPolicyCallableFutureCallSetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicyCallableFutureCallSetIamPolicyRequest(); + } + + public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + ApiFuture future = storageClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyResourceNamePolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyResourceNamePolicy.java new file mode 100644 index 0000000000..ed88b62e00 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyResourceNamePolicy.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy] +import com.google.api.resourcenames.ResourceName; +import com.google.iam.v1.Policy; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; + +public class SetIamPolicyResourceNamePolicy { + + public static void main(String[] args) throws Exception { + setIamPolicyResourceNamePolicy(); + } + + public static void setIamPolicyResourceNamePolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ResourceName resource = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + Policy policy = Policy.newBuilder().build(); + Policy response = storageClient.setIamPolicy(resource, policy); + } + } +} +// [END storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java new file mode 100644 index 0000000000..d4ff10bfe1 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest] +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; + +public class SetIamPolicySetIamPolicyRequest { + + public static void main(String[] args) throws Exception { + setIamPolicySetIamPolicyRequest(); + } + + public static void setIamPolicySetIamPolicyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + Policy response = storageClient.setIamPolicy(request); + } + } +} +// [END storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyStringPolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyStringPolicy.java new file mode 100644 index 0000000000..108d431411 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyStringPolicy.java @@ -0,0 +1,40 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_setiampolicy_stringpolicy] +import com.google.iam.v1.Policy; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; + +public class SetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + setIamPolicyStringPolicy(); + } + + public static void setIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String resource = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = storageClient.setIamPolicy(resource, policy); + } + } +} +// [END storage_v2_generated_storageclient_setiampolicy_stringpolicy] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java new file mode 100644 index 0000000000..14cb34fd69 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest] +import com.google.api.core.ApiFuture; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.StartResumableWriteRequest; +import com.google.storage.v2.StartResumableWriteResponse; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.WriteObjectSpec; + +public class StartResumableWriteCallableFutureCallStartResumableWriteRequest { + + public static void main(String[] args) throws Exception { + startResumableWriteCallableFutureCallStartResumableWriteRequest(); + } + + public static void startResumableWriteCallableFutureCallStartResumableWriteRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + StartResumableWriteRequest request = + StartResumableWriteRequest.newBuilder() + .setWriteObjectSpec(WriteObjectSpec.newBuilder().build()) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = + storageClient.startResumableWriteCallable().futureCall(request); + // Do something. + StartResumableWriteResponse response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteStartResumableWriteRequest.java new file mode 100644 index 0000000000..4af29ff9f6 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteStartResumableWriteRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest] +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.StartResumableWriteRequest; +import com.google.storage.v2.StartResumableWriteResponse; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.WriteObjectSpec; + +public class StartResumableWriteStartResumableWriteRequest { + + public static void main(String[] args) throws Exception { + startResumableWriteStartResumableWriteRequest(); + } + + public static void startResumableWriteStartResumableWriteRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + StartResumableWriteRequest request = + StartResumableWriteRequest.newBuilder() + .setWriteObjectSpec(WriteObjectSpec.newBuilder().build()) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + StartResumableWriteResponse response = storageClient.startResumableWrite(request); + } + } +} +// [END storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java new file mode 100644 index 0000000000..58302c2ef4 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; +import java.util.ArrayList; + +public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsCallableFutureCallTestIamPermissionsRequest(); + } + + public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + storageClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsResourceNameListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsResourceNameListString.java new file mode 100644 index 0000000000..327c9646d4 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsResourceNameListString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_testiampermissions_resourcenameliststring] +import com.google.api.resourcenames.ResourceName; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; +import java.util.ArrayList; +import java.util.List; + +public class TestIamPermissionsResourceNameListString { + + public static void main(String[] args) throws Exception { + testIamPermissionsResourceNameListString(); + } + + public static void testIamPermissionsResourceNameListString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ResourceName resource = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = storageClient.testIamPermissions(resource, permissions); + } + } +} +// [END storage_v2_generated_storageclient_testiampermissions_resourcenameliststring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsStringListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsStringListString.java new file mode 100644 index 0000000000..7ff6c868af --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsStringListString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_testiampermissions_stringliststring] +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; +import java.util.ArrayList; +import java.util.List; + +public class TestIamPermissionsStringListString { + + public static void main(String[] args) throws Exception { + testIamPermissionsStringListString(); + } + + public static void testIamPermissionsStringListString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + String resource = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = storageClient.testIamPermissions(resource, permissions); + } + } +} +// [END storage_v2_generated_storageclient_testiampermissions_stringliststring] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java new file mode 100644 index 0000000000..a773f3d9b7 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest] +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.storage.v2.CryptoKeyName; +import com.google.storage.v2.StorageClient; +import java.util.ArrayList; + +public class TestIamPermissionsTestIamPermissionsRequest { + + public static void main(String[] args) throws Exception { + testIamPermissionsTestIamPermissionsRequest(); + } + + public static void testIamPermissionsTestIamPermissionsRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = storageClient.testIamPermissions(request); + } + } +} +// [END storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketBucketFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketBucketFieldMask.java new file mode 100644 index 0000000000..e4cf15a5c9 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketBucketFieldMask.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updatebucket_bucketfieldmask] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.StorageClient; + +public class UpdateBucketBucketFieldMask { + + public static void main(String[] args) throws Exception { + updateBucketBucketFieldMask(); + } + + public static void updateBucketBucketFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + Bucket bucket = Bucket.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Bucket response = storageClient.updateBucket(bucket, updateMask); + } + } +} +// [END storage_v2_generated_storageclient_updatebucket_bucketfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java new file mode 100644 index 0000000000..9306cc258a --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.PredefinedBucketAcl; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.UpdateBucketRequest; + +public class UpdateBucketCallableFutureCallUpdateBucketRequest { + + public static void main(String[] args) throws Exception { + updateBucketCallableFutureCallUpdateBucketRequest(); + } + + public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setBucket(Bucket.newBuilder().build()) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setPredefinedAcl(PredefinedBucketAcl.forNumber(0)) + .setPredefinedDefaultObjectAcl(PredefinedObjectAcl.forNumber(0)) + .setUpdateMask(FieldMask.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.updateBucketCallable().futureCall(request); + // Do something. + Bucket response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketUpdateBucketRequest.java new file mode 100644 index 0000000000..ed9db9b4de --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketUpdateBucketRequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updatebucket_updatebucketrequest] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Bucket; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.PredefinedBucketAcl; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.UpdateBucketRequest; + +public class UpdateBucketUpdateBucketRequest { + + public static void main(String[] args) throws Exception { + updateBucketUpdateBucketRequest(); + } + + public static void updateBucketUpdateBucketRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setBucket(Bucket.newBuilder().build()) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setPredefinedAcl(PredefinedBucketAcl.forNumber(0)) + .setPredefinedDefaultObjectAcl(PredefinedObjectAcl.forNumber(0)) + .setUpdateMask(FieldMask.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + Bucket response = storageClient.updateBucket(request); + } + } +} +// [END storage_v2_generated_storageclient_updatebucket_updatebucketrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java new file mode 100644 index 0000000000..13d50767bb --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.UpdateHmacKeyRequest; + +public class UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest { + + public static void main(String[] args) throws Exception { + updateHmacKeyCallableFutureCallUpdateHmacKeyRequest(); + } + + public static void updateHmacKeyCallableFutureCallUpdateHmacKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + UpdateHmacKeyRequest request = + UpdateHmacKeyRequest.newBuilder() + .setHmacKey(HmacKeyMetadata.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = storageClient.updateHmacKeyCallable().futureCall(request); + // Do something. + HmacKeyMetadata response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyHmacKeyMetadataFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyHmacKeyMetadataFieldMask.java new file mode 100644 index 0000000000..1b08039093 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyHmacKeyMetadataFieldMask.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.StorageClient; + +public class UpdateHmacKeyHmacKeyMetadataFieldMask { + + public static void main(String[] args) throws Exception { + updateHmacKeyHmacKeyMetadataFieldMask(); + } + + public static void updateHmacKeyHmacKeyMetadataFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + HmacKeyMetadata hmacKey = HmacKeyMetadata.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + HmacKeyMetadata response = storageClient.updateHmacKey(hmacKey, updateMask); + } + } +} +// [END storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyUpdateHmacKeyRequest.java new file mode 100644 index 0000000000..00922474c9 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyUpdateHmacKeyRequest.java @@ -0,0 +1,45 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.HmacKeyMetadata; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.UpdateHmacKeyRequest; + +public class UpdateHmacKeyUpdateHmacKeyRequest { + + public static void main(String[] args) throws Exception { + updateHmacKeyUpdateHmacKeyRequest(); + } + + public static void updateHmacKeyUpdateHmacKeyRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + UpdateHmacKeyRequest request = + UpdateHmacKeyRequest.newBuilder() + .setHmacKey(HmacKeyMetadata.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + HmacKeyMetadata response = storageClient.updateHmacKey(request); + } + } +} +// [END storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectCallableFutureCallUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectCallableFutureCallUpdateObjectRequest.java new file mode 100644 index 0000000000..cfdc1ef2dc --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectCallableFutureCallUpdateObjectRequest.java @@ -0,0 +1,56 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.Object; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.UpdateObjectRequest; + +public class UpdateObjectCallableFutureCallUpdateObjectRequest { + + public static void main(String[] args) throws Exception { + updateObjectCallableFutureCallUpdateObjectRequest(); + } + + public static void updateObjectCallableFutureCallUpdateObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + UpdateObjectRequest request = + UpdateObjectRequest.newBuilder() + .setObject(Object.newBuilder().build()) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setPredefinedAcl(PredefinedObjectAcl.forNumber(0)) + .setUpdateMask(FieldMask.newBuilder().build()) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + ApiFuture future = storageClient.updateObjectCallable().futureCall(request); + // Do something. + Object response = future.get(); + } + } +} +// [END storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectObjectFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectObjectFieldMask.java new file mode 100644 index 0000000000..1f0bb62891 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectObjectFieldMask.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updateobject_objectfieldmask] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.Object; +import com.google.storage.v2.StorageClient; + +public class UpdateObjectObjectFieldMask { + + public static void main(String[] args) throws Exception { + updateObjectObjectFieldMask(); + } + + public static void updateObjectObjectFieldMask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + Object object = Object.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Object response = storageClient.updateObject(object, updateMask); + } + } +} +// [END storage_v2_generated_storageclient_updateobject_objectfieldmask] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectUpdateObjectRequest.java new file mode 100644 index 0000000000..ebf51e0765 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectUpdateObjectRequest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_updateobject_updateobjectrequest] +import com.google.protobuf.FieldMask; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.Object; +import com.google.storage.v2.PredefinedObjectAcl; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.UpdateObjectRequest; + +public class UpdateObjectUpdateObjectRequest { + + public static void main(String[] args) throws Exception { + updateObjectUpdateObjectRequest(); + } + + public static void updateObjectUpdateObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + UpdateObjectRequest request = + UpdateObjectRequest.newBuilder() + .setObject(Object.newBuilder().build()) + .setIfGenerationMatch(-1086241088) + .setIfGenerationNotMatch(1475720404) + .setIfMetagenerationMatch(1043427781) + .setIfMetagenerationNotMatch(1025430873) + .setPredefinedAcl(PredefinedObjectAcl.forNumber(0)) + .setUpdateMask(FieldMask.newBuilder().build()) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + Object response = storageClient.updateObject(request); + } + } +} +// [END storage_v2_generated_storageclient_updateobject_updateobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/writeObject/WriteObjectClientStreamingCallWriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/writeObject/WriteObjectClientStreamingCallWriteObjectRequest.java new file mode 100644 index 0000000000..2c6a848a72 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/writeObject/WriteObjectClientStreamingCallWriteObjectRequest.java @@ -0,0 +1,68 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest] +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.storage.v2.CommonObjectRequestParams; +import com.google.storage.v2.CommonRequestParams; +import com.google.storage.v2.ObjectChecksums; +import com.google.storage.v2.StorageClient; +import com.google.storage.v2.WriteObjectRequest; +import com.google.storage.v2.WriteObjectResponse; + +public class WriteObjectClientStreamingCallWriteObjectRequest { + + public static void main(String[] args) throws Exception { + writeObjectClientStreamingCallWriteObjectRequest(); + } + + public static void writeObjectClientStreamingCallWriteObjectRequest() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (StorageClient storageClient = StorageClient.create()) { + ApiStreamObserver responseObserver = + new ApiStreamObserver() { + @Override + public void onNext(WriteObjectResponse response) { + // Do something when a response is received. + } + + @Override + public void onError(Throwable t) { + // Add error-handling + } + + @Override + public void onCompleted() { + // Do something when complete. + } + }; + ApiStreamObserver requestObserver = + storageClient.writeObject().clientStreamingCall(responseObserver); + WriteObjectRequest request = + WriteObjectRequest.newBuilder() + .setWriteOffset(-1559543565) + .setObjectChecksums(ObjectChecksums.newBuilder().build()) + .setFinishWrite(true) + .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()) + .setCommonRequestParams(CommonRequestParams.newBuilder().build()) + .build(); + requestObserver.onNext(request); + } + } +} +// [END storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java new file mode 100644 index 0000000000..44be288392 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.samples; + +// [START storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings] +import com.google.storage.v2.StorageSettings; +import java.time.Duration; + +public class DeleteBucketSettingsSetRetrySettingsStorageSettings { + + public static void main(String[] args) throws Exception { + deleteBucketSettingsSetRetrySettingsStorageSettings(); + } + + public static void deleteBucketSettingsSetRetrySettingsStorageSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + StorageSettings.Builder storageSettingsBuilder = StorageSettings.newBuilder(); + storageSettingsBuilder + .deleteBucketSettings() + .setRetrySettings( + storageSettingsBuilder + .deleteBucketSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + StorageSettings storageSettings = storageSettingsBuilder.build(); + } +} +// [END storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings] \ No newline at end of file diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storageStubSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storageStubSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java new file mode 100644 index 0000000000..5b6e5b6d55 --- /dev/null +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storageStubSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.storage.v2.stub.samples; + +// [START storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings] +import com.google.storage.v2.stub.StorageStubSettings; +import java.time.Duration; + +public class DeleteBucketSettingsSetRetrySettingsStorageStubSettings { + + public static void main(String[] args) throws Exception { + deleteBucketSettingsSetRetrySettingsStorageStubSettings(); + } + + public static void deleteBucketSettingsSetRetrySettingsStorageStubSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + StorageStubSettings.Builder storageSettingsBuilder = StorageStubSettings.newBuilder(); + storageSettingsBuilder + .deleteBucketSettings() + .setRetrySettings( + storageSettingsBuilder + .deleteBucketSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + StorageStubSettings storageSettings = storageSettingsBuilder.build(); + } +} +// [END storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings] \ No newline at end of file diff --git a/test/integration/goldens/storage/com/google/storage/v2/BucketName.java b/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/BucketName.java rename to test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/CryptoKeyName.java b/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/CryptoKeyName.java rename to test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/MockStorage.java b/test/integration/goldens/storage/src/com/google/storage/v2/MockStorage.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/MockStorage.java rename to test/integration/goldens/storage/src/com/google/storage/v2/MockStorage.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/MockStorageImpl.java b/test/integration/goldens/storage/src/com/google/storage/v2/MockStorageImpl.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/MockStorageImpl.java rename to test/integration/goldens/storage/src/com/google/storage/v2/MockStorageImpl.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/NotificationName.java b/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/NotificationName.java rename to test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/ProjectName.java b/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/ProjectName.java rename to test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java b/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/StorageClient.java rename to test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/StorageClientTest.java b/test/integration/goldens/storage/src/com/google/storage/v2/StorageClientTest.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/StorageClientTest.java rename to test/integration/goldens/storage/src/com/google/storage/v2/StorageClientTest.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java b/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java rename to test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/gapic_metadata.json b/test/integration/goldens/storage/src/com/google/storage/v2/gapic_metadata.json similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/gapic_metadata.json rename to test/integration/goldens/storage/src/com/google/storage/v2/gapic_metadata.json diff --git a/test/integration/goldens/storage/com/google/storage/v2/package-info.java b/test/integration/goldens/storage/src/com/google/storage/v2/package-info.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/package-info.java rename to test/integration/goldens/storage/src/com/google/storage/v2/package-info.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/stub/GrpcStorageCallableFactory.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/stub/GrpcStorageCallableFactory.java rename to test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/stub/GrpcStorageStub.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/stub/GrpcStorageStub.java rename to test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStub.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/stub/StorageStub.java rename to test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java diff --git a/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java similarity index 100% rename from test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java rename to test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java From b1279e6fcf80feb5fb901cbda111b2061a17899c Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Tue, 15 Feb 2022 11:16:20 -0800 Subject: [PATCH 08/29] chore: update sample formatter name --- .../SampleCodeBodyJavaFormatter.java | 67 +++++++++++++++++++ .../SampleCodeJavaFormatterTest.java | 11 ++- 2 files changed, 72 insertions(+), 6 deletions(-) create mode 100644 src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java new file mode 100644 index 0000000000..a788e849b4 --- /dev/null +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java @@ -0,0 +1,67 @@ +// Copyright 2020 Google LLC +// +// 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.generator.gapic.composer.samplecode; + +import com.google.common.annotations.VisibleForTesting; +import com.google.googlejavaformat.java.Formatter; +import com.google.googlejavaformat.java.FormatterException; + +public final class SampleCodeBodyJavaFormatter { + + private SampleCodeBodyJavaFormatter() {} + + private static final Formatter FORMATTER = new Formatter(); + + private static final String FAKE_CLASS_TITLE = "public class FakeClass { void fakeMethod() {\n"; + private static final String FAKE_CLASS_CLOSE = "}}"; + + /** + * This method is used to format sample code string. + * + * @param sampleCode A string is composed by statements. + * @return String Formatted sample code string based on google java style. + */ + public static String format(String sampleCode) { + final StringBuffer buffer = new StringBuffer(); + // Wrap the sample code inside a class for composing a valid Java source code. + // Because we utilized google-java-format to reformat the codes. + buffer.append(FAKE_CLASS_TITLE); + buffer.append(sampleCode); + buffer.append(FAKE_CLASS_CLOSE); + + String formattedString = null; + try { + formattedString = FORMATTER.formatSource(buffer.toString()); + } catch (FormatterException e) { + throw new FormatException( + String.format("The sample code should be string where is composed by statements; %s", e)); + } + // Extract formatted sample code by + // 1. Removing the first and last two lines. + // 2. Delete the first 4 space for each line. + // 3. Trim the last new empty line. + return formattedString + .replaceAll("^([^\n]*\n){2}|([^\n]*\n){2}$", "") + .replaceAll("(?m)^ {4}", "") + .trim(); + } + + @VisibleForTesting + protected static class FormatException extends RuntimeException { + public FormatException(String errorMessage) { + super(errorMessage); + } + } +} diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatterTest.java index 1606c0a440..44fe47158c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatterTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeJavaFormatterTest.java @@ -17,7 +17,6 @@ import static junit.framework.TestCase.assertEquals; import static org.junit.Assert.assertThrows; -import com.google.api.generator.gapic.composer.samplecode.SampleCodeJavaFormatter.FormatException; import com.google.api.generator.testutils.LineFormatter; import org.junit.Test; @@ -26,7 +25,7 @@ public class SampleCodeJavaFormatterTest { @Test public void validFormatSampleCode_tryCatchStatement() { String samplecode = LineFormatter.lines("try(boolean condition = false){", "int x = 3;", "}"); - String result = SampleCodeJavaFormatter.format(samplecode); + String result = SampleCodeBodyJavaFormatter.format(samplecode); String expected = LineFormatter.lines("try (boolean condition = false) {\n", " int x = 3;\n", "}"); assertEquals(expected, result); @@ -37,7 +36,7 @@ public void validFormatSampleCode_longLineStatement() { String sampleCode = "SubscriptionAdminSettings subscriptionAdminSettings = " + "SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();"; - String result = SampleCodeJavaFormatter.format(sampleCode); + String result = SampleCodeBodyJavaFormatter.format(sampleCode); String expected = LineFormatter.lines( "SubscriptionAdminSettings subscriptionAdminSettings =\n", @@ -51,7 +50,7 @@ public void validFormatSampleCode_longChainMethod() { "echoSettingsBuilder.echoSettings().setRetrySettings(" + "echoSettingsBuilder.echoSettings().getRetrySettings().toBuilder()" + ".setTotalTimeout(Duration.ofSeconds(30)).build());"; - String result = SampleCodeJavaFormatter.format(sampleCode); + String result = SampleCodeBodyJavaFormatter.format(sampleCode); String expected = LineFormatter.lines( "echoSettingsBuilder\n", @@ -69,9 +68,9 @@ public void validFormatSampleCode_longChainMethod() { @Test public void invalidFormatSampleCode_nonStatement() { assertThrows( - FormatException.class, + SampleCodeBodyJavaFormatter.FormatException.class, () -> { - SampleCodeJavaFormatter.format("abc"); + SampleCodeBodyJavaFormatter.format("abc"); }); } } From 1742843bd7b92fd40cb13d05fd63656df58e7083 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Tue, 15 Feb 2022 12:25:31 -0800 Subject: [PATCH 09/29] test: integration goldens - update sample path to lowercase --- .../com/google/api/generator/gapic/protowriter/Writer.java | 4 ++-- .../AnalyzeIamPolicyAnalyzeIamPolicyRequest.java | 0 ...yzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java | 0 ...LongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java | 0 ...gCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java | 0 ...nCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java | 0 .../analyzemove}/AnalyzeMoveAnalyzeMoveRequest.java | 0 .../AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java | 0 .../BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java | 0 ...HistoryCallableFutureCallBatchGetAssetsHistoryRequest.java | 0 .../create/CreateAssetServiceSettings1.java | 0 .../create/CreateAssetServiceSettings2.java | 0 .../CreateFeedCallableFutureCallCreateFeedRequest.java | 0 .../createfeed}/CreateFeedCreateFeedRequest.java | 0 .../createfeed}/CreateFeedString.java | 0 .../DeleteFeedCallableFutureCallDeleteFeedRequest.java | 0 .../deletefeed}/DeleteFeedDeleteFeedRequest.java | 0 .../deletefeed}/DeleteFeedFeedName.java | 0 .../deletefeed}/DeleteFeedString.java | 0 .../ExportAssetsAsyncExportAssetsRequestGet.java | 0 .../ExportAssetsCallableFutureCallExportAssetsRequest.java | 0 ...tAssetsOperationCallableFutureCallExportAssetsRequest.java | 0 .../getfeed}/GetFeedCallableFutureCallGetFeedRequest.java | 0 .../getfeed}/GetFeedFeedName.java | 0 .../getfeed}/GetFeedGetFeedRequest.java | 0 .../getFeed => assetserviceclient/getfeed}/GetFeedString.java | 0 .../listassets}/ListAssetsCallableCallListAssetsRequest.java | 0 .../listassets}/ListAssetsListAssetsRequestIterateAll.java | 0 .../ListAssetsPagedCallableFutureCallListAssetsRequest.java | 0 .../listassets}/ListAssetsResourceNameIterateAll.java | 0 .../listassets}/ListAssetsStringIterateAll.java | 0 .../ListFeedsCallableFutureCallListFeedsRequest.java | 0 .../listfeeds}/ListFeedsListFeedsRequest.java | 0 .../listfeeds}/ListFeedsString.java | 0 ...AllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java | 0 ...iesPagedCallableFutureCallSearchAllIamPoliciesRequest.java | 0 ...chAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java | 0 .../SearchAllIamPoliciesStringStringIterateAll.java | 0 ...archAllResourcesCallableCallSearchAllResourcesRequest.java | 0 ...urcesPagedCallableFutureCallSearchAllResourcesRequest.java | 0 ...SearchAllResourcesSearchAllResourcesRequestIterateAll.java | 0 .../SearchAllResourcesStringStringListStringIterateAll.java | 0 .../UpdateFeedCallableFutureCallUpdateFeedRequest.java | 0 .../updatefeed}/UpdateFeedFeed.java | 0 .../updatefeed}/UpdateFeedUpdateFeedRequest.java | 0 ...tsHistorySettingsSetRetrySettingsAssetServiceSettings.java | 0 ...storySettingsSetRetrySettingsAssetServiceStubSettings.java | 0 ...ndMutateRowCallableFutureCallCheckAndMutateRowRequest.java | 0 .../CheckAndMutateRowCheckAndMutateRowRequest.java | 0 ...eRowStringByteStringRowFilterListMutationListMutation.java | 0 ...ringByteStringRowFilterListMutationListMutationString.java | 0 ...wTableNameByteStringRowFilterListMutationListMutation.java | 0 ...NameByteStringRowFilterListMutationListMutationString.java | 0 .../create/CreateBaseBigtableDataSettings1.java | 0 .../create/CreateBaseBigtableDataSettings2.java | 0 .../MutateRowCallableFutureCallMutateRowRequest.java | 0 .../mutaterow}/MutateRowMutateRowRequest.java | 0 .../mutaterow}/MutateRowStringByteStringListMutation.java | 0 .../MutateRowStringByteStringListMutationString.java | 0 .../mutaterow}/MutateRowTableNameByteStringListMutation.java | 0 .../MutateRowTableNameByteStringListMutationString.java | 0 .../mutaterows}/MutateRowsCallableCallMutateRowsRequest.java | 0 ...fyWriteRowCallableFutureCallReadModifyWriteRowRequest.java | 0 .../ReadModifyWriteRowReadModifyWriteRowRequest.java | 0 ...ModifyWriteRowStringByteStringListReadModifyWriteRule.java | 0 ...WriteRowStringByteStringListReadModifyWriteRuleString.java | 0 ...ifyWriteRowTableNameByteStringListReadModifyWriteRule.java | 0 ...teRowTableNameByteStringListReadModifyWriteRuleString.java | 0 .../readrows}/ReadRowsCallableCallReadRowsRequest.java | 0 .../SampleRowKeysCallableCallSampleRowKeysRequest.java | 0 ...teRowSettingsSetRetrySettingsBaseBigtableDataSettings.java | 0 ...MutateRowSettingsSetRetrySettingsBigtableStubSettings.java | 0 ...ggregatedListAggregatedListAddressesRequestIterateAll.java | 0 ...regatedListCallableCallAggregatedListAddressesRequest.java | 0 ...PagedCallableFutureCallAggregatedListAddressesRequest.java | 0 .../aggregatedlist}/AggregatedListStringIterateAll.java | 0 .../create/CreateAddressesSettings1.java | 0 .../create/CreateAddressesSettings2.java | 0 .../delete/DeleteAsyncDeleteAddressRequestGet.java | 0 .../delete/DeleteAsyncStringStringStringGet.java | 0 .../delete/DeleteCallableFutureCallDeleteAddressRequest.java | 0 ...DeleteOperationCallableFutureCallDeleteAddressRequest.java | 0 .../insert/InsertAsyncInsertAddressRequestGet.java | 0 .../insert/InsertAsyncStringStringAddressGet.java | 0 .../insert/InsertCallableFutureCallInsertAddressRequest.java | 0 ...InsertOperationCallableFutureCallInsertAddressRequest.java | 0 .../list/ListCallableCallListAddressesRequest.java | 0 .../list/ListListAddressesRequestIterateAll.java | 0 .../list/ListPagedCallableFutureCallListAddressesRequest.java | 0 .../list/ListStringStringStringIterateAll.java | 0 ...gregatedListSettingsSetRetrySettingsAddressesSettings.java | 0 .../create/CreateRegionOperationsSettings1.java | 0 .../create/CreateRegionOperationsSettings2.java | 0 .../get/GetCallableFutureCallGetRegionOperationRequest.java | 0 .../get/GetGetRegionOperationRequest.java | 0 .../get/GetStringStringString.java | 0 .../WaitCallableFutureCallWaitRegionOperationRequest.java | 0 .../wait/WaitStringStringString.java | 0 .../wait/WaitWaitRegionOperationRequest.java | 0 .../GetSettingsSetRetrySettingsRegionOperationsSettings.java | 0 ...atedListSettingsSetRetrySettingsAddressesStubSettings.java | 0 ...tSettingsSetRetrySettingsRegionOperationsStubSettings.java | 0 .../create/CreateIamCredentialsSettings1.java | 0 .../create/CreateIamCredentialsSettings2.java | 0 ...cessTokenCallableFutureCallGenerateAccessTokenRequest.java | 0 .../GenerateAccessTokenGenerateAccessTokenRequest.java | 0 ...ssTokenServiceAccountNameListStringListStringDuration.java | 0 ...GenerateAccessTokenStringListStringListStringDuration.java | 0 ...nerateIdTokenCallableFutureCallGenerateIdTokenRequest.java | 0 .../GenerateIdTokenGenerateIdTokenRequest.java | 0 ...erateIdTokenServiceAccountNameListStringStringBoolean.java | 0 .../GenerateIdTokenStringListStringStringBoolean.java | 0 .../signblob}/SignBlobCallableFutureCallSignBlobRequest.java | 0 .../SignBlobServiceAccountNameListStringByteString.java | 0 .../signblob}/SignBlobSignBlobRequest.java | 0 .../signblob}/SignBlobStringListStringByteString.java | 0 .../signjwt}/SignJwtCallableFutureCallSignJwtRequest.java | 0 .../signjwt}/SignJwtServiceAccountNameListStringString.java | 0 .../signjwt}/SignJwtSignJwtRequest.java | 0 .../signjwt}/SignJwtStringListStringString.java | 0 ...ssTokenSettingsSetRetrySettingsIamCredentialsSettings.java | 0 ...kenSettingsSetRetrySettingsIamCredentialsStubSettings.java | 0 .../create/CreateIAMPolicySettings1.java | 0 .../create/CreateIAMPolicySettings2.java | 0 .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 0 .../getiampolicy}/GetIamPolicyGetIamPolicyRequest.java | 0 .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 0 .../setiampolicy}/SetIamPolicySetIamPolicyRequest.java | 0 ...ermissionsCallableFutureCallTestIamPermissionsRequest.java | 0 .../TestIamPermissionsTestIamPermissionsRequest.java | 0 ...SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java | 0 ...amPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java | 0 .../AsymmetricDecryptAsymmetricDecryptRequest.java | 0 ...tricDecryptCallableFutureCallAsymmetricDecryptRequest.java | 0 .../AsymmetricDecryptCryptoKeyVersionNameByteString.java | 0 .../asymmetricdecrypt}/AsymmetricDecryptStringByteString.java | 0 .../asymmetricsign}/AsymmetricSignAsymmetricSignRequest.java | 0 ...AsymmetricSignCallableFutureCallAsymmetricSignRequest.java | 0 .../AsymmetricSignCryptoKeyVersionNameDigest.java | 0 .../asymmetricsign}/AsymmetricSignStringDigest.java | 0 .../create/CreateKeyManagementServiceSettings1.java | 0 .../create/CreateKeyManagementServiceSettings2.java | 0 ...eateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java | 0 .../CreateCryptoKeyCreateCryptoKeyRequest.java | 0 .../CreateCryptoKeyKeyRingNameStringCryptoKey.java | 0 .../CreateCryptoKeyStringStringCryptoKey.java | 0 ...ersionCallableFutureCallCreateCryptoKeyVersionRequest.java | 0 .../CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java | 0 .../CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java | 0 .../CreateCryptoKeyVersionStringCryptoKeyVersion.java | 0 ...eateImportJobCallableFutureCallCreateImportJobRequest.java | 0 .../CreateImportJobCreateImportJobRequest.java | 0 .../CreateImportJobKeyRingNameStringImportJob.java | 0 .../CreateImportJobStringStringImportJob.java | 0 .../CreateKeyRingCallableFutureCallCreateKeyRingRequest.java | 0 .../createkeyring}/CreateKeyRingCreateKeyRingRequest.java | 0 .../CreateKeyRingLocationNameStringKeyRing.java | 0 .../createkeyring}/CreateKeyRingStringStringKeyRing.java | 0 .../decrypt/DecryptCallableFutureCallDecryptRequest.java | 0 .../decrypt/DecryptCryptoKeyNameByteString.java | 0 .../decrypt/DecryptDecryptRequest.java | 0 .../decrypt/DecryptStringByteString.java | 0 ...rsionCallableFutureCallDestroyCryptoKeyVersionRequest.java | 0 .../DestroyCryptoKeyVersionCryptoKeyVersionName.java | 0 ...DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java | 0 .../DestroyCryptoKeyVersionString.java | 0 .../encrypt/EncryptCallableFutureCallEncryptRequest.java | 0 .../encrypt/EncryptEncryptRequest.java | 0 .../encrypt/EncryptResourceNameByteString.java | 0 .../encrypt/EncryptStringByteString.java | 0 .../GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java | 0 .../getcryptokey}/GetCryptoKeyCryptoKeyName.java | 0 .../getcryptokey}/GetCryptoKeyGetCryptoKeyRequest.java | 0 .../getcryptokey}/GetCryptoKeyString.java | 0 ...eyVersionCallableFutureCallGetCryptoKeyVersionRequest.java | 0 .../GetCryptoKeyVersionCryptoKeyVersionName.java | 0 .../GetCryptoKeyVersionGetCryptoKeyVersionRequest.java | 0 .../getcryptokeyversion}/GetCryptoKeyVersionString.java | 0 .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 0 .../getiampolicy}/GetIamPolicyGetIamPolicyRequest.java | 0 .../GetImportJobCallableFutureCallGetImportJobRequest.java | 0 .../getimportjob}/GetImportJobGetImportJobRequest.java | 0 .../getimportjob}/GetImportJobImportJobName.java | 0 .../getimportjob}/GetImportJobString.java | 0 .../GetKeyRingCallableFutureCallGetKeyRingRequest.java | 0 .../getkeyring}/GetKeyRingGetKeyRingRequest.java | 0 .../getkeyring}/GetKeyRingKeyRingName.java | 0 .../getkeyring}/GetKeyRingString.java | 0 .../GetLocationCallableFutureCallGetLocationRequest.java | 0 .../getlocation}/GetLocationGetLocationRequest.java | 0 .../GetPublicKeyCallableFutureCallGetPublicKeyRequest.java | 0 .../getpublickey}/GetPublicKeyCryptoKeyVersionName.java | 0 .../getpublickey}/GetPublicKeyGetPublicKeyRequest.java | 0 .../getpublickey}/GetPublicKeyString.java | 0 ...ersionCallableFutureCallImportCryptoKeyVersionRequest.java | 0 .../ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java | 0 .../ListCryptoKeysCallableCallListCryptoKeysRequest.java | 0 .../listcryptokeys}/ListCryptoKeysKeyRingNameIterateAll.java | 0 .../ListCryptoKeysListCryptoKeysRequestIterateAll.java | 0 ...ryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java | 0 .../listcryptokeys}/ListCryptoKeysStringIterateAll.java | 0 ...toKeyVersionsCallableCallListCryptoKeyVersionsRequest.java | 0 .../ListCryptoKeyVersionsCryptoKeyNameIterateAll.java | 0 ...yptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java | 0 ...nsPagedCallableFutureCallListCryptoKeyVersionsRequest.java | 0 .../ListCryptoKeyVersionsStringIterateAll.java | 0 .../ListImportJobsCallableCallListImportJobsRequest.java | 0 .../listimportjobs}/ListImportJobsKeyRingNameIterateAll.java | 0 .../ListImportJobsListImportJobsRequestIterateAll.java | 0 ...mportJobsPagedCallableFutureCallListImportJobsRequest.java | 0 .../listimportjobs}/ListImportJobsStringIterateAll.java | 0 .../ListKeyRingsCallableCallListKeyRingsRequest.java | 0 .../ListKeyRingsListKeyRingsRequestIterateAll.java | 0 .../listkeyrings}/ListKeyRingsLocationNameIterateAll.java | 0 ...istKeyRingsPagedCallableFutureCallListKeyRingsRequest.java | 0 .../listkeyrings}/ListKeyRingsStringIterateAll.java | 0 .../ListLocationsCallableCallListLocationsRequest.java | 0 .../ListLocationsListLocationsRequestIterateAll.java | 0 ...tLocationsPagedCallableFutureCallListLocationsRequest.java | 0 ...rsionCallableFutureCallRestoreCryptoKeyVersionRequest.java | 0 .../RestoreCryptoKeyVersionCryptoKeyVersionName.java | 0 ...RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java | 0 .../RestoreCryptoKeyVersionString.java | 0 ...ermissionsCallableFutureCallTestIamPermissionsRequest.java | 0 .../TestIamPermissionsTestIamPermissionsRequest.java | 0 ...dateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java | 0 .../updatecryptokey}/UpdateCryptoKeyCryptoKeyFieldMask.java | 0 .../UpdateCryptoKeyUpdateCryptoKeyRequest.java | 0 ...allableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java | 0 .../UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java | 0 .../UpdateCryptoKeyPrimaryVersionStringString.java | 0 ...KeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java | 0 ...ersionCallableFutureCallUpdateCryptoKeyVersionRequest.java | 0 .../UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java | 0 .../UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java | 0 ...gSettingsSetRetrySettingsKeyManagementServiceSettings.java | 0 ...tingsSetRetrySettingsKeyManagementServiceStubSettings.java | 0 .../create/CreateLibraryServiceSettings1.java | 0 .../create/CreateLibraryServiceSettings2.java | 0 .../CreateBookCallableFutureCallCreateBookRequest.java | 0 .../createbook}/CreateBookCreateBookRequest.java | 0 .../createbook}/CreateBookShelfNameBook.java | 0 .../createbook}/CreateBookStringBook.java | 0 .../CreateShelfCallableFutureCallCreateShelfRequest.java | 0 .../createshelf}/CreateShelfCreateShelfRequest.java | 0 .../createshelf}/CreateShelfShelf.java | 0 .../deletebook}/DeleteBookBookName.java | 0 .../DeleteBookCallableFutureCallDeleteBookRequest.java | 0 .../deletebook}/DeleteBookDeleteBookRequest.java | 0 .../deletebook}/DeleteBookString.java | 0 .../DeleteShelfCallableFutureCallDeleteShelfRequest.java | 0 .../deleteshelf}/DeleteShelfDeleteShelfRequest.java | 0 .../deleteshelf}/DeleteShelfShelfName.java | 0 .../deleteshelf}/DeleteShelfString.java | 0 .../getbook}/GetBookBookName.java | 0 .../getbook}/GetBookCallableFutureCallGetBookRequest.java | 0 .../getbook}/GetBookGetBookRequest.java | 0 .../getbook}/GetBookString.java | 0 .../getshelf}/GetShelfCallableFutureCallGetShelfRequest.java | 0 .../getshelf}/GetShelfGetShelfRequest.java | 0 .../getshelf}/GetShelfShelfName.java | 0 .../getshelf}/GetShelfString.java | 0 .../listbooks}/ListBooksCallableCallListBooksRequest.java | 0 .../listbooks}/ListBooksListBooksRequestIterateAll.java | 0 .../ListBooksPagedCallableFutureCallListBooksRequest.java | 0 .../listbooks}/ListBooksShelfNameIterateAll.java | 0 .../listbooks}/ListBooksStringIterateAll.java | 0 .../ListShelvesCallableCallListShelvesRequest.java | 0 .../listshelves}/ListShelvesListShelvesRequestIterateAll.java | 0 .../ListShelvesPagedCallableFutureCallListShelvesRequest.java | 0 .../MergeShelvesCallableFutureCallMergeShelvesRequest.java | 0 .../mergeshelves}/MergeShelvesMergeShelvesRequest.java | 0 .../mergeshelves}/MergeShelvesShelfNameShelfName.java | 0 .../mergeshelves}/MergeShelvesShelfNameString.java | 0 .../mergeshelves}/MergeShelvesStringShelfName.java | 0 .../mergeshelves}/MergeShelvesStringString.java | 0 .../movebook}/MoveBookBookNameShelfName.java | 0 .../movebook}/MoveBookBookNameString.java | 0 .../movebook}/MoveBookCallableFutureCallMoveBookRequest.java | 0 .../movebook}/MoveBookMoveBookRequest.java | 0 .../movebook}/MoveBookStringShelfName.java | 0 .../movebook}/MoveBookStringString.java | 0 .../updatebook}/UpdateBookBookFieldMask.java | 0 .../UpdateBookCallableFutureCallUpdateBookRequest.java | 0 .../updatebook}/UpdateBookUpdateBookRequest.java | 0 ...teShelfSettingsSetRetrySettingsLibraryServiceSettings.java | 0 ...elfSettingsSetRetrySettingsLibraryServiceStubSettings.java | 0 .../create/CreateConfigSettings1.java | 0 .../create/CreateConfigSettings2.java | 0 .../CreateBucketCallableFutureCallCreateBucketRequest.java | 0 .../createbucket}/CreateBucketCreateBucketRequest.java | 0 .../CreateExclusionBillingAccountNameLogExclusion.java | 0 ...eateExclusionCallableFutureCallCreateExclusionRequest.java | 0 .../CreateExclusionCreateExclusionRequest.java | 0 .../CreateExclusionFolderNameLogExclusion.java | 0 .../CreateExclusionOrganizationNameLogExclusion.java | 0 .../CreateExclusionProjectNameLogExclusion.java | 0 .../createexclusion}/CreateExclusionStringLogExclusion.java | 0 .../createsink}/CreateSinkBillingAccountNameLogSink.java | 0 .../CreateSinkCallableFutureCallCreateSinkRequest.java | 0 .../createsink}/CreateSinkCreateSinkRequest.java | 0 .../createsink}/CreateSinkFolderNameLogSink.java | 0 .../createsink}/CreateSinkOrganizationNameLogSink.java | 0 .../createsink}/CreateSinkProjectNameLogSink.java | 0 .../createsink}/CreateSinkStringLogSink.java | 0 .../CreateViewCallableFutureCallCreateViewRequest.java | 0 .../createview}/CreateViewCreateViewRequest.java | 0 .../DeleteBucketCallableFutureCallDeleteBucketRequest.java | 0 .../deletebucket}/DeleteBucketDeleteBucketRequest.java | 0 ...leteExclusionCallableFutureCallDeleteExclusionRequest.java | 0 .../DeleteExclusionDeleteExclusionRequest.java | 0 .../deleteexclusion}/DeleteExclusionLogExclusionName.java | 0 .../deleteexclusion}/DeleteExclusionString.java | 0 .../DeleteSinkCallableFutureCallDeleteSinkRequest.java | 0 .../deletesink}/DeleteSinkDeleteSinkRequest.java | 0 .../deletesink}/DeleteSinkLogSinkName.java | 0 .../deletesink}/DeleteSinkString.java | 0 .../DeleteViewCallableFutureCallDeleteViewRequest.java | 0 .../deleteview}/DeleteViewDeleteViewRequest.java | 0 .../GetBucketCallableFutureCallGetBucketRequest.java | 0 .../getbucket}/GetBucketGetBucketRequest.java | 0 ...tCmekSettingsCallableFutureCallGetCmekSettingsRequest.java | 0 .../GetCmekSettingsGetCmekSettingsRequest.java | 0 .../GetExclusionCallableFutureCallGetExclusionRequest.java | 0 .../getexclusion}/GetExclusionGetExclusionRequest.java | 0 .../getexclusion}/GetExclusionLogExclusionName.java | 0 .../getexclusion}/GetExclusionString.java | 0 .../getsink}/GetSinkCallableFutureCallGetSinkRequest.java | 0 .../getsink}/GetSinkGetSinkRequest.java | 0 .../getSink => configclient/getsink}/GetSinkLogSinkName.java | 0 .../getSink => configclient/getsink}/GetSinkString.java | 0 .../getview}/GetViewCallableFutureCallGetViewRequest.java | 0 .../getview}/GetViewGetViewRequest.java | 0 .../ListBucketsBillingAccountLocationNameIterateAll.java | 0 .../ListBucketsCallableCallListBucketsRequest.java | 0 .../listbuckets}/ListBucketsFolderLocationNameIterateAll.java | 0 .../listbuckets}/ListBucketsListBucketsRequestIterateAll.java | 0 .../listbuckets}/ListBucketsLocationNameIterateAll.java | 0 .../ListBucketsOrganizationLocationNameIterateAll.java | 0 .../ListBucketsPagedCallableFutureCallListBucketsRequest.java | 0 .../listbuckets}/ListBucketsStringIterateAll.java | 0 .../ListExclusionsBillingAccountNameIterateAll.java | 0 .../ListExclusionsCallableCallListExclusionsRequest.java | 0 .../listexclusions}/ListExclusionsFolderNameIterateAll.java | 0 .../ListExclusionsListExclusionsRequestIterateAll.java | 0 .../ListExclusionsOrganizationNameIterateAll.java | 0 ...xclusionsPagedCallableFutureCallListExclusionsRequest.java | 0 .../listexclusions}/ListExclusionsProjectNameIterateAll.java | 0 .../listexclusions}/ListExclusionsStringIterateAll.java | 0 .../listsinks}/ListSinksBillingAccountNameIterateAll.java | 0 .../listsinks}/ListSinksCallableCallListSinksRequest.java | 0 .../listsinks}/ListSinksFolderNameIterateAll.java | 0 .../listsinks}/ListSinksListSinksRequestIterateAll.java | 0 .../listsinks}/ListSinksOrganizationNameIterateAll.java | 0 .../ListSinksPagedCallableFutureCallListSinksRequest.java | 0 .../listsinks}/ListSinksProjectNameIterateAll.java | 0 .../listsinks}/ListSinksStringIterateAll.java | 0 .../listviews}/ListViewsCallableCallListViewsRequest.java | 0 .../listviews}/ListViewsListViewsRequestIterateAll.java | 0 .../ListViewsPagedCallableFutureCallListViewsRequest.java | 0 .../listviews}/ListViewsStringIterateAll.java | 0 ...UndeleteBucketCallableFutureCallUndeleteBucketRequest.java | 0 .../undeletebucket}/UndeleteBucketUndeleteBucketRequest.java | 0 .../UpdateBucketCallableFutureCallUpdateBucketRequest.java | 0 .../updatebucket}/UpdateBucketUpdateBucketRequest.java | 0 ...ekSettingsCallableFutureCallUpdateCmekSettingsRequest.java | 0 .../UpdateCmekSettingsUpdateCmekSettingsRequest.java | 0 ...dateExclusionCallableFutureCallUpdateExclusionRequest.java | 0 .../UpdateExclusionLogExclusionNameLogExclusionFieldMask.java | 0 .../UpdateExclusionStringLogExclusionFieldMask.java | 0 .../UpdateExclusionUpdateExclusionRequest.java | 0 .../UpdateSinkCallableFutureCallUpdateSinkRequest.java | 0 .../updatesink}/UpdateSinkLogSinkNameLogSink.java | 0 .../updatesink}/UpdateSinkLogSinkNameLogSinkFieldMask.java | 0 .../updatesink}/UpdateSinkStringLogSink.java | 0 .../updatesink}/UpdateSinkStringLogSinkFieldMask.java | 0 .../updatesink}/UpdateSinkUpdateSinkRequest.java | 0 .../UpdateViewCallableFutureCallUpdateViewRequest.java | 0 .../updateview}/UpdateViewUpdateViewRequest.java | 0 .../GetBucketSettingsSetRetrySettingsConfigSettings.java | 0 .../create/CreateLoggingSettings1.java | 0 .../create/CreateLoggingSettings2.java | 0 .../DeleteLogCallableFutureCallDeleteLogRequest.java | 0 .../deletelog}/DeleteLogDeleteLogRequest.java | 0 .../deletelog}/DeleteLogLogName.java | 0 .../deletelog}/DeleteLogString.java | 0 .../ListLogEntriesCallableCallListLogEntriesRequest.java | 0 .../ListLogEntriesListLogEntriesRequestIterateAll.java | 0 .../ListLogEntriesListStringStringStringIterateAll.java | 0 ...ogEntriesPagedCallableFutureCallListLogEntriesRequest.java | 0 .../listlogs}/ListLogsBillingAccountNameIterateAll.java | 0 .../listlogs}/ListLogsCallableCallListLogsRequest.java | 0 .../listlogs}/ListLogsFolderNameIterateAll.java | 0 .../listlogs}/ListLogsListLogsRequestIterateAll.java | 0 .../listlogs}/ListLogsOrganizationNameIterateAll.java | 0 .../ListLogsPagedCallableFutureCallListLogsRequest.java | 0 .../listlogs}/ListLogsProjectNameIterateAll.java | 0 .../listlogs}/ListLogsStringIterateAll.java | 0 ...rsCallableCallListMonitoredResourceDescriptorsRequest.java | 0 ...torsListMonitoredResourceDescriptorsRequestIterateAll.java | 0 ...ableFutureCallListMonitoredResourceDescriptorsRequest.java | 0 .../TailLogEntriesCallableCallTailLogEntriesRequest.java | 0 ...iteLogEntriesCallableFutureCallWriteLogEntriesRequest.java | 0 ...esLogNameMonitoredResourceMapStringStringListLogEntry.java | 0 ...iesStringMonitoredResourceMapStringStringListLogEntry.java | 0 .../WriteLogEntriesWriteLogEntriesRequest.java | 0 .../DeleteLogSettingsSetRetrySettingsLoggingSettings.java | 0 .../create/CreateMetricsSettings1.java | 0 .../create/CreateMetricsSettings2.java | 0 ...eateLogMetricCallableFutureCallCreateLogMetricRequest.java | 0 .../CreateLogMetricCreateLogMetricRequest.java | 0 .../createlogmetric}/CreateLogMetricProjectNameLogMetric.java | 0 .../createlogmetric}/CreateLogMetricStringLogMetric.java | 0 ...leteLogMetricCallableFutureCallDeleteLogMetricRequest.java | 0 .../DeleteLogMetricDeleteLogMetricRequest.java | 0 .../deletelogmetric}/DeleteLogMetricLogMetricName.java | 0 .../deletelogmetric}/DeleteLogMetricString.java | 0 .../GetLogMetricCallableFutureCallGetLogMetricRequest.java | 0 .../getlogmetric}/GetLogMetricGetLogMetricRequest.java | 0 .../getlogmetric}/GetLogMetricLogMetricName.java | 0 .../getlogmetric}/GetLogMetricString.java | 0 .../ListLogMetricsCallableCallListLogMetricsRequest.java | 0 .../ListLogMetricsListLogMetricsRequestIterateAll.java | 0 ...ogMetricsPagedCallableFutureCallListLogMetricsRequest.java | 0 .../listlogmetrics}/ListLogMetricsProjectNameIterateAll.java | 0 .../listlogmetrics}/ListLogMetricsStringIterateAll.java | 0 ...dateLogMetricCallableFutureCallUpdateLogMetricRequest.java | 0 .../UpdateLogMetricLogMetricNameLogMetric.java | 0 .../updatelogmetric}/UpdateLogMetricStringLogMetric.java | 0 .../UpdateLogMetricUpdateLogMetricRequest.java | 0 .../GetLogMetricSettingsSetRetrySettingsMetricsSettings.java | 0 ...etSettingsSetRetrySettingsConfigServiceV2StubSettings.java | 0 ...gSettingsSetRetrySettingsLoggingServiceV2StubSettings.java | 0 ...cSettingsSetRetrySettingsMetricsServiceV2StubSettings.java | 0 .../create/CreateSchemaServiceSettings1.java | 0 .../create/CreateSchemaServiceSettings2.java | 0 .../CreateSchemaCallableFutureCallCreateSchemaRequest.java | 0 .../createschema}/CreateSchemaCreateSchemaRequest.java | 0 .../createschema}/CreateSchemaProjectNameSchemaString.java | 0 .../createschema}/CreateSchemaStringSchemaString.java | 0 .../DeleteSchemaCallableFutureCallDeleteSchemaRequest.java | 0 .../deleteschema}/DeleteSchemaDeleteSchemaRequest.java | 0 .../deleteschema}/DeleteSchemaSchemaName.java | 0 .../deleteschema}/DeleteSchemaString.java | 0 .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 0 .../getiampolicy}/GetIamPolicyGetIamPolicyRequest.java | 0 .../GetSchemaCallableFutureCallGetSchemaRequest.java | 0 .../getschema}/GetSchemaGetSchemaRequest.java | 0 .../getschema}/GetSchemaSchemaName.java | 0 .../getschema}/GetSchemaString.java | 0 .../ListSchemasCallableCallListSchemasRequest.java | 0 .../listschemas}/ListSchemasListSchemasRequestIterateAll.java | 0 .../ListSchemasPagedCallableFutureCallListSchemasRequest.java | 0 .../listschemas}/ListSchemasProjectNameIterateAll.java | 0 .../listschemas}/ListSchemasStringIterateAll.java | 0 .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 0 .../setiampolicy}/SetIamPolicySetIamPolicyRequest.java | 0 ...ermissionsCallableFutureCallTestIamPermissionsRequest.java | 0 .../TestIamPermissionsTestIamPermissionsRequest.java | 0 ...lidateMessageCallableFutureCallValidateMessageRequest.java | 0 .../ValidateMessageValidateMessageRequest.java | 0 ...ValidateSchemaCallableFutureCallValidateSchemaRequest.java | 0 .../validateschema}/ValidateSchemaProjectNameSchema.java | 0 .../validateschema}/ValidateSchemaStringSchema.java | 0 .../validateschema}/ValidateSchemaValidateSchemaRequest.java | 0 ...teSchemaSettingsSetRetrySettingsSchemaServiceSettings.java | 0 ...ateTopicSettingsSetRetrySettingsPublisherStubSettings.java | 0 ...hemaSettingsSetRetrySettingsSchemaServiceStubSettings.java | 0 ...riptionSettingsSetRetrySettingsSubscriberStubSettings.java | 0 .../acknowledge/AcknowledgeAcknowledgeRequest.java | 0 .../AcknowledgeCallableFutureCallAcknowledgeRequest.java | 0 .../acknowledge/AcknowledgeStringListString.java | 0 .../acknowledge/AcknowledgeSubscriptionNameListString.java | 0 .../create/CreateSubscriptionAdminSettings1.java | 0 .../create/CreateSubscriptionAdminSettings2.java | 0 ...CreateSnapshotCallableFutureCallCreateSnapshotRequest.java | 0 .../createsnapshot}/CreateSnapshotCreateSnapshotRequest.java | 0 .../createsnapshot}/CreateSnapshotSnapshotNameString.java | 0 .../CreateSnapshotSnapshotNameSubscriptionName.java | 0 .../createsnapshot}/CreateSnapshotStringString.java | 0 .../createsnapshot}/CreateSnapshotStringSubscriptionName.java | 0 .../CreateSubscriptionCallableFutureCallSubscription.java | 0 .../CreateSubscriptionStringStringPushConfigInt.java | 0 .../CreateSubscriptionStringTopicNamePushConfigInt.java | 0 .../createsubscription}/CreateSubscriptionSubscription.java | 0 ...CreateSubscriptionSubscriptionNameStringPushConfigInt.java | 0 ...ateSubscriptionSubscriptionNameTopicNamePushConfigInt.java | 0 ...DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java | 0 .../deletesnapshot}/DeleteSnapshotDeleteSnapshotRequest.java | 0 .../deletesnapshot}/DeleteSnapshotSnapshotName.java | 0 .../deletesnapshot}/DeleteSnapshotString.java | 0 ...bscriptionCallableFutureCallDeleteSubscriptionRequest.java | 0 .../DeleteSubscriptionDeleteSubscriptionRequest.java | 0 .../deletesubscription}/DeleteSubscriptionString.java | 0 .../DeleteSubscriptionSubscriptionName.java | 0 .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 0 .../getiampolicy}/GetIamPolicyGetIamPolicyRequest.java | 0 .../GetSnapshotCallableFutureCallGetSnapshotRequest.java | 0 .../getsnapshot}/GetSnapshotGetSnapshotRequest.java | 0 .../getsnapshot}/GetSnapshotSnapshotName.java | 0 .../getsnapshot}/GetSnapshotString.java | 0 ...tSubscriptionCallableFutureCallGetSubscriptionRequest.java | 0 .../GetSubscriptionGetSubscriptionRequest.java | 0 .../getsubscription}/GetSubscriptionString.java | 0 .../getsubscription}/GetSubscriptionSubscriptionName.java | 0 .../ListSnapshotsCallableCallListSnapshotsRequest.java | 0 .../ListSnapshotsListSnapshotsRequestIterateAll.java | 0 ...tSnapshotsPagedCallableFutureCallListSnapshotsRequest.java | 0 .../listsnapshots}/ListSnapshotsProjectNameIterateAll.java | 0 .../listsnapshots}/ListSnapshotsStringIterateAll.java | 0 ...ListSubscriptionsCallableCallListSubscriptionsRequest.java | 0 .../ListSubscriptionsListSubscriptionsRequestIterateAll.java | 0 ...ptionsPagedCallableFutureCallListSubscriptionsRequest.java | 0 .../ListSubscriptionsProjectNameIterateAll.java | 0 .../listsubscriptions}/ListSubscriptionsStringIterateAll.java | 0 ...AckDeadlineCallableFutureCallModifyAckDeadlineRequest.java | 0 .../ModifyAckDeadlineModifyAckDeadlineRequest.java | 0 .../ModifyAckDeadlineStringListStringInt.java | 0 .../ModifyAckDeadlineSubscriptionNameListStringInt.java | 0 ...fyPushConfigCallableFutureCallModifyPushConfigRequest.java | 0 .../ModifyPushConfigModifyPushConfigRequest.java | 0 .../modifypushconfig}/ModifyPushConfigStringPushConfig.java | 0 .../ModifyPushConfigSubscriptionNamePushConfig.java | 0 .../pull/PullCallableFutureCallPullRequest.java | 0 .../pull/PullPullRequest.java | 0 .../pull/PullStringBooleanInt.java | 0 .../pull/PullStringInt.java | 0 .../pull/PullSubscriptionNameBooleanInt.java | 0 .../pull/PullSubscriptionNameInt.java | 0 .../seek/SeekCallableFutureCallSeekRequest.java | 0 .../seek/SeekSeekRequest.java | 0 .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 0 .../setiampolicy}/SetIamPolicySetIamPolicyRequest.java | 0 .../StreamingPullCallableCallStreamingPullRequest.java | 0 ...ermissionsCallableFutureCallTestIamPermissionsRequest.java | 0 .../TestIamPermissionsTestIamPermissionsRequest.java | 0 ...UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java | 0 .../updatesnapshot}/UpdateSnapshotUpdateSnapshotRequest.java | 0 ...bscriptionCallableFutureCallUpdateSubscriptionRequest.java | 0 .../UpdateSubscriptionUpdateSubscriptionRequest.java | 0 ...tionSettingsSetRetrySettingsSubscriptionAdminSettings.java | 0 .../create/CreateTopicAdminSettings1.java | 0 .../create/CreateTopicAdminSettings2.java | 0 .../createtopic}/CreateTopicCallableFutureCallTopic.java | 0 .../createtopic}/CreateTopicString.java | 0 .../createtopic}/CreateTopicTopic.java | 0 .../createtopic}/CreateTopicTopicName.java | 0 .../DeleteTopicCallableFutureCallDeleteTopicRequest.java | 0 .../deletetopic}/DeleteTopicDeleteTopicRequest.java | 0 .../deletetopic}/DeleteTopicString.java | 0 .../deletetopic}/DeleteTopicTopicName.java | 0 ...bscriptionCallableFutureCallDetachSubscriptionRequest.java | 0 .../DetachSubscriptionDetachSubscriptionRequest.java | 0 .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 0 .../getiampolicy}/GetIamPolicyGetIamPolicyRequest.java | 0 .../gettopic}/GetTopicCallableFutureCallGetTopicRequest.java | 0 .../gettopic}/GetTopicGetTopicRequest.java | 0 .../gettopic}/GetTopicString.java | 0 .../gettopic}/GetTopicTopicName.java | 0 .../listtopics}/ListTopicsCallableCallListTopicsRequest.java | 0 .../listtopics}/ListTopicsListTopicsRequestIterateAll.java | 0 .../ListTopicsPagedCallableFutureCallListTopicsRequest.java | 0 .../listtopics}/ListTopicsProjectNameIterateAll.java | 0 .../listtopics}/ListTopicsStringIterateAll.java | 0 ...stTopicSnapshotsCallableCallListTopicSnapshotsRequest.java | 0 ...ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java | 0 ...shotsPagedCallableFutureCallListTopicSnapshotsRequest.java | 0 .../ListTopicSnapshotsStringIterateAll.java | 0 .../ListTopicSnapshotsTopicNameIterateAll.java | 0 ...ubscriptionsCallableCallListTopicSubscriptionsRequest.java | 0 ...cSubscriptionsListTopicSubscriptionsRequestIterateAll.java | 0 ...sPagedCallableFutureCallListTopicSubscriptionsRequest.java | 0 .../ListTopicSubscriptionsStringIterateAll.java | 0 .../ListTopicSubscriptionsTopicNameIterateAll.java | 0 .../publish/PublishCallableFutureCallPublishRequest.java | 0 .../publish/PublishPublishRequest.java | 0 .../publish/PublishStringListPubsubMessage.java | 0 .../publish/PublishTopicNameListPubsubMessage.java | 0 .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 0 .../setiampolicy}/SetIamPolicySetIamPolicyRequest.java | 0 ...ermissionsCallableFutureCallTestIamPermissionsRequest.java | 0 .../TestIamPermissionsTestIamPermissionsRequest.java | 0 .../UpdateTopicCallableFutureCallUpdateTopicRequest.java | 0 .../updatetopic}/UpdateTopicUpdateTopicRequest.java | 0 ...CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java | 0 .../create/CreateCloudRedisSettings1.java | 0 .../create/CreateCloudRedisSettings2.java | 0 .../CreateInstanceAsyncCreateInstanceRequestGet.java | 0 .../CreateInstanceAsyncLocationNameStringInstanceGet.java | 0 .../CreateInstanceAsyncStringStringInstanceGet.java | 0 ...CreateInstanceCallableFutureCallCreateInstanceRequest.java | 0 ...tanceOperationCallableFutureCallCreateInstanceRequest.java | 0 .../DeleteInstanceAsyncDeleteInstanceRequestGet.java | 0 .../deleteinstance}/DeleteInstanceAsyncInstanceNameGet.java | 0 .../deleteinstance}/DeleteInstanceAsyncStringGet.java | 0 ...DeleteInstanceCallableFutureCallDeleteInstanceRequest.java | 0 ...tanceOperationCallableFutureCallDeleteInstanceRequest.java | 0 .../ExportInstanceAsyncExportInstanceRequestGet.java | 0 .../ExportInstanceAsyncStringOutputConfigGet.java | 0 ...ExportInstanceCallableFutureCallExportInstanceRequest.java | 0 ...tanceOperationCallableFutureCallExportInstanceRequest.java | 0 .../FailoverInstanceAsyncFailoverInstanceRequestGet.java | 0 ...tanceNameFailoverInstanceRequestDataProtectionModeGet.java | 0 ...yncStringFailoverInstanceRequestDataProtectionModeGet.java | 0 ...overInstanceCallableFutureCallFailoverInstanceRequest.java | 0 ...nceOperationCallableFutureCallFailoverInstanceRequest.java | 0 .../GetInstanceCallableFutureCallGetInstanceRequest.java | 0 .../getinstance}/GetInstanceGetInstanceRequest.java | 0 .../getinstance}/GetInstanceInstanceName.java | 0 .../getinstance}/GetInstanceString.java | 0 ...hStringCallableFutureCallGetInstanceAuthStringRequest.java | 0 .../GetInstanceAuthStringGetInstanceAuthStringRequest.java | 0 .../GetInstanceAuthStringInstanceName.java | 0 .../getinstanceauthstring}/GetInstanceAuthStringString.java | 0 .../ImportInstanceAsyncImportInstanceRequestGet.java | 0 .../ImportInstanceAsyncStringInputConfigGet.java | 0 ...ImportInstanceCallableFutureCallImportInstanceRequest.java | 0 ...tanceOperationCallableFutureCallImportInstanceRequest.java | 0 .../ListInstancesCallableCallListInstancesRequest.java | 0 .../ListInstancesListInstancesRequestIterateAll.java | 0 .../listinstances}/ListInstancesLocationNameIterateAll.java | 0 ...tInstancesPagedCallableFutureCallListInstancesRequest.java | 0 .../listinstances}/ListInstancesStringIterateAll.java | 0 ...escheduleMaintenanceRequestRescheduleTypeTimestampGet.java | 0 ...heduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java | 0 ...escheduleMaintenanceRequestRescheduleTypeTimestampGet.java | 0 ...tenanceCallableFutureCallRescheduleMaintenanceRequest.java | 0 ...erationCallableFutureCallRescheduleMaintenanceRequest.java | 0 .../UpdateInstanceAsyncFieldMaskInstanceGet.java | 0 .../UpdateInstanceAsyncUpdateInstanceRequestGet.java | 0 ...UpdateInstanceCallableFutureCallUpdateInstanceRequest.java | 0 ...tanceOperationCallableFutureCallUpdateInstanceRequest.java | 0 .../UpgradeInstanceAsyncInstanceNameStringGet.java | 0 .../upgradeinstance}/UpgradeInstanceAsyncStringStringGet.java | 0 .../UpgradeInstanceAsyncUpgradeInstanceRequestGet.java | 0 ...gradeInstanceCallableFutureCallUpgradeInstanceRequest.java | 0 ...anceOperationCallableFutureCallUpgradeInstanceRequest.java | 0 ...GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java | 0 ...nstanceSettingsSetRetrySettingsCloudRedisStubSettings.java | 0 .../ComposeObjectCallableFutureCallComposeObjectRequest.java | 0 .../composeobject}/ComposeObjectComposeObjectRequest.java | 0 .../create/CreateStorageSettings1.java | 0 .../create/CreateStorageSettings2.java | 0 .../CreateBucketCallableFutureCallCreateBucketRequest.java | 0 .../createbucket}/CreateBucketCreateBucketRequest.java | 0 .../createbucket}/CreateBucketProjectNameBucketString.java | 0 .../createbucket}/CreateBucketStringBucketString.java | 0 .../CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java | 0 .../createhmackey}/CreateHmacKeyCreateHmacKeyRequest.java | 0 .../createhmackey}/CreateHmacKeyProjectNameString.java | 0 .../createhmackey}/CreateHmacKeyStringString.java | 0 ...tificationCallableFutureCallCreateNotificationRequest.java | 0 .../CreateNotificationCreateNotificationRequest.java | 0 .../CreateNotificationProjectNameNotification.java | 0 .../CreateNotificationStringNotification.java | 0 .../deletebucket}/DeleteBucketBucketName.java | 0 .../DeleteBucketCallableFutureCallDeleteBucketRequest.java | 0 .../deletebucket}/DeleteBucketDeleteBucketRequest.java | 0 .../deletebucket}/DeleteBucketString.java | 0 .../DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java | 0 .../deletehmackey}/DeleteHmacKeyDeleteHmacKeyRequest.java | 0 .../deletehmackey}/DeleteHmacKeyStringProjectName.java | 0 .../deletehmackey}/DeleteHmacKeyStringString.java | 0 ...tificationCallableFutureCallDeleteNotificationRequest.java | 0 .../DeleteNotificationDeleteNotificationRequest.java | 0 .../DeleteNotificationNotificationName.java | 0 .../deletenotification}/DeleteNotificationString.java | 0 .../DeleteObjectCallableFutureCallDeleteObjectRequest.java | 0 .../deleteobject}/DeleteObjectDeleteObjectRequest.java | 0 .../deleteobject}/DeleteObjectStringString.java | 0 .../deleteobject}/DeleteObjectStringStringLong.java | 0 .../getbucket}/GetBucketBucketName.java | 0 .../GetBucketCallableFutureCallGetBucketRequest.java | 0 .../getbucket}/GetBucketGetBucketRequest.java | 0 .../getbucket}/GetBucketString.java | 0 .../GetHmacKeyCallableFutureCallGetHmacKeyRequest.java | 0 .../gethmackey}/GetHmacKeyGetHmacKeyRequest.java | 0 .../gethmackey}/GetHmacKeyStringProjectName.java | 0 .../gethmackey}/GetHmacKeyStringString.java | 0 .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 0 .../getiampolicy}/GetIamPolicyGetIamPolicyRequest.java | 0 .../getiampolicy}/GetIamPolicyResourceName.java | 0 .../getiampolicy}/GetIamPolicyString.java | 0 .../getnotification}/GetNotificationBucketName.java | 0 ...tNotificationCallableFutureCallGetNotificationRequest.java | 0 .../GetNotificationGetNotificationRequest.java | 0 .../getnotification}/GetNotificationString.java | 0 .../GetObjectCallableFutureCallGetObjectRequest.java | 0 .../getobject}/GetObjectGetObjectRequest.java | 0 .../getobject}/GetObjectStringString.java | 0 .../getobject}/GetObjectStringStringLong.java | 0 ...viceAccountCallableFutureCallGetServiceAccountRequest.java | 0 .../GetServiceAccountGetServiceAccountRequest.java | 0 .../getserviceaccount}/GetServiceAccountProjectName.java | 0 .../getserviceaccount}/GetServiceAccountString.java | 0 .../ListBucketsCallableCallListBucketsRequest.java | 0 .../listbuckets}/ListBucketsListBucketsRequestIterateAll.java | 0 .../ListBucketsPagedCallableFutureCallListBucketsRequest.java | 0 .../listbuckets}/ListBucketsProjectNameIterateAll.java | 0 .../listbuckets}/ListBucketsStringIterateAll.java | 0 .../ListHmacKeysCallableCallListHmacKeysRequest.java | 0 .../ListHmacKeysListHmacKeysRequestIterateAll.java | 0 ...istHmacKeysPagedCallableFutureCallListHmacKeysRequest.java | 0 .../listhmackeys}/ListHmacKeysProjectNameIterateAll.java | 0 .../listhmackeys}/ListHmacKeysStringIterateAll.java | 0 ...ListNotificationsCallableCallListNotificationsRequest.java | 0 .../ListNotificationsListNotificationsRequestIterateAll.java | 0 ...ationsPagedCallableFutureCallListNotificationsRequest.java | 0 .../ListNotificationsProjectNameIterateAll.java | 0 .../listnotifications}/ListNotificationsStringIterateAll.java | 0 .../ListObjectsCallableCallListObjectsRequest.java | 0 .../listobjects}/ListObjectsListObjectsRequestIterateAll.java | 0 .../ListObjectsPagedCallableFutureCallListObjectsRequest.java | 0 .../listobjects}/ListObjectsProjectNameIterateAll.java | 0 .../listobjects}/ListObjectsStringIterateAll.java | 0 .../LockBucketRetentionPolicyBucketName.java | 0 ...icyCallableFutureCallLockBucketRetentionPolicyRequest.java | 0 ...BucketRetentionPolicyLockBucketRetentionPolicyRequest.java | 0 .../LockBucketRetentionPolicyString.java | 0 ...yWriteStatusCallableFutureCallQueryWriteStatusRequest.java | 0 .../QueryWriteStatusQueryWriteStatusRequest.java | 0 .../querywritestatus}/QueryWriteStatusString.java | 0 .../readobject}/ReadObjectCallableCallReadObjectRequest.java | 0 .../RewriteObjectCallableFutureCallRewriteObjectRequest.java | 0 .../rewriteobject}/RewriteObjectRewriteObjectRequest.java | 0 .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 0 .../setiampolicy}/SetIamPolicyResourceNamePolicy.java | 0 .../setiampolicy}/SetIamPolicySetIamPolicyRequest.java | 0 .../setiampolicy}/SetIamPolicyStringPolicy.java | 0 ...ableWriteCallableFutureCallStartResumableWriteRequest.java | 0 .../StartResumableWriteStartResumableWriteRequest.java | 0 ...ermissionsCallableFutureCallTestIamPermissionsRequest.java | 0 .../TestIamPermissionsResourceNameListString.java | 0 .../TestIamPermissionsStringListString.java | 0 .../TestIamPermissionsTestIamPermissionsRequest.java | 0 .../updatebucket}/UpdateBucketBucketFieldMask.java | 0 .../UpdateBucketCallableFutureCallUpdateBucketRequest.java | 0 .../updatebucket}/UpdateBucketUpdateBucketRequest.java | 0 .../UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java | 0 .../updatehmackey}/UpdateHmacKeyHmacKeyMetadataFieldMask.java | 0 .../updatehmackey}/UpdateHmacKeyUpdateHmacKeyRequest.java | 0 .../UpdateObjectCallableFutureCallUpdateObjectRequest.java | 0 .../updateobject}/UpdateObjectObjectFieldMask.java | 0 .../updateobject}/UpdateObjectUpdateObjectRequest.java | 0 .../WriteObjectClientStreamingCallWriteObjectRequest.java | 0 .../DeleteBucketSettingsSetRetrySettingsStorageSettings.java | 0 ...leteBucketSettingsSetRetrySettingsStorageStubSettings.java | 0 747 files changed, 2 insertions(+), 2 deletions(-) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/analyzeIamPolicy => assetserviceclient/analyzeiampolicy}/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/analyzeIamPolicy => assetserviceclient/analyzeiampolicy}/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/analyzeIamPolicyLongrunning => assetserviceclient/analyzeiampolicylongrunning}/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/analyzeIamPolicyLongrunning => assetserviceclient/analyzeiampolicylongrunning}/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/analyzeIamPolicyLongrunning => assetserviceclient/analyzeiampolicylongrunning}/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/analyzeMove => assetserviceclient/analyzemove}/AnalyzeMoveAnalyzeMoveRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/analyzeMove => assetserviceclient/analyzemove}/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/batchGetAssetsHistory => assetserviceclient/batchgetassetshistory}/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/batchGetAssetsHistory => assetserviceclient/batchgetassetshistory}/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient => assetserviceclient}/create/CreateAssetServiceSettings1.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient => assetserviceclient}/create/CreateAssetServiceSettings2.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/createFeed => assetserviceclient/createfeed}/CreateFeedCallableFutureCallCreateFeedRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/createFeed => assetserviceclient/createfeed}/CreateFeedCreateFeedRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/createFeed => assetserviceclient/createfeed}/CreateFeedString.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/deleteFeed => assetserviceclient/deletefeed}/DeleteFeedCallableFutureCallDeleteFeedRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/deleteFeed => assetserviceclient/deletefeed}/DeleteFeedDeleteFeedRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/deleteFeed => assetserviceclient/deletefeed}/DeleteFeedFeedName.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/deleteFeed => assetserviceclient/deletefeed}/DeleteFeedString.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/exportAssets => assetserviceclient/exportassets}/ExportAssetsAsyncExportAssetsRequestGet.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/exportAssets => assetserviceclient/exportassets}/ExportAssetsCallableFutureCallExportAssetsRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/exportAssets => assetserviceclient/exportassets}/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/getFeed => assetserviceclient/getfeed}/GetFeedCallableFutureCallGetFeedRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/getFeed => assetserviceclient/getfeed}/GetFeedFeedName.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/getFeed => assetserviceclient/getfeed}/GetFeedGetFeedRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/getFeed => assetserviceclient/getfeed}/GetFeedString.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/listAssets => assetserviceclient/listassets}/ListAssetsCallableCallListAssetsRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/listAssets => assetserviceclient/listassets}/ListAssetsListAssetsRequestIterateAll.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/listAssets => assetserviceclient/listassets}/ListAssetsPagedCallableFutureCallListAssetsRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/listAssets => assetserviceclient/listassets}/ListAssetsResourceNameIterateAll.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/listAssets => assetserviceclient/listassets}/ListAssetsStringIterateAll.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/listFeeds => assetserviceclient/listfeeds}/ListFeedsCallableFutureCallListFeedsRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/listFeeds => assetserviceclient/listfeeds}/ListFeedsListFeedsRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/listFeeds => assetserviceclient/listfeeds}/ListFeedsString.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/searchAllIamPolicies => assetserviceclient/searchalliampolicies}/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/searchAllIamPolicies => assetserviceclient/searchalliampolicies}/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/searchAllIamPolicies => assetserviceclient/searchalliampolicies}/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/searchAllIamPolicies => assetserviceclient/searchalliampolicies}/SearchAllIamPoliciesStringStringIterateAll.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/searchAllResources => assetserviceclient/searchallresources}/SearchAllResourcesCallableCallSearchAllResourcesRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/searchAllResources => assetserviceclient/searchallresources}/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/searchAllResources => assetserviceclient/searchallresources}/SearchAllResourcesSearchAllResourcesRequestIterateAll.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/searchAllResources => assetserviceclient/searchallresources}/SearchAllResourcesStringStringListStringIterateAll.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/updateFeed => assetserviceclient/updatefeed}/UpdateFeedCallableFutureCallUpdateFeedRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/updateFeed => assetserviceclient/updatefeed}/UpdateFeedFeed.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceClient/updateFeed => assetserviceclient/updatefeed}/UpdateFeedUpdateFeedRequest.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/{assetServiceSettings/batchGetAssetsHistory => assetservicesettings/batchgetassetshistory}/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java (100%) rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/{assetServiceStubSettings/batchGetAssetsHistory => assetservicestubsettings/batchgetassetshistory}/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/checkAndMutateRow => basebigtabledataclient/checkandmutaterow}/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/checkAndMutateRow => basebigtabledataclient/checkandmutaterow}/CheckAndMutateRowCheckAndMutateRowRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/checkAndMutateRow => basebigtabledataclient/checkandmutaterow}/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/checkAndMutateRow => basebigtabledataclient/checkandmutaterow}/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/checkAndMutateRow => basebigtabledataclient/checkandmutaterow}/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/checkAndMutateRow => basebigtabledataclient/checkandmutaterow}/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient => basebigtabledataclient}/create/CreateBaseBigtableDataSettings1.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient => basebigtabledataclient}/create/CreateBaseBigtableDataSettings2.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/mutateRow => basebigtabledataclient/mutaterow}/MutateRowCallableFutureCallMutateRowRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/mutateRow => basebigtabledataclient/mutaterow}/MutateRowMutateRowRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/mutateRow => basebigtabledataclient/mutaterow}/MutateRowStringByteStringListMutation.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/mutateRow => basebigtabledataclient/mutaterow}/MutateRowStringByteStringListMutationString.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/mutateRow => basebigtabledataclient/mutaterow}/MutateRowTableNameByteStringListMutation.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/mutateRow => basebigtabledataclient/mutaterow}/MutateRowTableNameByteStringListMutationString.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/mutateRows => basebigtabledataclient/mutaterows}/MutateRowsCallableCallMutateRowsRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/readModifyWriteRow => basebigtabledataclient/readmodifywriterow}/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/readModifyWriteRow => basebigtabledataclient/readmodifywriterow}/ReadModifyWriteRowReadModifyWriteRowRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/readModifyWriteRow => basebigtabledataclient/readmodifywriterow}/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/readModifyWriteRow => basebigtabledataclient/readmodifywriterow}/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/readModifyWriteRow => basebigtabledataclient/readmodifywriterow}/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/readModifyWriteRow => basebigtabledataclient/readmodifywriterow}/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/readRows => basebigtabledataclient/readrows}/ReadRowsCallableCallReadRowsRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataClient/sampleRowKeys => basebigtabledataclient/samplerowkeys}/SampleRowKeysCallableCallSampleRowKeysRequest.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/{baseBigtableDataSettings/mutateRow => basebigtabledatasettings/mutaterow}/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java (100%) rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/{bigtableStubSettings/mutateRow => bigtablestubsettings/mutaterow}/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient/aggregatedList => addressesclient/aggregatedlist}/AggregatedListAggregatedListAddressesRequestIterateAll.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient/aggregatedList => addressesclient/aggregatedlist}/AggregatedListCallableCallAggregatedListAddressesRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient/aggregatedList => addressesclient/aggregatedlist}/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient/aggregatedList => addressesclient/aggregatedlist}/AggregatedListStringIterateAll.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/create/CreateAddressesSettings1.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/create/CreateAddressesSettings2.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/delete/DeleteAsyncDeleteAddressRequestGet.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/delete/DeleteAsyncStringStringStringGet.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/delete/DeleteCallableFutureCallDeleteAddressRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/insert/InsertAsyncInsertAddressRequestGet.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/insert/InsertAsyncStringStringAddressGet.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/insert/InsertCallableFutureCallInsertAddressRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/insert/InsertOperationCallableFutureCallInsertAddressRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/list/ListCallableCallListAddressesRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/list/ListListAddressesRequestIterateAll.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/list/ListPagedCallableFutureCallListAddressesRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesClient => addressesclient}/list/ListStringStringStringIterateAll.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{addressesSettings/aggregatedList => addressessettings/aggregatedlist}/AggregatedListSettingsSetRetrySettingsAddressesSettings.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsClient => regionoperationsclient}/create/CreateRegionOperationsSettings1.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsClient => regionoperationsclient}/create/CreateRegionOperationsSettings2.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsClient => regionoperationsclient}/get/GetCallableFutureCallGetRegionOperationRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsClient => regionoperationsclient}/get/GetGetRegionOperationRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsClient => regionoperationsclient}/get/GetStringStringString.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsClient => regionoperationsclient}/wait/WaitCallableFutureCallWaitRegionOperationRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsClient => regionoperationsclient}/wait/WaitStringStringString.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsClient => regionoperationsclient}/wait/WaitWaitRegionOperationRequest.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/{regionOperationsSettings => regionoperationssettings}/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/{addressesStubSettings/aggregatedList => addressesstubsettings/aggregatedlist}/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java (100%) rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/{regionOperationsStubSettings => regionoperationsstubsettings}/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient => iamcredentialsclient}/create/CreateIamCredentialsSettings1.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient => iamcredentialsclient}/create/CreateIamCredentialsSettings2.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/generateAccessToken => iamcredentialsclient/generateaccesstoken}/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/generateAccessToken => iamcredentialsclient/generateaccesstoken}/GenerateAccessTokenGenerateAccessTokenRequest.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/generateAccessToken => iamcredentialsclient/generateaccesstoken}/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/generateAccessToken => iamcredentialsclient/generateaccesstoken}/GenerateAccessTokenStringListStringListStringDuration.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/generateIdToken => iamcredentialsclient/generateidtoken}/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/generateIdToken => iamcredentialsclient/generateidtoken}/GenerateIdTokenGenerateIdTokenRequest.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/generateIdToken => iamcredentialsclient/generateidtoken}/GenerateIdTokenServiceAccountNameListStringStringBoolean.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/generateIdToken => iamcredentialsclient/generateidtoken}/GenerateIdTokenStringListStringStringBoolean.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/signBlob => iamcredentialsclient/signblob}/SignBlobCallableFutureCallSignBlobRequest.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/signBlob => iamcredentialsclient/signblob}/SignBlobServiceAccountNameListStringByteString.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/signBlob => iamcredentialsclient/signblob}/SignBlobSignBlobRequest.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/signBlob => iamcredentialsclient/signblob}/SignBlobStringListStringByteString.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/signJwt => iamcredentialsclient/signjwt}/SignJwtCallableFutureCallSignJwtRequest.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/signJwt => iamcredentialsclient/signjwt}/SignJwtServiceAccountNameListStringString.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/signJwt => iamcredentialsclient/signjwt}/SignJwtSignJwtRequest.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsClient/signJwt => iamcredentialsclient/signjwt}/SignJwtStringListStringString.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/{iamCredentialsSettings/generateAccessToken => iamcredentialssettings/generateaccesstoken}/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java (100%) rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/{iamCredentialsStubSettings/generateAccessToken => iamcredentialsstubsettings/generateaccesstoken}/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicyClient => iampolicyclient}/create/CreateIAMPolicySettings1.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicyClient => iampolicyclient}/create/CreateIAMPolicySettings2.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicyClient/getIamPolicy => iampolicyclient/getiampolicy}/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicyClient/getIamPolicy => iampolicyclient/getiampolicy}/GetIamPolicyGetIamPolicyRequest.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicyClient/setIamPolicy => iampolicyclient/setiampolicy}/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicyClient/setIamPolicy => iampolicyclient/setiampolicy}/SetIamPolicySetIamPolicyRequest.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicyClient/testIamPermissions => iampolicyclient/testiampermissions}/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicyClient/testIamPermissions => iampolicyclient/testiampermissions}/TestIamPermissionsTestIamPermissionsRequest.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/{iAMPolicySettings/setIamPolicy => iampolicysettings/setiampolicy}/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java (100%) rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/{iAMPolicyStubSettings/setIamPolicy => iampolicystubsettings/setiampolicy}/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/asymmetricDecrypt => keymanagementserviceclient/asymmetricdecrypt}/AsymmetricDecryptAsymmetricDecryptRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/asymmetricDecrypt => keymanagementserviceclient/asymmetricdecrypt}/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/asymmetricDecrypt => keymanagementserviceclient/asymmetricdecrypt}/AsymmetricDecryptCryptoKeyVersionNameByteString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/asymmetricDecrypt => keymanagementserviceclient/asymmetricdecrypt}/AsymmetricDecryptStringByteString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/asymmetricSign => keymanagementserviceclient/asymmetricsign}/AsymmetricSignAsymmetricSignRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/asymmetricSign => keymanagementserviceclient/asymmetricsign}/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/asymmetricSign => keymanagementserviceclient/asymmetricsign}/AsymmetricSignCryptoKeyVersionNameDigest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/asymmetricSign => keymanagementserviceclient/asymmetricsign}/AsymmetricSignStringDigest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/create/CreateKeyManagementServiceSettings1.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/create/CreateKeyManagementServiceSettings2.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createCryptoKey => keymanagementserviceclient/createcryptokey}/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createCryptoKey => keymanagementserviceclient/createcryptokey}/CreateCryptoKeyCreateCryptoKeyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createCryptoKey => keymanagementserviceclient/createcryptokey}/CreateCryptoKeyKeyRingNameStringCryptoKey.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createCryptoKey => keymanagementserviceclient/createcryptokey}/CreateCryptoKeyStringStringCryptoKey.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createCryptoKeyVersion => keymanagementserviceclient/createcryptokeyversion}/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createCryptoKeyVersion => keymanagementserviceclient/createcryptokeyversion}/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createCryptoKeyVersion => keymanagementserviceclient/createcryptokeyversion}/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createCryptoKeyVersion => keymanagementserviceclient/createcryptokeyversion}/CreateCryptoKeyVersionStringCryptoKeyVersion.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createImportJob => keymanagementserviceclient/createimportjob}/CreateImportJobCallableFutureCallCreateImportJobRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createImportJob => keymanagementserviceclient/createimportjob}/CreateImportJobCreateImportJobRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createImportJob => keymanagementserviceclient/createimportjob}/CreateImportJobKeyRingNameStringImportJob.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createImportJob => keymanagementserviceclient/createimportjob}/CreateImportJobStringStringImportJob.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createKeyRing => keymanagementserviceclient/createkeyring}/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createKeyRing => keymanagementserviceclient/createkeyring}/CreateKeyRingCreateKeyRingRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createKeyRing => keymanagementserviceclient/createkeyring}/CreateKeyRingLocationNameStringKeyRing.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/createKeyRing => keymanagementserviceclient/createkeyring}/CreateKeyRingStringStringKeyRing.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/decrypt/DecryptCallableFutureCallDecryptRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/decrypt/DecryptCryptoKeyNameByteString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/decrypt/DecryptDecryptRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/decrypt/DecryptStringByteString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/destroyCryptoKeyVersion => keymanagementserviceclient/destroycryptokeyversion}/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/destroyCryptoKeyVersion => keymanagementserviceclient/destroycryptokeyversion}/DestroyCryptoKeyVersionCryptoKeyVersionName.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/destroyCryptoKeyVersion => keymanagementserviceclient/destroycryptokeyversion}/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/destroyCryptoKeyVersion => keymanagementserviceclient/destroycryptokeyversion}/DestroyCryptoKeyVersionString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/encrypt/EncryptCallableFutureCallEncryptRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/encrypt/EncryptEncryptRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/encrypt/EncryptResourceNameByteString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient => keymanagementserviceclient}/encrypt/EncryptStringByteString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getCryptoKey => keymanagementserviceclient/getcryptokey}/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getCryptoKey => keymanagementserviceclient/getcryptokey}/GetCryptoKeyCryptoKeyName.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getCryptoKey => keymanagementserviceclient/getcryptokey}/GetCryptoKeyGetCryptoKeyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getCryptoKey => keymanagementserviceclient/getcryptokey}/GetCryptoKeyString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getCryptoKeyVersion => keymanagementserviceclient/getcryptokeyversion}/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getCryptoKeyVersion => keymanagementserviceclient/getcryptokeyversion}/GetCryptoKeyVersionCryptoKeyVersionName.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getCryptoKeyVersion => keymanagementserviceclient/getcryptokeyversion}/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getCryptoKeyVersion => keymanagementserviceclient/getcryptokeyversion}/GetCryptoKeyVersionString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getIamPolicy => keymanagementserviceclient/getiampolicy}/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getIamPolicy => keymanagementserviceclient/getiampolicy}/GetIamPolicyGetIamPolicyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getImportJob => keymanagementserviceclient/getimportjob}/GetImportJobCallableFutureCallGetImportJobRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getImportJob => keymanagementserviceclient/getimportjob}/GetImportJobGetImportJobRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getImportJob => keymanagementserviceclient/getimportjob}/GetImportJobImportJobName.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getImportJob => keymanagementserviceclient/getimportjob}/GetImportJobString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getKeyRing => keymanagementserviceclient/getkeyring}/GetKeyRingCallableFutureCallGetKeyRingRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getKeyRing => keymanagementserviceclient/getkeyring}/GetKeyRingGetKeyRingRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getKeyRing => keymanagementserviceclient/getkeyring}/GetKeyRingKeyRingName.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getKeyRing => keymanagementserviceclient/getkeyring}/GetKeyRingString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getLocation => keymanagementserviceclient/getlocation}/GetLocationCallableFutureCallGetLocationRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getLocation => keymanagementserviceclient/getlocation}/GetLocationGetLocationRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getPublicKey => keymanagementserviceclient/getpublickey}/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getPublicKey => keymanagementserviceclient/getpublickey}/GetPublicKeyCryptoKeyVersionName.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getPublicKey => keymanagementserviceclient/getpublickey}/GetPublicKeyGetPublicKeyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/getPublicKey => keymanagementserviceclient/getpublickey}/GetPublicKeyString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/importCryptoKeyVersion => keymanagementserviceclient/importcryptokeyversion}/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/importCryptoKeyVersion => keymanagementserviceclient/importcryptokeyversion}/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeys => keymanagementserviceclient/listcryptokeys}/ListCryptoKeysCallableCallListCryptoKeysRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeys => keymanagementserviceclient/listcryptokeys}/ListCryptoKeysKeyRingNameIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeys => keymanagementserviceclient/listcryptokeys}/ListCryptoKeysListCryptoKeysRequestIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeys => keymanagementserviceclient/listcryptokeys}/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeys => keymanagementserviceclient/listcryptokeys}/ListCryptoKeysStringIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeyVersions => keymanagementserviceclient/listcryptokeyversions}/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeyVersions => keymanagementserviceclient/listcryptokeyversions}/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeyVersions => keymanagementserviceclient/listcryptokeyversions}/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeyVersions => keymanagementserviceclient/listcryptokeyversions}/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listCryptoKeyVersions => keymanagementserviceclient/listcryptokeyversions}/ListCryptoKeyVersionsStringIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listImportJobs => keymanagementserviceclient/listimportjobs}/ListImportJobsCallableCallListImportJobsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listImportJobs => keymanagementserviceclient/listimportjobs}/ListImportJobsKeyRingNameIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listImportJobs => keymanagementserviceclient/listimportjobs}/ListImportJobsListImportJobsRequestIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listImportJobs => keymanagementserviceclient/listimportjobs}/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listImportJobs => keymanagementserviceclient/listimportjobs}/ListImportJobsStringIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listKeyRings => keymanagementserviceclient/listkeyrings}/ListKeyRingsCallableCallListKeyRingsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listKeyRings => keymanagementserviceclient/listkeyrings}/ListKeyRingsListKeyRingsRequestIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listKeyRings => keymanagementserviceclient/listkeyrings}/ListKeyRingsLocationNameIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listKeyRings => keymanagementserviceclient/listkeyrings}/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listKeyRings => keymanagementserviceclient/listkeyrings}/ListKeyRingsStringIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listLocations => keymanagementserviceclient/listlocations}/ListLocationsCallableCallListLocationsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listLocations => keymanagementserviceclient/listlocations}/ListLocationsListLocationsRequestIterateAll.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/listLocations => keymanagementserviceclient/listlocations}/ListLocationsPagedCallableFutureCallListLocationsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/restoreCryptoKeyVersion => keymanagementserviceclient/restorecryptokeyversion}/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/restoreCryptoKeyVersion => keymanagementserviceclient/restorecryptokeyversion}/RestoreCryptoKeyVersionCryptoKeyVersionName.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/restoreCryptoKeyVersion => keymanagementserviceclient/restorecryptokeyversion}/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/restoreCryptoKeyVersion => keymanagementserviceclient/restorecryptokeyversion}/RestoreCryptoKeyVersionString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/testIamPermissions => keymanagementserviceclient/testiampermissions}/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/testIamPermissions => keymanagementserviceclient/testiampermissions}/TestIamPermissionsTestIamPermissionsRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKey => keymanagementserviceclient/updatecryptokey}/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKey => keymanagementserviceclient/updatecryptokey}/UpdateCryptoKeyCryptoKeyFieldMask.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKey => keymanagementserviceclient/updatecryptokey}/UpdateCryptoKeyUpdateCryptoKeyRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKeyPrimaryVersion => keymanagementserviceclient/updatecryptokeyprimaryversion}/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKeyPrimaryVersion => keymanagementserviceclient/updatecryptokeyprimaryversion}/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKeyPrimaryVersion => keymanagementserviceclient/updatecryptokeyprimaryversion}/UpdateCryptoKeyPrimaryVersionStringString.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKeyPrimaryVersion => keymanagementserviceclient/updatecryptokeyprimaryversion}/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKeyVersion => keymanagementserviceclient/updatecryptokeyversion}/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKeyVersion => keymanagementserviceclient/updatecryptokeyversion}/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceClient/updateCryptoKeyVersion => keymanagementserviceclient/updatecryptokeyversion}/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/{keyManagementServiceSettings/getKeyRing => keymanagementservicesettings/getkeyring}/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java (100%) rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/{keyManagementServiceStubSettings/getKeyRing => keymanagementservicestubsettings/getkeyring}/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient => libraryserviceclient}/create/CreateLibraryServiceSettings1.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient => libraryserviceclient}/create/CreateLibraryServiceSettings2.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/createBook => libraryserviceclient/createbook}/CreateBookCallableFutureCallCreateBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/createBook => libraryserviceclient/createbook}/CreateBookCreateBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/createBook => libraryserviceclient/createbook}/CreateBookShelfNameBook.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/createBook => libraryserviceclient/createbook}/CreateBookStringBook.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/createShelf => libraryserviceclient/createshelf}/CreateShelfCallableFutureCallCreateShelfRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/createShelf => libraryserviceclient/createshelf}/CreateShelfCreateShelfRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/createShelf => libraryserviceclient/createshelf}/CreateShelfShelf.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/deleteBook => libraryserviceclient/deletebook}/DeleteBookBookName.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/deleteBook => libraryserviceclient/deletebook}/DeleteBookCallableFutureCallDeleteBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/deleteBook => libraryserviceclient/deletebook}/DeleteBookDeleteBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/deleteBook => libraryserviceclient/deletebook}/DeleteBookString.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/deleteShelf => libraryserviceclient/deleteshelf}/DeleteShelfCallableFutureCallDeleteShelfRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/deleteShelf => libraryserviceclient/deleteshelf}/DeleteShelfDeleteShelfRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/deleteShelf => libraryserviceclient/deleteshelf}/DeleteShelfShelfName.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/deleteShelf => libraryserviceclient/deleteshelf}/DeleteShelfString.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/getBook => libraryserviceclient/getbook}/GetBookBookName.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/getBook => libraryserviceclient/getbook}/GetBookCallableFutureCallGetBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/getBook => libraryserviceclient/getbook}/GetBookGetBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/getBook => libraryserviceclient/getbook}/GetBookString.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/getShelf => libraryserviceclient/getshelf}/GetShelfCallableFutureCallGetShelfRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/getShelf => libraryserviceclient/getshelf}/GetShelfGetShelfRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/getShelf => libraryserviceclient/getshelf}/GetShelfShelfName.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/getShelf => libraryserviceclient/getshelf}/GetShelfString.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/listBooks => libraryserviceclient/listbooks}/ListBooksCallableCallListBooksRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/listBooks => libraryserviceclient/listbooks}/ListBooksListBooksRequestIterateAll.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/listBooks => libraryserviceclient/listbooks}/ListBooksPagedCallableFutureCallListBooksRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/listBooks => libraryserviceclient/listbooks}/ListBooksShelfNameIterateAll.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/listBooks => libraryserviceclient/listbooks}/ListBooksStringIterateAll.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/listShelves => libraryserviceclient/listshelves}/ListShelvesCallableCallListShelvesRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/listShelves => libraryserviceclient/listshelves}/ListShelvesListShelvesRequestIterateAll.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/listShelves => libraryserviceclient/listshelves}/ListShelvesPagedCallableFutureCallListShelvesRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/mergeShelves => libraryserviceclient/mergeshelves}/MergeShelvesCallableFutureCallMergeShelvesRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/mergeShelves => libraryserviceclient/mergeshelves}/MergeShelvesMergeShelvesRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/mergeShelves => libraryserviceclient/mergeshelves}/MergeShelvesShelfNameShelfName.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/mergeShelves => libraryserviceclient/mergeshelves}/MergeShelvesShelfNameString.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/mergeShelves => libraryserviceclient/mergeshelves}/MergeShelvesStringShelfName.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/mergeShelves => libraryserviceclient/mergeshelves}/MergeShelvesStringString.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/moveBook => libraryserviceclient/movebook}/MoveBookBookNameShelfName.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/moveBook => libraryserviceclient/movebook}/MoveBookBookNameString.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/moveBook => libraryserviceclient/movebook}/MoveBookCallableFutureCallMoveBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/moveBook => libraryserviceclient/movebook}/MoveBookMoveBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/moveBook => libraryserviceclient/movebook}/MoveBookStringShelfName.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/moveBook => libraryserviceclient/movebook}/MoveBookStringString.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/updateBook => libraryserviceclient/updatebook}/UpdateBookBookFieldMask.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/updateBook => libraryserviceclient/updatebook}/UpdateBookCallableFutureCallUpdateBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceClient/updateBook => libraryserviceclient/updatebook}/UpdateBookUpdateBookRequest.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/{libraryServiceSettings/createShelf => libraryservicesettings/createshelf}/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java (100%) rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/{libraryServiceStubSettings/createShelf => libraryservicestubsettings/createshelf}/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient => configclient}/create/CreateConfigSettings1.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient => configclient}/create/CreateConfigSettings2.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createBucket => configclient/createbucket}/CreateBucketCallableFutureCallCreateBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createBucket => configclient/createbucket}/CreateBucketCreateBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createExclusion => configclient/createexclusion}/CreateExclusionBillingAccountNameLogExclusion.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createExclusion => configclient/createexclusion}/CreateExclusionCallableFutureCallCreateExclusionRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createExclusion => configclient/createexclusion}/CreateExclusionCreateExclusionRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createExclusion => configclient/createexclusion}/CreateExclusionFolderNameLogExclusion.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createExclusion => configclient/createexclusion}/CreateExclusionOrganizationNameLogExclusion.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createExclusion => configclient/createexclusion}/CreateExclusionProjectNameLogExclusion.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createExclusion => configclient/createexclusion}/CreateExclusionStringLogExclusion.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createSink => configclient/createsink}/CreateSinkBillingAccountNameLogSink.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createSink => configclient/createsink}/CreateSinkCallableFutureCallCreateSinkRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createSink => configclient/createsink}/CreateSinkCreateSinkRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createSink => configclient/createsink}/CreateSinkFolderNameLogSink.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createSink => configclient/createsink}/CreateSinkOrganizationNameLogSink.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createSink => configclient/createsink}/CreateSinkProjectNameLogSink.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createSink => configclient/createsink}/CreateSinkStringLogSink.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createView => configclient/createview}/CreateViewCallableFutureCallCreateViewRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/createView => configclient/createview}/CreateViewCreateViewRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteBucket => configclient/deletebucket}/DeleteBucketCallableFutureCallDeleteBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteBucket => configclient/deletebucket}/DeleteBucketDeleteBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteExclusion => configclient/deleteexclusion}/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteExclusion => configclient/deleteexclusion}/DeleteExclusionDeleteExclusionRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteExclusion => configclient/deleteexclusion}/DeleteExclusionLogExclusionName.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteExclusion => configclient/deleteexclusion}/DeleteExclusionString.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteSink => configclient/deletesink}/DeleteSinkCallableFutureCallDeleteSinkRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteSink => configclient/deletesink}/DeleteSinkDeleteSinkRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteSink => configclient/deletesink}/DeleteSinkLogSinkName.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteSink => configclient/deletesink}/DeleteSinkString.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteView => configclient/deleteview}/DeleteViewCallableFutureCallDeleteViewRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/deleteView => configclient/deleteview}/DeleteViewDeleteViewRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getBucket => configclient/getbucket}/GetBucketCallableFutureCallGetBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getBucket => configclient/getbucket}/GetBucketGetBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getCmekSettings => configclient/getcmeksettings}/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getCmekSettings => configclient/getcmeksettings}/GetCmekSettingsGetCmekSettingsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getExclusion => configclient/getexclusion}/GetExclusionCallableFutureCallGetExclusionRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getExclusion => configclient/getexclusion}/GetExclusionGetExclusionRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getExclusion => configclient/getexclusion}/GetExclusionLogExclusionName.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getExclusion => configclient/getexclusion}/GetExclusionString.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getSink => configclient/getsink}/GetSinkCallableFutureCallGetSinkRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getSink => configclient/getsink}/GetSinkGetSinkRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getSink => configclient/getsink}/GetSinkLogSinkName.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getSink => configclient/getsink}/GetSinkString.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getView => configclient/getview}/GetViewCallableFutureCallGetViewRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/getView => configclient/getview}/GetViewGetViewRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listBuckets => configclient/listbuckets}/ListBucketsBillingAccountLocationNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listBuckets => configclient/listbuckets}/ListBucketsCallableCallListBucketsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listBuckets => configclient/listbuckets}/ListBucketsFolderLocationNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listBuckets => configclient/listbuckets}/ListBucketsListBucketsRequestIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listBuckets => configclient/listbuckets}/ListBucketsLocationNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listBuckets => configclient/listbuckets}/ListBucketsOrganizationLocationNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listBuckets => configclient/listbuckets}/ListBucketsPagedCallableFutureCallListBucketsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listBuckets => configclient/listbuckets}/ListBucketsStringIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listExclusions => configclient/listexclusions}/ListExclusionsBillingAccountNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listExclusions => configclient/listexclusions}/ListExclusionsCallableCallListExclusionsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listExclusions => configclient/listexclusions}/ListExclusionsFolderNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listExclusions => configclient/listexclusions}/ListExclusionsListExclusionsRequestIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listExclusions => configclient/listexclusions}/ListExclusionsOrganizationNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listExclusions => configclient/listexclusions}/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listExclusions => configclient/listexclusions}/ListExclusionsProjectNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listExclusions => configclient/listexclusions}/ListExclusionsStringIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listSinks => configclient/listsinks}/ListSinksBillingAccountNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listSinks => configclient/listsinks}/ListSinksCallableCallListSinksRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listSinks => configclient/listsinks}/ListSinksFolderNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listSinks => configclient/listsinks}/ListSinksListSinksRequestIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listSinks => configclient/listsinks}/ListSinksOrganizationNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listSinks => configclient/listsinks}/ListSinksPagedCallableFutureCallListSinksRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listSinks => configclient/listsinks}/ListSinksProjectNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listSinks => configclient/listsinks}/ListSinksStringIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listViews => configclient/listviews}/ListViewsCallableCallListViewsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listViews => configclient/listviews}/ListViewsListViewsRequestIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listViews => configclient/listviews}/ListViewsPagedCallableFutureCallListViewsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/listViews => configclient/listviews}/ListViewsStringIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/undeleteBucket => configclient/undeletebucket}/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/undeleteBucket => configclient/undeletebucket}/UndeleteBucketUndeleteBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateBucket => configclient/updatebucket}/UpdateBucketCallableFutureCallUpdateBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateBucket => configclient/updatebucket}/UpdateBucketUpdateBucketRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateCmekSettings => configclient/updatecmeksettings}/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateCmekSettings => configclient/updatecmeksettings}/UpdateCmekSettingsUpdateCmekSettingsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateExclusion => configclient/updateexclusion}/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateExclusion => configclient/updateexclusion}/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateExclusion => configclient/updateexclusion}/UpdateExclusionStringLogExclusionFieldMask.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateExclusion => configclient/updateexclusion}/UpdateExclusionUpdateExclusionRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateSink => configclient/updatesink}/UpdateSinkCallableFutureCallUpdateSinkRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateSink => configclient/updatesink}/UpdateSinkLogSinkNameLogSink.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateSink => configclient/updatesink}/UpdateSinkLogSinkNameLogSinkFieldMask.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateSink => configclient/updatesink}/UpdateSinkStringLogSink.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateSink => configclient/updatesink}/UpdateSinkStringLogSinkFieldMask.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateSink => configclient/updatesink}/UpdateSinkUpdateSinkRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateView => configclient/updateview}/UpdateViewCallableFutureCallUpdateViewRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configClient/updateView => configclient/updateview}/UpdateViewUpdateViewRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{configSettings/getBucket => configsettings/getbucket}/GetBucketSettingsSetRetrySettingsConfigSettings.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient => loggingclient}/create/CreateLoggingSettings1.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient => loggingclient}/create/CreateLoggingSettings2.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/deleteLog => loggingclient/deletelog}/DeleteLogCallableFutureCallDeleteLogRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/deleteLog => loggingclient/deletelog}/DeleteLogDeleteLogRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/deleteLog => loggingclient/deletelog}/DeleteLogLogName.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/deleteLog => loggingclient/deletelog}/DeleteLogString.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogEntries => loggingclient/listlogentries}/ListLogEntriesCallableCallListLogEntriesRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogEntries => loggingclient/listlogentries}/ListLogEntriesListLogEntriesRequestIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogEntries => loggingclient/listlogentries}/ListLogEntriesListStringStringStringIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogEntries => loggingclient/listlogentries}/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogs => loggingclient/listlogs}/ListLogsBillingAccountNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogs => loggingclient/listlogs}/ListLogsCallableCallListLogsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogs => loggingclient/listlogs}/ListLogsFolderNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogs => loggingclient/listlogs}/ListLogsListLogsRequestIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogs => loggingclient/listlogs}/ListLogsOrganizationNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogs => loggingclient/listlogs}/ListLogsPagedCallableFutureCallListLogsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogs => loggingclient/listlogs}/ListLogsProjectNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listLogs => loggingclient/listlogs}/ListLogsStringIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listMonitoredResourceDescriptors => loggingclient/listmonitoredresourcedescriptors}/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listMonitoredResourceDescriptors => loggingclient/listmonitoredresourcedescriptors}/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/listMonitoredResourceDescriptors => loggingclient/listmonitoredresourcedescriptors}/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/tailLogEntries => loggingclient/taillogentries}/TailLogEntriesCallableCallTailLogEntriesRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/writeLogEntries => loggingclient/writelogentries}/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/writeLogEntries => loggingclient/writelogentries}/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/writeLogEntries => loggingclient/writelogentries}/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingClient/writeLogEntries => loggingclient/writelogentries}/WriteLogEntriesWriteLogEntriesRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{loggingSettings/deleteLog => loggingsettings/deletelog}/DeleteLogSettingsSetRetrySettingsLoggingSettings.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient => metricsclient}/create/CreateMetricsSettings1.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient => metricsclient}/create/CreateMetricsSettings2.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/createLogMetric => metricsclient/createlogmetric}/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/createLogMetric => metricsclient/createlogmetric}/CreateLogMetricCreateLogMetricRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/createLogMetric => metricsclient/createlogmetric}/CreateLogMetricProjectNameLogMetric.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/createLogMetric => metricsclient/createlogmetric}/CreateLogMetricStringLogMetric.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/deleteLogMetric => metricsclient/deletelogmetric}/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/deleteLogMetric => metricsclient/deletelogmetric}/DeleteLogMetricDeleteLogMetricRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/deleteLogMetric => metricsclient/deletelogmetric}/DeleteLogMetricLogMetricName.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/deleteLogMetric => metricsclient/deletelogmetric}/DeleteLogMetricString.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/getLogMetric => metricsclient/getlogmetric}/GetLogMetricCallableFutureCallGetLogMetricRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/getLogMetric => metricsclient/getlogmetric}/GetLogMetricGetLogMetricRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/getLogMetric => metricsclient/getlogmetric}/GetLogMetricLogMetricName.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/getLogMetric => metricsclient/getlogmetric}/GetLogMetricString.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/listLogMetrics => metricsclient/listlogmetrics}/ListLogMetricsCallableCallListLogMetricsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/listLogMetrics => metricsclient/listlogmetrics}/ListLogMetricsListLogMetricsRequestIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/listLogMetrics => metricsclient/listlogmetrics}/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/listLogMetrics => metricsclient/listlogmetrics}/ListLogMetricsProjectNameIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/listLogMetrics => metricsclient/listlogmetrics}/ListLogMetricsStringIterateAll.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/updateLogMetric => metricsclient/updatelogmetric}/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/updateLogMetric => metricsclient/updatelogmetric}/UpdateLogMetricLogMetricNameLogMetric.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/updateLogMetric => metricsclient/updatelogmetric}/UpdateLogMetricStringLogMetric.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsClient/updateLogMetric => metricsclient/updatelogmetric}/UpdateLogMetricUpdateLogMetricRequest.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/{metricsSettings/getLogMetric => metricssettings/getlogmetric}/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/{configServiceV2StubSettings/getBucket => configservicev2stubsettings/getbucket}/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/{loggingServiceV2StubSettings/deleteLog => loggingservicev2stubsettings/deletelog}/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java (100%) rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/{metricsServiceV2StubSettings/getLogMetric => metricsservicev2stubsettings/getlogmetric}/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient => schemaserviceclient}/create/CreateSchemaServiceSettings1.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient => schemaserviceclient}/create/CreateSchemaServiceSettings2.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/createSchema => schemaserviceclient/createschema}/CreateSchemaCallableFutureCallCreateSchemaRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/createSchema => schemaserviceclient/createschema}/CreateSchemaCreateSchemaRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/createSchema => schemaserviceclient/createschema}/CreateSchemaProjectNameSchemaString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/createSchema => schemaserviceclient/createschema}/CreateSchemaStringSchemaString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/deleteSchema => schemaserviceclient/deleteschema}/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/deleteSchema => schemaserviceclient/deleteschema}/DeleteSchemaDeleteSchemaRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/deleteSchema => schemaserviceclient/deleteschema}/DeleteSchemaSchemaName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/deleteSchema => schemaserviceclient/deleteschema}/DeleteSchemaString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/getIamPolicy => schemaserviceclient/getiampolicy}/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/getIamPolicy => schemaserviceclient/getiampolicy}/GetIamPolicyGetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/getSchema => schemaserviceclient/getschema}/GetSchemaCallableFutureCallGetSchemaRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/getSchema => schemaserviceclient/getschema}/GetSchemaGetSchemaRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/getSchema => schemaserviceclient/getschema}/GetSchemaSchemaName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/getSchema => schemaserviceclient/getschema}/GetSchemaString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/listSchemas => schemaserviceclient/listschemas}/ListSchemasCallableCallListSchemasRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/listSchemas => schemaserviceclient/listschemas}/ListSchemasListSchemasRequestIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/listSchemas => schemaserviceclient/listschemas}/ListSchemasPagedCallableFutureCallListSchemasRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/listSchemas => schemaserviceclient/listschemas}/ListSchemasProjectNameIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/listSchemas => schemaserviceclient/listschemas}/ListSchemasStringIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/setIamPolicy => schemaserviceclient/setiampolicy}/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/setIamPolicy => schemaserviceclient/setiampolicy}/SetIamPolicySetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/testIamPermissions => schemaserviceclient/testiampermissions}/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/testIamPermissions => schemaserviceclient/testiampermissions}/TestIamPermissionsTestIamPermissionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/validateMessage => schemaserviceclient/validatemessage}/ValidateMessageCallableFutureCallValidateMessageRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/validateMessage => schemaserviceclient/validatemessage}/ValidateMessageValidateMessageRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/validateSchema => schemaserviceclient/validateschema}/ValidateSchemaCallableFutureCallValidateSchemaRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/validateSchema => schemaserviceclient/validateschema}/ValidateSchemaProjectNameSchema.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/validateSchema => schemaserviceclient/validateschema}/ValidateSchemaStringSchema.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceClient/validateSchema => schemaserviceclient/validateschema}/ValidateSchemaValidateSchemaRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{schemaServiceSettings/createSchema => schemaservicesettings/createschema}/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/{publisherStubSettings/createTopic => publisherstubsettings/createtopic}/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/{schemaServiceStubSettings/createSchema => schemaservicestubsettings/createschema}/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/{subscriberStubSettings/createSubscription => subscriberstubsettings/createsubscription}/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/acknowledge/AcknowledgeAcknowledgeRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/acknowledge/AcknowledgeStringListString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/acknowledge/AcknowledgeSubscriptionNameListString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/create/CreateSubscriptionAdminSettings1.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/create/CreateSubscriptionAdminSettings2.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSnapshot => subscriptionadminclient/createsnapshot}/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSnapshot => subscriptionadminclient/createsnapshot}/CreateSnapshotCreateSnapshotRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSnapshot => subscriptionadminclient/createsnapshot}/CreateSnapshotSnapshotNameString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSnapshot => subscriptionadminclient/createsnapshot}/CreateSnapshotSnapshotNameSubscriptionName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSnapshot => subscriptionadminclient/createsnapshot}/CreateSnapshotStringString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSnapshot => subscriptionadminclient/createsnapshot}/CreateSnapshotStringSubscriptionName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSubscription => subscriptionadminclient/createsubscription}/CreateSubscriptionCallableFutureCallSubscription.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSubscription => subscriptionadminclient/createsubscription}/CreateSubscriptionStringStringPushConfigInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSubscription => subscriptionadminclient/createsubscription}/CreateSubscriptionStringTopicNamePushConfigInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSubscription => subscriptionadminclient/createsubscription}/CreateSubscriptionSubscription.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSubscription => subscriptionadminclient/createsubscription}/CreateSubscriptionSubscriptionNameStringPushConfigInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/createSubscription => subscriptionadminclient/createsubscription}/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/deleteSnapshot => subscriptionadminclient/deletesnapshot}/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/deleteSnapshot => subscriptionadminclient/deletesnapshot}/DeleteSnapshotDeleteSnapshotRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/deleteSnapshot => subscriptionadminclient/deletesnapshot}/DeleteSnapshotSnapshotName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/deleteSnapshot => subscriptionadminclient/deletesnapshot}/DeleteSnapshotString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/deleteSubscription => subscriptionadminclient/deletesubscription}/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/deleteSubscription => subscriptionadminclient/deletesubscription}/DeleteSubscriptionDeleteSubscriptionRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/deleteSubscription => subscriptionadminclient/deletesubscription}/DeleteSubscriptionString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/deleteSubscription => subscriptionadminclient/deletesubscription}/DeleteSubscriptionSubscriptionName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getIamPolicy => subscriptionadminclient/getiampolicy}/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getIamPolicy => subscriptionadminclient/getiampolicy}/GetIamPolicyGetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getSnapshot => subscriptionadminclient/getsnapshot}/GetSnapshotCallableFutureCallGetSnapshotRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getSnapshot => subscriptionadminclient/getsnapshot}/GetSnapshotGetSnapshotRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getSnapshot => subscriptionadminclient/getsnapshot}/GetSnapshotSnapshotName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getSnapshot => subscriptionadminclient/getsnapshot}/GetSnapshotString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getSubscription => subscriptionadminclient/getsubscription}/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getSubscription => subscriptionadminclient/getsubscription}/GetSubscriptionGetSubscriptionRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getSubscription => subscriptionadminclient/getsubscription}/GetSubscriptionString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/getSubscription => subscriptionadminclient/getsubscription}/GetSubscriptionSubscriptionName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSnapshots => subscriptionadminclient/listsnapshots}/ListSnapshotsCallableCallListSnapshotsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSnapshots => subscriptionadminclient/listsnapshots}/ListSnapshotsListSnapshotsRequestIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSnapshots => subscriptionadminclient/listsnapshots}/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSnapshots => subscriptionadminclient/listsnapshots}/ListSnapshotsProjectNameIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSnapshots => subscriptionadminclient/listsnapshots}/ListSnapshotsStringIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSubscriptions => subscriptionadminclient/listsubscriptions}/ListSubscriptionsCallableCallListSubscriptionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSubscriptions => subscriptionadminclient/listsubscriptions}/ListSubscriptionsListSubscriptionsRequestIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSubscriptions => subscriptionadminclient/listsubscriptions}/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSubscriptions => subscriptionadminclient/listsubscriptions}/ListSubscriptionsProjectNameIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/listSubscriptions => subscriptionadminclient/listsubscriptions}/ListSubscriptionsStringIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/modifyAckDeadline => subscriptionadminclient/modifyackdeadline}/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/modifyAckDeadline => subscriptionadminclient/modifyackdeadline}/ModifyAckDeadlineModifyAckDeadlineRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/modifyAckDeadline => subscriptionadminclient/modifyackdeadline}/ModifyAckDeadlineStringListStringInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/modifyAckDeadline => subscriptionadminclient/modifyackdeadline}/ModifyAckDeadlineSubscriptionNameListStringInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/modifyPushConfig => subscriptionadminclient/modifypushconfig}/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/modifyPushConfig => subscriptionadminclient/modifypushconfig}/ModifyPushConfigModifyPushConfigRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/modifyPushConfig => subscriptionadminclient/modifypushconfig}/ModifyPushConfigStringPushConfig.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/modifyPushConfig => subscriptionadminclient/modifypushconfig}/ModifyPushConfigSubscriptionNamePushConfig.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/pull/PullCallableFutureCallPullRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/pull/PullPullRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/pull/PullStringBooleanInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/pull/PullStringInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/pull/PullSubscriptionNameBooleanInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/pull/PullSubscriptionNameInt.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/seek/SeekCallableFutureCallSeekRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient => subscriptionadminclient}/seek/SeekSeekRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/setIamPolicy => subscriptionadminclient/setiampolicy}/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/setIamPolicy => subscriptionadminclient/setiampolicy}/SetIamPolicySetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/streamingPull => subscriptionadminclient/streamingpull}/StreamingPullCallableCallStreamingPullRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/testIamPermissions => subscriptionadminclient/testiampermissions}/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/testIamPermissions => subscriptionadminclient/testiampermissions}/TestIamPermissionsTestIamPermissionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/updateSnapshot => subscriptionadminclient/updatesnapshot}/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/updateSnapshot => subscriptionadminclient/updatesnapshot}/UpdateSnapshotUpdateSnapshotRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/updateSubscription => subscriptionadminclient/updatesubscription}/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminClient/updateSubscription => subscriptionadminclient/updatesubscription}/UpdateSubscriptionUpdateSubscriptionRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{subscriptionAdminSettings/createSubscription => subscriptionadminsettings/createsubscription}/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient => topicadminclient}/create/CreateTopicAdminSettings1.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient => topicadminclient}/create/CreateTopicAdminSettings2.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/createTopic => topicadminclient/createtopic}/CreateTopicCallableFutureCallTopic.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/createTopic => topicadminclient/createtopic}/CreateTopicString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/createTopic => topicadminclient/createtopic}/CreateTopicTopic.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/createTopic => topicadminclient/createtopic}/CreateTopicTopicName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/deleteTopic => topicadminclient/deletetopic}/DeleteTopicCallableFutureCallDeleteTopicRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/deleteTopic => topicadminclient/deletetopic}/DeleteTopicDeleteTopicRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/deleteTopic => topicadminclient/deletetopic}/DeleteTopicString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/deleteTopic => topicadminclient/deletetopic}/DeleteTopicTopicName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/detachSubscription => topicadminclient/detachsubscription}/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/detachSubscription => topicadminclient/detachsubscription}/DetachSubscriptionDetachSubscriptionRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/getIamPolicy => topicadminclient/getiampolicy}/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/getIamPolicy => topicadminclient/getiampolicy}/GetIamPolicyGetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/getTopic => topicadminclient/gettopic}/GetTopicCallableFutureCallGetTopicRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/getTopic => topicadminclient/gettopic}/GetTopicGetTopicRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/getTopic => topicadminclient/gettopic}/GetTopicString.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/getTopic => topicadminclient/gettopic}/GetTopicTopicName.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopics => topicadminclient/listtopics}/ListTopicsCallableCallListTopicsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopics => topicadminclient/listtopics}/ListTopicsListTopicsRequestIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopics => topicadminclient/listtopics}/ListTopicsPagedCallableFutureCallListTopicsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopics => topicadminclient/listtopics}/ListTopicsProjectNameIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopics => topicadminclient/listtopics}/ListTopicsStringIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSnapshots => topicadminclient/listtopicsnapshots}/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSnapshots => topicadminclient/listtopicsnapshots}/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSnapshots => topicadminclient/listtopicsnapshots}/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSnapshots => topicadminclient/listtopicsnapshots}/ListTopicSnapshotsStringIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSnapshots => topicadminclient/listtopicsnapshots}/ListTopicSnapshotsTopicNameIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSubscriptions => topicadminclient/listtopicsubscriptions}/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSubscriptions => topicadminclient/listtopicsubscriptions}/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSubscriptions => topicadminclient/listtopicsubscriptions}/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSubscriptions => topicadminclient/listtopicsubscriptions}/ListTopicSubscriptionsStringIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/listTopicSubscriptions => topicadminclient/listtopicsubscriptions}/ListTopicSubscriptionsTopicNameIterateAll.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient => topicadminclient}/publish/PublishCallableFutureCallPublishRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient => topicadminclient}/publish/PublishPublishRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient => topicadminclient}/publish/PublishStringListPubsubMessage.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient => topicadminclient}/publish/PublishTopicNameListPubsubMessage.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/setIamPolicy => topicadminclient/setiampolicy}/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/setIamPolicy => topicadminclient/setiampolicy}/SetIamPolicySetIamPolicyRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/testIamPermissions => topicadminclient/testiampermissions}/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/testIamPermissions => topicadminclient/testiampermissions}/TestIamPermissionsTestIamPermissionsRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/updateTopic => topicadminclient/updatetopic}/UpdateTopicCallableFutureCallUpdateTopicRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminClient/updateTopic => topicadminclient/updatetopic}/UpdateTopicUpdateTopicRequest.java (100%) rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/{topicAdminSettings/createTopic => topicadminsettings/createtopic}/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient => cloudredisclient}/create/CreateCloudRedisSettings1.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient => cloudredisclient}/create/CreateCloudRedisSettings2.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/createInstance => cloudredisclient/createinstance}/CreateInstanceAsyncCreateInstanceRequestGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/createInstance => cloudredisclient/createinstance}/CreateInstanceAsyncLocationNameStringInstanceGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/createInstance => cloudredisclient/createinstance}/CreateInstanceAsyncStringStringInstanceGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/createInstance => cloudredisclient/createinstance}/CreateInstanceCallableFutureCallCreateInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/createInstance => cloudredisclient/createinstance}/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/deleteInstance => cloudredisclient/deleteinstance}/DeleteInstanceAsyncDeleteInstanceRequestGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/deleteInstance => cloudredisclient/deleteinstance}/DeleteInstanceAsyncInstanceNameGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/deleteInstance => cloudredisclient/deleteinstance}/DeleteInstanceAsyncStringGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/deleteInstance => cloudredisclient/deleteinstance}/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/deleteInstance => cloudredisclient/deleteinstance}/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/exportInstance => cloudredisclient/exportinstance}/ExportInstanceAsyncExportInstanceRequestGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/exportInstance => cloudredisclient/exportinstance}/ExportInstanceAsyncStringOutputConfigGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/exportInstance => cloudredisclient/exportinstance}/ExportInstanceCallableFutureCallExportInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/exportInstance => cloudredisclient/exportinstance}/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/failoverInstance => cloudredisclient/failoverinstance}/FailoverInstanceAsyncFailoverInstanceRequestGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/failoverInstance => cloudredisclient/failoverinstance}/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/failoverInstance => cloudredisclient/failoverinstance}/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/failoverInstance => cloudredisclient/failoverinstance}/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/failoverInstance => cloudredisclient/failoverinstance}/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/getInstance => cloudredisclient/getinstance}/GetInstanceCallableFutureCallGetInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/getInstance => cloudredisclient/getinstance}/GetInstanceGetInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/getInstance => cloudredisclient/getinstance}/GetInstanceInstanceName.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/getInstance => cloudredisclient/getinstance}/GetInstanceString.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/getInstanceAuthString => cloudredisclient/getinstanceauthstring}/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/getInstanceAuthString => cloudredisclient/getinstanceauthstring}/GetInstanceAuthStringGetInstanceAuthStringRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/getInstanceAuthString => cloudredisclient/getinstanceauthstring}/GetInstanceAuthStringInstanceName.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/getInstanceAuthString => cloudredisclient/getinstanceauthstring}/GetInstanceAuthStringString.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/importInstance => cloudredisclient/importinstance}/ImportInstanceAsyncImportInstanceRequestGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/importInstance => cloudredisclient/importinstance}/ImportInstanceAsyncStringInputConfigGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/importInstance => cloudredisclient/importinstance}/ImportInstanceCallableFutureCallImportInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/importInstance => cloudredisclient/importinstance}/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/listInstances => cloudredisclient/listinstances}/ListInstancesCallableCallListInstancesRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/listInstances => cloudredisclient/listinstances}/ListInstancesListInstancesRequestIterateAll.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/listInstances => cloudredisclient/listinstances}/ListInstancesLocationNameIterateAll.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/listInstances => cloudredisclient/listinstances}/ListInstancesPagedCallableFutureCallListInstancesRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/listInstances => cloudredisclient/listinstances}/ListInstancesStringIterateAll.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/rescheduleMaintenance => cloudredisclient/reschedulemaintenance}/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/rescheduleMaintenance => cloudredisclient/reschedulemaintenance}/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/rescheduleMaintenance => cloudredisclient/reschedulemaintenance}/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/rescheduleMaintenance => cloudredisclient/reschedulemaintenance}/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/rescheduleMaintenance => cloudredisclient/reschedulemaintenance}/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/updateInstance => cloudredisclient/updateinstance}/UpdateInstanceAsyncFieldMaskInstanceGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/updateInstance => cloudredisclient/updateinstance}/UpdateInstanceAsyncUpdateInstanceRequestGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/updateInstance => cloudredisclient/updateinstance}/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/updateInstance => cloudredisclient/updateinstance}/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/upgradeInstance => cloudredisclient/upgradeinstance}/UpgradeInstanceAsyncInstanceNameStringGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/upgradeInstance => cloudredisclient/upgradeinstance}/UpgradeInstanceAsyncStringStringGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/upgradeInstance => cloudredisclient/upgradeinstance}/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/upgradeInstance => cloudredisclient/upgradeinstance}/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisClient/upgradeInstance => cloudredisclient/upgradeinstance}/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/{cloudRedisSettings/getInstance => cloudredissettings/getinstance}/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java (100%) rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/{cloudRedisStubSettings/getInstance => cloudredisstubsettings/getinstance}/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/composeObject => storageclient/composeobject}/ComposeObjectCallableFutureCallComposeObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/composeObject => storageclient/composeobject}/ComposeObjectComposeObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient => storageclient}/create/CreateStorageSettings1.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient => storageclient}/create/CreateStorageSettings2.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createBucket => storageclient/createbucket}/CreateBucketCallableFutureCallCreateBucketRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createBucket => storageclient/createbucket}/CreateBucketCreateBucketRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createBucket => storageclient/createbucket}/CreateBucketProjectNameBucketString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createBucket => storageclient/createbucket}/CreateBucketStringBucketString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createHmacKey => storageclient/createhmackey}/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createHmacKey => storageclient/createhmackey}/CreateHmacKeyCreateHmacKeyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createHmacKey => storageclient/createhmackey}/CreateHmacKeyProjectNameString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createHmacKey => storageclient/createhmackey}/CreateHmacKeyStringString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createNotification => storageclient/createnotification}/CreateNotificationCallableFutureCallCreateNotificationRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createNotification => storageclient/createnotification}/CreateNotificationCreateNotificationRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createNotification => storageclient/createnotification}/CreateNotificationProjectNameNotification.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/createNotification => storageclient/createnotification}/CreateNotificationStringNotification.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteBucket => storageclient/deletebucket}/DeleteBucketBucketName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteBucket => storageclient/deletebucket}/DeleteBucketCallableFutureCallDeleteBucketRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteBucket => storageclient/deletebucket}/DeleteBucketDeleteBucketRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteBucket => storageclient/deletebucket}/DeleteBucketString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteHmacKey => storageclient/deletehmackey}/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteHmacKey => storageclient/deletehmackey}/DeleteHmacKeyDeleteHmacKeyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteHmacKey => storageclient/deletehmackey}/DeleteHmacKeyStringProjectName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteHmacKey => storageclient/deletehmackey}/DeleteHmacKeyStringString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteNotification => storageclient/deletenotification}/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteNotification => storageclient/deletenotification}/DeleteNotificationDeleteNotificationRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteNotification => storageclient/deletenotification}/DeleteNotificationNotificationName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteNotification => storageclient/deletenotification}/DeleteNotificationString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteObject => storageclient/deleteobject}/DeleteObjectCallableFutureCallDeleteObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteObject => storageclient/deleteobject}/DeleteObjectDeleteObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteObject => storageclient/deleteobject}/DeleteObjectStringString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/deleteObject => storageclient/deleteobject}/DeleteObjectStringStringLong.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getBucket => storageclient/getbucket}/GetBucketBucketName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getBucket => storageclient/getbucket}/GetBucketCallableFutureCallGetBucketRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getBucket => storageclient/getbucket}/GetBucketGetBucketRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getBucket => storageclient/getbucket}/GetBucketString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getHmacKey => storageclient/gethmackey}/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getHmacKey => storageclient/gethmackey}/GetHmacKeyGetHmacKeyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getHmacKey => storageclient/gethmackey}/GetHmacKeyStringProjectName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getHmacKey => storageclient/gethmackey}/GetHmacKeyStringString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getIamPolicy => storageclient/getiampolicy}/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getIamPolicy => storageclient/getiampolicy}/GetIamPolicyGetIamPolicyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getIamPolicy => storageclient/getiampolicy}/GetIamPolicyResourceName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getIamPolicy => storageclient/getiampolicy}/GetIamPolicyString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getNotification => storageclient/getnotification}/GetNotificationBucketName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getNotification => storageclient/getnotification}/GetNotificationCallableFutureCallGetNotificationRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getNotification => storageclient/getnotification}/GetNotificationGetNotificationRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getNotification => storageclient/getnotification}/GetNotificationString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getObject => storageclient/getobject}/GetObjectCallableFutureCallGetObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getObject => storageclient/getobject}/GetObjectGetObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getObject => storageclient/getobject}/GetObjectStringString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getObject => storageclient/getobject}/GetObjectStringStringLong.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getServiceAccount => storageclient/getserviceaccount}/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getServiceAccount => storageclient/getserviceaccount}/GetServiceAccountGetServiceAccountRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getServiceAccount => storageclient/getserviceaccount}/GetServiceAccountProjectName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/getServiceAccount => storageclient/getserviceaccount}/GetServiceAccountString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listBuckets => storageclient/listbuckets}/ListBucketsCallableCallListBucketsRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listBuckets => storageclient/listbuckets}/ListBucketsListBucketsRequestIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listBuckets => storageclient/listbuckets}/ListBucketsPagedCallableFutureCallListBucketsRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listBuckets => storageclient/listbuckets}/ListBucketsProjectNameIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listBuckets => storageclient/listbuckets}/ListBucketsStringIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listHmacKeys => storageclient/listhmackeys}/ListHmacKeysCallableCallListHmacKeysRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listHmacKeys => storageclient/listhmackeys}/ListHmacKeysListHmacKeysRequestIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listHmacKeys => storageclient/listhmackeys}/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listHmacKeys => storageclient/listhmackeys}/ListHmacKeysProjectNameIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listHmacKeys => storageclient/listhmackeys}/ListHmacKeysStringIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listNotifications => storageclient/listnotifications}/ListNotificationsCallableCallListNotificationsRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listNotifications => storageclient/listnotifications}/ListNotificationsListNotificationsRequestIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listNotifications => storageclient/listnotifications}/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listNotifications => storageclient/listnotifications}/ListNotificationsProjectNameIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listNotifications => storageclient/listnotifications}/ListNotificationsStringIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listObjects => storageclient/listobjects}/ListObjectsCallableCallListObjectsRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listObjects => storageclient/listobjects}/ListObjectsListObjectsRequestIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listObjects => storageclient/listobjects}/ListObjectsPagedCallableFutureCallListObjectsRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listObjects => storageclient/listobjects}/ListObjectsProjectNameIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/listObjects => storageclient/listobjects}/ListObjectsStringIterateAll.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/lockBucketRetentionPolicy => storageclient/lockbucketretentionpolicy}/LockBucketRetentionPolicyBucketName.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/lockBucketRetentionPolicy => storageclient/lockbucketretentionpolicy}/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/lockBucketRetentionPolicy => storageclient/lockbucketretentionpolicy}/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/lockBucketRetentionPolicy => storageclient/lockbucketretentionpolicy}/LockBucketRetentionPolicyString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/queryWriteStatus => storageclient/querywritestatus}/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/queryWriteStatus => storageclient/querywritestatus}/QueryWriteStatusQueryWriteStatusRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/queryWriteStatus => storageclient/querywritestatus}/QueryWriteStatusString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/readObject => storageclient/readobject}/ReadObjectCallableCallReadObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/rewriteObject => storageclient/rewriteobject}/RewriteObjectCallableFutureCallRewriteObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/rewriteObject => storageclient/rewriteobject}/RewriteObjectRewriteObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/setIamPolicy => storageclient/setiampolicy}/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/setIamPolicy => storageclient/setiampolicy}/SetIamPolicyResourceNamePolicy.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/setIamPolicy => storageclient/setiampolicy}/SetIamPolicySetIamPolicyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/setIamPolicy => storageclient/setiampolicy}/SetIamPolicyStringPolicy.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/startResumableWrite => storageclient/startresumablewrite}/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/startResumableWrite => storageclient/startresumablewrite}/StartResumableWriteStartResumableWriteRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/testIamPermissions => storageclient/testiampermissions}/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/testIamPermissions => storageclient/testiampermissions}/TestIamPermissionsResourceNameListString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/testIamPermissions => storageclient/testiampermissions}/TestIamPermissionsStringListString.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/testIamPermissions => storageclient/testiampermissions}/TestIamPermissionsTestIamPermissionsRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateBucket => storageclient/updatebucket}/UpdateBucketBucketFieldMask.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateBucket => storageclient/updatebucket}/UpdateBucketCallableFutureCallUpdateBucketRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateBucket => storageclient/updatebucket}/UpdateBucketUpdateBucketRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateHmacKey => storageclient/updatehmackey}/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateHmacKey => storageclient/updatehmackey}/UpdateHmacKeyHmacKeyMetadataFieldMask.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateHmacKey => storageclient/updatehmackey}/UpdateHmacKeyUpdateHmacKeyRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateObject => storageclient/updateobject}/UpdateObjectCallableFutureCallUpdateObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateObject => storageclient/updateobject}/UpdateObjectObjectFieldMask.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/updateObject => storageclient/updateobject}/UpdateObjectUpdateObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageClient/writeObject => storageclient/writeobject}/WriteObjectClientStreamingCallWriteObjectRequest.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/{storageSettings/deleteBucket => storagesettings/deletebucket}/DeleteBucketSettingsSetRetrySettingsStorageSettings.java (100%) rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/{storageStubSettings/deleteBucket => storagestubsettings/deletebucket}/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java (100%) diff --git a/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java b/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java index 2cf4837e41..46c3db1b3f 100644 --- a/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java +++ b/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java @@ -107,8 +107,8 @@ private static void writeSamples( String.format( "samples/generated/%s/%s/%s/%s.java", clazzPath, - sample.regionTag().serviceName(), - sample.regionTag().rpcName(), + sample.regionTag().serviceName().toLowerCase(), + sample.regionTag().rpcName().toLowerCase(), JavaStyle.toUpperCamelCase(sample.name()))); String executableSampleCode = SampleComposer.createExecutableSample(sample, pakkage); try { diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeIamPolicyLongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveAnalyzeMoveRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/analyzeMove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/batchGetAssetsHistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings1.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings1.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings2.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/create/CreateAssetServiceSettings2.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCallableFutureCallCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCallableFutureCallCreateFeedRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedCreateFeedRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/createFeed/CreateFeedString.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedDeleteFeedRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedFeedName.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/deleteFeed/DeleteFeedString.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsAsyncExportAssetsRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsAsyncExportAssetsRequestGet.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsCallableFutureCallExportAssetsRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/exportAssets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedCallableFutureCallGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedCallableFutureCallGetFeedRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedFeedName.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedGetFeedRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/getFeed/GetFeedString.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsCallableCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsCallableCallListAssetsRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsListAssetsRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsListAssetsRequestIterateAll.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsPagedCallableFutureCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsPagedCallableFutureCallListAssetsRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsResourceNameIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsResourceNameIterateAll.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listAssets/ListAssetsStringIterateAll.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsCallableFutureCallListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsCallableFutureCallListFeedsRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsListFeedsRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/listFeeds/ListFeedsString.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesStringStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllIamPolicies/SearchAllIamPoliciesStringStringIterateAll.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesStringStringListStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/searchAllResources/SearchAllResourcesStringStringListStringIterateAll.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedFeed.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedFeed.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceClient/updateFeed/UpdateFeedUpdateFeedRequest.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetServiceSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetServiceStubSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java similarity index 100% rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetServiceStubSettings/batchGetAssetsHistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowCheckAndMutateRowRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/checkAndMutateRow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings1.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings1.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings2.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/create/CreateBaseBigtableDataSettings2.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowCallableFutureCallMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowCallableFutureCallMutateRowRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowMutateRowRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutation.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowStringByteStringListMutationString.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutation.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRow/MutateRowTableNameByteStringListMutationString.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRows/MutateRowsCallableCallMutateRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/mutateRows/MutateRowsCallableCallMutateRowsRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowReadModifyWriteRowRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readModifyWriteRow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readRows/ReadRowsCallableCallReadRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/readRows/ReadRowsCallableCallReadRowsRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/sampleRowKeys/SampleRowKeysCallableCallSampleRowKeysRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataClient/sampleRowKeys/SampleRowKeysCallableCallSampleRowKeysRequest.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataSettings/mutateRow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/baseBigtableDataSettings/mutateRow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtableStubSettings/mutateRow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java similarity index 100% rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtableStubSettings/mutateRow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListAggregatedListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListAggregatedListAddressesRequestIterateAll.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListCallableCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListCallableCallAggregatedListAddressesRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/aggregatedList/AggregatedListStringIterateAll.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings1.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/create/CreateAddressesSettings2.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncDeleteAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncDeleteAddressRequestGet.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncStringStringStringGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteAsyncStringStringStringGet.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteCallableFutureCallDeleteAddressRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncInsertAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncInsertAddressRequestGet.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncStringStringAddressGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertAsyncStringStringAddressGet.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertCallableFutureCallInsertAddressRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListCallableCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListCallableCallListAddressesRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListListAddressesRequestIterateAll.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListPagedCallableFutureCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListPagedCallableFutureCallListAddressesRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListStringStringStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesClient/list/ListStringStringStringIterateAll.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesSettings.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings1.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/create/CreateRegionOperationsSettings2.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetCallableFutureCallGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetCallableFutureCallGetRegionOperationRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetGetRegionOperationRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/get/GetStringStringString.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitStringStringString.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsClient/wait/WaitWaitRegionOperationRequest.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsSettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionOperationsSettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesStubSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesStubSettings/aggregatedList/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionOperationsStubSettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java similarity index 100% rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionOperationsStubSettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings1.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings1.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings2.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/create/CreateIamCredentialsSettings2.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenGenerateAccessTokenRequest.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenStringListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateAccessToken/GenerateAccessTokenStringListStringListStringDuration.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenGenerateIdTokenRequest.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenStringListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/generateIdToken/GenerateIdTokenStringListStringStringBoolean.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobCallableFutureCallSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobCallableFutureCallSignBlobRequest.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobServiceAccountNameListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobServiceAccountNameListStringByteString.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobSignBlobRequest.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobStringListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signBlob/SignBlobStringListStringByteString.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtCallableFutureCallSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtCallableFutureCallSignJwtRequest.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtServiceAccountNameListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtServiceAccountNameListStringString.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtSignJwtRequest.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtStringListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsClient/signJwt/SignJwtStringListStringString.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamCredentialsSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamCredentialsStubSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java similarity index 100% rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamCredentialsStubSettings/generateAccessToken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings1.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings1.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings2.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/create/CreateIAMPolicySettings2.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicyClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicySettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iAMPolicySettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iAMPolicyStubSettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java similarity index 100% rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iAMPolicyStubSettings/setIamPolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricDecrypt/AsymmetricDecryptStringByteString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignAsymmetricSignRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCryptoKeyVersionNameDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignCryptoKeyVersionNameDigest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignStringDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/asymmetricSign/AsymmetricSignStringDigest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings1.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings1.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings2.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/create/CreateKeyManagementServiceSettings2.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyCreateCryptoKeyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyKeyRingNameStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyKeyRingNameStringCryptoKey.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyStringStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKey/CreateCryptoKeyStringStringCryptoKey.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionStringCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createCryptoKeyVersion/CreateCryptoKeyVersionStringCryptoKeyVersion.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCallableFutureCallCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCallableFutureCallCreateImportJobRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobCreateImportJobRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobKeyRingNameStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobKeyRingNameStringImportJob.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobStringStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createImportJob/CreateImportJobStringStringImportJob.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingCreateKeyRingRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingLocationNameStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingLocationNameStringKeyRing.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingStringStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/createKeyRing/CreateKeyRingStringStringKeyRing.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCallableFutureCallDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCallableFutureCallDecryptRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCryptoKeyNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptCryptoKeyNameByteString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptDecryptRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/decrypt/DecryptStringByteString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionCryptoKeyVersionName.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/destroyCryptoKeyVersion/DestroyCryptoKeyVersionString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptCallableFutureCallEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptCallableFutureCallEncryptRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptEncryptRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptResourceNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptResourceNameByteString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/encrypt/EncryptStringByteString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCryptoKeyName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyCryptoKeyName.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyGetCryptoKeyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKey/GetCryptoKeyString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionCryptoKeyVersionName.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getCryptoKeyVersion/GetCryptoKeyVersionString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobCallableFutureCallGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobCallableFutureCallGetImportJobRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobGetImportJobRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobImportJobName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobImportJobName.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getImportJob/GetImportJobString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingCallableFutureCallGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingCallableFutureCallGetKeyRingRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingGetKeyRingRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingKeyRingName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingKeyRingName.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getKeyRing/GetKeyRingString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationCallableFutureCallGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationCallableFutureCallGetLocationRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getLocation/GetLocationGetLocationRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyCryptoKeyVersionName.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyGetPublicKeyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/getPublicKey/GetPublicKeyString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/importCryptoKeyVersion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysKeyRingNameIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeys/ListCryptoKeysStringIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listCryptoKeyVersions/ListCryptoKeyVersionsStringIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsCallableCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsCallableCallListImportJobsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsKeyRingNameIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsListImportJobsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsListImportJobsRequestIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listImportJobs/ListImportJobsStringIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsCallableCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsCallableCallListKeyRingsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsListKeyRingsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsListKeyRingsRequestIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsLocationNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsLocationNameIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listKeyRings/ListKeyRingsStringIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsCallableCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsCallableCallListLocationsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsListLocationsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsListLocationsRequestIterateAll.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/listLocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionCryptoKeyVersionName.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/restoreCryptoKeyVersion/RestoreCryptoKeyVersionString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCryptoKeyFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyCryptoKeyFieldMask.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKey/UpdateCryptoKeyUpdateCryptoKeyRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionStringString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionStringString.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyPrimaryVersion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceClient/updateCryptoKeyVersion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keyManagementServiceSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keyManagementServiceStubSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java similarity index 100% rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keyManagementServiceStubSettings/getKeyRing/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings1.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings1.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings2.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/create/CreateLibraryServiceSettings2.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCallableFutureCallCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCallableFutureCallCreateBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookCreateBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookShelfNameBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookShelfNameBook.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookStringBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createBook/CreateBookStringBook.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCallableFutureCallCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCallableFutureCallCreateShelfRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfCreateShelfRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfShelf.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/createShelf/CreateShelfShelf.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookBookName.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookCallableFutureCallDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookCallableFutureCallDeleteBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookDeleteBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteBook/DeleteBookString.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfDeleteShelfRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfShelfName.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/deleteShelf/DeleteShelfString.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookBookName.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookCallableFutureCallGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookCallableFutureCallGetBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookGetBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getBook/GetBookString.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfCallableFutureCallGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfCallableFutureCallGetShelfRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfGetShelfRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfShelfName.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/getShelf/GetShelfString.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksCallableCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksCallableCallListBooksRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksListBooksRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksListBooksRequestIterateAll.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksPagedCallableFutureCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksPagedCallableFutureCallListBooksRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksShelfNameIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksShelfNameIterateAll.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksStringIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listBooks/ListBooksStringIterateAll.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesCallableCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesCallableCallListShelvesRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesListShelvesRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesListShelvesRequestIterateAll.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/listShelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesMergeShelvesRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameShelfName.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesShelfNameString.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringShelfName.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/mergeShelves/MergeShelvesStringString.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameShelfName.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookBookNameString.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookCallableFutureCallMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookCallableFutureCallMoveBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookMoveBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringShelfName.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/moveBook/MoveBookStringString.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookBookFieldMask.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookBookFieldMask.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookCallableFutureCallUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookCallableFutureCallUpdateBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceClient/updateBook/UpdateBookUpdateBookRequest.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryServiceSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryServiceStubSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java similarity index 100% rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryServiceStubSettings/createShelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings1.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/create/CreateConfigSettings2.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createBucket/CreateBucketCreateBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionBillingAccountNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionBillingAccountNameLogExclusion.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionCreateExclusionRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionFolderNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionFolderNameLogExclusion.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionOrganizationNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionOrganizationNameLogExclusion.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionProjectNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionProjectNameLogExclusion.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionStringLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createExclusion/CreateExclusionStringLogExclusion.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkBillingAccountNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkBillingAccountNameLogSink.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCallableFutureCallCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCallableFutureCallCreateSinkRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkCreateSinkRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkFolderNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkFolderNameLogSink.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkOrganizationNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkOrganizationNameLogSink.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkProjectNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkProjectNameLogSink.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createSink/CreateSinkStringLogSink.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCallableFutureCallCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCallableFutureCallCreateViewRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/createView/CreateViewCreateViewRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteBucket/DeleteBucketDeleteBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionDeleteExclusionRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionLogExclusionName.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteExclusion/DeleteExclusionString.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkCallableFutureCallDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkCallableFutureCallDeleteSinkRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkDeleteSinkRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkLogSinkName.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteSink/DeleteSinkString.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewCallableFutureCallDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewCallableFutureCallDeleteViewRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/deleteView/DeleteViewDeleteViewRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getBucket/GetBucketGetBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getCmekSettings/GetCmekSettingsGetCmekSettingsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionCallableFutureCallGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionCallableFutureCallGetExclusionRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionGetExclusionRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionLogExclusionName.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getExclusion/GetExclusionString.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkCallableFutureCallGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkCallableFutureCallGetSinkRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkGetSinkRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkLogSinkName.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getSink/GetSinkString.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewCallableFutureCallGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewCallableFutureCallGetViewRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/getView/GetViewGetViewRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsBillingAccountLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsBillingAccountLocationNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsFolderLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsFolderLocationNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsLocationNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsOrganizationLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsOrganizationLocationNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listBuckets/ListBucketsStringIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsBillingAccountNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsCallableCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsCallableCallListExclusionsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsFolderNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsListExclusionsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsListExclusionsRequestIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsOrganizationNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsProjectNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listExclusions/ListExclusionsStringIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksBillingAccountNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksCallableCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksCallableCallListSinksRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksFolderNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksListSinksRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksListSinksRequestIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksOrganizationNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksPagedCallableFutureCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksPagedCallableFutureCallListSinksRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksProjectNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listSinks/ListSinksStringIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsCallableCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsCallableCallListViewsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsListViewsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsListViewsRequestIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsPagedCallableFutureCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsPagedCallableFutureCallListViewsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/listViews/ListViewsStringIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/undeleteBucket/UndeleteBucketUndeleteBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateBucket/UpdateBucketUpdateBucketRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateCmekSettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionStringLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionStringLogExclusionFieldMask.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateExclusion/UpdateExclusionUpdateExclusionRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkCallableFutureCallUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkCallableFutureCallUpdateSinkRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSink.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkLogSinkNameLogSinkFieldMask.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSink.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkStringLogSinkFieldMask.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateSink/UpdateSinkUpdateSinkRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewCallableFutureCallUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewCallableFutureCallUpdateViewRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configClient/updateView/UpdateViewUpdateViewRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigSettings.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings1.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/create/CreateLoggingSettings2.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogCallableFutureCallDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogCallableFutureCallDeleteLogRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogDeleteLogRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogLogName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogLogName.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/deleteLog/DeleteLogString.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesCallableCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesCallableCallListLogEntriesRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListLogEntriesRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListLogEntriesRequestIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListStringStringStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesListStringStringStringIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogEntries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsBillingAccountNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsCallableCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsCallableCallListLogsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsFolderNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsListLogsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsListLogsRequestIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsOrganizationNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsPagedCallableFutureCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsPagedCallableFutureCallListLogsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsProjectNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listLogs/ListLogsStringIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/listMonitoredResourceDescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/tailLogEntries/TailLogEntriesCallableCallTailLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/tailLogEntries/TailLogEntriesCallableCallTailLogEntriesRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingClient/writeLogEntries/WriteLogEntriesWriteLogEntriesRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings1.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/create/CreateMetricsSettings2.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricCreateLogMetricRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricProjectNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricProjectNameLogMetric.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/createLogMetric/CreateLogMetricStringLogMetric.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricDeleteLogMetricRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricLogMetricName.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/deleteLogMetric/DeleteLogMetricString.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricGetLogMetricRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricLogMetricName.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/getLogMetric/GetLogMetricString.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsCallableCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsCallableCallListLogMetricsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsListLogMetricsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsListLogMetricsRequestIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsProjectNameIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/listLogMetrics/ListLogMetricsStringIterateAll.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricLogMetricNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricLogMetricNameLogMetric.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricStringLogMetric.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsClient/updateLogMetric/UpdateLogMetricUpdateLogMetricRequest.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configServiceV2StubSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configServiceV2StubSettings/getBucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingServiceV2StubSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingServiceV2StubSettings/deleteLog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsServiceV2StubSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java similarity index 100% rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsServiceV2StubSettings/getLogMetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings1.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/create/CreateSchemaServiceSettings2.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCallableFutureCallCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCallableFutureCallCreateSchemaRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaCreateSchemaRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaProjectNameSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaProjectNameSchemaString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaStringSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/createSchema/CreateSchemaStringSchemaString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaDeleteSchemaRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaSchemaName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/deleteSchema/DeleteSchemaString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaCallableFutureCallGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaCallableFutureCallGetSchemaRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaGetSchemaRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaSchemaName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/getSchema/GetSchemaString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasCallableCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasCallableCallListSchemasRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasListSchemasRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasListSchemasRequestIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasProjectNameIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/listSchemas/ListSchemasStringIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageCallableFutureCallValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageCallableFutureCallValidateMessageRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateMessage/ValidateMessageValidateMessageRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaProjectNameSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaProjectNameSchema.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaStringSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaStringSchema.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceClient/validateSchema/ValidateSchemaValidateSchemaRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaServiceSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherStubSettings/createTopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherStubSettings/createTopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaServiceStubSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaServiceStubSettings/createSchema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberStubSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberStubSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeAcknowledgeRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeStringListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeStringListString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeSubscriptionNameListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/acknowledge/AcknowledgeSubscriptionNameListString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings1.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/create/CreateSubscriptionAdminSettings2.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotCreateSnapshotRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotSnapshotNameSubscriptionName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSnapshot/CreateSnapshotStringSubscriptionName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionCallableFutureCallSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionCallableFutureCallSubscription.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringStringPushConfigInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionStringTopicNamePushConfigInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscription.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/createSubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotDeleteSnapshotRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotSnapshotName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSnapshot/DeleteSnapshotString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionDeleteSubscriptionRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/deleteSubscription/DeleteSubscriptionSubscriptionName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotGetSnapshotRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotSnapshotName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSnapshot/GetSnapshotString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionGetSubscriptionRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/getSubscription/GetSubscriptionSubscriptionName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsProjectNameIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSnapshots/ListSnapshotsStringIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsProjectNameIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/listSubscriptions/ListSubscriptionsStringIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineStringListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineStringListStringInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyAckDeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigModifyPushConfigRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigStringPushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigStringPushConfig.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigSubscriptionNamePushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/modifyPushConfig/ModifyPushConfigSubscriptionNamePushConfig.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullCallableFutureCallPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullCallableFutureCallPullRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullPullRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringBooleanInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullStringInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameBooleanInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/pull/PullSubscriptionNameInt.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekCallableFutureCallSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekCallableFutureCallSeekRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/seek/SeekSeekRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/streamingPull/StreamingPullCallableCallStreamingPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/streamingPull/StreamingPullCallableCallStreamingPullRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSnapshot/UpdateSnapshotUpdateSnapshotRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminClient/updateSubscription/UpdateSubscriptionUpdateSubscriptionRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionAdminSettings/createSubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings1.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/create/CreateTopicAdminSettings2.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicCallableFutureCallTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicCallableFutureCallTopic.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopic.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/createTopic/CreateTopicTopicName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicDeleteTopicRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/deleteTopic/DeleteTopicTopicName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/detachSubscription/DetachSubscriptionDetachSubscriptionRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicCallableFutureCallGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicCallableFutureCallGetTopicRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicGetTopicRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicString.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/getTopic/GetTopicTopicName.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsCallableCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsCallableCallListTopicsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsListTopicsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsListTopicsRequestIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsProjectNameIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopics/ListTopicsStringIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsStringIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSnapshots/ListTopicSnapshotsTopicNameIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsStringIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/listTopicSubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishCallableFutureCallPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishCallableFutureCallPublishRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishPublishRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishStringListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishStringListPubsubMessage.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishTopicNameListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/publish/PublishTopicNameListPubsubMessage.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminClient/updateTopic/UpdateTopicUpdateTopicRequest.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminSettings/createTopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java similarity index 100% rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicAdminSettings/createTopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings1.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings1.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings2.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/create/CreateCloudRedisSettings2.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncCreateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncCreateInstanceRequestGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncLocationNameStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncLocationNameStringInstanceGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncStringStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceAsyncStringStringInstanceGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/createInstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncInstanceNameGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncInstanceNameGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceAsyncStringGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/deleteInstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncExportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncExportInstanceRequestGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncStringOutputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceAsyncStringOutputConfigGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceCallableFutureCallExportInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/exportInstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/failoverInstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceCallableFutureCallGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceCallableFutureCallGetInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceGetInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceInstanceName.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstance/GetInstanceString.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringGetInstanceAuthStringRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringInstanceName.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/getInstanceAuthString/GetInstanceAuthStringString.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncImportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncImportInstanceRequestGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncStringInputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceAsyncStringInputConfigGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceCallableFutureCallImportInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/importInstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesCallableCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesCallableCallListInstancesRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesListInstancesRequestIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesListInstancesRequestIterateAll.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesLocationNameIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesLocationNameIterateAll.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesStringIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/listInstances/ListInstancesStringIterateAll.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/rescheduleMaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncFieldMaskInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncFieldMaskInstanceGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/updateInstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncInstanceNameStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncInstanceNameStringGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncStringStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncStringStringGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisClient/upgradeInstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudRedisSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudRedisStubSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java similarity index 100% rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudRedisStubSettings/getInstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectCallableFutureCallComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectCallableFutureCallComposeObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/composeObject/ComposeObjectComposeObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings1.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings1.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings2.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/create/CreateStorageSettings2.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCallableFutureCallCreateBucketRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketCreateBucketRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketProjectNameBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketProjectNameBucketString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketStringBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createBucket/CreateBucketStringBucketString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyCreateHmacKeyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyProjectNameString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyProjectNameString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createHmacKey/CreateHmacKeyStringString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationCreateNotificationRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationProjectNameNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationProjectNameNotification.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationStringNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/createNotification/CreateNotificationStringNotification.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketBucketName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketDeleteBucketRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteBucket/DeleteBucketString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyDeleteHmacKeyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringProjectName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteHmacKey/DeleteHmacKeyStringString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationDeleteNotificationRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationNotificationName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationNotificationName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteNotification/DeleteNotificationString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectCallableFutureCallDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectCallableFutureCallDeleteObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectDeleteObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/deleteObject/DeleteObjectStringStringLong.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketBucketName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketCallableFutureCallGetBucketRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketGetBucketRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getBucket/GetBucketString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyGetHmacKeyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringProjectName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getHmacKey/GetHmacKeyStringString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyGetIamPolicyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyResourceName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyResourceName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getIamPolicy/GetIamPolicyString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationBucketName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationCallableFutureCallGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationCallableFutureCallGetNotificationRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationGetNotificationRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getNotification/GetNotificationString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectCallableFutureCallGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectCallableFutureCallGetObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectGetObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getObject/GetObjectStringStringLong.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountGetServiceAccountRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountProjectName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/getServiceAccount/GetServiceAccountString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsCallableCallListBucketsRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsListBucketsRequestIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsProjectNameIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listBuckets/ListBucketsStringIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysCallableCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysCallableCallListHmacKeysRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysListHmacKeysRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysListHmacKeysRequestIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysProjectNameIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listHmacKeys/ListHmacKeysStringIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsCallableCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsCallableCallListNotificationsRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsListNotificationsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsListNotificationsRequestIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsProjectNameIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listNotifications/ListNotificationsStringIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsCallableCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsCallableCallListObjectsRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsListObjectsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsListObjectsRequestIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsProjectNameIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/listObjects/ListObjectsStringIterateAll.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyBucketName.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/lockBucketRetentionPolicy/LockBucketRetentionPolicyString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusQueryWriteStatusRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/queryWriteStatus/QueryWriteStatusString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/readObject/ReadObjectCallableCallReadObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/readObject/ReadObjectCallableCallReadObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectCallableFutureCallRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectCallableFutureCallRewriteObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/rewriteObject/RewriteObjectRewriteObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyResourceNamePolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyResourceNamePolicy.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicySetIamPolicyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyStringPolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/setIamPolicy/SetIamPolicyStringPolicy.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/startResumableWrite/StartResumableWriteStartResumableWriteRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsResourceNameListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsResourceNameListString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsStringListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsStringListString.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/testIamPermissions/TestIamPermissionsTestIamPermissionsRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketBucketFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketBucketFieldMask.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateBucket/UpdateBucketUpdateBucketRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyHmacKeyMetadataFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyHmacKeyMetadataFieldMask.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateHmacKey/UpdateHmacKeyUpdateHmacKeyRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectCallableFutureCallUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectCallableFutureCallUpdateObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectObjectFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectObjectFieldMask.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/updateObject/UpdateObjectUpdateObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/writeObject/WriteObjectClientStreamingCallWriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageClient/writeObject/WriteObjectClientStreamingCallWriteObjectRequest.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storageStubSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java similarity index 100% rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storageStubSettings/deleteBucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java From b06b544d873dcd77666f420bc52e31115424ff8b Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 4 Mar 2022 16:42:43 -0800 Subject: [PATCH 10/29] refactor: write with sample code writer --- .../ClientLibraryPackageInfoComposer.java | 4 +- .../AbstractServiceClientClassComposer.java | 15 ++-- .../AbstractServiceSettingsClassComposer.java | 4 +- ...tractServiceStubSettingsClassComposer.java | 4 +- .../composer/samplecode/SampleCodeWriter.java | 17 +++-- .../composer/samplecode/SampleComposer.java | 72 ++++++------------- .../generator/gapic/protowriter/Writer.java | 6 +- 7 files changed, 52 insertions(+), 70 deletions(-) diff --git a/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java b/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java index fc4455cd0a..e48bc76428 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java @@ -21,7 +21,7 @@ import com.google.api.generator.engine.ast.PackageInfoDefinition; import com.google.api.generator.engine.ast.TypeNode; import com.google.api.generator.engine.ast.VaporReference; -import com.google.api.generator.gapic.composer.samplecode.SampleComposer; +import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; import com.google.api.generator.gapic.composer.samplecode.ServiceClientSampleCodeComposer; import com.google.api.generator.gapic.composer.utils.ClassNames; import com.google.api.generator.gapic.model.GapicContext; @@ -125,7 +125,7 @@ private static CommentStatement createPackageInfoJavadoc(GapicContext context) { ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode( service, clientType, context.resourceNames(), context.messages()); javaDocCommentBuilder.addSampleCode( - SampleComposer.createInlineSample(packageInfoSampleCode.body())); + SampleCodeWriter.writeInlineSample(packageInfoSampleCode.body())); } return CommentStatement.withComment(javaDocCommentBuilder.build()); diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java index a9c4d4b8e5..465e6e7472 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java @@ -55,7 +55,7 @@ import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.gapic.composer.comment.ServiceClientCommentComposer; -import com.google.api.generator.gapic.composer.samplecode.SampleComposer; +import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; import com.google.api.generator.gapic.composer.samplecode.ServiceClientSampleCodeComposer; import com.google.api.generator.gapic.composer.store.TypeStore; import com.google.api.generator.gapic.composer.utils.ClassNames; @@ -205,9 +205,9 @@ private static List createClassHeaderComments( samples.addAll(Arrays.asList(classMethodSampleCode, credentialsSampleCode, endpointSampleCode)); return ServiceClientCommentComposer.createClassHeaderComments( service, - SampleComposer.createInlineSample(classMethodSampleCode.body()), - SampleComposer.createInlineSample(credentialsSampleCode.body()), - SampleComposer.createInlineSample(endpointSampleCode.body())); + SampleCodeWriter.writeInlineSample(classMethodSampleCode.body()), + SampleCodeWriter.writeInlineSample(credentialsSampleCode.body()), + SampleCodeWriter.writeInlineSample(endpointSampleCode.body())); } private List createClassMethods( @@ -718,7 +718,8 @@ private static List createMethodVariants( Optional methodDocSample = Optional.empty(); if (methodSample.isPresent()) { samples.add(methodSample.get()); - methodDocSample = Optional.of(SampleComposer.createInlineSample(methodSample.get().body())); + methodDocSample = + Optional.of(SampleCodeWriter.writeInlineSample(methodSample.get().body())); } MethodDefinition.Builder methodVariantBuilder = @@ -806,7 +807,7 @@ private static MethodDefinition createMethodDefaultMethod( if (defaultMethodSample.isPresent()) { samples.add(defaultMethodSample.get()); defaultMethodDocSample = - Optional.of(SampleComposer.createInlineSample(defaultMethodSample.get().body())); + Optional.of(SampleCodeWriter.writeInlineSample(defaultMethodSample.get().body())); } MethodInvocationExpr callableMethodExpr = @@ -974,7 +975,7 @@ private static MethodDefinition createCallableMethod( Optional sampleDocCode = Optional.empty(); if (sampleCode.isPresent()) { samples.add(sampleCode.get()); - sampleDocCode = Optional.of(SampleComposer.createInlineSample(sampleCode.get().body())); + sampleDocCode = Optional.of(SampleCodeWriter.writeInlineSample(sampleCode.get().body())); } MethodDefinition.Builder methodDefBuilder = MethodDefinition.builder(); diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java index f5c97611b0..2afa554f72 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java @@ -50,7 +50,7 @@ import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.gapic.composer.comment.SettingsCommentComposer; -import com.google.api.generator.gapic.composer.samplecode.SampleComposer; +import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; import com.google.api.generator.gapic.composer.samplecode.SettingsSampleCodeComposer; import com.google.api.generator.gapic.composer.store.TypeStore; import com.google.api.generator.gapic.composer.utils.ClassNames; @@ -149,7 +149,7 @@ private static List createClassHeaderComments( Optional docSampleCode = Optional.empty(); if (sampleCode.isPresent()) { samples.add(sampleCode.get()); - docSampleCode = Optional.of(SampleComposer.createInlineSample(sampleCode.get().body())); + docSampleCode = Optional.of(SampleCodeWriter.writeInlineSample(sampleCode.get().body())); } return SettingsCommentComposer.createClassHeaderComments( diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java index 248bff6f8f..fcfa7da969 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java @@ -79,7 +79,7 @@ import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.gapic.composer.comment.SettingsCommentComposer; -import com.google.api.generator.gapic.composer.samplecode.SampleComposer; +import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; import com.google.api.generator.gapic.composer.samplecode.SettingsSampleCodeComposer; import com.google.api.generator.gapic.composer.store.TypeStore; import com.google.api.generator.gapic.composer.utils.ClassNames; @@ -399,7 +399,7 @@ private static List createClassHeaderComments( Optional docSampleCode = Optional.empty(); if (sampleCode.isPresent()) { samples.add(sampleCode.get()); - docSampleCode = Optional.of(SampleComposer.createInlineSample(sampleCode.get().body())); + docSampleCode = Optional.of(SampleCodeWriter.writeInlineSample(sampleCode.get().body())); } return SettingsCommentComposer.createClassHeaderComments( diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java index 74b3c5c69a..742ad20191 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java @@ -17,16 +17,22 @@ import com.google.api.generator.engine.ast.ClassDefinition; import com.google.api.generator.engine.ast.Statement; import com.google.api.generator.engine.writer.JavaWriterVisitor; -import java.util.Arrays; +import com.google.api.generator.gapic.model.Sample; +import com.google.common.annotations.VisibleForTesting; import java.util.List; public final class SampleCodeWriter { - static String write(Statement... statement) { - return write(Arrays.asList(statement)); + public static String writeInlineSample(List statements) { + return write(SampleComposer.composeInlineSample(statements)); } - static String write(List statements) { + public static String writeExecutableSample(Sample sample, String packkage) { + return write(SampleComposer.composeExecutableSample(sample, packkage)); + } + + @VisibleForTesting + public static String write(List statements) { JavaWriterVisitor visitor = new JavaWriterVisitor(); for (Statement statement : statements) { statement.accept(visitor); @@ -36,7 +42,8 @@ static String write(List statements) { return formattedSampleCode.replaceAll("@", "{@literal @}"); } - static String write(ClassDefinition classDefinition) { + @VisibleForTesting + public static String write(ClassDefinition classDefinition) { JavaWriterVisitor visitor = new JavaWriterVisitor(); classDefinition.accept(visitor); return visitor.write(); diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java index 12bfce044a..3bc22ef4bc 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java @@ -16,6 +16,7 @@ import com.google.api.generator.engine.ast.AssignmentExpr; import com.google.api.generator.engine.ast.ClassDefinition; +import com.google.api.generator.engine.ast.CommentStatement; import com.google.api.generator.engine.ast.Expr; import com.google.api.generator.engine.ast.ExprStatement; import com.google.api.generator.engine.ast.MethodDefinition; @@ -29,8 +30,6 @@ import com.google.api.generator.gapic.model.RegionTag; import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.gapic.utils.JavaStyle; -import com.google.common.annotations.VisibleForTesting; -import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.Arrays; @@ -38,66 +37,36 @@ import java.util.stream.Collectors; public class SampleComposer { - public static String createInlineSample(List sampleBody) { - List statementsWithComment = new ArrayList<>(); - statementsWithComment.addAll(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT); - statementsWithComment.addAll(sampleBody); - return SampleCodeWriter.write(statementsWithComment); + static List composeInlineSample(List sampleBody) { + return bodyWithComment(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT, sampleBody); } // "Executable" meaning it includes the necessary code to execute java code, // still may require additional configuration to actually execute generated sample code - public static String createExecutableSample(Sample sample, String pakkage) { - Preconditions.checkState(!sample.fileHeader().isEmpty(), "File header should not be empty"); - String sampleHeader = SampleCodeWriter.write(sample.fileHeader()); - String sampleClass = - SampleCodeWriter.write( - composeExecutableSample( - pakkage, - sample.name(), - sample.variableAssignments(), - bodyWithComment(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT, sample.body()))); - sampleClass = includeRegionTags(sampleClass, sample.regionTag()); - return String.format("%s\n%s", sampleHeader, sampleClass); + static ClassDefinition composeExecutableSample(Sample sample, String pakkage) { + return createExecutableSample( + sample.fileHeader(), + pakkage, + sample.name(), + sample.variableAssignments(), + bodyWithComment(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT, sample.body()), + sample.regionTag()); } private static List bodyWithComment( List autoGeneratedComment, List sampleBody) { - List bodyWithComment = new ArrayList<>(); - bodyWithComment.addAll(autoGeneratedComment); + List bodyWithComment = new ArrayList<>(autoGeneratedComment); bodyWithComment.addAll(sampleBody); return bodyWithComment; } - @VisibleForTesting - protected static String includeRegionTags(String sampleClass, RegionTag regionTag) { - Preconditions.checkState( - !regionTag.apiShortName().isEmpty(), "apiShortName should not be empty"); - String rt = regionTag.apiShortName() + "_"; - if (!regionTag.apiVersion().isEmpty()) { - rt = rt + regionTag.apiVersion() + "_"; - } - rt = rt + "generated_" + regionTag.serviceName() + "_" + regionTag.rpcName(); - if (!regionTag.overloadDisambiguation().isEmpty()) { - rt = rt + "_" + regionTag.overloadDisambiguation(); - } - String start = String.format("// [START %s]", rt.toLowerCase()); - String end = String.format("// [END %s]", rt.toLowerCase()); - - String sampleWithRegionTags = String.format("%s%s", start, sampleClass); - // START region tag should go below package statement - if (sampleClass.startsWith("package")) { - sampleWithRegionTags = sampleClass.replaceAll("(^package .+\n)", "$1\n" + start); - } - sampleWithRegionTags = String.format("%s%s", sampleWithRegionTags, end); - return sampleWithRegionTags; - } - - private static ClassDefinition composeExecutableSample( + private static ClassDefinition createExecutableSample( + List fileHeader, String packageName, String sampleMethodName, List sampleVariableAssignments, - List sampleBody) { + List sampleBody, + RegionTag regionTag) { String sampleClassName = JavaStyle.toUpperCamelCase(sampleMethodName); List sampleMethodArgs = composeSampleMethodArgs(sampleVariableAssignments); @@ -108,7 +77,8 @@ private static ClassDefinition composeExecutableSample( composeInvokeMethodStatement(sampleMethodName, sampleMethodArgs))); MethodDefinition sampleMethod = composeSampleMethod(sampleMethodName, sampleMethodArgs, sampleBody); - return composeSampleClass(packageName, sampleClassName, mainMethod, sampleMethod); + return composeSampleClass( + fileHeader, packageName, sampleClassName, mainMethod, sampleMethod, regionTag); } private static List composeSampleMethodArgs( @@ -143,11 +113,15 @@ private static List composeMainBody( } private static ClassDefinition composeSampleClass( + List fileHeader, String packageName, String sampleClassName, MethodDefinition mainMethod, - MethodDefinition sampleMethod) { + MethodDefinition sampleMethod, + RegionTag regionTag) { return ClassDefinition.builder() + .setFileHeader(fileHeader) + .setRegionTag(regionTag) .setScope(ScopeNode.PUBLIC) .setPackageString(packageName) .setName(sampleClassName) diff --git a/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java b/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java index 46c3db1b3f..024fcdff3c 100644 --- a/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java +++ b/src/main/java/com/google/api/generator/gapic/protowriter/Writer.java @@ -17,7 +17,7 @@ import com.google.api.generator.engine.ast.ClassDefinition; import com.google.api.generator.engine.ast.PackageInfoDefinition; import com.google.api.generator.engine.writer.JavaWriterVisitor; -import com.google.api.generator.gapic.composer.samplecode.SampleComposer; +import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.GapicPackageInfo; @@ -110,10 +110,10 @@ private static void writeSamples( sample.regionTag().serviceName().toLowerCase(), sample.regionTag().rpcName().toLowerCase(), JavaStyle.toUpperCamelCase(sample.name()))); - String executableSampleCode = SampleComposer.createExecutableSample(sample, pakkage); + String sampleFileContent = SampleCodeWriter.writeExecutableSample(sample, pakkage); try { jos.putNextEntry(jarEntry); - jos.write(executableSampleCode.getBytes(StandardCharsets.UTF_8)); + jos.write(sampleFileContent.getBytes(StandardCharsets.UTF_8)); } catch (IOException e) { throw new GapicWriterException( String.format( From 670024a0b3d9d6b45de81658172d4378c944a358 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 4 Mar 2022 16:45:32 -0800 Subject: [PATCH 11/29] refactor: update to write with ClassDefinition --- .../generator/engine/ast/ClassDefinition.java | 6 ++++ .../engine/writer/JavaWriterVisitor.java | 29 ++++++++++++++++- .../api/generator/gapic/model/RegionTag.java | 31 +++++++++++++++++++ .../api/generator/gapic/model/Sample.java | 7 +++-- 4 files changed, 69 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/google/api/generator/engine/ast/ClassDefinition.java b/src/main/java/com/google/api/generator/engine/ast/ClassDefinition.java index ec8f4f7b43..4e1211ba3a 100644 --- a/src/main/java/com/google/api/generator/engine/ast/ClassDefinition.java +++ b/src/main/java/com/google/api/generator/engine/ast/ClassDefinition.java @@ -14,6 +14,7 @@ package com.google.api.generator.engine.ast; +import com.google.api.generator.gapic.model.RegionTag; import com.google.auto.value.AutoValue; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; @@ -26,6 +27,9 @@ public abstract class ClassDefinition implements AstNode { // Optional. public abstract ImmutableList fileHeader(); + // Required for samples classes. + @Nullable + public abstract RegionTag regionTag(); // Required. public abstract ScopeNode scope(); // Required. @@ -92,6 +96,8 @@ public Builder setFileHeader(CommentStatement... headerComments) { public abstract Builder setFileHeader(List fileHeader); + public abstract Builder setRegionTag(RegionTag regionTag); + public Builder setHeaderCommentStatements(CommentStatement... comments) { return setHeaderCommentStatements(Arrays.asList(comments)); } diff --git a/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java b/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java index b1d750157e..d1ef68f34c 100644 --- a/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java +++ b/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java @@ -63,6 +63,7 @@ import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.engine.ast.WhileStatement; +import com.google.api.generator.gapic.model.RegionTag; import java.util.Arrays; import java.util.Iterator; import java.util.List; @@ -910,6 +911,15 @@ public void visit(ClassDefinition classDefinition) { newline(); } + String regionTagReplace = "REPLACE_REGION_TAG"; + if (classDefinition.regionTag() != null) { + statements( + Arrays.asList( + classDefinition + .regionTag() + .generateTag(RegionTag.RegionTagRegion.START, regionTagReplace))); + } + // This must go first, so that we can check for type collisions. classDefinition.accept(importWriterVisitor); if (!classDefinition.isNested()) { @@ -974,10 +984,27 @@ public void visit(ClassDefinition classDefinition) { classes(classDefinition.nestedClasses()); rightBrace(); + if (classDefinition.regionTag() != null) { + statements( + Arrays.asList( + classDefinition + .regionTag() + .generateTag(RegionTag.RegionTagRegion.END, regionTagReplace))); + } // We should have valid Java by now, so format it. if (!classDefinition.isNested()) { - buffer.replace(0, buffer.length(), JavaFormatter.format(buffer.toString())); + String formattedClazz = JavaFormatter.format(buffer.toString()); + + // fixing region tag after formatting + // formatter splits long region tags on multiple lines and moves the end tag up - doesn't meet + // tag requirements + if (classDefinition.regionTag() != null) { + formattedClazz = + formattedClazz.replaceAll(regionTagReplace, classDefinition.regionTag().generate()); + formattedClazz = formattedClazz.replaceAll("} // \\[END", "}\n// \\[END"); + } + buffer.replace(0, buffer.length(), formattedClazz); } } diff --git a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java index aec3965e7e..e7971d8fc0 100644 --- a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java +++ b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java @@ -14,8 +14,11 @@ package com.google.api.generator.gapic.model; +import com.google.api.generator.engine.ast.CommentStatement; +import com.google.api.generator.engine.ast.LineComment; import com.google.api.generator.gapic.utils.JavaStyle; import com.google.auto.value.AutoValue; +import com.google.common.base.Preconditions; @AutoValue public abstract class RegionTag { @@ -91,4 +94,32 @@ private final String sanitizeVersion(String version) { return JavaStyle.toLowerCamelCase(version.replaceAll("[^a-zA-Z0-9.]", "")); } } + + public enum RegionTagRegion { + START, + END + } + + public String generate() { + Preconditions.checkState(!apiShortName().isEmpty(), "apiShortName can't be empty"); + Preconditions.checkState(!serviceName().isEmpty(), "serviceName can't be empty"); + Preconditions.checkState(!rpcName().isEmpty(), "rpcName can't be empty"); + + String rt = apiShortName() + "_"; + if (!apiVersion().isEmpty()) { + rt = rt + apiVersion() + "_"; + } + rt = rt + "generated_" + serviceName() + "_" + rpcName(); + if (!overloadDisambiguation().isEmpty()) { + rt = rt + "_" + overloadDisambiguation(); + } + + return rt.toLowerCase(); + } + + public static CommentStatement generateTag( + RegionTagRegion regionTagRegion, String regionTagContent) { + return CommentStatement.withComment( + LineComment.withComment("[" + regionTagRegion.name() + " " + regionTagContent + "]")); + } } diff --git a/src/main/java/com/google/api/generator/gapic/model/Sample.java b/src/main/java/com/google/api/generator/gapic/model/Sample.java index 978d8a0b67..53666ad0fc 100644 --- a/src/main/java/com/google/api/generator/gapic/model/Sample.java +++ b/src/main/java/com/google/api/generator/gapic/model/Sample.java @@ -15,6 +15,7 @@ package com.google.api.generator.gapic.model; import com.google.api.generator.engine.ast.AssignmentExpr; +import com.google.api.generator.engine.ast.CommentStatement; import com.google.api.generator.engine.ast.Statement; import com.google.api.generator.gapic.utils.JavaStyle; import com.google.auto.value.AutoValue; @@ -27,7 +28,7 @@ public abstract class Sample { public abstract List variableAssignments(); - public abstract List fileHeader(); + public abstract List fileHeader(); public abstract RegionTag regionTag(); @@ -42,7 +43,7 @@ public static Builder builder() { abstract Builder toBuilder(); - public final Sample withHeader(List header) { + public final Sample withHeader(List header) { return toBuilder().setFileHeader(header).build(); } @@ -56,7 +57,7 @@ public abstract static class Builder { public abstract Builder setVariableAssignments(List variableAssignments); - public abstract Builder setFileHeader(List header); + public abstract Builder setFileHeader(List header); public abstract Builder setRegionTag(RegionTag regionTag); From 71b98ef15a155e52f7f46b3743c63284576a5205 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 4 Mar 2022 16:52:01 -0800 Subject: [PATCH 12/29] refactor: testing --- .../gapic/composer/ComposerTest.java | 31 ++- .../goldens/AddApacheLicenseSample.golden | 31 +++ .../samplecode/SampleCodeWriterTest.java | 99 +++++++- .../samplecode/SampleComposerTest.java | 117 +++------- .../ServiceClientSampleCodeComposerTest.java | 216 +++++++----------- .../SettingsSampleCodeComposerTest.java | 8 +- .../generator/gapic/model/RegionTagTest.java | 69 +++++- .../api/generator/gapic/model/SampleTest.java | 2 +- .../api/generator/test/framework/Assert.java | 7 +- 9 files changed, 326 insertions(+), 254 deletions(-) create mode 100644 src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden diff --git a/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java index d4ceeabce2..9d29b95792 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java @@ -16,13 +16,12 @@ import com.google.api.generator.engine.ast.ClassDefinition; import com.google.api.generator.engine.ast.ScopeNode; -import com.google.api.generator.engine.writer.JavaWriterVisitor; import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicClass.Kind; +import com.google.api.generator.gapic.model.RegionTag; +import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.test.framework.Assert; import com.google.api.generator.test.framework.Utils; -import java.nio.file.Path; -import java.nio.file.Paths; import java.util.Arrays; import java.util.List; import org.junit.Test; @@ -36,13 +35,25 @@ public void gapicClass_addApacheLicense() { .setName("ComposerPostProcOnFooBar") .setScope(ScopeNode.PUBLIC) .build(); + List samples = + Arrays.asList( + Sample.builder() + .setRegionTag( + RegionTag.builder() + .setApiShortName("apiShortName") + .setServiceName("service") + .setRpcName("addApacheLicense") + .setOverloadDisambiguation("Sample") + .build()) + .build()); List gapicClassWithHeaderList = - Composer.addApacheLicense(Arrays.asList(GapicClass.create(Kind.TEST, classDef))); - JavaWriterVisitor visitor = new JavaWriterVisitor(); - gapicClassWithHeaderList.get(0).classDefinition().accept(visitor); - Utils.saveCodegenToFile(this.getClass(), "ComposerPostProcOnFooBar.golden", visitor.write()); - Path goldenFilePath = - Paths.get(Utils.getGoldenDir(this.getClass()), "ComposerPostProcOnFooBar.golden"); - Assert.assertCodeEquals(goldenFilePath, visitor.write()); + Composer.addApacheLicense(Arrays.asList(GapicClass.create(Kind.TEST, classDef, samples))); + + Assert.assertGoldenClass( + this.getClass(), gapicClassWithHeaderList.get(0), "ComposerPostProcOnFooBar.golden"); + Assert.assertGoldenSamples( + gapicClassWithHeaderList.get(0).samples(), + gapicClassWithHeaderList.get(0).classDefinition().packageString(), + Utils.getGoldenDir(this.getClass())); } } diff --git a/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden b/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden new file mode 100644 index 0000000000..3f728adaee --- /dev/null +++ b/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden @@ -0,0 +1,31 @@ +/* + * Copyright 2021 Google LLC + * + * 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 + * + * https://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.showcase.v1beta1.stub.samples; + +// [START goldensample_generated_service_addapachelicense_sample] +public class AddApacheLicenseSample { + + public static void main(String[] args) throws Exception { + addApacheLicenseSample(); + } + + public static void addApacheLicenseSample() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + } +} +// [END goldensample_generated_service_addapachelicense_sample] diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java index d9456c7dcf..96287b82bd 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java @@ -14,10 +14,10 @@ package com.google.api.generator.gapic.composer.samplecode; -import static junit.framework.TestCase.assertEquals; - import com.google.api.gax.rpc.ClientSettings; import com.google.api.generator.engine.ast.AssignmentExpr; +import com.google.api.generator.engine.ast.BlockComment; +import com.google.api.generator.engine.ast.CommentStatement; import com.google.api.generator.engine.ast.ConcreteReference; import com.google.api.generator.engine.ast.ExprStatement; import com.google.api.generator.engine.ast.MethodInvocationExpr; @@ -28,12 +28,23 @@ import com.google.api.generator.engine.ast.ValueExpr; import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; +import com.google.api.generator.gapic.model.RegionTag; +import com.google.api.generator.gapic.model.Sample; +import com.google.api.generator.testutils.LineFormatter; import java.util.Arrays; +import java.util.List; +import org.junit.Assert; +import org.junit.BeforeClass; import org.junit.Test; public class SampleCodeWriterTest { - @Test - public void writeSampleCode_statements() { + private static String packageName = "com.google.samples"; + private static List testingSampleStatements; + private static Sample testingSample; + private static RegionTag regionTag; + + @BeforeClass + public static void setUp() { TypeNode settingType = TypeNode.withReference(ConcreteReference.withClazz(ClientSettings.class)); Variable aVar = Variable.builder().setName("clientSettings").setType(settingType).build(); @@ -53,23 +64,95 @@ public void writeSampleCode_statements() { .setVariableExpr(aVarExpr.toBuilder().setIsDecl(true).build()) .setValueExpr(aValueExpr) .build(); - Statement sampleStatement = + TryCatchStatement sampleStatement = TryCatchStatement.builder() .setTryResourceExpr(createAssignmentExpr("aBool", "false", TypeNode.BOOLEAN)) .setTryBody( Arrays.asList(ExprStatement.withExpr(createAssignmentExpr("x", "3", TypeNode.INT)))) .setIsSampleCode(true) .build(); - String result = SampleCodeWriter.write(ExprStatement.withExpr(assignmentExpr), sampleStatement); + + testingSampleStatements = + Arrays.asList(ExprStatement.withExpr(assignmentExpr), sampleStatement); + regionTag = + RegionTag.builder() + .setApiShortName("testing") + .setApiVersion("v1") + .setServiceName("samples") + .setRpcName("write") + .build(); + testingSample = + Sample.builder() + .setFileHeader( + Arrays.asList( + CommentStatement.withComment(BlockComment.withComment("Apache License")))) + .setBody(testingSampleStatements) + .setRegionTag(regionTag) + .build(); + } + + @Test + public void writeSampleCodeStatements() { + String result = SampleCodeWriter.write(testingSampleStatements); String expected = "ClientSettings clientSettings = ClientSettings.newBuilder().build();\n" + "try (boolean aBool = false) {\n" + " int x = 3;\n" + "}"; - assertEquals(expected, result); + Assert.assertEquals(expected, result); + } + + @Test + public void writeInlineSample() { + String result = SampleCodeWriter.writeInlineSample(testingSampleStatements); + String expected = + LineFormatter.lines( + "// This snippet has been automatically generated for illustrative purposes only.\n", + "// It may require modifications to work in your environment.\n", + "ClientSettings clientSettings = ClientSettings.newBuilder().build();\n", + "try (boolean aBool = false) {\n", + " int x = 3;\n", + "}"); + Assert.assertEquals(expected, result); + } + + @Test + public void writeExecutableSample() { + Sample sample = + testingSample.withRegionTag(regionTag.withOverloadDisambiguation("ExecutableSample")); + String result = SampleCodeWriter.writeExecutableSample(sample, packageName); + String expected = + LineFormatter.lines( + "/*\n", + " * Apache License\n", + " */\n", + "\n", + "package com.google.samples;\n", + "\n", + "// [START testing_v1_generated_samples_write_executablesample]\n", + "import com.google.api.gax.rpc.ClientSettings;\n", + "\n", + "public class WriteExecutableSample {\n", + "\n", + " public static void main(String[] args) throws Exception {\n", + " writeExecutableSample();\n", + " }\n", + "\n", + " public static void writeExecutableSample() throws Exception {\n", + " // This snippet has been automatically generated for illustrative purposes only.\n", + " // It may require modifications to work in your environment.\n", + " ClientSettings clientSettings = ClientSettings.newBuilder().build();\n", + " try (boolean aBool = false) {\n", + " int x = 3;\n", + " }\n", + " }\n", + "}\n", + "// [END testing_v1_generated_samples_write_executablesample]\n"); + Assert.assertEquals(expected, result); } - private AssignmentExpr createAssignmentExpr(String varName, String varValue, TypeNode type) { + private static AssignmentExpr createAssignmentExpr( + String varName, String varValue, TypeNode type) { Variable variable = Variable.builder().setName(varName).setType(type).build(); VariableExpr variableExpr = VariableExpr.builder().setVariable(variable).setIsDecl(true).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java index 603382b950..5c51a7c00f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java @@ -13,12 +13,8 @@ // limitations under the License. package com.google.api.generator.gapic.composer.samplecode; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThrows; - import com.google.api.generator.engine.ast.AssignmentExpr; -import com.google.api.generator.engine.ast.BlockComment; -import com.google.api.generator.engine.ast.CommentStatement; +import com.google.api.generator.engine.ast.ClassDefinition; import com.google.api.generator.engine.ast.Expr; import com.google.api.generator.engine.ast.ExprStatement; import com.google.api.generator.engine.ast.MethodInvocationExpr; @@ -35,32 +31,22 @@ import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.testutils.LineFormatter; import com.google.common.collect.ImmutableList; +import org.junit.Test; + import java.util.Arrays; import java.util.List; -import org.junit.Test; + +import static org.junit.Assert.assertEquals; public class SampleComposerTest { private final String packageName = "com.google.example"; - private final List header = - Arrays.asList(CommentStatement.withComment(BlockComment.withComment("Apache License"))); private final RegionTag.Builder regionTag = - RegionTag.builder().setApiShortName("echo").setApiVersion("v1beta").setServiceName("echo"); - - @Test - public void createExecutableSampleNoSample() { - assertThrows( - NullPointerException.class, () -> SampleComposer.createExecutableSample(null, packageName)); - } - - @Test - public void createInlineSampleNoSample() { - assertThrows(NullPointerException.class, () -> SampleComposer.createInlineSample(null)); - } + RegionTag.builder().setApiShortName("apiName").setServiceName("echo"); @Test public void createInlineSample() { List sampleBody = Arrays.asList(ExprStatement.withExpr(systemOutPrint("testing"))); - String sampleResult = SampleComposer.createInlineSample(sampleBody); + String sampleResult = writeSample(SampleComposer.composeInlineSample(sampleBody)); String expected = LineFormatter.lines( "// This snippet has been automatically generated for illustrative purposes only.\n", @@ -70,52 +56,10 @@ public void createInlineSample() { assertEquals(expected, sampleResult); } - @Test - public void createExecutableSampleMissingApiName() { - Sample noApiShortNameSample = - Sample.builder() - .setRegionTag( - regionTag - .setApiShortName("") - .setRpcName("createExecutableSample") - .setOverloadDisambiguation("MissingApiShortName") - .build()) - .build(); - - assertThrows( - IllegalStateException.class, - () -> SampleComposer.createExecutableSample(noApiShortNameSample, packageName)); - } - - @Test - public void createExecutableSampleNoHeader() { - Sample sample = - Sample.builder() - .setRegionTag( - regionTag - .setRpcName("createExecutableSample") - .setOverloadDisambiguation("NoHeader") - .build()) - .build(); - assertThrows( - IllegalStateException.class, - () -> SampleComposer.createExecutableSample(sample, packageName)); - } - - @Test - public void includeRegionTagMissingApiVersionMissingOverload() { - String sampleResult = - SampleComposer.includeRegionTags( - "", regionTag.setApiVersion("").setRpcName("rpcName").build()); - String expected = "// [START echo_generated_echo_rpcname]// [END echo_generated_echo_rpcname]"; - assertEquals(expected, sampleResult); - } - @Test public void createExecutableSampleEmptyStatementSample() { Sample sample = Sample.builder() - .setFileHeader(header) .setRegionTag( regionTag .setRpcName("createExecutableSample") @@ -123,15 +67,12 @@ public void createExecutableSampleEmptyStatementSample() { .build()) .build(); - String sampleResult = SampleComposer.createExecutableSample(sample, packageName); + String sampleResult = writeSample(SampleComposer.composeExecutableSample(sample, packageName)); String expected = LineFormatter.lines( - "/*\n", - " * Apache License\n", - " */\n", "package com.google.example;\n", "\n", - "// [START echo_v1beta_generated_echo_createexecutablesample_emptystatementsample]\n", + "// [START apiname_generated_echo_createexecutablesample_emptystatementsample]\n", "public class CreateExecutableSampleEmptyStatementSample {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -143,7 +84,7 @@ public void createExecutableSampleEmptyStatementSample() { " // It may require modifications to work in your environment.\n", " }\n", "}\n", - "// [END echo_v1beta_generated_echo_createexecutablesample_emptystatementsample]"); + "// [END apiname_generated_echo_createexecutablesample_emptystatementsample]\n"); assertEquals(expected, sampleResult); } @@ -155,7 +96,6 @@ public void createExecutableSampleMethodArgsNoVar() { Sample sample = Sample.builder() .setBody(ImmutableList.of(sampleBody)) - .setFileHeader(header) .setRegionTag( regionTag .setRpcName("createExecutableSample") @@ -163,15 +103,12 @@ public void createExecutableSampleMethodArgsNoVar() { .build()) .build(); - String sampleResult = SampleComposer.createExecutableSample(sample, packageName); + String sampleResult = writeSample(SampleComposer.composeExecutableSample(sample, packageName)); String expected = LineFormatter.lines( - "/*\n", - " * Apache License\n", - " */\n", "package com.google.example;\n", "\n", - "// [START echo_v1beta_generated_echo_createexecutablesample_methodargsnovar]\n", + "// [START apiname_generated_echo_createexecutablesample_methodargsnovar]\n", "public class CreateExecutableSampleMethodArgsNoVar {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -184,7 +121,7 @@ public void createExecutableSampleMethodArgsNoVar() { " System.out.println(\"Testing CreateExecutableSampleMethodArgsNoVar\");\n", " }\n", "}\n", - "// [END echo_v1beta_generated_echo_createexecutablesample_methodargsnovar]"); + "// [END apiname_generated_echo_createexecutablesample_methodargsnovar]\n"); assertEquals(expected, sampleResult); } @@ -208,19 +145,15 @@ public void createExecutableSampleMethod() { Sample.builder() .setBody(ImmutableList.of(sampleBody)) .setVariableAssignments(ImmutableList.of(varAssignment)) - .setFileHeader(header) .setRegionTag(regionTag.setRpcName("createExecutableSample").build()) .build(); - String sampleResult = SampleComposer.createExecutableSample(sample, packageName); + String sampleResult = writeSample(SampleComposer.composeExecutableSample(sample, packageName)); String expected = LineFormatter.lines( - "/*\n", - " * Apache License\n", - " */\n", "package com.google.example;\n", "\n", - "// [START echo_v1beta_generated_echo_createexecutablesample]\n", + "// [START apiname_generated_echo_createexecutablesample]\n", "public class CreateExecutableSample {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -234,7 +167,7 @@ public void createExecutableSampleMethod() { " System.out.println(content);\n", " }\n", "}\n", - "// [END echo_v1beta_generated_echo_createexecutablesample]"); + "// [END apiname_generated_echo_createexecutablesample]\n"); assertEquals(expected, sampleResult); } @@ -291,7 +224,6 @@ public void createExecutableSampleMethodMultipleStatements() { .setBody(ImmutableList.of(strBodyStatement, intBodyStatement, objBodyStatement)) .setVariableAssignments( ImmutableList.of(strVarAssignment, intVarAssignment, objVarAssignment)) - .setFileHeader(header) .setRegionTag( regionTag .setRpcName("createExecutableSample") @@ -299,15 +231,12 @@ public void createExecutableSampleMethodMultipleStatements() { .build()) .build(); - String sampleResult = SampleComposer.createExecutableSample(sample, packageName); + String sampleResult = writeSample(SampleComposer.composeExecutableSample(sample, packageName)); String expected = LineFormatter.lines( - "/*\n", - " * Apache License\n", - " */\n", "package com.google.example;\n", "\n", - "// [START echo_v1beta_generated_echo_createexecutablesample_methodmultiplestatements]\n", + "// [START apiname_generated_echo_createexecutablesample_methodmultiplestatements]\n", "public class CreateExecutableSampleMethodMultipleStatements {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -326,7 +255,7 @@ public void createExecutableSampleMethodMultipleStatements() { " System.out.println(thing.response());\n", " }\n", "}\n", - "// [END echo_v1beta_generated_echo_createexecutablesample_methodmultiplestatements]"); + "// [END apiname_generated_echo_createexecutablesample_methodmultiplestatements]\n"); assertEquals(expected, sampleResult); } @@ -355,4 +284,12 @@ private static MethodInvocationExpr composeSystemOutPrint(Expr content) { .setArguments(content) .build(); } + + private static String writeSample(ClassDefinition sample) { + return SampleCodeWriter.write(sample); + } + + private static String writeSample(List sample) { + return SampleCodeWriter.write(sample); + } } diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java index 2eb42af01a..e3404844e5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java @@ -14,9 +14,6 @@ package com.google.api.generator.gapic.composer.samplecode; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThrows; - import com.google.api.generator.engine.ast.ConcreteReference; import com.google.api.generator.engine.ast.Reference; import com.google.api.generator.engine.ast.TypeNode; @@ -41,6 +38,7 @@ import java.util.Map; import java.util.Optional; import java.util.Set; +import org.junit.Assert; import org.junit.Test; public class ServiceClientSampleCodeComposerTest { @@ -69,15 +67,13 @@ public void composeClassHeaderMethodSampleCode_unaryRpc() { Sample sample = ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode( echoProtoService, clientType, resourceNames, messageTypes); - String results = writeInlineSample(sample); + String results = writeStatements(sample); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " EchoResponse response = echoClient.echo();\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test @@ -152,18 +148,16 @@ public void composeClassHeaderMethodSampleCode_firstMethodIsNotUnaryRpc() { .setPakkage(SHOWCASE_PACKAGE_NAME) .build()); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode( service, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " Duration ttl = Duration.newBuilder().build();\n", " WaitResponse response = echoClient.waitAsync(ttl).get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -208,13 +202,11 @@ public void composeClassHeaderMethodSampleCode_firstMethodHasNoSignatures() { .setPakkage(SHOWCASE_PACKAGE_NAME) .build()); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode( service, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " EchoRequest request =\n", " EchoRequest.newBuilder()\n", @@ -227,7 +219,7 @@ public void composeClassHeaderMethodSampleCode_firstMethodHasNoSignatures() { " .build();\n", " EchoResponse response = echoClient.echo(request);\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -272,23 +264,20 @@ public void composeClassHeaderMethodSampleCode_firstMethodIsStream() { .setPakkage(SHOWCASE_PACKAGE_NAME) .build()); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode( service, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " ExpandRequest request =\n", - " " - + " ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n", + " ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n", " ServerStream stream = echoClient.expandCallable().call(request);\n", " for (EchoResponse response : stream) {\n", " // Do something when a response is received.\n", " }\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -306,19 +295,17 @@ public void composeClassHeaderCredentialsSampleCode() { .setPakkage(SHOWCASE_PACKAGE_NAME) .build()); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeClassHeaderCredentialsSampleCode( clientType, settingsType)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "EchoSettings echoSettings =\n", " EchoSettings.newBuilder()\n", " .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))\n", " .build();\n", "EchoClient echoClient = EchoClient.create(echoSettings);"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test @@ -336,17 +323,15 @@ public void composeClassHeaderEndpointSampleCode() { .setPakkage(SHOWCASE_PACKAGE_NAME) .build()); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeClassHeaderEndpointSampleCode( clientType, settingsType)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "EchoSettings echoSettings =" + " EchoSettings.newBuilder().setEndpoint(myEndpoint).build();\n", "EchoClient echoClient = EchoClient.create(echoSettings);"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } // =======================================Unary RPC Method Sample Code=======================// @@ -390,7 +375,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpc() { "try (EchoClient echoClient = EchoClient.create()) {\n", " EchoResponse response = echoClient.echo();\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMethodArgument() { @@ -449,7 +434,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMe + " \"[FOOBAR]\");\n", " EchoResponse response = echoClient.echo(parent);\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void @@ -513,7 +498,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMe " FoobarName name = FoobarName.ofProjectFoobarName(\"[PROJECT]\", \"[FOOBAR]\");\n", " EchoResponse response = echoClient.echo(name);\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void @@ -569,7 +554,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMe + " \"[FOOBAR]\").toString();\n", " EchoResponse response = echoClient.echo(name);\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void @@ -626,7 +611,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMe + " \"[FOOBAR]\").toString();\n", " EchoResponse response = echoClient.echo(parent);\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMethodArgument() { @@ -684,7 +669,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMetho " Status error = Status.newBuilder().build();\n", " EchoResponse response = echoClient.echo(error);\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void @@ -759,7 +744,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMetho " String otherName = \"otherName-1946065477\";\n", " EchoResponse response = echoClient.echo(displayName, otherName);\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void @@ -814,7 +799,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMetho " String content = \"content951530617\";\n", " EchoResponse response = echoClient.echo(content);\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleMethodArguments() { @@ -873,7 +858,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleMethod " Severity severity = Severity.forNumber(0);\n", " EchoResponse response = echoClient.echo(content, severity);\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithNoMethodArguments() { @@ -914,7 +899,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithNoMethodArgume "try (EchoClient echoClient = EchoClient.create()) {\n", " EchoResponse response = echoClient.echo();\n", "}"); - assertEquals(expected, results); + Assert.assertEquals(expected, results); } @Test public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMethodReturnVoid() { @@ -960,7 +945,7 @@ public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMethodReturnVo " String name = \"name3373707\";\n", " echoClient.delete(name);\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } */ @@ -1045,13 +1030,11 @@ public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithMultipleMethodArgu messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode( method, clientType, arguments, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " List resourceName = new ArrayList<>();\n", " String filter = \"filter-1274492040\";\n", @@ -1060,7 +1043,7 @@ public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithMultipleMethodArgu " // doThingsWith(element);\n", " }\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1121,19 +1104,17 @@ public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithNoMethodArguments( messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode( method, clientType, arguments, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " for (Content element : echoClient.listContent().iterateAll()) {\n", " // doThingsWith(element);\n", " }\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1168,7 +1149,7 @@ public void invalidComposeRpcMethodHeaderSampleCode_noMatchedRepeatedResponseTyp .setOutputType(outputType) .setPageSizeFieldName(PAGINATED_FIELD_NAME) .build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode( @@ -1229,7 +1210,7 @@ public void invalidComposeRpcMethodHeaderSampleCode_noRepeatedResponseTypeInPage .setFields(Arrays.asList(responseField, nextPageToken)) .build(); messageTypes.put("PagedResponse", noRepeatedFieldMessage); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode( @@ -1284,17 +1265,15 @@ public void validComposeRpcMethodHeaderSampleCode_lroUnaryRpcWithNoMethodArgumen .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode( method, clientType, Collections.emptyList(), resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " WaitResponse response = echoClient.waitAsync().get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1360,18 +1339,16 @@ public void validComposeRpcMethodHeaderSampleCode_lroRpcWithReturnResponseType() .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode( method, clientType, arguments, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " Duration ttl = Duration.newBuilder().build();\n", " WaitResponse response = echoClient.waitAsync(ttl).get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1434,18 +1411,16 @@ public void validComposeRpcMethodHeaderSampleCode_lroRpcWithReturnVoid() { .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode( method, clientType, arguments, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " Duration ttl = Duration.newBuilder().build();\n", " echoClient.waitAsync(ttl).get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } // ================================Unary RPC Default Method Sample Code ====================// @@ -1481,13 +1456,11 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_isPagedMethod() { .setPageSizeFieldName(PAGINATED_FIELD_NAME) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " PagedExpandRequest request =\n", " PagedExpandRequest.newBuilder()\n", @@ -1499,7 +1472,7 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_isPagedMethod() { " // doThingsWith(element);\n", " }\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1533,7 +1506,7 @@ public void invalidComposeRpcDefaultMethodHeaderSampleCode_isPagedMethod() { .setMethodSignatures(Collections.emptyList()) .setPageSizeFieldName(PAGINATED_FIELD_NAME) .build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode( @@ -1583,18 +1556,16 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_hasLroMethodWithReturnR .setLro(lro) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " WaitRequest request = WaitRequest.newBuilder().build();\n", " echoClient.waitAsync(request).get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1643,18 +1614,16 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_hasLroMethodWithReturnV .setLro(lro) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " WaitRequest request = WaitRequest.newBuilder().build();\n", " WaitResponse response = echoClient.waitAsync(request).get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1685,13 +1654,11 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnVoid() { .setMethodSignatures(Collections.emptyList()) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " EchoRequest request =\n", " EchoRequest.newBuilder()\n", @@ -1704,7 +1671,7 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnVoid() { " .build();\n", " echoClient.echo(request);\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1738,13 +1705,11 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnResponse .setMethodSignatures(Collections.emptyList()) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " EchoRequest request =\n", " EchoRequest.newBuilder()\n", @@ -1757,7 +1722,7 @@ public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnResponse " .build();\n", " EchoResponse response = echoClient.echo(request);\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } // ================================LRO Callable Method Sample Code ====================// @@ -1806,13 +1771,11 @@ public void validComposeLroCallableMethodHeaderSampleCode_withReturnResponse() { .setLro(lro) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " WaitRequest request = WaitRequest.newBuilder().build();\n", " OperationFuture future =\n", @@ -1820,7 +1783,7 @@ public void validComposeLroCallableMethodHeaderSampleCode_withReturnResponse() { " // Do something.\n", " WaitResponse response = future.get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1865,13 +1828,11 @@ public void validComposeLroCallableMethodHeaderSampleCode_withReturnVoid() { .setLro(lro) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " WaitRequest request = WaitRequest.newBuilder().build();\n", " OperationFuture future =\n", @@ -1879,7 +1840,7 @@ public void validComposeLroCallableMethodHeaderSampleCode_withReturnVoid() { " // Do something.\n", " future.get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } // ================================Paged Callable Method Sample Code ====================// @@ -1914,13 +1875,11 @@ public void validComposePagedCallableMethodHeaderSampleCode() { .setPageSizeFieldName(PAGINATED_FIELD_NAME) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " PagedExpandRequest request =\n", " PagedExpandRequest.newBuilder()\n", @@ -1935,7 +1894,7 @@ public void validComposePagedCallableMethodHeaderSampleCode() { " // doThingsWith(element);\n", " }\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -1968,7 +1927,7 @@ public void invalidComposePagedCallableMethodHeaderSampleCode_inputTypeNotExistI .setOutputType(outputType) .setPageSizeFieldName(PAGINATED_FIELD_NAME) .build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode( @@ -2005,7 +1964,7 @@ public void invalidComposePagedCallableMethodHeaderSampleCode_noExistMethodRespo .setOutputType(outputType) .setPageSizeFieldName(PAGINATED_FIELD_NAME) .build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode( @@ -2056,7 +2015,7 @@ public void invalidComposePagedCallableMethodHeaderSampleCode_noRepeatedResponse .setFields(Arrays.asList(responseField)) .build(); messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode( @@ -2095,23 +2054,20 @@ public void validComposeStreamCallableMethodHeaderSampleCode_serverStream() { .setStream(Stream.SERVER) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " ExpandRequest request =\n", - " " - + " ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n", + " ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n", " ServerStream stream = echoClient.expandCallable().call(request);\n", " for (EchoResponse response : stream) {\n", " // Do something when a response is received.\n", " }\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -2144,7 +2100,7 @@ public void invalidComposeStreamCallableMethodHeaderSampleCode_serverStreamNotEx .setOutputType(outputType) .setStream(Stream.SERVER) .build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode( @@ -2182,13 +2138,11 @@ public void validComposeStreamCallableMethodHeaderSampleCode_bidiStream() { .setStream(Stream.BIDI) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " BidiStream bidiStream =" + " echoClient.chatCallable().call();\n", @@ -2206,7 +2160,7 @@ public void validComposeStreamCallableMethodHeaderSampleCode_bidiStream() { " // Do something when a response is received.\n", " }\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -2239,7 +2193,7 @@ public void invalidComposeStreamCallableMethodHeaderSampleCode_bidiStreamNotExis .setOutputType(outputType) .setStream(Stream.BIDI) .build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode( @@ -2277,13 +2231,11 @@ public void validComposeStreamCallableMethodHeaderSampleCode_clientStream() { .setStream(Stream.CLIENT) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " ApiStreamObserver responseObserver =\n", " new ApiStreamObserver() {\n", @@ -2315,7 +2267,7 @@ public void validComposeStreamCallableMethodHeaderSampleCode_clientStream() { " .build();\n", " requestObserver.onNext(request);\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -2348,7 +2300,7 @@ public void invalidComposeStreamCallableMethodHeaderSampleCode_clientStreamNotEx .setOutputType(outputType) .setStream(Stream.CLIENT) .build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode( @@ -2382,13 +2334,11 @@ public void validComposeRegularCallableMethodHeaderSampleCode_unaryRpc() { Method method = Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " EchoRequest request =\n", " EchoRequest.newBuilder()\n", @@ -2403,7 +2353,7 @@ public void validComposeRegularCallableMethodHeaderSampleCode_unaryRpc() { " // Do something.\n", " EchoResponse response = future.get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -2451,20 +2401,18 @@ public void validComposeRegularCallableMethodHeaderSampleCode_lroRpc() { .setLro(lro) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " WaitRequest request = WaitRequest.newBuilder().build();\n", " ApiFuture future = echoClient.waitCallable().futureCall(request);\n", " // Do something.\n", " Operation response = future.get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -2509,20 +2457,18 @@ public void validComposeRegularCallableMethodHeaderSampleCode_lroRpcWithReturnVo .setLro(lro) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " WaitRequest request = WaitRequest.newBuilder().build();\n", " ApiFuture future = echoClient.waitCallable().futureCall(request);\n", " // Do something.\n", " future.get();\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -2557,13 +2503,11 @@ public void validComposeRegularCallableMethodHeaderSampleCode_pageRpc() { .setPageSizeFieldName(PAGINATED_FIELD_NAME) .build(); String results = - writeInlineSample( + writeStatements( ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", "try (EchoClient echoClient = EchoClient.create()) {\n", " PagedExpandRequest request =\n", " PagedExpandRequest.newBuilder()\n", @@ -2584,7 +2528,7 @@ public void validComposeRegularCallableMethodHeaderSampleCode_pageRpc() { " }\n", " }\n", "}"); - assertEquals(results, expected); + Assert.assertEquals(results, expected); } @Test @@ -2612,7 +2556,7 @@ public void invalidComposeRegularCallableMethodHeaderSampleCode_noExistMethodReq .build()); Method method = Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode( @@ -2649,7 +2593,7 @@ public void invalidComposeRegularCallableMethodHeaderSampleCode_noExistMethodRes .setOutputType(outputType) .setPageSizeFieldName(PAGINATED_FIELD_NAME) .build(); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode( @@ -2700,14 +2644,14 @@ public void invalidComposeRegularCallableMethodHeaderSampleCode_noRepeatedRespon .setFields(Arrays.asList(responseField)) .build(); messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage); - assertThrows( + Assert.assertThrows( NullPointerException.class, () -> ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode( method, clientType, resourceNames, messageTypes)); } - private String writeInlineSample(Sample sample) { - return SampleComposer.createInlineSample(sample.body()); + private String writeStatements(Sample sample) { + return SampleCodeWriter.write(sample.body()); } } diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java index 0e8b24975b..01dfccb106 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java @@ -33,7 +33,7 @@ public void composeSettingsSampleCode_noMethods() { .setPakkage("com.google.showcase.v1beta1") .build()); Optional results = - writeInlineSample( + writeSample( SettingsSampleCodeComposer.composeSampleCode( Optional.empty(), "EchoSettings", classType)); assertEquals(results, Optional.empty()); @@ -48,7 +48,7 @@ public void composeSettingsSampleCode_serviceSettingsClass() { .setPakkage("com.google.showcase.v1beta1") .build()); Optional results = - writeInlineSample( + writeSample( SettingsSampleCodeComposer.composeSampleCode( Optional.of("Echo"), "EchoSettings", classType)); String expected = @@ -76,7 +76,7 @@ public void composeSettingsSampleCode_serviceStubClass() { .setPakkage("com.google.showcase.v1beta1") .build()); Optional results = - writeInlineSample( + writeSample( SettingsSampleCodeComposer.composeSampleCode( Optional.of("Echo"), "EchoSettings", classType)); String expected = @@ -95,7 +95,7 @@ public void composeSettingsSampleCode_serviceStubClass() { assertEquals(results.get(), expected); } - private Optional writeInlineSample(Optional sample) { + private Optional writeSample(Optional sample) { if (sample.isPresent()) { return Optional.of(SampleCodeWriter.write(sample.get().body())); } diff --git a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java index 949339ecdd..1f7c8de56b 100644 --- a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java +++ b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java @@ -14,12 +14,15 @@ package com.google.api.generator.gapic.model; +import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; +import com.google.api.generator.testutils.LineFormatter; +import java.util.Arrays; import org.junit.Assert; import org.junit.Test; public class RegionTagTest { private final String serviceName = "serviceName"; - private final String apiVersion = "1"; + private final String apiVersion = "v1"; private final String apiShortName = "shortName"; private final String rpcName = "rpcName"; private final String disambiguation = "disambiguation"; @@ -76,4 +79,68 @@ public void regionTagSanitizeAttributes() { Assert.assertEquals("serviceNameString", regionTag.serviceName()); Assert.assertEquals("rpcNameString10", regionTag.rpcName()); } + + @Test + public void generateRegionTagsMissingRequiredFields() { + RegionTag rtMissingShortName = + RegionTag.builder() + .setApiVersion(apiVersion) + .setServiceName(serviceName) + .setRpcName(rpcName) + .build(); + Assert.assertThrows(IllegalStateException.class, () -> rtMissingShortName.generate()); + } + + @Test + public void generateRegionTagsValidMissingFields() { + RegionTag regionTag = + RegionTag.builder() + .setApiShortName(apiShortName) + .setServiceName(serviceName) + .setRpcName(rpcName) + .build(); + + String result = regionTag.generate(); + String expected = "shortname_generated_servicename_rpcname"; + Assert.assertEquals(expected, result); + } + + @Test + public void generateRegionTagsAllFields() { + RegionTag regionTag = + RegionTag.builder() + .setApiShortName(apiShortName) + .setApiVersion(apiVersion) + .setServiceName(serviceName) + .setRpcName(rpcName) + .setOverloadDisambiguation(disambiguation) + .build(); + + String result = regionTag.generate(); + String expected = "shortname_v1_generated_servicename_rpcname_disambiguation"; + Assert.assertEquals(expected, result); + } + + @Test + public void generateRegionTagTag() { + RegionTag regionTag = + RegionTag.builder() + .setApiShortName(apiShortName) + .setApiVersion(apiVersion) + .setServiceName(serviceName) + .setRpcName(rpcName) + .setOverloadDisambiguation(disambiguation) + .build(); + + String result = + SampleCodeWriter.write( + Arrays.asList( + regionTag.generateTag(RegionTag.RegionTagRegion.START, regionTag.generate()), + regionTag.generateTag(RegionTag.RegionTagRegion.END, regionTag.generate()))); + String expected = + LineFormatter.lines( + "// [START shortname_v1_generated_servicename_rpcname_disambiguation]\n", + "// [END shortname_v1_generated_servicename_rpcname_disambiguation]"); + Assert.assertEquals(expected, result); + } } diff --git a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java index fcd5810935..aeef996606 100644 --- a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java +++ b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java @@ -29,7 +29,7 @@ public class SampleTest { RegionTag.builder().setServiceName("serviceName").setRpcName("rpcName").build(); private final List sampleBody = Arrays.asList(CommentStatement.withComment(LineComment.withComment("testing"))); - private final List header = + private final List header = Arrays.asList(CommentStatement.withComment(BlockComment.withComment("apache license"))); @Test diff --git a/src/test/java/com/google/api/generator/test/framework/Assert.java b/src/test/java/com/google/api/generator/test/framework/Assert.java index e032867c45..fe1fdb9d79 100644 --- a/src/test/java/com/google/api/generator/test/framework/Assert.java +++ b/src/test/java/com/google/api/generator/test/framework/Assert.java @@ -16,7 +16,7 @@ import com.google.api.generator.engine.writer.JavaWriterVisitor; import com.google.api.generator.gapic.composer.comment.CommentComposer; -import com.google.api.generator.gapic.composer.samplecode.SampleComposer; +import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.gapic.utils.JavaStyle; @@ -91,10 +91,9 @@ public static void assertGoldenSamples(List samples, String packkage, St sample = sample .withHeader(Arrays.asList(CommentComposer.APACHE_LICENSE_COMMENT)) - .withRegionTag( - sample.regionTag().withApiShortName("goldenSample").withApiVersion("v1")); + .withRegionTag(sample.regionTag().withApiShortName("goldenSample")); assertCodeEquals( - goldenFilePath, SampleComposer.createExecutableSample(sample, packkage + ".samples")); + goldenFilePath, SampleCodeWriter.writeExecutableSample(sample, packkage + ".samples")); } } } From ebbb4e0062ea56e62b24ac0eb12d445c0f8b9739 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 4 Mar 2022 16:55:16 -0800 Subject: [PATCH 13/29] refactor (tests): unit goldens --- .../samples/bookshopclient/CreateBookshopSettings1.golden | 5 +++-- .../samples/bookshopclient/CreateBookshopSettings2.golden | 5 +++-- .../GetBookCallableFutureCallGetBookRequest.golden | 5 +++-- .../samples/bookshopclient/GetBookGetBookRequest.golden | 5 +++-- .../goldens/samples/bookshopclient/GetBookIntListBook.golden | 5 +++-- .../samples/bookshopclient/GetBookStringListBook.golden | 5 +++-- .../CreateDeprecatedServiceSettings1.golden | 5 +++-- .../CreateDeprecatedServiceSettings2.golden | 5 +++-- .../FastFibonacciCallableFutureCallFibonacciRequest.golden | 5 +++-- .../FastFibonacciFibonacciRequest.golden | 5 +++-- .../SlowFibonacciCallableFutureCallFibonacciRequest.golden | 5 +++-- .../SlowFibonacciFibonacciRequest.golden | 5 +++-- .../grpc/goldens/samples/echoclient/BlockBlockRequest.golden | 5 +++-- .../echoclient/BlockCallableFutureCallBlockRequest.golden | 5 +++-- .../echoclient/ChatAgainCallableCallEchoRequest.golden | 5 +++-- .../samples/echoclient/ChatCallableCallEchoRequest.golden | 5 +++-- .../echoclient/CollectClientStreamingCallEchoRequest.golden | 5 +++-- .../CollideNameCallableFutureCallEchoRequest.golden | 5 +++-- .../goldens/samples/echoclient/CollideNameEchoRequest.golden | 5 +++-- .../goldens/samples/echoclient/CreateEchoSettings1.golden | 5 +++-- .../goldens/samples/echoclient/CreateEchoSettings2.golden | 5 +++-- .../composer/grpc/goldens/samples/echoclient/Echo.golden | 5 +++-- .../echoclient/EchoCallableFutureCallEchoRequest.golden | 5 +++-- .../grpc/goldens/samples/echoclient/EchoEchoRequest.golden | 5 +++-- .../grpc/goldens/samples/echoclient/EchoFoobarName.golden | 5 +++-- .../grpc/goldens/samples/echoclient/EchoResourceName.golden | 5 +++-- .../grpc/goldens/samples/echoclient/EchoStatus.golden | 5 +++-- .../grpc/goldens/samples/echoclient/EchoString1.golden | 5 +++-- .../grpc/goldens/samples/echoclient/EchoString2.golden | 5 +++-- .../grpc/goldens/samples/echoclient/EchoString3.golden | 5 +++-- .../goldens/samples/echoclient/EchoStringSeverity.golden | 5 +++-- .../echoclient/ExpandCallableCallExpandRequest.golden | 5 +++-- .../PagedExpandCallableCallPagedExpandRequest.golden | 5 +++-- ...gedExpandPagedCallableFutureCallPagedExpandRequest.golden | 5 +++-- .../PagedExpandPagedExpandRequestIterateAll.golden | 5 +++-- .../SimplePagedExpandCallableCallPagedExpandRequest.golden | 5 +++-- .../samples/echoclient/SimplePagedExpandIterateAll.golden | 5 +++-- ...gedExpandPagedCallableFutureCallPagedExpandRequest.golden | 5 +++-- .../SimplePagedExpandPagedExpandRequestIterateAll.golden | 5 +++-- .../goldens/samples/echoclient/WaitAsyncDurationGet.golden | 5 +++-- .../goldens/samples/echoclient/WaitAsyncTimestampGet.golden | 5 +++-- .../samples/echoclient/WaitAsyncWaitRequestGet.golden | 5 +++-- .../echoclient/WaitCallableFutureCallWaitRequest.golden | 5 +++-- .../WaitOperationCallableFutureCallWaitRequest.golden | 5 +++-- .../samples/identityclient/CreateIdentitySettings1.golden | 5 +++-- .../samples/identityclient/CreateIdentitySettings2.golden | 5 +++-- .../CreateUserCallableFutureCallCreateUserRequest.golden | 5 +++-- .../identityclient/CreateUserCreateUserRequest.golden | 5 +++-- .../identityclient/CreateUserStringStringString.golden | 5 +++-- ...CreateUserStringStringStringIntStringBooleanDouble.golden | 5 +++-- ...tringStringStringStringIntStringStringStringString.golden | 5 +++-- .../DeleteUserCallableFutureCallDeleteUserRequest.golden | 5 +++-- .../identityclient/DeleteUserDeleteUserRequest.golden | 5 +++-- .../goldens/samples/identityclient/DeleteUserString.golden | 5 +++-- .../goldens/samples/identityclient/DeleteUserUserName.golden | 5 +++-- .../GetUserCallableFutureCallGetUserRequest.golden | 5 +++-- .../samples/identityclient/GetUserGetUserRequest.golden | 5 +++-- .../grpc/goldens/samples/identityclient/GetUserString.golden | 5 +++-- .../goldens/samples/identityclient/GetUserUserName.golden | 5 +++-- .../ListUsersCallableCallListUsersRequest.golden | 5 +++-- .../ListUsersListUsersRequestIterateAll.golden | 5 +++-- .../ListUsersPagedCallableFutureCallListUsersRequest.golden | 5 +++-- .../UpdateUserCallableFutureCallUpdateUserRequest.golden | 5 +++-- .../identityclient/UpdateUserUpdateUserRequest.golden | 5 +++-- .../messagingclient/ConnectCallableCallConnectRequest.golden | 5 +++-- .../CreateBlurbCallableFutureCallCreateBlurbRequest.golden | 5 +++-- .../messagingclient/CreateBlurbCreateBlurbRequest.golden | 5 +++-- .../messagingclient/CreateBlurbProfileNameByteString.golden | 5 +++-- .../messagingclient/CreateBlurbProfileNameString.golden | 5 +++-- .../messagingclient/CreateBlurbRoomNameByteString.golden | 5 +++-- .../samples/messagingclient/CreateBlurbRoomNameString.golden | 5 +++-- .../messagingclient/CreateBlurbStringByteString.golden | 5 +++-- .../samples/messagingclient/CreateBlurbStringString.golden | 5 +++-- .../samples/messagingclient/CreateMessagingSettings1.golden | 5 +++-- .../samples/messagingclient/CreateMessagingSettings2.golden | 5 +++-- .../CreateRoomCallableFutureCallCreateRoomRequest.golden | 5 +++-- .../messagingclient/CreateRoomCreateRoomRequest.golden | 5 +++-- .../samples/messagingclient/CreateRoomStringString.golden | 5 +++-- .../samples/messagingclient/DeleteBlurbBlurbName.golden | 5 +++-- .../DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden | 5 +++-- .../messagingclient/DeleteBlurbDeleteBlurbRequest.golden | 5 +++-- .../goldens/samples/messagingclient/DeleteBlurbString.golden | 5 +++-- .../DeleteRoomCallableFutureCallDeleteRoomRequest.golden | 5 +++-- .../messagingclient/DeleteRoomDeleteRoomRequest.golden | 5 +++-- .../samples/messagingclient/DeleteRoomRoomName.golden | 5 +++-- .../goldens/samples/messagingclient/DeleteRoomString.golden | 5 +++-- .../goldens/samples/messagingclient/GetBlurbBlurbName.golden | 5 +++-- .../GetBlurbCallableFutureCallGetBlurbRequest.golden | 5 +++-- .../samples/messagingclient/GetBlurbGetBlurbRequest.golden | 5 +++-- .../goldens/samples/messagingclient/GetBlurbString.golden | 5 +++-- .../GetRoomCallableFutureCallGetRoomRequest.golden | 5 +++-- .../samples/messagingclient/GetRoomGetRoomRequest.golden | 5 +++-- .../goldens/samples/messagingclient/GetRoomRoomName.golden | 5 +++-- .../goldens/samples/messagingclient/GetRoomString.golden | 5 +++-- .../ListBlurbsCallableCallListBlurbsRequest.golden | 5 +++-- .../ListBlurbsListBlurbsRequestIterateAll.golden | 5 +++-- ...ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden | 5 +++-- .../messagingclient/ListBlurbsProfileNameIterateAll.golden | 5 +++-- .../messagingclient/ListBlurbsRoomNameIterateAll.golden | 5 +++-- .../messagingclient/ListBlurbsStringIterateAll.golden | 5 +++-- .../ListRoomsCallableCallListRoomsRequest.golden | 5 +++-- .../ListRoomsListRoomsRequestIterateAll.golden | 5 +++-- .../ListRoomsPagedCallableFutureCallListRoomsRequest.golden | 5 +++-- .../SearchBlurbsAsyncSearchBlurbsRequestGet.golden | 5 +++-- .../messagingclient/SearchBlurbsAsyncStringGet.golden | 5 +++-- .../SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden | 5 +++-- ...urbsOperationCallableFutureCallSearchBlurbsRequest.golden | 5 +++-- .../SendBlurbsClientStreamingCallCreateBlurbRequest.golden | 5 +++-- .../StreamBlurbsCallableCallStreamBlurbsRequest.golden | 5 +++-- .../UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden | 5 +++-- .../messagingclient/UpdateBlurbUpdateBlurbRequest.golden | 5 +++-- .../UpdateRoomCallableFutureCallUpdateRoomRequest.golden | 5 +++-- .../messagingclient/UpdateRoomUpdateRoomRequest.golden | 5 +++-- ...TopicSettingsSetRetrySettingsPublisherStubSettings.golden | 5 +++-- ...ttingsSetRetrySettingsLoggingServiceV2StubSettings.golden | 5 +++-- .../EchoSettingsSetRetrySettingsEchoSettings.golden | 5 +++-- .../EchoSettingsSetRetrySettingsEchoStubSettings.golden | 5 +++-- ...iSettingsSetRetrySettingsDeprecatedServiceSettings.golden | 5 +++-- ...tingsSetRetrySettingsDeprecatedServiceStubSettings.golden | 5 +++-- 119 files changed, 357 insertions(+), 238 deletions(-) diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden index a52cfa584a..01dbc4284a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.bookshop.v1beta1.samples; -// [START goldensample_v1_generated_bookshopclient_create_bookshopsettings1] +// [START goldensample_generated_bookshopclient_create_bookshopsettings1] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.bookshop.v1beta1.BookshopClient; import com.google.bookshop.v1beta1.BookshopSettings; @@ -37,4 +38,4 @@ public class CreateBookshopSettings1 { BookshopClient bookshopClient = BookshopClient.create(bookshopSettings); } } -// [END goldensample_v1_generated_bookshopclient_create_bookshopsettings1] +// [END goldensample_generated_bookshopclient_create_bookshopsettings1] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden index 9c67b5762f..9959c72e9c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.bookshop.v1beta1.samples; -// [START goldensample_v1_generated_bookshopclient_create_bookshopsettings2] +// [START goldensample_generated_bookshopclient_create_bookshopsettings2] import com.google.bookshop.v1beta1.BookshopClient; import com.google.bookshop.v1beta1.BookshopSettings; import com.google.bookshop.v1beta1.myEndpoint; @@ -34,4 +35,4 @@ public class CreateBookshopSettings2 { BookshopClient bookshopClient = BookshopClient.create(bookshopSettings); } } -// [END goldensample_v1_generated_bookshopclient_create_bookshopsettings2] +// [END goldensample_generated_bookshopclient_create_bookshopsettings2] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden index 2c76fe67f4..5e95098c49 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.bookshop.v1beta1.samples; -// [START goldensample_v1_generated_bookshopclient_getbook_callablefuturecallgetbookrequest] +// [START goldensample_generated_bookshopclient_getbook_callablefuturecallgetbookrequest] import com.google.api.core.ApiFuture; import com.google.bookshop.v1beta1.Book; import com.google.bookshop.v1beta1.BookshopClient; @@ -44,4 +45,4 @@ public class GetBookCallableFutureCallGetBookRequest { } } } -// [END goldensample_v1_generated_bookshopclient_getbook_callablefuturecallgetbookrequest] +// [END goldensample_generated_bookshopclient_getbook_callablefuturecallgetbookrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden index a918f4c5f9..cbe6a6b51d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.bookshop.v1beta1.samples; -// [START goldensample_v1_generated_bookshopclient_getbook_getbookrequest] +// [START goldensample_generated_bookshopclient_getbook_getbookrequest] import com.google.bookshop.v1beta1.Book; import com.google.bookshop.v1beta1.BookshopClient; import com.google.bookshop.v1beta1.GetBookRequest; @@ -41,4 +42,4 @@ public class GetBookGetBookRequest { } } } -// [END goldensample_v1_generated_bookshopclient_getbook_getbookrequest] +// [END goldensample_generated_bookshopclient_getbook_getbookrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden index 1debd2fd4d..c28c94468a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.bookshop.v1beta1.samples; -// [START goldensample_v1_generated_bookshopclient_getbook_intlistbook] +// [START goldensample_generated_bookshopclient_getbook_intlistbook] import com.google.bookshop.v1beta1.Book; import com.google.bookshop.v1beta1.BookshopClient; import java.util.ArrayList; @@ -37,4 +38,4 @@ public class GetBookIntListBook { } } } -// [END goldensample_v1_generated_bookshopclient_getbook_intlistbook] +// [END goldensample_generated_bookshopclient_getbook_intlistbook] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden index bef3f49c32..7126554d61 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.bookshop.v1beta1.samples; -// [START goldensample_v1_generated_bookshopclient_getbook_stringlistbook] +// [START goldensample_generated_bookshopclient_getbook_stringlistbook] import com.google.bookshop.v1beta1.Book; import com.google.bookshop.v1beta1.BookshopClient; import java.util.ArrayList; @@ -37,4 +38,4 @@ public class GetBookStringListBook { } } } -// [END goldensample_v1_generated_bookshopclient_getbook_stringlistbook] +// [END goldensample_generated_bookshopclient_getbook_stringlistbook] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden index 7406c200fd..2f87d82dc2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.testdata.v1.samples; -// [START goldensample_v1_generated_deprecatedserviceclient_create_deprecatedservicesettings1] +// [START goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings1] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.testdata.v1.DeprecatedServiceClient; import com.google.testdata.v1.DeprecatedServiceSettings; @@ -38,4 +39,4 @@ public class CreateDeprecatedServiceSettings1 { DeprecatedServiceClient.create(deprecatedServiceSettings); } } -// [END goldensample_v1_generated_deprecatedserviceclient_create_deprecatedservicesettings1] +// [END goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings1] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden index 26b6956430..57ef10f253 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.testdata.v1.samples; -// [START goldensample_v1_generated_deprecatedserviceclient_create_deprecatedservicesettings2] +// [START goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings2] import com.google.testdata.v1.DeprecatedServiceClient; import com.google.testdata.v1.DeprecatedServiceSettings; import com.google.testdata.v1.myEndpoint; @@ -35,4 +36,4 @@ public class CreateDeprecatedServiceSettings2 { DeprecatedServiceClient.create(deprecatedServiceSettings); } } -// [END goldensample_v1_generated_deprecatedserviceclient_create_deprecatedservicesettings2] +// [END goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings2] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden index e7454b6f32..06e8b270b3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.testdata.v1.samples; -// [START goldensample_v1_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest] +// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.testdata.v1.DeprecatedServiceClient; @@ -38,4 +39,4 @@ public class FastFibonacciCallableFutureCallFibonacciRequest { } } } -// [END goldensample_v1_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest] +// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden index 289a2c295d..64996be25f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.testdata.v1.samples; -// [START goldensample_v1_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest] +// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest] import com.google.protobuf.Empty; import com.google.testdata.v1.DeprecatedServiceClient; import com.google.testdata.v1.FibonacciRequest; @@ -35,4 +36,4 @@ public class FastFibonacciFibonacciRequest { } } } -// [END goldensample_v1_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest] +// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden index 98d755ebba..70b6c6ad5f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.testdata.v1.samples; -// [START goldensample_v1_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest] +// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.testdata.v1.DeprecatedServiceClient; @@ -38,4 +39,4 @@ public class SlowFibonacciCallableFutureCallFibonacciRequest { } } } -// [END goldensample_v1_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest] +// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden index ac151ae952..0c20d40bc3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.testdata.v1.samples; -// [START goldensample_v1_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest] +// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest] import com.google.protobuf.Empty; import com.google.testdata.v1.DeprecatedServiceClient; import com.google.testdata.v1.FibonacciRequest; @@ -35,4 +36,4 @@ public class SlowFibonacciFibonacciRequest { } } } -// [END goldensample_v1_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest] +// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden index 4ed986afb5..ddeda24da9 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_block_blockrequest] +// [START goldensample_generated_echoclient_block_blockrequest] import com.google.showcase.v1beta1.BlockRequest; import com.google.showcase.v1beta1.BlockResponse; import com.google.showcase.v1beta1.EchoClient; @@ -35,4 +36,4 @@ public class BlockBlockRequest { } } } -// [END goldensample_v1_generated_echoclient_block_blockrequest] +// [END goldensample_generated_echoclient_block_blockrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden index 80e702ad90..e2d4bb7277 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_block_callablefuturecallblockrequest] +// [START goldensample_generated_echoclient_block_callablefuturecallblockrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.BlockRequest; import com.google.showcase.v1beta1.BlockResponse; @@ -38,4 +39,4 @@ public class BlockCallableFutureCallBlockRequest { } } } -// [END goldensample_v1_generated_echoclient_block_callablefuturecallblockrequest] +// [END goldensample_generated_echoclient_block_callablefuturecallblockrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden index 646dbd8791..2e836313b6 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_chatagain_callablecallechorequest] +// [START goldensample_generated_echoclient_chatagain_callablecallechorequest] import com.google.api.gax.rpc.BidiStream; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -49,4 +50,4 @@ public class ChatAgainCallableCallEchoRequest { } } } -// [END goldensample_v1_generated_echoclient_chatagain_callablecallechorequest] +// [END goldensample_generated_echoclient_chatagain_callablecallechorequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden index b64ddadf53..a621e4f4c1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_chat_callablecallechorequest] +// [START goldensample_generated_echoclient_chat_callablecallechorequest] import com.google.api.gax.rpc.BidiStream; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -49,4 +50,4 @@ public class ChatCallableCallEchoRequest { } } } -// [END goldensample_v1_generated_echoclient_chat_callablecallechorequest] +// [END goldensample_generated_echoclient_chat_callablecallechorequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden index 09abfdc73f..f398ca5667 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_collect_clientstreamingcallechorequest] +// [START goldensample_generated_echoclient_collect_clientstreamingcallechorequest] import com.google.api.gax.rpc.ApiStreamObserver; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -64,4 +65,4 @@ public class CollectClientStreamingCallEchoRequest { } } } -// [END goldensample_v1_generated_echoclient_collect_clientstreamingcallechorequest] +// [END goldensample_generated_echoclient_collect_clientstreamingcallechorequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden index e8bcc810df..da365f449e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_collidename_callablefuturecallechorequest] +// [START goldensample_generated_echoclient_collidename_callablefuturecallechorequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -47,4 +48,4 @@ public class CollideNameCallableFutureCallEchoRequest { } } } -// [END goldensample_v1_generated_echoclient_collidename_callablefuturecallechorequest] +// [END goldensample_generated_echoclient_collidename_callablefuturecallechorequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden index a8740a3ba6..63d612b381 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_collidename_echorequest] +// [START goldensample_generated_echoclient_collidename_echorequest] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.Foobar; @@ -44,4 +45,4 @@ public class CollideNameEchoRequest { } } } -// [END goldensample_v1_generated_echoclient_collidename_echorequest] +// [END goldensample_generated_echoclient_collidename_echorequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden index 4b51803895..b70c117599 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_create_echosettings1] +// [START goldensample_generated_echoclient_create_echosettings1] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoSettings; @@ -37,4 +38,4 @@ public class CreateEchoSettings1 { EchoClient echoClient = EchoClient.create(echoSettings); } } -// [END goldensample_v1_generated_echoclient_create_echosettings1] +// [END goldensample_generated_echoclient_create_echosettings1] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden index 20da1410c7..3b9ea210fb 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_create_echosettings2] +// [START goldensample_generated_echoclient_create_echosettings2] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoSettings; import com.google.showcase.v1beta1.myEndpoint; @@ -33,4 +34,4 @@ public class CreateEchoSettings2 { EchoClient echoClient = EchoClient.create(echoSettings); } } -// [END goldensample_v1_generated_echoclient_create_echosettings2] +// [END goldensample_generated_echoclient_create_echosettings2] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden index 7b9bf3d847..1d23cfce80 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo] +// [START goldensample_generated_echoclient_echo] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -33,4 +34,4 @@ public class Echo { } } } -// [END goldensample_v1_generated_echoclient_echo] +// [END goldensample_generated_echoclient_echo] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden index 3c2cc1b9cf..1f7ae09e17 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_callablefuturecallechorequest] +// [START goldensample_generated_echoclient_echo_callablefuturecallechorequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -47,4 +48,4 @@ public class EchoCallableFutureCallEchoRequest { } } } -// [END goldensample_v1_generated_echoclient_echo_callablefuturecallechorequest] +// [END goldensample_generated_echoclient_echo_callablefuturecallechorequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden index 3e4f161c68..1c01f52ea8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_echorequest] +// [START goldensample_generated_echoclient_echo_echorequest] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; @@ -44,4 +45,4 @@ public class EchoEchoRequest { } } } -// [END goldensample_v1_generated_echoclient_echo_echorequest] +// [END goldensample_generated_echoclient_echo_echorequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden index e804f62455..9ead86bb10 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_foobarname] +// [START goldensample_generated_echoclient_echo_foobarname] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.FoobarName; @@ -35,4 +36,4 @@ public class EchoFoobarName { } } } -// [END goldensample_v1_generated_echoclient_echo_foobarname] +// [END goldensample_generated_echoclient_echo_foobarname] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden index 906604e754..6c32ad20f8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_resourcename] +// [START goldensample_generated_echoclient_echo_resourcename] import com.google.api.resourcenames.ResourceName; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -36,4 +37,4 @@ public class EchoResourceName { } } } -// [END goldensample_v1_generated_echoclient_echo_resourcename] +// [END goldensample_generated_echoclient_echo_resourcename] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden index d07ccc4213..af9eb0dfd5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_status] +// [START goldensample_generated_echoclient_echo_status] import com.google.rpc.Status; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -35,4 +36,4 @@ public class EchoStatus { } } } -// [END goldensample_v1_generated_echoclient_echo_status] +// [END goldensample_generated_echoclient_echo_status] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden index 4fa5d26f3a..f5330c427f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_string1] +// [START goldensample_generated_echoclient_echo_string1] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -34,4 +35,4 @@ public class EchoString1 { } } } -// [END goldensample_v1_generated_echoclient_echo_string1] +// [END goldensample_generated_echoclient_echo_string1] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden index 947c686fe6..a36a64dad0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_string2] +// [START goldensample_generated_echoclient_echo_string2] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.FoobarName; @@ -35,4 +36,4 @@ public class EchoString2 { } } } -// [END goldensample_v1_generated_echoclient_echo_string2] +// [END goldensample_generated_echoclient_echo_string2] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden index 725f32abab..32c968988a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_string3] +// [START goldensample_generated_echoclient_echo_string3] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.FoobarName; @@ -35,4 +36,4 @@ public class EchoString3 { } } } -// [END goldensample_v1_generated_echoclient_echo_string3] +// [END goldensample_generated_echoclient_echo_string3] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden index 63a34ec0c0..d719454ae6 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_echo_stringseverity] +// [START goldensample_generated_echoclient_echo_stringseverity] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.Severity; @@ -36,4 +37,4 @@ public class EchoStringSeverity { } } } -// [END goldensample_v1_generated_echoclient_echo_stringseverity] +// [END goldensample_generated_echoclient_echo_stringseverity] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden index ad728aaa26..d1270f7cbe 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_expand_callablecallexpandrequest] +// [START goldensample_generated_echoclient_expand_callablecallexpandrequest] import com.google.api.gax.rpc.ServerStream; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -40,4 +41,4 @@ public class ExpandCallableCallExpandRequest { } } } -// [END goldensample_v1_generated_echoclient_expand_callablecallexpandrequest] +// [END goldensample_generated_echoclient_expand_callablecallexpandrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden index 0703ddb832..5b97554ff6 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_pagedexpand_callablecallpagedexpandrequest] +// [START goldensample_generated_echoclient_pagedexpand_callablecallpagedexpandrequest] import com.google.common.base.Strings; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -53,4 +54,4 @@ public class PagedExpandCallableCallPagedExpandRequest { } } } -// [END goldensample_v1_generated_echoclient_pagedexpand_callablecallpagedexpandrequest] +// [END goldensample_generated_echoclient_pagedexpand_callablecallpagedexpandrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden index 5f3688c215..5004239ab5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest] +// [START goldensample_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -45,4 +46,4 @@ public class PagedExpandPagedCallableFutureCallPagedExpandRequest { } } } -// [END goldensample_v1_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest] +// [END goldensample_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden index a77ba467e2..ef3124a6c9 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_pagedexpand_pagedexpandrequestiterateall] +// [START goldensample_generated_echoclient_pagedexpand_pagedexpandrequestiterateall] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.PagedExpandRequest; @@ -42,4 +43,4 @@ public class PagedExpandPagedExpandRequestIterateAll { } } } -// [END goldensample_v1_generated_echoclient_pagedexpand_pagedexpandrequestiterateall] +// [END goldensample_generated_echoclient_pagedexpand_pagedexpandrequestiterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden index 9f2c0e3181..63b5118dc4 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest] +// [START goldensample_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest] import com.google.common.base.Strings; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -53,4 +54,4 @@ public class SimplePagedExpandCallableCallPagedExpandRequest { } } } -// [END goldensample_v1_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest] +// [END goldensample_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden index 708dafcbf6..302154f07e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_simplepagedexpand_iterateall] +// [START goldensample_generated_echoclient_simplepagedexpand_iterateall] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -35,4 +36,4 @@ public class SimplePagedExpandIterateAll { } } } -// [END goldensample_v1_generated_echoclient_simplepagedexpand_iterateall] +// [END goldensample_generated_echoclient_simplepagedexpand_iterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden index 77aafe55ec..9623f7d274 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest] +// [START goldensample_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -46,4 +47,4 @@ public class SimplePagedExpandPagedCallableFutureCallPagedExpandRequest { } } } -// [END goldensample_v1_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest] +// [END goldensample_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden index f57828a91c..866283489c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall] +// [START goldensample_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.PagedExpandRequest; @@ -42,4 +43,4 @@ public class SimplePagedExpandPagedExpandRequestIterateAll { } } } -// [END goldensample_v1_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall] +// [END goldensample_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden index de3780bde3..abaaedd92d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_wait_asyncdurationget] +// [START goldensample_generated_echoclient_wait_asyncdurationget] import com.google.protobuf.Duration; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.WaitResponse; @@ -35,4 +36,4 @@ public class WaitAsyncDurationGet { } } } -// [END goldensample_v1_generated_echoclient_wait_asyncdurationget] +// [END goldensample_generated_echoclient_wait_asyncdurationget] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden index 1f11c356f3..ef6164ba42 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_wait_asynctimestampget] +// [START goldensample_generated_echoclient_wait_asynctimestampget] import com.google.protobuf.Timestamp; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.WaitResponse; @@ -35,4 +36,4 @@ public class WaitAsyncTimestampGet { } } } -// [END goldensample_v1_generated_echoclient_wait_asynctimestampget] +// [END goldensample_generated_echoclient_wait_asynctimestampget] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden index 4a0bf1ffda..c3767affb3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_wait_asyncwaitrequestget] +// [START goldensample_generated_echoclient_wait_asyncwaitrequestget] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.WaitRequest; import com.google.showcase.v1beta1.WaitResponse; @@ -35,4 +36,4 @@ public class WaitAsyncWaitRequestGet { } } } -// [END goldensample_v1_generated_echoclient_wait_asyncwaitrequestget] +// [END goldensample_generated_echoclient_wait_asyncwaitrequestget] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden index fd662789d0..d72e60f048 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_wait_callablefuturecallwaitrequest] +// [START goldensample_generated_echoclient_wait_callablefuturecallwaitrequest] import com.google.api.core.ApiFuture; import com.google.longrunning.Operation; import com.google.showcase.v1beta1.EchoClient; @@ -38,4 +39,4 @@ public class WaitCallableFutureCallWaitRequest { } } } -// [END goldensample_v1_generated_echoclient_wait_callablefuturecallwaitrequest] +// [END goldensample_generated_echoclient_wait_callablefuturecallwaitrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden index df51a8d23f..32f8811cd0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echoclient_wait_operationcallablefuturecallwaitrequest] +// [START goldensample_generated_echoclient_wait_operationcallablefuturecallwaitrequest] import com.google.api.gax.longrunning.OperationFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.WaitMetadata; @@ -40,4 +41,4 @@ public class WaitOperationCallableFutureCallWaitRequest { } } } -// [END goldensample_v1_generated_echoclient_wait_operationcallablefuturecallwaitrequest] +// [END goldensample_generated_echoclient_wait_operationcallablefuturecallwaitrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden index fb30ace47d..fee178aae2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_create_identitysettings1] +// [START goldensample_generated_identityclient_create_identitysettings1] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.IdentitySettings; @@ -37,4 +38,4 @@ public class CreateIdentitySettings1 { IdentityClient identityClient = IdentityClient.create(identitySettings); } } -// [END goldensample_v1_generated_identityclient_create_identitysettings1] +// [END goldensample_generated_identityclient_create_identitysettings1] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden index 8fcb67be8f..a9a5b0d9fe 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_create_identitysettings2] +// [START goldensample_generated_identityclient_create_identitysettings2] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.IdentitySettings; import com.google.showcase.v1beta1.myEndpoint; @@ -34,4 +35,4 @@ public class CreateIdentitySettings2 { IdentityClient identityClient = IdentityClient.create(identitySettings); } } -// [END goldensample_v1_generated_identityclient_create_identitysettings2] +// [END goldensample_generated_identityclient_create_identitysettings2] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden index f5af4f98ed..925dd76243 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_createuser_callablefuturecallcreateuserrequest] +// [START goldensample_generated_identityclient_createuser_callablefuturecallcreateuserrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.CreateUserRequest; import com.google.showcase.v1beta1.IdentityClient; @@ -43,4 +44,4 @@ public class CreateUserCallableFutureCallCreateUserRequest { } } } -// [END goldensample_v1_generated_identityclient_createuser_callablefuturecallcreateuserrequest] +// [END goldensample_generated_identityclient_createuser_callablefuturecallcreateuserrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden index 6a930d55c2..784e0ffdae 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_createuser_createuserrequest] +// [START goldensample_generated_identityclient_createuser_createuserrequest] import com.google.showcase.v1beta1.CreateUserRequest; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; @@ -40,4 +41,4 @@ public class CreateUserCreateUserRequest { } } } -// [END goldensample_v1_generated_identityclient_createuser_createuserrequest] +// [END goldensample_generated_identityclient_createuser_createuserrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden index bc907fdea5..6568a3e977 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_createuser_stringstringstring] +// [START goldensample_generated_identityclient_createuser_stringstringstring] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -37,4 +38,4 @@ public class CreateUserStringStringString { } } } -// [END goldensample_v1_generated_identityclient_createuser_stringstringstring] +// [END goldensample_generated_identityclient_createuser_stringstringstring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden index 1223a23daa..4297ea4644 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_createuser_stringstringstringintstringbooleandouble] +// [START goldensample_generated_identityclient_createuser_stringstringstringintstringbooleandouble] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -43,4 +44,4 @@ public class CreateUserStringStringStringIntStringBooleanDouble { } } } -// [END goldensample_v1_generated_identityclient_createuser_stringstringstringintstringbooleandouble] +// [END goldensample_generated_identityclient_createuser_stringstringstringintstringbooleandouble] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden index 64e3e2eb9d..1b17958571 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring] +// [START goldensample_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -56,4 +57,4 @@ public class CreateUserStringStringStringStringStringIntStringStringStringString } } } -// [END goldensample_v1_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring] +// [END goldensample_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden index 6bf0534fe5..aa88481333 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest] +// [START goldensample_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.DeleteUserRequest; @@ -40,4 +41,4 @@ public class DeleteUserCallableFutureCallDeleteUserRequest { } } } -// [END goldensample_v1_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest] +// [END goldensample_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden index 1f10c49db1..7ce7e3e0a6 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_deleteuser_deleteuserrequest] +// [START goldensample_generated_identityclient_deleteuser_deleteuserrequest] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.DeleteUserRequest; import com.google.showcase.v1beta1.IdentityClient; @@ -37,4 +38,4 @@ public class DeleteUserDeleteUserRequest { } } } -// [END goldensample_v1_generated_identityclient_deleteuser_deleteuserrequest] +// [END goldensample_generated_identityclient_deleteuser_deleteuserrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden index 0c7baa8058..a9ecea8f75 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_deleteuser_string] +// [START goldensample_generated_identityclient_deleteuser_string] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.UserName; @@ -35,4 +36,4 @@ public class DeleteUserString { } } } -// [END goldensample_v1_generated_identityclient_deleteuser_string] +// [END goldensample_generated_identityclient_deleteuser_string] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden index 9fb5b16f14..bc17135e09 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_deleteuser_username] +// [START goldensample_generated_identityclient_deleteuser_username] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.UserName; @@ -35,4 +36,4 @@ public class DeleteUserUserName { } } } -// [END goldensample_v1_generated_identityclient_deleteuser_username] +// [END goldensample_generated_identityclient_deleteuser_username] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden index f5ddd0bb71..fb38321eab 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_getuser_callablefuturecallgetuserrequest] +// [START goldensample_generated_identityclient_getuser_callablefuturecallgetuserrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.GetUserRequest; import com.google.showcase.v1beta1.IdentityClient; @@ -40,4 +41,4 @@ public class GetUserCallableFutureCallGetUserRequest { } } } -// [END goldensample_v1_generated_identityclient_getuser_callablefuturecallgetuserrequest] +// [END goldensample_generated_identityclient_getuser_callablefuturecallgetuserrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden index 5bd19fda59..ca680e57fc 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_getuser_getuserrequest] +// [START goldensample_generated_identityclient_getuser_getuserrequest] import com.google.showcase.v1beta1.GetUserRequest; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; @@ -37,4 +38,4 @@ public class GetUserGetUserRequest { } } } -// [END goldensample_v1_generated_identityclient_getuser_getuserrequest] +// [END goldensample_generated_identityclient_getuser_getuserrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden index 675f7dc85a..b770a563e0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_getuser_string] +// [START goldensample_generated_identityclient_getuser_string] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -35,4 +36,4 @@ public class GetUserString { } } } -// [END goldensample_v1_generated_identityclient_getuser_string] +// [END goldensample_generated_identityclient_getuser_string] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden index b9b862d18a..cca87e672d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_getuser_username] +// [START goldensample_generated_identityclient_getuser_username] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -35,4 +36,4 @@ public class GetUserUserName { } } } -// [END goldensample_v1_generated_identityclient_getuser_username] +// [END goldensample_generated_identityclient_getuser_username] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden index 324dc54b96..3b847d7c91 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_listusers_callablecalllistusersrequest] +// [START goldensample_generated_identityclient_listusers_callablecalllistusersrequest] import com.google.common.base.Strings; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.ListUsersRequest; @@ -52,4 +53,4 @@ public class ListUsersCallableCallListUsersRequest { } } } -// [END goldensample_v1_generated_identityclient_listusers_callablecalllistusersrequest] +// [END goldensample_generated_identityclient_listusers_callablecalllistusersrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden index be59046023..c9c4865ea3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_listusers_listusersrequestiterateall] +// [START goldensample_generated_identityclient_listusers_listusersrequestiterateall] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.ListUsersRequest; import com.google.showcase.v1beta1.User; @@ -41,4 +42,4 @@ public class ListUsersListUsersRequestIterateAll { } } } -// [END goldensample_v1_generated_identityclient_listusers_listusersrequestiterateall] +// [END goldensample_generated_identityclient_listusers_listusersrequestiterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden index 6c4eadc438..2080557d06 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest] +// [START goldensample_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.ListUsersRequest; @@ -44,4 +45,4 @@ public class ListUsersPagedCallableFutureCallListUsersRequest { } } } -// [END goldensample_v1_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest] +// [END goldensample_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden index 91ca771d6d..44fb95ba20 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_updateuser_callablefuturecallupdateuserrequest] +// [START goldensample_generated_identityclient_updateuser_callablefuturecallupdateuserrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.UpdateUserRequest; @@ -39,4 +40,4 @@ public class UpdateUserCallableFutureCallUpdateUserRequest { } } } -// [END goldensample_v1_generated_identityclient_updateuser_callablefuturecallupdateuserrequest] +// [END goldensample_generated_identityclient_updateuser_callablefuturecallupdateuserrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden index 20f3d8f1f9..4188838a6b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_identityclient_updateuser_updateuserrequest] +// [START goldensample_generated_identityclient_updateuser_updateuserrequest] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.UpdateUserRequest; import com.google.showcase.v1beta1.User; @@ -36,4 +37,4 @@ public class UpdateUserUpdateUserRequest { } } } -// [END goldensample_v1_generated_identityclient_updateuser_updateuserrequest] +// [END goldensample_generated_identityclient_updateuser_updateuserrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden index 6abfa27427..182920099b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_connect_callablecallconnectrequest] +// [START goldensample_generated_messagingclient_connect_callablecallconnectrequest] import com.google.api.gax.rpc.BidiStream; import com.google.showcase.v1beta1.ConnectRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -41,4 +42,4 @@ public class ConnectCallableCallConnectRequest { } } } -// [END goldensample_v1_generated_messagingclient_connect_callablecallconnectrequest] +// [END goldensample_generated_messagingclient_connect_callablecallconnectrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden index b3800562d2..c4691a3c26 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest] +// [START goldensample_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.CreateBlurbRequest; @@ -43,4 +44,4 @@ public class CreateBlurbCallableFutureCallCreateBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest] +// [END goldensample_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden index a104095c2e..5b7c4278d5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createblurb_createblurbrequest] +// [START goldensample_generated_messagingclient_createblurb_createblurbrequest] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.CreateBlurbRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -40,4 +41,4 @@ public class CreateBlurbCreateBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_createblurb_createblurbrequest] +// [END goldensample_generated_messagingclient_createblurb_createblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden index 6ba6ca00b9..85fc7ced05 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createblurb_profilenamebytestring] +// [START goldensample_generated_messagingclient_createblurb_profilenamebytestring] import com.google.protobuf.ByteString; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; @@ -37,4 +38,4 @@ public class CreateBlurbProfileNameByteString { } } } -// [END goldensample_v1_generated_messagingclient_createblurb_profilenamebytestring] +// [END goldensample_generated_messagingclient_createblurb_profilenamebytestring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden index 458c424e89..a58963590e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createblurb_profilenamestring] +// [START goldensample_generated_messagingclient_createblurb_profilenamestring] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -36,4 +37,4 @@ public class CreateBlurbProfileNameString { } } } -// [END goldensample_v1_generated_messagingclient_createblurb_profilenamestring] +// [END goldensample_generated_messagingclient_createblurb_profilenamestring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden index e6a6d3ae89..71f07bc9c2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createblurb_roomnamebytestring] +// [START goldensample_generated_messagingclient_createblurb_roomnamebytestring] import com.google.protobuf.ByteString; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; @@ -37,4 +38,4 @@ public class CreateBlurbRoomNameByteString { } } } -// [END goldensample_v1_generated_messagingclient_createblurb_roomnamebytestring] +// [END goldensample_generated_messagingclient_createblurb_roomnamebytestring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden index 6dfb6a813c..fa533a7a4f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createblurb_roomnamestring] +// [START goldensample_generated_messagingclient_createblurb_roomnamestring] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.RoomName; @@ -36,4 +37,4 @@ public class CreateBlurbRoomNameString { } } } -// [END goldensample_v1_generated_messagingclient_createblurb_roomnamestring] +// [END goldensample_generated_messagingclient_createblurb_roomnamestring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden index 94201c1d63..7c2f6448cc 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createblurb_stringbytestring] +// [START goldensample_generated_messagingclient_createblurb_stringbytestring] import com.google.protobuf.ByteString; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; @@ -37,4 +38,4 @@ public class CreateBlurbStringByteString { } } } -// [END goldensample_v1_generated_messagingclient_createblurb_stringbytestring] +// [END goldensample_generated_messagingclient_createblurb_stringbytestring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden index 90e927b784..d9ccec7e89 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createblurb_stringstring] +// [START goldensample_generated_messagingclient_createblurb_stringstring] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -36,4 +37,4 @@ public class CreateBlurbStringString { } } } -// [END goldensample_v1_generated_messagingclient_createblurb_stringstring] +// [END goldensample_generated_messagingclient_createblurb_stringstring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden index b3f2ac6703..c2eb4c29a0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_create_messagingsettings1] +// [START goldensample_generated_messagingclient_create_messagingsettings1] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.MessagingSettings; @@ -37,4 +38,4 @@ public class CreateMessagingSettings1 { MessagingClient messagingClient = MessagingClient.create(messagingSettings); } } -// [END goldensample_v1_generated_messagingclient_create_messagingsettings1] +// [END goldensample_generated_messagingclient_create_messagingsettings1] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden index b2580879b5..f319d36416 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_create_messagingsettings2] +// [START goldensample_generated_messagingclient_create_messagingsettings2] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.MessagingSettings; import com.google.showcase.v1beta1.myEndpoint; @@ -34,4 +35,4 @@ public class CreateMessagingSettings2 { MessagingClient messagingClient = MessagingClient.create(messagingSettings); } } -// [END goldensample_v1_generated_messagingclient_create_messagingsettings2] +// [END goldensample_generated_messagingclient_create_messagingsettings2] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden index 4794dea28e..ea1452b9f0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createroom_callablefuturecallcreateroomrequest] +// [START goldensample_generated_messagingclient_createroom_callablefuturecallcreateroomrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.CreateRoomRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -39,4 +40,4 @@ public class CreateRoomCallableFutureCallCreateRoomRequest { } } } -// [END goldensample_v1_generated_messagingclient_createroom_callablefuturecallcreateroomrequest] +// [END goldensample_generated_messagingclient_createroom_callablefuturecallcreateroomrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden index 81eaf125ab..b905a455f1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createroom_createroomrequest] +// [START goldensample_generated_messagingclient_createroom_createroomrequest] import com.google.showcase.v1beta1.CreateRoomRequest; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -36,4 +37,4 @@ public class CreateRoomCreateRoomRequest { } } } -// [END goldensample_v1_generated_messagingclient_createroom_createroomrequest] +// [END goldensample_generated_messagingclient_createroom_createroomrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden index 6057a2e90b..80a7ad78ec 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_createroom_stringstring] +// [START goldensample_generated_messagingclient_createroom_stringstring] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -35,4 +36,4 @@ public class CreateRoomStringString { } } } -// [END goldensample_v1_generated_messagingclient_createroom_stringstring] +// [END goldensample_generated_messagingclient_createroom_stringstring] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden index e288ac98aa..c11c652934 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_deleteblurb_blurbname] +// [START goldensample_generated_messagingclient_deleteblurb_blurbname] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.MessagingClient; @@ -35,4 +36,4 @@ public class DeleteBlurbBlurbName { } } } -// [END goldensample_v1_generated_messagingclient_deleteblurb_blurbname] +// [END goldensample_generated_messagingclient_deleteblurb_blurbname] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden index 4eecbba464..6cf287ab72 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest] +// [START goldensample_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.BlurbName; @@ -44,4 +45,4 @@ public class DeleteBlurbCallableFutureCallDeleteBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest] +// [END goldensample_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden index e40632cab6..a1b929c4d1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_deleteblurb_deleteblurbrequest] +// [START goldensample_generated_messagingclient_deleteblurb_deleteblurbrequest] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.DeleteBlurbRequest; @@ -41,4 +42,4 @@ public class DeleteBlurbDeleteBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_deleteblurb_deleteblurbrequest] +// [END goldensample_generated_messagingclient_deleteblurb_deleteblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden index 597bd4160e..03b85640ff 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_deleteblurb_string] +// [START goldensample_generated_messagingclient_deleteblurb_string] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.MessagingClient; @@ -36,4 +37,4 @@ public class DeleteBlurbString { } } } -// [END goldensample_v1_generated_messagingclient_deleteblurb_string] +// [END goldensample_generated_messagingclient_deleteblurb_string] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden index f4d1b91777..7353d8ca3c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest] +// [START goldensample_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.DeleteRoomRequest; @@ -40,4 +41,4 @@ public class DeleteRoomCallableFutureCallDeleteRoomRequest { } } } -// [END goldensample_v1_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest] +// [END goldensample_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden index 16b73e3532..06d79dd106 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_deleteroom_deleteroomrequest] +// [START goldensample_generated_messagingclient_deleteroom_deleteroomrequest] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.DeleteRoomRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -37,4 +38,4 @@ public class DeleteRoomDeleteRoomRequest { } } } -// [END goldensample_v1_generated_messagingclient_deleteroom_deleteroomrequest] +// [END goldensample_generated_messagingclient_deleteroom_deleteroomrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden index 9098b01cda..7e415ba075 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_deleteroom_roomname] +// [START goldensample_generated_messagingclient_deleteroom_roomname] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.RoomName; @@ -35,4 +36,4 @@ public class DeleteRoomRoomName { } } } -// [END goldensample_v1_generated_messagingclient_deleteroom_roomname] +// [END goldensample_generated_messagingclient_deleteroom_roomname] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden index 39192a3763..4d14d0a540 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_deleteroom_string] +// [START goldensample_generated_messagingclient_deleteroom_string] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.RoomName; @@ -35,4 +36,4 @@ public class DeleteRoomString { } } } -// [END goldensample_v1_generated_messagingclient_deleteroom_string] +// [END goldensample_generated_messagingclient_deleteroom_string] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden index 16007c313f..c90e21fdf7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_getblurb_blurbname] +// [START goldensample_generated_messagingclient_getblurb_blurbname] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.MessagingClient; @@ -35,4 +36,4 @@ public class GetBlurbBlurbName { } } } -// [END goldensample_v1_generated_messagingclient_getblurb_blurbname] +// [END goldensample_generated_messagingclient_getblurb_blurbname] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden index 2f29b4f495..d42d82b324 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest] +// [START goldensample_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.BlurbName; @@ -44,4 +45,4 @@ public class GetBlurbCallableFutureCallGetBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest] +// [END goldensample_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden index 111dfd4b62..960de7465c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_getblurb_getblurbrequest] +// [START goldensample_generated_messagingclient_getblurb_getblurbrequest] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.GetBlurbRequest; @@ -41,4 +42,4 @@ public class GetBlurbGetBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_getblurb_getblurbrequest] +// [END goldensample_generated_messagingclient_getblurb_getblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden index 3032e87a1e..5b9ceae167 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_getblurb_string] +// [START goldensample_generated_messagingclient_getblurb_string] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.MessagingClient; @@ -36,4 +37,4 @@ public class GetBlurbString { } } } -// [END goldensample_v1_generated_messagingclient_getblurb_string] +// [END goldensample_generated_messagingclient_getblurb_string] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden index 9514ca7385..d82a9504c3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_getroom_callablefuturecallgetroomrequest] +// [START goldensample_generated_messagingclient_getroom_callablefuturecallgetroomrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.GetRoomRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -40,4 +41,4 @@ public class GetRoomCallableFutureCallGetRoomRequest { } } } -// [END goldensample_v1_generated_messagingclient_getroom_callablefuturecallgetroomrequest] +// [END goldensample_generated_messagingclient_getroom_callablefuturecallgetroomrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden index 732abe1311..3b05083511 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_getroom_getroomrequest] +// [START goldensample_generated_messagingclient_getroom_getroomrequest] import com.google.showcase.v1beta1.GetRoomRequest; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -37,4 +38,4 @@ public class GetRoomGetRoomRequest { } } } -// [END goldensample_v1_generated_messagingclient_getroom_getroomrequest] +// [END goldensample_generated_messagingclient_getroom_getroomrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden index 08d04092be..eb1289d7ab 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_getroom_roomname] +// [START goldensample_generated_messagingclient_getroom_roomname] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; import com.google.showcase.v1beta1.RoomName; @@ -35,4 +36,4 @@ public class GetRoomRoomName { } } } -// [END goldensample_v1_generated_messagingclient_getroom_roomname] +// [END goldensample_generated_messagingclient_getroom_roomname] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden index 3f440fde58..33960ae36a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_getroom_string] +// [START goldensample_generated_messagingclient_getroom_string] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; import com.google.showcase.v1beta1.RoomName; @@ -35,4 +36,4 @@ public class GetRoomString { } } } -// [END goldensample_v1_generated_messagingclient_getroom_string] +// [END goldensample_generated_messagingclient_getroom_string] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden index 12d13aa156..0fc2096375 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listblurbs_callablecalllistblurbsrequest] +// [START goldensample_generated_messagingclient_listblurbs_callablecalllistblurbsrequest] import com.google.common.base.Strings; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.ListBlurbsRequest; @@ -54,4 +55,4 @@ public class ListBlurbsCallableCallListBlurbsRequest { } } } -// [END goldensample_v1_generated_messagingclient_listblurbs_callablecalllistblurbsrequest] +// [END goldensample_generated_messagingclient_listblurbs_callablecalllistblurbsrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden index 733c18db4d..4946b61317 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listblurbs_listblurbsrequestiterateall] +// [START goldensample_generated_messagingclient_listblurbs_listblurbsrequestiterateall] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.ListBlurbsRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -43,4 +44,4 @@ public class ListBlurbsListBlurbsRequestIterateAll { } } } -// [END goldensample_v1_generated_messagingclient_listblurbs_listblurbsrequestiterateall] +// [END goldensample_generated_messagingclient_listblurbs_listblurbsrequestiterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden index 2ac33fad98..0747f00e46 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest] +// [START goldensample_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.ListBlurbsRequest; @@ -46,4 +47,4 @@ public class ListBlurbsPagedCallableFutureCallListBlurbsRequest { } } } -// [END goldensample_v1_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest] +// [END goldensample_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden index 278034ee34..96f8e7b515 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listblurbs_profilenameiterateall] +// [START goldensample_generated_messagingclient_listblurbs_profilenameiterateall] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -37,4 +38,4 @@ public class ListBlurbsProfileNameIterateAll { } } } -// [END goldensample_v1_generated_messagingclient_listblurbs_profilenameiterateall] +// [END goldensample_generated_messagingclient_listblurbs_profilenameiterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden index d0602e7bf0..e06450f890 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listblurbs_roomnameiterateall] +// [START goldensample_generated_messagingclient_listblurbs_roomnameiterateall] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.RoomName; @@ -37,4 +38,4 @@ public class ListBlurbsRoomNameIterateAll { } } } -// [END goldensample_v1_generated_messagingclient_listblurbs_roomnameiterateall] +// [END goldensample_generated_messagingclient_listblurbs_roomnameiterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden index 058dc7c477..b80750cd5e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listblurbs_stringiterateall] +// [START goldensample_generated_messagingclient_listblurbs_stringiterateall] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -37,4 +38,4 @@ public class ListBlurbsStringIterateAll { } } } -// [END goldensample_v1_generated_messagingclient_listblurbs_stringiterateall] +// [END goldensample_generated_messagingclient_listblurbs_stringiterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden index e3a94a9bfd..c890cd01b5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listrooms_callablecalllistroomsrequest] +// [START goldensample_generated_messagingclient_listrooms_callablecalllistroomsrequest] import com.google.common.base.Strings; import com.google.showcase.v1beta1.ListRoomsRequest; import com.google.showcase.v1beta1.ListRoomsResponse; @@ -52,4 +53,4 @@ public class ListRoomsCallableCallListRoomsRequest { } } } -// [END goldensample_v1_generated_messagingclient_listrooms_callablecalllistroomsrequest] +// [END goldensample_generated_messagingclient_listrooms_callablecalllistroomsrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden index 669a616876..bd13dab554 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listrooms_listroomsrequestiterateall] +// [START goldensample_generated_messagingclient_listrooms_listroomsrequestiterateall] import com.google.showcase.v1beta1.ListRoomsRequest; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -41,4 +42,4 @@ public class ListRoomsListRoomsRequestIterateAll { } } } -// [END goldensample_v1_generated_messagingclient_listrooms_listroomsrequestiterateall] +// [END goldensample_generated_messagingclient_listrooms_listroomsrequestiterateall] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden index bfc4dfb32b..fbd74293d8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest] +// [START goldensample_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.ListRoomsRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -44,4 +45,4 @@ public class ListRoomsPagedCallableFutureCallListRoomsRequest { } } } -// [END goldensample_v1_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest] +// [END goldensample_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden index 751ae5b92d..acc69f6203 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget] +// [START goldensample_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; import com.google.showcase.v1beta1.SearchBlurbsRequest; @@ -42,4 +43,4 @@ public class SearchBlurbsAsyncSearchBlurbsRequestGet { } } } -// [END goldensample_v1_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget] +// [END goldensample_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden index 195aaa285e..1d074ecc3c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_searchblurbs_asyncstringget] +// [START goldensample_generated_messagingclient_searchblurbs_asyncstringget] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.SearchBlurbsResponse; @@ -34,4 +35,4 @@ public class SearchBlurbsAsyncStringGet { } } } -// [END goldensample_v1_generated_messagingclient_searchblurbs_asyncstringget] +// [END goldensample_generated_messagingclient_searchblurbs_asyncstringget] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden index e15b0c78ed..b1e7a636d4 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest] +// [START goldensample_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest] import com.google.api.core.ApiFuture; import com.google.longrunning.Operation; import com.google.showcase.v1beta1.MessagingClient; @@ -45,4 +46,4 @@ public class SearchBlurbsCallableFutureCallSearchBlurbsRequest { } } } -// [END goldensample_v1_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest] +// [END goldensample_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden index bf1bb5e715..f677e704b3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest] +// [START goldensample_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest] import com.google.api.gax.longrunning.OperationFuture; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -47,4 +48,4 @@ public class SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest { } } } -// [END goldensample_v1_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest] +// [END goldensample_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden index e1b96aad3f..d57b67e76e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest] +// [START goldensample_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest] import com.google.api.gax.rpc.ApiStreamObserver; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.CreateBlurbRequest; @@ -61,4 +62,4 @@ public class SendBlurbsClientStreamingCallCreateBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest] +// [END goldensample_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden index 735a792c34..e215036a6b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest] +// [START goldensample_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest] import com.google.api.gax.rpc.ServerStream; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -42,4 +43,4 @@ public class StreamBlurbsCallableCallStreamBlurbsRequest { } } } -// [END goldensample_v1_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest] +// [END goldensample_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden index cd02961c4f..2f1978010e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest] +// [START goldensample_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; @@ -39,4 +40,4 @@ public class UpdateBlurbCallableFutureCallUpdateBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest] +// [END goldensample_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden index 925c4cd313..51b0dc22eb 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_updateblurb_updateblurbrequest] +// [START goldensample_generated_messagingclient_updateblurb_updateblurbrequest] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.UpdateBlurbRequest; @@ -36,4 +37,4 @@ public class UpdateBlurbUpdateBlurbRequest { } } } -// [END goldensample_v1_generated_messagingclient_updateblurb_updateblurbrequest] +// [END goldensample_generated_messagingclient_updateblurb_updateblurbrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden index fd78d7c41e..631224ce85 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest] +// [START goldensample_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -39,4 +40,4 @@ public class UpdateRoomCallableFutureCallUpdateRoomRequest { } } } -// [END goldensample_v1_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest] +// [END goldensample_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden index 9c04027fad..4ac589cd41 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_messagingclient_updateroom_updateroomrequest] +// [START goldensample_generated_messagingclient_updateroom_updateroomrequest] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; import com.google.showcase.v1beta1.UpdateRoomRequest; @@ -36,4 +37,4 @@ public class UpdateRoomUpdateRoomRequest { } } } -// [END goldensample_v1_generated_messagingclient_updateroom_updateroomrequest] +// [END goldensample_generated_messagingclient_updateroom_updateroomrequest] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden index c636615e2b..2fc905de98 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.pubsub.v1.stub.samples; -// [START goldensample_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] +// [START goldensample_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] import com.google.pubsub.v1.stub.PublisherStubSettings; import java.time.Duration; @@ -41,4 +42,4 @@ public class CreateTopicSettingsSetRetrySettingsPublisherStubSettings { PublisherStubSettings publisherSettings = publisherSettingsBuilder.build(); } } -// [END goldensample_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] +// [END goldensample_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden index 2ecf60d537..f1233ede92 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.logging.v2.stub.samples; -// [START goldensample_v1_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] +// [START goldensample_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] import com.google.logging.v2.stub.LoggingServiceV2StubSettings; import java.time.Duration; @@ -43,4 +44,4 @@ public class DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings { LoggingServiceV2StubSettings loggingServiceV2Settings = loggingServiceV2SettingsBuilder.build(); } } -// [END goldensample_v1_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] +// [END goldensample_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden index 295376986d..b51fd7923f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.samples; -// [START goldensample_v1_generated_echosettings_echo_settingssetretrysettingsechosettings] +// [START goldensample_generated_echosettings_echo_settingssetretrysettingsechosettings] import com.google.showcase.v1beta1.EchoSettings; import java.time.Duration; @@ -41,4 +42,4 @@ public class EchoSettingsSetRetrySettingsEchoSettings { EchoSettings echoSettings = echoSettingsBuilder.build(); } } -// [END goldensample_v1_generated_echosettings_echo_settingssetretrysettingsechosettings] +// [END goldensample_generated_echosettings_echo_settingssetretrysettingsechosettings] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden index 3914ae6758..48a8d497c6 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.showcase.v1beta1.stub.samples; -// [START goldensample_v1_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings] +// [START goldensample_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings] import com.google.showcase.v1beta1.stub.EchoStubSettings; import java.time.Duration; @@ -41,4 +42,4 @@ public class EchoSettingsSetRetrySettingsEchoStubSettings { EchoStubSettings echoSettings = echoSettingsBuilder.build(); } } -// [END goldensample_v1_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings] +// [END goldensample_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden index 8f115f6de7..f0bd295d35 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.testdata.v1.samples; -// [START goldensample_v1_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings] +// [START goldensample_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings] import com.google.testdata.v1.DeprecatedServiceSettings; import java.time.Duration; @@ -43,4 +44,4 @@ public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings { DeprecatedServiceSettings deprecatedServiceSettings = deprecatedServiceSettingsBuilder.build(); } } -// [END goldensample_v1_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings] +// [END goldensample_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden index 6c63030501..494dc60e49 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden @@ -13,9 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.testdata.v1.stub.samples; -// [START goldensample_v1_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings] +// [START goldensample_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings] import com.google.testdata.v1.stub.DeprecatedServiceStubSettings; import java.time.Duration; @@ -44,4 +45,4 @@ public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings deprecatedServiceSettingsBuilder.build(); } } -// [END goldensample_v1_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings] +// [END goldensample_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings] From e6b6b2879b6db8b4dce74229c25a4a0c32a9336a Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 4 Mar 2022 16:55:33 -0800 Subject: [PATCH 14/29] refactor (tests): integration goldens --- .../AnalyzeIamPolicyAnalyzeIamPolicyRequest.java | 3 ++- ...lyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java | 3 ++- ...yLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java | 3 ++- ...ngCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java | 3 ++- ...onCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java | 3 ++- .../analyzemove/AnalyzeMoveAnalyzeMoveRequest.java | 3 ++- .../AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java | 3 ++- .../BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java | 3 ++- ...sHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java | 3 ++- .../assetserviceclient/create/CreateAssetServiceSettings1.java | 3 ++- .../assetserviceclient/create/CreateAssetServiceSettings2.java | 3 ++- .../CreateFeedCallableFutureCallCreateFeedRequest.java | 3 ++- .../createfeed/CreateFeedCreateFeedRequest.java | 3 ++- .../v1/assetserviceclient/createfeed/CreateFeedString.java | 3 ++- .../DeleteFeedCallableFutureCallDeleteFeedRequest.java | 3 ++- .../deletefeed/DeleteFeedDeleteFeedRequest.java | 3 ++- .../v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java | 3 ++- .../v1/assetserviceclient/deletefeed/DeleteFeedString.java | 3 ++- .../exportassets/ExportAssetsAsyncExportAssetsRequestGet.java | 3 ++- .../ExportAssetsCallableFutureCallExportAssetsRequest.java | 3 ++- ...rtAssetsOperationCallableFutureCallExportAssetsRequest.java | 3 ++- .../getfeed/GetFeedCallableFutureCallGetFeedRequest.java | 3 ++- .../asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java | 3 ++- .../v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java | 3 ++- .../asset/v1/assetserviceclient/getfeed/GetFeedString.java | 3 ++- .../listassets/ListAssetsCallableCallListAssetsRequest.java | 3 ++- .../listassets/ListAssetsListAssetsRequestIterateAll.java | 3 ++- .../ListAssetsPagedCallableFutureCallListAssetsRequest.java | 3 ++- .../listassets/ListAssetsResourceNameIterateAll.java | 3 ++- .../listassets/ListAssetsStringIterateAll.java | 3 ++- .../listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java | 3 ++- .../listfeeds/ListFeedsListFeedsRequest.java | 3 ++- .../asset/v1/assetserviceclient/listfeeds/ListFeedsString.java | 3 ++- ...hAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java | 3 ++- ...ciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java | 3 ++- ...rchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java | 3 ++- .../SearchAllIamPoliciesStringStringIterateAll.java | 3 ++- ...earchAllResourcesCallableCallSearchAllResourcesRequest.java | 3 ++- ...ourcesPagedCallableFutureCallSearchAllResourcesRequest.java | 3 ++- .../SearchAllResourcesSearchAllResourcesRequestIterateAll.java | 3 ++- .../SearchAllResourcesStringStringListStringIterateAll.java | 3 ++- .../UpdateFeedCallableFutureCallUpdateFeedRequest.java | 3 ++- .../asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java | 3 ++- .../updatefeed/UpdateFeedUpdateFeedRequest.java | 3 ++- ...etsHistorySettingsSetRetrySettingsAssetServiceSettings.java | 3 ++- ...istorySettingsSetRetrySettingsAssetServiceStubSettings.java | 3 ++- ...AndMutateRowCallableFutureCallCheckAndMutateRowRequest.java | 3 ++- .../CheckAndMutateRowCheckAndMutateRowRequest.java | 3 ++- ...teRowStringByteStringRowFilterListMutationListMutation.java | 3 ++- ...tringByteStringRowFilterListMutationListMutationString.java | 3 ++- ...owTableNameByteStringRowFilterListMutationListMutation.java | 3 ++- ...eNameByteStringRowFilterListMutationListMutationString.java | 3 ++- .../create/CreateBaseBigtableDataSettings1.java | 3 ++- .../create/CreateBaseBigtableDataSettings2.java | 3 ++- .../mutaterow/MutateRowCallableFutureCallMutateRowRequest.java | 3 ++- .../mutaterow/MutateRowMutateRowRequest.java | 3 ++- .../mutaterow/MutateRowStringByteStringListMutation.java | 3 ++- .../mutaterow/MutateRowStringByteStringListMutationString.java | 3 ++- .../mutaterow/MutateRowTableNameByteStringListMutation.java | 3 ++- .../MutateRowTableNameByteStringListMutationString.java | 3 ++- .../mutaterows/MutateRowsCallableCallMutateRowsRequest.java | 3 ++- ...ifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java | 3 ++- .../ReadModifyWriteRowReadModifyWriteRowRequest.java | 3 ++- ...dModifyWriteRowStringByteStringListReadModifyWriteRule.java | 3 ++- ...yWriteRowStringByteStringListReadModifyWriteRuleString.java | 3 ++- ...difyWriteRowTableNameByteStringListReadModifyWriteRule.java | 3 ++- ...iteRowTableNameByteStringListReadModifyWriteRuleString.java | 3 ++- .../readrows/ReadRowsCallableCallReadRowsRequest.java | 3 ++- .../SampleRowKeysCallableCallSampleRowKeysRequest.java | 3 ++- ...ateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java | 3 ++- .../MutateRowSettingsSetRetrySettingsBigtableStubSettings.java | 3 ++- ...AggregatedListAggregatedListAddressesRequestIterateAll.java | 3 ++- ...gregatedListCallableCallAggregatedListAddressesRequest.java | 3 ++- ...tPagedCallableFutureCallAggregatedListAddressesRequest.java | 3 ++- .../aggregatedlist/AggregatedListStringIterateAll.java | 3 ++- .../addressesclient/create/CreateAddressesSettings1.java | 3 ++- .../addressesclient/create/CreateAddressesSettings2.java | 3 ++- .../delete/DeleteAsyncDeleteAddressRequestGet.java | 3 ++- .../delete/DeleteAsyncStringStringStringGet.java | 3 ++- .../delete/DeleteCallableFutureCallDeleteAddressRequest.java | 3 ++- .../DeleteOperationCallableFutureCallDeleteAddressRequest.java | 3 ++- .../insert/InsertAsyncInsertAddressRequestGet.java | 3 ++- .../insert/InsertAsyncStringStringAddressGet.java | 3 ++- .../insert/InsertCallableFutureCallInsertAddressRequest.java | 3 ++- .../InsertOperationCallableFutureCallInsertAddressRequest.java | 3 ++- .../list/ListCallableCallListAddressesRequest.java | 3 ++- .../list/ListListAddressesRequestIterateAll.java | 3 ++- .../list/ListPagedCallableFutureCallListAddressesRequest.java | 3 ++- .../addressesclient/list/ListStringStringStringIterateAll.java | 3 ++- ...ggregatedListSettingsSetRetrySettingsAddressesSettings.java | 3 ++- .../create/CreateRegionOperationsSettings1.java | 3 ++- .../create/CreateRegionOperationsSettings2.java | 3 ++- .../get/GetCallableFutureCallGetRegionOperationRequest.java | 3 ++- .../get/GetGetRegionOperationRequest.java | 3 ++- .../regionoperationsclient/get/GetStringStringString.java | 3 ++- .../wait/WaitCallableFutureCallWaitRegionOperationRequest.java | 3 ++- .../regionoperationsclient/wait/WaitStringStringString.java | 3 ++- .../wait/WaitWaitRegionOperationRequest.java | 3 ++- .../GetSettingsSetRetrySettingsRegionOperationsSettings.java | 3 ++- ...gatedListSettingsSetRetrySettingsAddressesStubSettings.java | 3 ++- ...etSettingsSetRetrySettingsRegionOperationsStubSettings.java | 3 ++- .../create/CreateIamCredentialsSettings1.java | 3 ++- .../create/CreateIamCredentialsSettings2.java | 3 ++- ...ccessTokenCallableFutureCallGenerateAccessTokenRequest.java | 3 ++- .../GenerateAccessTokenGenerateAccessTokenRequest.java | 3 ++- ...essTokenServiceAccountNameListStringListStringDuration.java | 3 ++- .../GenerateAccessTokenStringListStringListStringDuration.java | 3 ++- ...enerateIdTokenCallableFutureCallGenerateIdTokenRequest.java | 3 ++- .../generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java | 3 ++- ...nerateIdTokenServiceAccountNameListStringStringBoolean.java | 3 ++- .../GenerateIdTokenStringListStringStringBoolean.java | 3 ++- .../signblob/SignBlobCallableFutureCallSignBlobRequest.java | 3 ++- .../SignBlobServiceAccountNameListStringByteString.java | 3 ++- .../iamcredentialsclient/signblob/SignBlobSignBlobRequest.java | 3 ++- .../signblob/SignBlobStringListStringByteString.java | 3 ++- .../signjwt/SignJwtCallableFutureCallSignJwtRequest.java | 3 ++- .../signjwt/SignJwtServiceAccountNameListStringString.java | 3 ++- .../v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java | 3 ++- .../signjwt/SignJwtStringListStringString.java | 3 ++- ...essTokenSettingsSetRetrySettingsIamCredentialsSettings.java | 3 ++- ...okenSettingsSetRetrySettingsIamCredentialsStubSettings.java | 3 ++- .../v1/iampolicyclient/create/CreateIAMPolicySettings1.java | 3 ++- .../v1/iampolicyclient/create/CreateIAMPolicySettings2.java | 3 ++- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 3 ++- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 3 ++- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 3 ++- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 3 ++- ...PermissionsCallableFutureCallTestIamPermissionsRequest.java | 3 ++- .../TestIamPermissionsTestIamPermissionsRequest.java | 3 ++- .../SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java | 3 ++- ...IamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java | 3 ++- .../AsymmetricDecryptAsymmetricDecryptRequest.java | 3 ++- ...etricDecryptCallableFutureCallAsymmetricDecryptRequest.java | 3 ++- .../AsymmetricDecryptCryptoKeyVersionNameByteString.java | 3 ++- .../asymmetricdecrypt/AsymmetricDecryptStringByteString.java | 3 ++- .../asymmetricsign/AsymmetricSignAsymmetricSignRequest.java | 3 ++- .../AsymmetricSignCallableFutureCallAsymmetricSignRequest.java | 3 ++- .../AsymmetricSignCryptoKeyVersionNameDigest.java | 3 ++- .../asymmetricsign/AsymmetricSignStringDigest.java | 3 ++- .../create/CreateKeyManagementServiceSettings1.java | 3 ++- .../create/CreateKeyManagementServiceSettings2.java | 3 ++- ...reateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java | 3 ++- .../createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java | 3 ++- .../CreateCryptoKeyKeyRingNameStringCryptoKey.java | 3 ++- .../createcryptokey/CreateCryptoKeyStringStringCryptoKey.java | 3 ++- ...VersionCallableFutureCallCreateCryptoKeyVersionRequest.java | 3 ++- .../CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java | 3 ++- .../CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java | 3 ++- .../CreateCryptoKeyVersionStringCryptoKeyVersion.java | 3 ++- ...reateImportJobCallableFutureCallCreateImportJobRequest.java | 3 ++- .../createimportjob/CreateImportJobCreateImportJobRequest.java | 3 ++- .../CreateImportJobKeyRingNameStringImportJob.java | 3 ++- .../createimportjob/CreateImportJobStringStringImportJob.java | 3 ++- .../CreateKeyRingCallableFutureCallCreateKeyRingRequest.java | 3 ++- .../createkeyring/CreateKeyRingCreateKeyRingRequest.java | 3 ++- .../createkeyring/CreateKeyRingLocationNameStringKeyRing.java | 3 ++- .../createkeyring/CreateKeyRingStringStringKeyRing.java | 3 ++- .../decrypt/DecryptCallableFutureCallDecryptRequest.java | 3 ++- .../decrypt/DecryptCryptoKeyNameByteString.java | 3 ++- .../decrypt/DecryptDecryptRequest.java | 3 ++- .../decrypt/DecryptStringByteString.java | 3 ++- ...ersionCallableFutureCallDestroyCryptoKeyVersionRequest.java | 3 ++- .../DestroyCryptoKeyVersionCryptoKeyVersionName.java | 3 ++- .../DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java | 3 ++- .../destroycryptokeyversion/DestroyCryptoKeyVersionString.java | 3 ++- .../encrypt/EncryptCallableFutureCallEncryptRequest.java | 3 ++- .../encrypt/EncryptEncryptRequest.java | 3 ++- .../encrypt/EncryptResourceNameByteString.java | 3 ++- .../encrypt/EncryptStringByteString.java | 3 ++- .../GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java | 3 ++- .../getcryptokey/GetCryptoKeyCryptoKeyName.java | 3 ++- .../getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java | 3 ++- .../getcryptokey/GetCryptoKeyString.java | 3 ++- ...KeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java | 3 ++- .../GetCryptoKeyVersionCryptoKeyVersionName.java | 3 ++- .../GetCryptoKeyVersionGetCryptoKeyVersionRequest.java | 3 ++- .../getcryptokeyversion/GetCryptoKeyVersionString.java | 3 ++- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 3 ++- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 3 ++- .../GetImportJobCallableFutureCallGetImportJobRequest.java | 3 ++- .../getimportjob/GetImportJobGetImportJobRequest.java | 3 ++- .../getimportjob/GetImportJobImportJobName.java | 3 ++- .../getimportjob/GetImportJobString.java | 3 ++- .../GetKeyRingCallableFutureCallGetKeyRingRequest.java | 3 ++- .../getkeyring/GetKeyRingGetKeyRingRequest.java | 3 ++- .../getkeyring/GetKeyRingKeyRingName.java | 3 ++- .../getkeyring/GetKeyRingString.java | 3 ++- .../GetLocationCallableFutureCallGetLocationRequest.java | 3 ++- .../getlocation/GetLocationGetLocationRequest.java | 3 ++- .../GetPublicKeyCallableFutureCallGetPublicKeyRequest.java | 3 ++- .../getpublickey/GetPublicKeyCryptoKeyVersionName.java | 3 ++- .../getpublickey/GetPublicKeyGetPublicKeyRequest.java | 3 ++- .../getpublickey/GetPublicKeyString.java | 3 ++- ...VersionCallableFutureCallImportCryptoKeyVersionRequest.java | 3 ++- .../ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java | 3 ++- .../ListCryptoKeysCallableCallListCryptoKeysRequest.java | 3 ++- .../listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java | 3 ++- .../ListCryptoKeysListCryptoKeysRequestIterateAll.java | 3 ++- ...CryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java | 3 ++- .../listcryptokeys/ListCryptoKeysStringIterateAll.java | 3 ++- ...ptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java | 3 ++- .../ListCryptoKeyVersionsCryptoKeyNameIterateAll.java | 3 ++- ...ryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java | 3 ++- ...onsPagedCallableFutureCallListCryptoKeyVersionsRequest.java | 3 ++- .../ListCryptoKeyVersionsStringIterateAll.java | 3 ++- .../ListImportJobsCallableCallListImportJobsRequest.java | 3 ++- .../listimportjobs/ListImportJobsKeyRingNameIterateAll.java | 3 ++- .../ListImportJobsListImportJobsRequestIterateAll.java | 3 ++- ...ImportJobsPagedCallableFutureCallListImportJobsRequest.java | 3 ++- .../listimportjobs/ListImportJobsStringIterateAll.java | 3 ++- .../ListKeyRingsCallableCallListKeyRingsRequest.java | 3 ++- .../ListKeyRingsListKeyRingsRequestIterateAll.java | 3 ++- .../listkeyrings/ListKeyRingsLocationNameIterateAll.java | 3 ++- ...ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java | 3 ++- .../listkeyrings/ListKeyRingsStringIterateAll.java | 3 ++- .../ListLocationsCallableCallListLocationsRequest.java | 3 ++- .../ListLocationsListLocationsRequestIterateAll.java | 3 ++- ...stLocationsPagedCallableFutureCallListLocationsRequest.java | 3 ++- ...ersionCallableFutureCallRestoreCryptoKeyVersionRequest.java | 3 ++- .../RestoreCryptoKeyVersionCryptoKeyVersionName.java | 3 ++- .../RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java | 3 ++- .../restorecryptokeyversion/RestoreCryptoKeyVersionString.java | 3 ++- ...PermissionsCallableFutureCallTestIamPermissionsRequest.java | 3 ++- .../TestIamPermissionsTestIamPermissionsRequest.java | 3 ++- ...pdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java | 3 ++- .../updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java | 3 ++- .../updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java | 3 ++- ...CallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java | 3 ++- .../UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java | 3 ++- .../UpdateCryptoKeyPrimaryVersionStringString.java | 3 ++- ...oKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java | 3 ++- ...VersionCallableFutureCallUpdateCryptoKeyVersionRequest.java | 3 ++- .../UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java | 3 ++- .../UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java | 3 ++- ...ngSettingsSetRetrySettingsKeyManagementServiceSettings.java | 3 ++- ...ttingsSetRetrySettingsKeyManagementServiceStubSettings.java | 3 ++- .../create/CreateLibraryServiceSettings1.java | 3 ++- .../create/CreateLibraryServiceSettings2.java | 3 ++- .../CreateBookCallableFutureCallCreateBookRequest.java | 3 ++- .../createbook/CreateBookCreateBookRequest.java | 3 ++- .../createbook/CreateBookShelfNameBook.java | 3 ++- .../libraryserviceclient/createbook/CreateBookStringBook.java | 3 ++- .../CreateShelfCallableFutureCallCreateShelfRequest.java | 3 ++- .../createshelf/CreateShelfCreateShelfRequest.java | 3 ++- .../v1/libraryserviceclient/createshelf/CreateShelfShelf.java | 3 ++- .../v1/libraryserviceclient/deletebook/DeleteBookBookName.java | 3 ++- .../DeleteBookCallableFutureCallDeleteBookRequest.java | 3 ++- .../deletebook/DeleteBookDeleteBookRequest.java | 3 ++- .../v1/libraryserviceclient/deletebook/DeleteBookString.java | 3 ++- .../DeleteShelfCallableFutureCallDeleteShelfRequest.java | 3 ++- .../deleteshelf/DeleteShelfDeleteShelfRequest.java | 3 ++- .../libraryserviceclient/deleteshelf/DeleteShelfShelfName.java | 3 ++- .../v1/libraryserviceclient/deleteshelf/DeleteShelfString.java | 3 ++- .../v1/libraryserviceclient/getbook/GetBookBookName.java | 3 ++- .../getbook/GetBookCallableFutureCallGetBookRequest.java | 3 ++- .../v1/libraryserviceclient/getbook/GetBookGetBookRequest.java | 3 ++- .../library/v1/libraryserviceclient/getbook/GetBookString.java | 3 ++- .../getshelf/GetShelfCallableFutureCallGetShelfRequest.java | 3 ++- .../libraryserviceclient/getshelf/GetShelfGetShelfRequest.java | 3 ++- .../v1/libraryserviceclient/getshelf/GetShelfShelfName.java | 3 ++- .../v1/libraryserviceclient/getshelf/GetShelfString.java | 3 ++- .../listbooks/ListBooksCallableCallListBooksRequest.java | 3 ++- .../listbooks/ListBooksListBooksRequestIterateAll.java | 3 ++- .../ListBooksPagedCallableFutureCallListBooksRequest.java | 3 ++- .../listbooks/ListBooksShelfNameIterateAll.java | 3 ++- .../listbooks/ListBooksStringIterateAll.java | 3 ++- .../listshelves/ListShelvesCallableCallListShelvesRequest.java | 3 ++- .../listshelves/ListShelvesListShelvesRequestIterateAll.java | 3 ++- .../ListShelvesPagedCallableFutureCallListShelvesRequest.java | 3 ++- .../MergeShelvesCallableFutureCallMergeShelvesRequest.java | 3 ++- .../mergeshelves/MergeShelvesMergeShelvesRequest.java | 3 ++- .../mergeshelves/MergeShelvesShelfNameShelfName.java | 3 ++- .../mergeshelves/MergeShelvesShelfNameString.java | 3 ++- .../mergeshelves/MergeShelvesStringShelfName.java | 3 ++- .../mergeshelves/MergeShelvesStringString.java | 3 ++- .../movebook/MoveBookBookNameShelfName.java | 3 ++- .../libraryserviceclient/movebook/MoveBookBookNameString.java | 3 ++- .../movebook/MoveBookCallableFutureCallMoveBookRequest.java | 3 ++- .../libraryserviceclient/movebook/MoveBookMoveBookRequest.java | 3 ++- .../libraryserviceclient/movebook/MoveBookStringShelfName.java | 3 ++- .../v1/libraryserviceclient/movebook/MoveBookStringString.java | 3 ++- .../updatebook/UpdateBookBookFieldMask.java | 3 ++- .../UpdateBookCallableFutureCallUpdateBookRequest.java | 3 ++- .../updatebook/UpdateBookUpdateBookRequest.java | 3 ++- ...ateShelfSettingsSetRetrySettingsLibraryServiceSettings.java | 3 ++- ...helfSettingsSetRetrySettingsLibraryServiceStubSettings.java | 3 ++- .../logging/v2/configclient/create/CreateConfigSettings1.java | 3 ++- .../logging/v2/configclient/create/CreateConfigSettings2.java | 3 ++- .../CreateBucketCallableFutureCallCreateBucketRequest.java | 3 ++- .../createbucket/CreateBucketCreateBucketRequest.java | 3 ++- .../CreateExclusionBillingAccountNameLogExclusion.java | 3 ++- ...reateExclusionCallableFutureCallCreateExclusionRequest.java | 3 ++- .../createexclusion/CreateExclusionCreateExclusionRequest.java | 3 ++- .../createexclusion/CreateExclusionFolderNameLogExclusion.java | 3 ++- .../CreateExclusionOrganizationNameLogExclusion.java | 3 ++- .../CreateExclusionProjectNameLogExclusion.java | 3 ++- .../createexclusion/CreateExclusionStringLogExclusion.java | 3 ++- .../createsink/CreateSinkBillingAccountNameLogSink.java | 3 ++- .../CreateSinkCallableFutureCallCreateSinkRequest.java | 3 ++- .../configclient/createsink/CreateSinkCreateSinkRequest.java | 3 ++- .../configclient/createsink/CreateSinkFolderNameLogSink.java | 3 ++- .../createsink/CreateSinkOrganizationNameLogSink.java | 3 ++- .../configclient/createsink/CreateSinkProjectNameLogSink.java | 3 ++- .../v2/configclient/createsink/CreateSinkStringLogSink.java | 3 ++- .../CreateViewCallableFutureCallCreateViewRequest.java | 3 ++- .../configclient/createview/CreateViewCreateViewRequest.java | 3 ++- .../DeleteBucketCallableFutureCallDeleteBucketRequest.java | 3 ++- .../deletebucket/DeleteBucketDeleteBucketRequest.java | 3 ++- ...eleteExclusionCallableFutureCallDeleteExclusionRequest.java | 3 ++- .../deleteexclusion/DeleteExclusionDeleteExclusionRequest.java | 3 ++- .../deleteexclusion/DeleteExclusionLogExclusionName.java | 3 ++- .../v2/configclient/deleteexclusion/DeleteExclusionString.java | 3 ++- .../DeleteSinkCallableFutureCallDeleteSinkRequest.java | 3 ++- .../configclient/deletesink/DeleteSinkDeleteSinkRequest.java | 3 ++- .../v2/configclient/deletesink/DeleteSinkLogSinkName.java | 3 ++- .../logging/v2/configclient/deletesink/DeleteSinkString.java | 3 ++- .../DeleteViewCallableFutureCallDeleteViewRequest.java | 3 ++- .../configclient/deleteview/DeleteViewDeleteViewRequest.java | 3 ++- .../getbucket/GetBucketCallableFutureCallGetBucketRequest.java | 3 ++- .../v2/configclient/getbucket/GetBucketGetBucketRequest.java | 3 ++- ...etCmekSettingsCallableFutureCallGetCmekSettingsRequest.java | 3 ++- .../getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java | 3 ++- .../GetExclusionCallableFutureCallGetExclusionRequest.java | 3 ++- .../getexclusion/GetExclusionGetExclusionRequest.java | 3 ++- .../getexclusion/GetExclusionLogExclusionName.java | 3 ++- .../v2/configclient/getexclusion/GetExclusionString.java | 3 ++- .../getsink/GetSinkCallableFutureCallGetSinkRequest.java | 3 ++- .../logging/v2/configclient/getsink/GetSinkGetSinkRequest.java | 3 ++- .../logging/v2/configclient/getsink/GetSinkLogSinkName.java | 3 ++- .../cloud/logging/v2/configclient/getsink/GetSinkString.java | 3 ++- .../getview/GetViewCallableFutureCallGetViewRequest.java | 3 ++- .../logging/v2/configclient/getview/GetViewGetViewRequest.java | 3 ++- .../ListBucketsBillingAccountLocationNameIterateAll.java | 3 ++- .../listbuckets/ListBucketsCallableCallListBucketsRequest.java | 3 ++- .../listbuckets/ListBucketsFolderLocationNameIterateAll.java | 3 ++- .../listbuckets/ListBucketsListBucketsRequestIterateAll.java | 3 ++- .../listbuckets/ListBucketsLocationNameIterateAll.java | 3 ++- .../ListBucketsOrganizationLocationNameIterateAll.java | 3 ++- .../ListBucketsPagedCallableFutureCallListBucketsRequest.java | 3 ++- .../configclient/listbuckets/ListBucketsStringIterateAll.java | 3 ++- .../ListExclusionsBillingAccountNameIterateAll.java | 3 ++- .../ListExclusionsCallableCallListExclusionsRequest.java | 3 ++- .../listexclusions/ListExclusionsFolderNameIterateAll.java | 3 ++- .../ListExclusionsListExclusionsRequestIterateAll.java | 3 ++- .../ListExclusionsOrganizationNameIterateAll.java | 3 ++- ...ExclusionsPagedCallableFutureCallListExclusionsRequest.java | 3 ++- .../listexclusions/ListExclusionsProjectNameIterateAll.java | 3 ++- .../listexclusions/ListExclusionsStringIterateAll.java | 3 ++- .../listsinks/ListSinksBillingAccountNameIterateAll.java | 3 ++- .../listsinks/ListSinksCallableCallListSinksRequest.java | 3 ++- .../configclient/listsinks/ListSinksFolderNameIterateAll.java | 3 ++- .../listsinks/ListSinksListSinksRequestIterateAll.java | 3 ++- .../listsinks/ListSinksOrganizationNameIterateAll.java | 3 ++- .../ListSinksPagedCallableFutureCallListSinksRequest.java | 3 ++- .../configclient/listsinks/ListSinksProjectNameIterateAll.java | 3 ++- .../v2/configclient/listsinks/ListSinksStringIterateAll.java | 3 ++- .../listviews/ListViewsCallableCallListViewsRequest.java | 3 ++- .../listviews/ListViewsListViewsRequestIterateAll.java | 3 ++- .../ListViewsPagedCallableFutureCallListViewsRequest.java | 3 ++- .../v2/configclient/listviews/ListViewsStringIterateAll.java | 3 ++- .../UndeleteBucketCallableFutureCallUndeleteBucketRequest.java | 3 ++- .../undeletebucket/UndeleteBucketUndeleteBucketRequest.java | 3 ++- .../UpdateBucketCallableFutureCallUpdateBucketRequest.java | 3 ++- .../updatebucket/UpdateBucketUpdateBucketRequest.java | 3 ++- ...mekSettingsCallableFutureCallUpdateCmekSettingsRequest.java | 3 ++- .../UpdateCmekSettingsUpdateCmekSettingsRequest.java | 3 ++- ...pdateExclusionCallableFutureCallUpdateExclusionRequest.java | 3 ++- .../UpdateExclusionLogExclusionNameLogExclusionFieldMask.java | 3 ++- .../UpdateExclusionStringLogExclusionFieldMask.java | 3 ++- .../updateexclusion/UpdateExclusionUpdateExclusionRequest.java | 3 ++- .../UpdateSinkCallableFutureCallUpdateSinkRequest.java | 3 ++- .../configclient/updatesink/UpdateSinkLogSinkNameLogSink.java | 3 ++- .../updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java | 3 ++- .../v2/configclient/updatesink/UpdateSinkStringLogSink.java | 3 ++- .../updatesink/UpdateSinkStringLogSinkFieldMask.java | 3 ++- .../configclient/updatesink/UpdateSinkUpdateSinkRequest.java | 3 ++- .../UpdateViewCallableFutureCallUpdateViewRequest.java | 3 ++- .../configclient/updateview/UpdateViewUpdateViewRequest.java | 3 ++- .../GetBucketSettingsSetRetrySettingsConfigSettings.java | 3 ++- .../v2/loggingclient/create/CreateLoggingSettings1.java | 3 ++- .../v2/loggingclient/create/CreateLoggingSettings2.java | 3 ++- .../deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java | 3 ++- .../v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java | 3 ++- .../logging/v2/loggingclient/deletelog/DeleteLogLogName.java | 3 ++- .../logging/v2/loggingclient/deletelog/DeleteLogString.java | 3 ++- .../ListLogEntriesCallableCallListLogEntriesRequest.java | 3 ++- .../ListLogEntriesListLogEntriesRequestIterateAll.java | 3 ++- .../ListLogEntriesListStringStringStringIterateAll.java | 3 ++- ...LogEntriesPagedCallableFutureCallListLogEntriesRequest.java | 3 ++- .../listlogs/ListLogsBillingAccountNameIterateAll.java | 3 ++- .../listlogs/ListLogsCallableCallListLogsRequest.java | 3 ++- .../loggingclient/listlogs/ListLogsFolderNameIterateAll.java | 3 ++- .../listlogs/ListLogsListLogsRequestIterateAll.java | 3 ++- .../listlogs/ListLogsOrganizationNameIterateAll.java | 3 ++- .../ListLogsPagedCallableFutureCallListLogsRequest.java | 3 ++- .../loggingclient/listlogs/ListLogsProjectNameIterateAll.java | 3 ++- .../v2/loggingclient/listlogs/ListLogsStringIterateAll.java | 3 ++- ...orsCallableCallListMonitoredResourceDescriptorsRequest.java | 3 ++- ...ptorsListMonitoredResourceDescriptorsRequestIterateAll.java | 3 ++- ...lableFutureCallListMonitoredResourceDescriptorsRequest.java | 3 ++- .../TailLogEntriesCallableCallTailLogEntriesRequest.java | 3 ++- ...riteLogEntriesCallableFutureCallWriteLogEntriesRequest.java | 3 ++- ...iesLogNameMonitoredResourceMapStringStringListLogEntry.java | 3 ++- ...riesStringMonitoredResourceMapStringStringListLogEntry.java | 3 ++- .../writelogentries/WriteLogEntriesWriteLogEntriesRequest.java | 3 ++- .../DeleteLogSettingsSetRetrySettingsLoggingSettings.java | 3 ++- .../v2/metricsclient/create/CreateMetricsSettings1.java | 3 ++- .../v2/metricsclient/create/CreateMetricsSettings2.java | 3 ++- ...reateLogMetricCallableFutureCallCreateLogMetricRequest.java | 3 ++- .../createlogmetric/CreateLogMetricCreateLogMetricRequest.java | 3 ++- .../createlogmetric/CreateLogMetricProjectNameLogMetric.java | 3 ++- .../createlogmetric/CreateLogMetricStringLogMetric.java | 3 ++- ...eleteLogMetricCallableFutureCallDeleteLogMetricRequest.java | 3 ++- .../deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java | 3 ++- .../deletelogmetric/DeleteLogMetricLogMetricName.java | 3 ++- .../metricsclient/deletelogmetric/DeleteLogMetricString.java | 3 ++- .../GetLogMetricCallableFutureCallGetLogMetricRequest.java | 3 ++- .../getlogmetric/GetLogMetricGetLogMetricRequest.java | 3 ++- .../metricsclient/getlogmetric/GetLogMetricLogMetricName.java | 3 ++- .../v2/metricsclient/getlogmetric/GetLogMetricString.java | 3 ++- .../ListLogMetricsCallableCallListLogMetricsRequest.java | 3 ++- .../ListLogMetricsListLogMetricsRequestIterateAll.java | 3 ++- ...LogMetricsPagedCallableFutureCallListLogMetricsRequest.java | 3 ++- .../listlogmetrics/ListLogMetricsProjectNameIterateAll.java | 3 ++- .../listlogmetrics/ListLogMetricsStringIterateAll.java | 3 ++- ...pdateLogMetricCallableFutureCallUpdateLogMetricRequest.java | 3 ++- .../updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java | 3 ++- .../updatelogmetric/UpdateLogMetricStringLogMetric.java | 3 ++- .../updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java | 3 ++- .../GetLogMetricSettingsSetRetrySettingsMetricsSettings.java | 3 ++- ...ketSettingsSetRetrySettingsConfigServiceV2StubSettings.java | 3 ++- ...ogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java | 3 ++- ...icSettingsSetRetrySettingsMetricsServiceV2StubSettings.java | 3 ++- .../create/CreateSchemaServiceSettings1.java | 3 ++- .../create/CreateSchemaServiceSettings2.java | 3 ++- .../CreateSchemaCallableFutureCallCreateSchemaRequest.java | 3 ++- .../createschema/CreateSchemaCreateSchemaRequest.java | 3 ++- .../createschema/CreateSchemaProjectNameSchemaString.java | 3 ++- .../createschema/CreateSchemaStringSchemaString.java | 3 ++- .../DeleteSchemaCallableFutureCallDeleteSchemaRequest.java | 3 ++- .../deleteschema/DeleteSchemaDeleteSchemaRequest.java | 3 ++- .../deleteschema/DeleteSchemaSchemaName.java | 3 ++- .../schemaserviceclient/deleteschema/DeleteSchemaString.java | 3 ++- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 3 ++- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 3 ++- .../getschema/GetSchemaCallableFutureCallGetSchemaRequest.java | 3 ++- .../getschema/GetSchemaGetSchemaRequest.java | 3 ++- .../v1/schemaserviceclient/getschema/GetSchemaSchemaName.java | 3 ++- .../v1/schemaserviceclient/getschema/GetSchemaString.java | 3 ++- .../listschemas/ListSchemasCallableCallListSchemasRequest.java | 3 ++- .../listschemas/ListSchemasListSchemasRequestIterateAll.java | 3 ++- .../ListSchemasPagedCallableFutureCallListSchemasRequest.java | 3 ++- .../listschemas/ListSchemasProjectNameIterateAll.java | 3 ++- .../listschemas/ListSchemasStringIterateAll.java | 3 ++- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 3 ++- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 3 ++- ...PermissionsCallableFutureCallTestIamPermissionsRequest.java | 3 ++- .../TestIamPermissionsTestIamPermissionsRequest.java | 3 ++- ...alidateMessageCallableFutureCallValidateMessageRequest.java | 3 ++- .../validatemessage/ValidateMessageValidateMessageRequest.java | 3 ++- .../ValidateSchemaCallableFutureCallValidateSchemaRequest.java | 3 ++- .../validateschema/ValidateSchemaProjectNameSchema.java | 3 ++- .../validateschema/ValidateSchemaStringSchema.java | 3 ++- .../validateschema/ValidateSchemaValidateSchemaRequest.java | 3 ++- ...ateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java | 3 ++- ...eateTopicSettingsSetRetrySettingsPublisherStubSettings.java | 3 ++- ...chemaSettingsSetRetrySettingsSchemaServiceStubSettings.java | 3 ++- ...criptionSettingsSetRetrySettingsSubscriberStubSettings.java | 3 ++- .../acknowledge/AcknowledgeAcknowledgeRequest.java | 3 ++- .../AcknowledgeCallableFutureCallAcknowledgeRequest.java | 3 ++- .../acknowledge/AcknowledgeStringListString.java | 3 ++- .../acknowledge/AcknowledgeSubscriptionNameListString.java | 3 ++- .../create/CreateSubscriptionAdminSettings1.java | 3 ++- .../create/CreateSubscriptionAdminSettings2.java | 3 ++- .../CreateSnapshotCallableFutureCallCreateSnapshotRequest.java | 3 ++- .../createsnapshot/CreateSnapshotCreateSnapshotRequest.java | 3 ++- .../createsnapshot/CreateSnapshotSnapshotNameString.java | 3 ++- .../CreateSnapshotSnapshotNameSubscriptionName.java | 3 ++- .../createsnapshot/CreateSnapshotStringString.java | 3 ++- .../createsnapshot/CreateSnapshotStringSubscriptionName.java | 3 ++- .../CreateSubscriptionCallableFutureCallSubscription.java | 3 ++- .../CreateSubscriptionStringStringPushConfigInt.java | 3 ++- .../CreateSubscriptionStringTopicNamePushConfigInt.java | 3 ++- .../createsubscription/CreateSubscriptionSubscription.java | 3 ++- .../CreateSubscriptionSubscriptionNameStringPushConfigInt.java | 3 ++- ...eateSubscriptionSubscriptionNameTopicNamePushConfigInt.java | 3 ++- .../DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java | 3 ++- .../deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java | 3 ++- .../deletesnapshot/DeleteSnapshotSnapshotName.java | 3 ++- .../deletesnapshot/DeleteSnapshotString.java | 3 ++- ...ubscriptionCallableFutureCallDeleteSubscriptionRequest.java | 3 ++- .../DeleteSubscriptionDeleteSubscriptionRequest.java | 3 ++- .../deletesubscription/DeleteSubscriptionString.java | 3 ++- .../deletesubscription/DeleteSubscriptionSubscriptionName.java | 3 ++- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 3 ++- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 3 ++- .../GetSnapshotCallableFutureCallGetSnapshotRequest.java | 3 ++- .../getsnapshot/GetSnapshotGetSnapshotRequest.java | 3 ++- .../getsnapshot/GetSnapshotSnapshotName.java | 3 ++- .../subscriptionadminclient/getsnapshot/GetSnapshotString.java | 3 ++- ...etSubscriptionCallableFutureCallGetSubscriptionRequest.java | 3 ++- .../getsubscription/GetSubscriptionGetSubscriptionRequest.java | 3 ++- .../getsubscription/GetSubscriptionString.java | 3 ++- .../getsubscription/GetSubscriptionSubscriptionName.java | 3 ++- .../ListSnapshotsCallableCallListSnapshotsRequest.java | 3 ++- .../ListSnapshotsListSnapshotsRequestIterateAll.java | 3 ++- ...stSnapshotsPagedCallableFutureCallListSnapshotsRequest.java | 3 ++- .../listsnapshots/ListSnapshotsProjectNameIterateAll.java | 3 ++- .../listsnapshots/ListSnapshotsStringIterateAll.java | 3 ++- .../ListSubscriptionsCallableCallListSubscriptionsRequest.java | 3 ++- .../ListSubscriptionsListSubscriptionsRequestIterateAll.java | 3 ++- ...iptionsPagedCallableFutureCallListSubscriptionsRequest.java | 3 ++- .../ListSubscriptionsProjectNameIterateAll.java | 3 ++- .../listsubscriptions/ListSubscriptionsStringIterateAll.java | 3 ++- ...yAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java | 3 ++- .../ModifyAckDeadlineModifyAckDeadlineRequest.java | 3 ++- .../ModifyAckDeadlineStringListStringInt.java | 3 ++- .../ModifyAckDeadlineSubscriptionNameListStringInt.java | 3 ++- ...ifyPushConfigCallableFutureCallModifyPushConfigRequest.java | 3 ++- .../ModifyPushConfigModifyPushConfigRequest.java | 3 ++- .../modifypushconfig/ModifyPushConfigStringPushConfig.java | 3 ++- .../ModifyPushConfigSubscriptionNamePushConfig.java | 3 ++- .../pull/PullCallableFutureCallPullRequest.java | 3 ++- .../v1/subscriptionadminclient/pull/PullPullRequest.java | 3 ++- .../v1/subscriptionadminclient/pull/PullStringBooleanInt.java | 3 ++- .../pubsub/v1/subscriptionadminclient/pull/PullStringInt.java | 3 ++- .../pull/PullSubscriptionNameBooleanInt.java | 3 ++- .../subscriptionadminclient/pull/PullSubscriptionNameInt.java | 3 ++- .../seek/SeekCallableFutureCallSeekRequest.java | 3 ++- .../v1/subscriptionadminclient/seek/SeekSeekRequest.java | 3 ++- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 3 ++- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 3 ++- .../StreamingPullCallableCallStreamingPullRequest.java | 3 ++- ...PermissionsCallableFutureCallTestIamPermissionsRequest.java | 3 ++- .../TestIamPermissionsTestIamPermissionsRequest.java | 3 ++- .../UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java | 3 ++- .../updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java | 3 ++- ...ubscriptionCallableFutureCallUpdateSubscriptionRequest.java | 3 ++- .../UpdateSubscriptionUpdateSubscriptionRequest.java | 3 ++- ...ptionSettingsSetRetrySettingsSubscriptionAdminSettings.java | 3 ++- .../v1/topicadminclient/create/CreateTopicAdminSettings1.java | 3 ++- .../v1/topicadminclient/create/CreateTopicAdminSettings2.java | 3 ++- .../createtopic/CreateTopicCallableFutureCallTopic.java | 3 ++- .../v1/topicadminclient/createtopic/CreateTopicString.java | 3 ++- .../v1/topicadminclient/createtopic/CreateTopicTopic.java | 3 ++- .../v1/topicadminclient/createtopic/CreateTopicTopicName.java | 3 ++- .../DeleteTopicCallableFutureCallDeleteTopicRequest.java | 3 ++- .../deletetopic/DeleteTopicDeleteTopicRequest.java | 3 ++- .../v1/topicadminclient/deletetopic/DeleteTopicString.java | 3 ++- .../v1/topicadminclient/deletetopic/DeleteTopicTopicName.java | 3 ++- ...ubscriptionCallableFutureCallDetachSubscriptionRequest.java | 3 ++- .../DetachSubscriptionDetachSubscriptionRequest.java | 3 ++- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 3 ++- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 3 ++- .../gettopic/GetTopicCallableFutureCallGetTopicRequest.java | 3 ++- .../v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java | 3 ++- .../pubsub/v1/topicadminclient/gettopic/GetTopicString.java | 3 ++- .../pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java | 3 ++- .../listtopics/ListTopicsCallableCallListTopicsRequest.java | 3 ++- .../listtopics/ListTopicsListTopicsRequestIterateAll.java | 3 ++- .../ListTopicsPagedCallableFutureCallListTopicsRequest.java | 3 ++- .../listtopics/ListTopicsProjectNameIterateAll.java | 3 ++- .../listtopics/ListTopicsStringIterateAll.java | 3 ++- ...istTopicSnapshotsCallableCallListTopicSnapshotsRequest.java | 3 ++- .../ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java | 3 ++- ...pshotsPagedCallableFutureCallListTopicSnapshotsRequest.java | 3 ++- .../listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java | 3 ++- .../ListTopicSnapshotsTopicNameIterateAll.java | 3 ++- ...SubscriptionsCallableCallListTopicSubscriptionsRequest.java | 3 ++- ...icSubscriptionsListTopicSubscriptionsRequestIterateAll.java | 3 ++- ...nsPagedCallableFutureCallListTopicSubscriptionsRequest.java | 3 ++- .../ListTopicSubscriptionsStringIterateAll.java | 3 ++- .../ListTopicSubscriptionsTopicNameIterateAll.java | 3 ++- .../publish/PublishCallableFutureCallPublishRequest.java | 3 ++- .../v1/topicadminclient/publish/PublishPublishRequest.java | 3 ++- .../publish/PublishStringListPubsubMessage.java | 3 ++- .../publish/PublishTopicNameListPubsubMessage.java | 3 ++- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 3 ++- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 3 ++- ...PermissionsCallableFutureCallTestIamPermissionsRequest.java | 3 ++- .../TestIamPermissionsTestIamPermissionsRequest.java | 3 ++- .../UpdateTopicCallableFutureCallUpdateTopicRequest.java | 3 ++- .../updatetopic/UpdateTopicUpdateTopicRequest.java | 3 ++- .../CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java | 3 ++- .../cloudredisclient/create/CreateCloudRedisSettings1.java | 3 ++- .../cloudredisclient/create/CreateCloudRedisSettings2.java | 3 ++- .../CreateInstanceAsyncCreateInstanceRequestGet.java | 3 ++- .../CreateInstanceAsyncLocationNameStringInstanceGet.java | 3 ++- .../CreateInstanceAsyncStringStringInstanceGet.java | 3 ++- .../CreateInstanceCallableFutureCallCreateInstanceRequest.java | 3 ++- ...stanceOperationCallableFutureCallCreateInstanceRequest.java | 3 ++- .../DeleteInstanceAsyncDeleteInstanceRequestGet.java | 3 ++- .../deleteinstance/DeleteInstanceAsyncInstanceNameGet.java | 3 ++- .../deleteinstance/DeleteInstanceAsyncStringGet.java | 3 ++- .../DeleteInstanceCallableFutureCallDeleteInstanceRequest.java | 3 ++- ...stanceOperationCallableFutureCallDeleteInstanceRequest.java | 3 ++- .../ExportInstanceAsyncExportInstanceRequestGet.java | 3 ++- .../ExportInstanceAsyncStringOutputConfigGet.java | 3 ++- .../ExportInstanceCallableFutureCallExportInstanceRequest.java | 3 ++- ...stanceOperationCallableFutureCallExportInstanceRequest.java | 3 ++- .../FailoverInstanceAsyncFailoverInstanceRequestGet.java | 3 ++- ...stanceNameFailoverInstanceRequestDataProtectionModeGet.java | 3 ++- ...syncStringFailoverInstanceRequestDataProtectionModeGet.java | 3 ++- ...loverInstanceCallableFutureCallFailoverInstanceRequest.java | 3 ++- ...anceOperationCallableFutureCallFailoverInstanceRequest.java | 3 ++- .../GetInstanceCallableFutureCallGetInstanceRequest.java | 3 ++- .../getinstance/GetInstanceGetInstanceRequest.java | 3 ++- .../cloudredisclient/getinstance/GetInstanceInstanceName.java | 3 ++- .../cloudredisclient/getinstance/GetInstanceString.java | 3 ++- ...thStringCallableFutureCallGetInstanceAuthStringRequest.java | 3 ++- .../GetInstanceAuthStringGetInstanceAuthStringRequest.java | 3 ++- .../GetInstanceAuthStringInstanceName.java | 3 ++- .../getinstanceauthstring/GetInstanceAuthStringString.java | 3 ++- .../ImportInstanceAsyncImportInstanceRequestGet.java | 3 ++- .../ImportInstanceAsyncStringInputConfigGet.java | 3 ++- .../ImportInstanceCallableFutureCallImportInstanceRequest.java | 3 ++- ...stanceOperationCallableFutureCallImportInstanceRequest.java | 3 ++- .../ListInstancesCallableCallListInstancesRequest.java | 3 ++- .../ListInstancesListInstancesRequestIterateAll.java | 3 ++- .../listinstances/ListInstancesLocationNameIterateAll.java | 3 ++- ...stInstancesPagedCallableFutureCallListInstancesRequest.java | 3 ++- .../listinstances/ListInstancesStringIterateAll.java | 3 ++- ...RescheduleMaintenanceRequestRescheduleTypeTimestampGet.java | 3 ++- ...cheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java | 3 ++- ...RescheduleMaintenanceRequestRescheduleTypeTimestampGet.java | 3 ++- ...ntenanceCallableFutureCallRescheduleMaintenanceRequest.java | 3 ++- ...perationCallableFutureCallRescheduleMaintenanceRequest.java | 3 ++- .../UpdateInstanceAsyncFieldMaskInstanceGet.java | 3 ++- .../UpdateInstanceAsyncUpdateInstanceRequestGet.java | 3 ++- .../UpdateInstanceCallableFutureCallUpdateInstanceRequest.java | 3 ++- ...stanceOperationCallableFutureCallUpdateInstanceRequest.java | 3 ++- .../UpgradeInstanceAsyncInstanceNameStringGet.java | 3 ++- .../upgradeinstance/UpgradeInstanceAsyncStringStringGet.java | 3 ++- .../UpgradeInstanceAsyncUpgradeInstanceRequestGet.java | 3 ++- ...pgradeInstanceCallableFutureCallUpgradeInstanceRequest.java | 3 ++- ...tanceOperationCallableFutureCallUpgradeInstanceRequest.java | 3 ++- .../GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java | 3 ++- ...InstanceSettingsSetRetrySettingsCloudRedisStubSettings.java | 3 ++- .../ComposeObjectCallableFutureCallComposeObjectRequest.java | 3 ++- .../composeobject/ComposeObjectComposeObjectRequest.java | 3 ++- .../v2/storageclient/create/CreateStorageSettings1.java | 3 ++- .../v2/storageclient/create/CreateStorageSettings2.java | 3 ++- .../CreateBucketCallableFutureCallCreateBucketRequest.java | 3 ++- .../createbucket/CreateBucketCreateBucketRequest.java | 3 ++- .../createbucket/CreateBucketProjectNameBucketString.java | 3 ++- .../createbucket/CreateBucketStringBucketString.java | 3 ++- .../CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java | 3 ++- .../createhmackey/CreateHmacKeyCreateHmacKeyRequest.java | 3 ++- .../createhmackey/CreateHmacKeyProjectNameString.java | 3 ++- .../storageclient/createhmackey/CreateHmacKeyStringString.java | 3 ++- ...otificationCallableFutureCallCreateNotificationRequest.java | 3 ++- .../CreateNotificationCreateNotificationRequest.java | 3 ++- .../CreateNotificationProjectNameNotification.java | 3 ++- .../CreateNotificationStringNotification.java | 3 ++- .../v2/storageclient/deletebucket/DeleteBucketBucketName.java | 3 ++- .../DeleteBucketCallableFutureCallDeleteBucketRequest.java | 3 ++- .../deletebucket/DeleteBucketDeleteBucketRequest.java | 3 ++- .../v2/storageclient/deletebucket/DeleteBucketString.java | 3 ++- .../DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java | 3 ++- .../deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java | 3 ++- .../deletehmackey/DeleteHmacKeyStringProjectName.java | 3 ++- .../storageclient/deletehmackey/DeleteHmacKeyStringString.java | 3 ++- ...otificationCallableFutureCallDeleteNotificationRequest.java | 3 ++- .../DeleteNotificationDeleteNotificationRequest.java | 3 ++- .../deletenotification/DeleteNotificationNotificationName.java | 3 ++- .../deletenotification/DeleteNotificationString.java | 3 ++- .../DeleteObjectCallableFutureCallDeleteObjectRequest.java | 3 ++- .../deleteobject/DeleteObjectDeleteObjectRequest.java | 3 ++- .../storageclient/deleteobject/DeleteObjectStringString.java | 3 ++- .../deleteobject/DeleteObjectStringStringLong.java | 3 ++- .../v2/storageclient/getbucket/GetBucketBucketName.java | 3 ++- .../getbucket/GetBucketCallableFutureCallGetBucketRequest.java | 3 ++- .../v2/storageclient/getbucket/GetBucketGetBucketRequest.java | 3 ++- .../storage/v2/storageclient/getbucket/GetBucketString.java | 3 ++- .../GetHmacKeyCallableFutureCallGetHmacKeyRequest.java | 3 ++- .../storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java | 3 ++- .../storageclient/gethmackey/GetHmacKeyStringProjectName.java | 3 ++- .../v2/storageclient/gethmackey/GetHmacKeyStringString.java | 3 ++- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 3 ++- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 3 ++- .../storageclient/getiampolicy/GetIamPolicyResourceName.java | 3 ++- .../v2/storageclient/getiampolicy/GetIamPolicyString.java | 3 ++- .../getnotification/GetNotificationBucketName.java | 3 ++- ...etNotificationCallableFutureCallGetNotificationRequest.java | 3 ++- .../getnotification/GetNotificationGetNotificationRequest.java | 3 ++- .../storageclient/getnotification/GetNotificationString.java | 3 ++- .../getobject/GetObjectCallableFutureCallGetObjectRequest.java | 3 ++- .../v2/storageclient/getobject/GetObjectGetObjectRequest.java | 3 ++- .../v2/storageclient/getobject/GetObjectStringString.java | 3 ++- .../v2/storageclient/getobject/GetObjectStringStringLong.java | 3 ++- ...rviceAccountCallableFutureCallGetServiceAccountRequest.java | 3 ++- .../GetServiceAccountGetServiceAccountRequest.java | 3 ++- .../getserviceaccount/GetServiceAccountProjectName.java | 3 ++- .../getserviceaccount/GetServiceAccountString.java | 3 ++- .../listbuckets/ListBucketsCallableCallListBucketsRequest.java | 3 ++- .../listbuckets/ListBucketsListBucketsRequestIterateAll.java | 3 ++- .../ListBucketsPagedCallableFutureCallListBucketsRequest.java | 3 ++- .../listbuckets/ListBucketsProjectNameIterateAll.java | 3 ++- .../storageclient/listbuckets/ListBucketsStringIterateAll.java | 3 ++- .../ListHmacKeysCallableCallListHmacKeysRequest.java | 3 ++- .../ListHmacKeysListHmacKeysRequestIterateAll.java | 3 ++- ...ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java | 3 ++- .../listhmackeys/ListHmacKeysProjectNameIterateAll.java | 3 ++- .../listhmackeys/ListHmacKeysStringIterateAll.java | 3 ++- .../ListNotificationsCallableCallListNotificationsRequest.java | 3 ++- .../ListNotificationsListNotificationsRequestIterateAll.java | 3 ++- ...cationsPagedCallableFutureCallListNotificationsRequest.java | 3 ++- .../ListNotificationsProjectNameIterateAll.java | 3 ++- .../listnotifications/ListNotificationsStringIterateAll.java | 3 ++- .../listobjects/ListObjectsCallableCallListObjectsRequest.java | 3 ++- .../listobjects/ListObjectsListObjectsRequestIterateAll.java | 3 ++- .../ListObjectsPagedCallableFutureCallListObjectsRequest.java | 3 ++- .../listobjects/ListObjectsProjectNameIterateAll.java | 3 ++- .../storageclient/listobjects/ListObjectsStringIterateAll.java | 3 ++- .../LockBucketRetentionPolicyBucketName.java | 3 ++- ...licyCallableFutureCallLockBucketRetentionPolicyRequest.java | 3 ++- ...kBucketRetentionPolicyLockBucketRetentionPolicyRequest.java | 3 ++- .../LockBucketRetentionPolicyString.java | 3 ++- ...ryWriteStatusCallableFutureCallQueryWriteStatusRequest.java | 3 ++- .../QueryWriteStatusQueryWriteStatusRequest.java | 3 ++- .../storageclient/querywritestatus/QueryWriteStatusString.java | 3 ++- .../readobject/ReadObjectCallableCallReadObjectRequest.java | 3 ++- .../RewriteObjectCallableFutureCallRewriteObjectRequest.java | 3 ++- .../rewriteobject/RewriteObjectRewriteObjectRequest.java | 3 ++- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 3 ++- .../setiampolicy/SetIamPolicyResourceNamePolicy.java | 3 ++- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 3 ++- .../storageclient/setiampolicy/SetIamPolicyStringPolicy.java | 3 ++- ...mableWriteCallableFutureCallStartResumableWriteRequest.java | 3 ++- .../StartResumableWriteStartResumableWriteRequest.java | 3 ++- ...PermissionsCallableFutureCallTestIamPermissionsRequest.java | 3 ++- .../TestIamPermissionsResourceNameListString.java | 3 ++- .../testiampermissions/TestIamPermissionsStringListString.java | 3 ++- .../TestIamPermissionsTestIamPermissionsRequest.java | 3 ++- .../updatebucket/UpdateBucketBucketFieldMask.java | 3 ++- .../UpdateBucketCallableFutureCallUpdateBucketRequest.java | 3 ++- .../updatebucket/UpdateBucketUpdateBucketRequest.java | 3 ++- .../UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java | 3 ++- .../updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java | 3 ++- .../updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java | 3 ++- .../UpdateObjectCallableFutureCallUpdateObjectRequest.java | 3 ++- .../updateobject/UpdateObjectObjectFieldMask.java | 3 ++- .../updateobject/UpdateObjectUpdateObjectRequest.java | 3 ++- .../WriteObjectClientStreamingCallWriteObjectRequest.java | 3 ++- .../DeleteBucketSettingsSetRetrySettingsStorageSettings.java | 3 ++- ...eleteBucketSettingsSetRetrySettingsStorageStubSettings.java | 3 ++- 746 files changed, 1492 insertions(+), 746 deletions(-) diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java index 7d8df5be33..b301dbf4d6 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest] @@ -41,4 +42,4 @@ public static void analyzeIamPolicyAnalyzeIamPolicyRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java index 04205518cd..8033a4c25b 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest] @@ -45,4 +46,4 @@ public static void analyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest() t } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java index 44c6584498..bf5fb799cd 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget] @@ -43,4 +44,4 @@ public static void analyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRe } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java index 417cf1a6bb..6647dbbaad 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest] @@ -47,4 +48,4 @@ public static void main(String[] args) throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java index be36fa0dda..92758f5643 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest] @@ -50,4 +51,4 @@ public static void main(String[] args) throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java index 27d015804e..17ae84ac76 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest] @@ -39,4 +40,4 @@ public static void analyzeMoveAnalyzeMoveRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java index 58a31af6d5..58ae9578e6 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest] @@ -43,4 +44,4 @@ public static void analyzeMoveCallableFutureCallAnalyzeMoveRequest() throws Exce } } } -// [END asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java index 8da027b4e3..457964becf 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest] @@ -46,4 +47,4 @@ public static void batchGetAssetsHistoryBatchGetAssetsHistoryRequest() throws Ex } } } -// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java index a8ca98b3d2..bc440c5c2d 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest] @@ -51,4 +52,4 @@ public static void batchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryR } } } -// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java index 05755bcd60..85d20c5053 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_create_assetservicesettings1] @@ -37,4 +38,4 @@ public static void createAssetServiceSettings1() throws Exception { AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); } } -// [END asset_v1_generated_assetserviceclient_create_assetservicesettings1] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_create_assetservicesettings1] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java index 40fb0fe00a..561c48f4e7 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_create_assetservicesettings2] @@ -34,4 +35,4 @@ public static void createAssetServiceSettings2() throws Exception { AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); } } -// [END asset_v1_generated_assetserviceclient_create_assetservicesettings2] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_create_assetservicesettings2] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java index dac23fcee9..03d781799e 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest] @@ -43,4 +44,4 @@ public static void createFeedCallableFutureCallCreateFeedRequest() throws Except } } } -// [END asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java index 3c1fa6ff45..0114db6e11 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_createfeed_createfeedrequest] @@ -40,4 +41,4 @@ public static void createFeedCreateFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_createfeed_createfeedrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_createfeed_createfeedrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java index c6dfa49cf5..443b241af4 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_createfeed_string] @@ -34,4 +35,4 @@ public static void createFeedString() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_createfeed_string] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_createfeed_string] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java index 487eec6dc7..7556239d9d 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest] @@ -42,4 +43,4 @@ public static void deleteFeedCallableFutureCallDeleteFeedRequest() throws Except } } } -// [END asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java index 4a421d2aa3..98ffb785e6 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest] @@ -39,4 +40,4 @@ public static void deleteFeedDeleteFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java index 0b9386cc45..b26866a7f6 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_deletefeed_feedname] @@ -35,4 +36,4 @@ public static void deleteFeedFeedName() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_deletefeed_feedname] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_deletefeed_feedname] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java index cbd0b06275..a7a53a7bca 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_deletefeed_string] @@ -35,4 +36,4 @@ public static void deleteFeedString() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_deletefeed_string] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_deletefeed_string] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java index ac1231b82e..8194c7a58f 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget] @@ -48,4 +49,4 @@ public static void exportAssetsAsyncExportAssetsRequestGet() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java index 4a8ab4d8ba..e93d6b8b62 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest] @@ -51,4 +52,4 @@ public static void exportAssetsCallableFutureCallExportAssetsRequest() throws Ex } } } -// [END asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java index d93a56c0d8..c377bf6b3f 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest] @@ -52,4 +53,4 @@ public static void exportAssetsOperationCallableFutureCallExportAssetsRequest() } } } -// [END asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java index dff0833951..c1406b42bb 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest] @@ -42,4 +43,4 @@ public static void getFeedCallableFutureCallGetFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java index 83750fdf70..20cfc495c3 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_getfeed_feedname] @@ -35,4 +36,4 @@ public static void getFeedFeedName() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_getfeed_feedname] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_getfeed_feedname] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java index 4fa72079b3..2550b1c76d 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_getfeed_getfeedrequest] @@ -39,4 +40,4 @@ public static void getFeedGetFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_getfeed_getfeedrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_getfeed_getfeedrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java index 956051716b..f79c07f025 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_getfeed_string] @@ -35,4 +36,4 @@ public static void getFeedString() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_getfeed_string] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_getfeed_string] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java index 042d342320..354f1ce6c8 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest] @@ -61,4 +62,4 @@ public static void listAssetsCallableCallListAssetsRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java index bdb2e2fb63..2bbe47cb09 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall] @@ -50,4 +51,4 @@ public static void listAssetsListAssetsRequestIterateAll() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java index 62f7ef789e..8bfb26f22c 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest] @@ -53,4 +54,4 @@ public static void listAssetsPagedCallableFutureCallListAssetsRequest() throws E } } } -// [END asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java index cceaaf5c2a..c26d090d9c 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall] @@ -38,4 +39,4 @@ public static void listAssetsResourceNameIterateAll() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java index 82a58a7c5e..838f602010 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_listassets_stringiterateall] @@ -37,4 +38,4 @@ public static void listAssetsStringIterateAll() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listassets_stringiterateall] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_listassets_stringiterateall] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java index 5d9282cbe6..2deda4a1f6 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest] @@ -40,4 +41,4 @@ public static void listFeedsCallableFutureCallListFeedsRequest() throws Exceptio } } } -// [END asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java index 0d84324bbc..2fdcbcaed0 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest] @@ -36,4 +37,4 @@ public static void listFeedsListFeedsRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java index 447d2802a2..75f230f39b 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_listfeeds_string] @@ -34,4 +35,4 @@ public static void listFeedsString() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listfeeds_string] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_listfeeds_string] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java index 1ca6c38c64..a7bcfc381c 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest] @@ -59,4 +60,4 @@ public static void searchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest() } } } -// [END asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java index 9306d1036d..4a8f6adf49 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest] @@ -51,4 +52,4 @@ public static void searchAllIamPoliciesPagedCallableFutureCallSearchAllIamPolici } } } -// [END asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java index 91a0ee5b8e..289c3d42f9 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall] @@ -47,4 +48,4 @@ public static void searchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll() t } } } -// [END asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java index ce343fa1f7..7230af9685 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall] @@ -38,4 +39,4 @@ public static void searchAllIamPoliciesStringStringIterateAll() throws Exception } } } -// [END asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java index 742d20f39a..8d27a8f8f3 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest] @@ -60,4 +61,4 @@ public static void searchAllResourcesCallableCallSearchAllResourcesRequest() thr } } } -// [END asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java index 8a005df39d..e959132efc 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest] @@ -53,4 +54,4 @@ public static void searchAllResourcesPagedCallableFutureCallSearchAllResourcesRe } } } -// [END asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java index 583e7293e2..019a507016 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall] @@ -49,4 +50,4 @@ public static void searchAllResourcesSearchAllResourcesRequestIterateAll() throw } } } -// [END asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java index b5320cf8c7..55da8a9dec 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall] @@ -41,4 +42,4 @@ public static void searchAllResourcesStringStringListStringIterateAll() throws E } } } -// [END asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java index cfe9198149..bb6c4e1129 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest] @@ -43,4 +44,4 @@ public static void updateFeedCallableFutureCallUpdateFeedRequest() throws Except } } } -// [END asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java index 72f0cba95a..98d60e90fd 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_updatefeed_feed] @@ -34,4 +35,4 @@ public static void updateFeedFeed() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_updatefeed_feed] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_updatefeed_feed] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java index a173248a21..e3e5a18b93 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest] @@ -40,4 +41,4 @@ public static void updateFeedUpdateFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest] \ No newline at end of file +// [END asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java index 4f1778c478..599f154a93 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.samples; // [START asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings] @@ -42,4 +43,4 @@ public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSett AssetServiceSettings assetServiceSettings = assetServiceSettingsBuilder.build(); } } -// [END asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings] \ No newline at end of file +// [END asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java index 38eee3f66b..cc33bab4d7 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.asset.v1.stub.samples; // [START asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings] @@ -43,4 +44,4 @@ public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStub AssetServiceStubSettings assetServiceSettings = assetServiceSettingsBuilder.build(); } } -// [END asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings] \ No newline at end of file +// [END asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java index 6892c11d9a..8fbed41fde 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest] @@ -53,4 +54,4 @@ public static void checkAndMutateRowCallableFutureCallCheckAndMutateRowRequest() } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java index 2cecfb182a..51b2828733 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest] @@ -48,4 +49,4 @@ public static void checkAndMutateRowCheckAndMutateRowRequest() throws Exception } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java index cfb4ea77ab..c10236c816 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation] @@ -47,4 +48,4 @@ public static void checkAndMutateRowStringByteStringRowFilterListMutationListMut } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java index 006fb254b1..2457943adb 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring] @@ -48,4 +49,4 @@ public static void checkAndMutateRowStringByteStringRowFilterListMutationListMut } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java index 58611bd996..e58c1cde29 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation] @@ -47,4 +48,4 @@ public static void checkAndMutateRowTableNameByteStringRowFilterListMutationList } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java index 836740733d..3377e5b097 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring] @@ -48,4 +49,4 @@ public static void checkAndMutateRowTableNameByteStringRowFilterListMutationList } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java index d311f78e2f..a4ba2a782f 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1] @@ -38,4 +39,4 @@ public static void createBaseBigtableDataSettings1() throws Exception { BaseBigtableDataClient.create(baseBigtableDataSettings); } } -// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java index 40cd58542f..ae55b74628 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2] @@ -35,4 +36,4 @@ public static void createBaseBigtableDataSettings2() throws Exception { BaseBigtableDataClient.create(baseBigtableDataSettings); } } -// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java index d83bea5864..25898e8301 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest] @@ -49,4 +50,4 @@ public static void mutateRowCallableFutureCallMutateRowRequest() throws Exceptio } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java index 31fe74d654..ae8a7d22f4 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest] @@ -45,4 +46,4 @@ public static void mutateRowMutateRowRequest() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java index dac1ce9b86..ff763494c4 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation] @@ -41,4 +42,4 @@ public static void mutateRowStringByteStringListMutation() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java index 58fa35fb9d..f3dff627d2 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring] @@ -43,4 +44,4 @@ public static void mutateRowStringByteStringListMutationString() throws Exceptio } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java index b7285e37e4..254e03f478 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation] @@ -41,4 +42,4 @@ public static void mutateRowTableNameByteStringListMutation() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java index 4b29f571fc..addec9628e 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring] @@ -43,4 +44,4 @@ public static void mutateRowTableNameByteStringListMutationString() throws Excep } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java index ec15915043..a1fd0ecbd7 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest] @@ -47,4 +48,4 @@ public static void mutateRowsCallableCallMutateRowsRequest() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java index c6a90394c3..00b2bf117d 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest] @@ -50,4 +51,4 @@ public static void readModifyWriteRowCallableFutureCallReadModifyWriteRowRequest } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java index 3b20106fad..0ef31761d0 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest] @@ -45,4 +46,4 @@ public static void readModifyWriteRowReadModifyWriteRowRequest() throws Exceptio } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java index 563cb3448e..f3d50f1a5a 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule] @@ -42,4 +43,4 @@ public static void readModifyWriteRowStringByteStringListReadModifyWriteRule() t } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java index 258ecd25bd..20aa2c8a1c 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring] @@ -44,4 +45,4 @@ public static void readModifyWriteRowStringByteStringListReadModifyWriteRuleStri } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java index 980d40a07e..edbfd9b233 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule] @@ -43,4 +44,4 @@ public static void readModifyWriteRowTableNameByteStringListReadModifyWriteRule( } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java index 371d030be9..adeb4b7cb9 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring] @@ -44,4 +45,4 @@ public static void readModifyWriteRowTableNameByteStringListReadModifyWriteRuleS } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java index b1d83d0919..0bb9c94d79 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest] @@ -50,4 +51,4 @@ public static void readRowsCallableCallReadRowsRequest() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java index 6ab86c934a..56e0e54524 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest] @@ -45,4 +46,4 @@ public static void sampleRowKeysCallableCallSampleRowKeysRequest() throws Except } } } -// [END bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java index 0807cccc25..24f1863d4b 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.samples; // [START bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings] @@ -42,4 +43,4 @@ public static void mutateRowSettingsSetRetrySettingsBaseBigtableDataSettings() t BaseBigtableDataSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build(); } } -// [END bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings] \ No newline at end of file +// [END bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java index 21ecfbb4db..c7d392fed4 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.bigtable.data.v2.stub.samples; // [START bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings] @@ -42,4 +43,4 @@ public static void mutateRowSettingsSetRetrySettingsBigtableStubSettings() throw BigtableStubSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build(); } } -// [END bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings] \ No newline at end of file +// [END bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java index 154d69e13c..49a6d4be6d 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall] @@ -47,4 +48,4 @@ public static void aggregatedListAggregatedListAddressesRequestIterateAll() thro } } } -// [END compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java index cc1465323c..6d5836e406 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest] @@ -57,4 +58,4 @@ public static void aggregatedListCallableCallAggregatedListAddressesRequest() th } } } -// [END compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java index 2ab1b8b34e..96bf2bfd52 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest] @@ -51,4 +52,4 @@ public static void aggregatedListPagedCallableFutureCallAggregatedListAddressesR } } } -// [END compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java index 699d5bcae4..e510fbc49d 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall] @@ -38,4 +39,4 @@ public static void aggregatedListStringIterateAll() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java index 05d1ce08f8..bced002fd0 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_create_addressessettings1] @@ -37,4 +38,4 @@ public static void createAddressesSettings1() throws Exception { AddressesClient addressesClient = AddressesClient.create(addressesSettings); } } -// [END compute_v1small_generated_addressesclient_create_addressessettings1] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_create_addressessettings1] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java index 1e0b7150c3..0d587d33c3 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_create_addressessettings2] @@ -34,4 +35,4 @@ public static void createAddressesSettings2() throws Exception { AddressesClient addressesClient = AddressesClient.create(addressesSettings); } } -// [END compute_v1small_generated_addressesclient_create_addressessettings2] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_create_addressessettings2] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java index 935038ee83..7ed790561d 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget] @@ -41,4 +42,4 @@ public static void deleteAsyncDeleteAddressRequestGet() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java index aa1d5aea59..f11b68f911 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_delete_asyncstringstringstringget] @@ -36,4 +37,4 @@ public static void deleteAsyncStringStringStringGet() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_delete_asyncstringstringstringget] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_delete_asyncstringstringstringget] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java index cc6680325b..98027a8ed3 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest] @@ -44,4 +45,4 @@ public static void deleteCallableFutureCallDeleteAddressRequest() throws Excepti } } } -// [END compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java index df160a5e0b..1f81220862 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest] @@ -45,4 +46,4 @@ public static void deleteOperationCallableFutureCallDeleteAddressRequest() throw } } } -// [END compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java index 18cb9a5209..ae7529ce9c 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget] @@ -42,4 +43,4 @@ public static void insertAsyncInsertAddressRequestGet() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java index 23f1bf4132..64b383c300 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget] @@ -37,4 +38,4 @@ public static void insertAsyncStringStringAddressGet() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java index a481cb1ce1..7a2bf21647 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest] @@ -45,4 +46,4 @@ public static void insertCallableFutureCallInsertAddressRequest() throws Excepti } } } -// [END compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java index 596c557c75..0000437e5b 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest] @@ -46,4 +47,4 @@ public static void insertOperationCallableFutureCallInsertAddressRequest() throw } } } -// [END compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java index 2bc8421312..7994515a9c 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest] @@ -56,4 +57,4 @@ public static void listCallableCallListAddressesRequest() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java index 192ead32c4..63db0cc722 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall] @@ -45,4 +46,4 @@ public static void listListAddressesRequestIterateAll() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java index 8d8272360b..f831ddd95d 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest] @@ -48,4 +49,4 @@ public static void listPagedCallableFutureCallListAddressesRequest() throws Exce } } } -// [END compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java index 39eac4e37b..58d5a49b20 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressesclient_list_stringstringstringiterateall] @@ -38,4 +39,4 @@ public static void listStringStringStringIterateAll() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_list_stringstringstringiterateall] \ No newline at end of file +// [END compute_v1small_generated_addressesclient_list_stringstringstringiterateall] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java index 694a0fbbb6..700d22da4e 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings] @@ -41,4 +42,4 @@ public static void aggregatedListSettingsSetRetrySettingsAddressesSettings() thr AddressesSettings addressesSettings = addressesSettingsBuilder.build(); } } -// [END compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings] \ No newline at end of file +// [END compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java index 31dec76596..69ed4a6617 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1] @@ -38,4 +39,4 @@ public static void createRegionOperationsSettings1() throws Exception { RegionOperationsClient.create(regionOperationsSettings); } } -// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java index e4d72dc19e..b46641796b 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2] @@ -35,4 +36,4 @@ public static void createRegionOperationsSettings2() throws Exception { RegionOperationsClient.create(regionOperationsSettings); } } -// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java index 27115bf71c..b8b71cc14b 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest] @@ -43,4 +44,4 @@ public static void getCallableFutureCallGetRegionOperationRequest() throws Excep } } } -// [END compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java index 8f7522ac9b..e43f34b0be 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest] @@ -40,4 +41,4 @@ public static void getGetRegionOperationRequest() throws Exception { } } } -// [END compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java index a6d50266c5..99c26d6a3e 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationsclient_get_stringstringstring] @@ -36,4 +37,4 @@ public static void getStringStringString() throws Exception { } } } -// [END compute_v1small_generated_regionoperationsclient_get_stringstringstring] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsclient_get_stringstringstring] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java index 35868e5f67..1114c049f1 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest] @@ -43,4 +44,4 @@ public static void waitCallableFutureCallWaitRegionOperationRequest() throws Exc } } } -// [END compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java index a0d6a5bb26..03de391587 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationsclient_wait_stringstringstring] @@ -36,4 +37,4 @@ public static void waitStringStringString() throws Exception { } } } -// [END compute_v1small_generated_regionoperationsclient_wait_stringstringstring] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsclient_wait_stringstringstring] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java index f136c86c40..aaf0fe6de8 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest] @@ -40,4 +41,4 @@ public static void waitWaitRegionOperationRequest() throws Exception { } } } -// [END compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java index 0567d73850..a6d4c29216 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.samples; // [START compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings] @@ -42,4 +43,4 @@ public static void getSettingsSetRetrySettingsRegionOperationsSettings() throws RegionOperationsSettings regionOperationsSettings = regionOperationsSettingsBuilder.build(); } } -// [END compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings] \ No newline at end of file +// [END compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java index a0b9c4cc05..4276d48cdc 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.stub.samples; // [START compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings] @@ -42,4 +43,4 @@ public static void aggregatedListSettingsSetRetrySettingsAddressesStubSettings() AddressesStubSettings addressesSettings = addressesSettingsBuilder.build(); } } -// [END compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings] \ No newline at end of file +// [END compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java index f8cdb0c511..cc867028ac 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.compute.v1small.stub.samples; // [START compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings] @@ -42,4 +43,4 @@ public static void getSettingsSetRetrySettingsRegionOperationsStubSettings() thr RegionOperationsStubSettings regionOperationsSettings = regionOperationsSettingsBuilder.build(); } } -// [END compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings] \ No newline at end of file +// [END compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java index 419a302cad..279aac61ee 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1] @@ -37,4 +38,4 @@ public static void createIamCredentialsSettings1() throws Exception { IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); } } -// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java index bcb80a9f9f..a4826fd697 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2] @@ -34,4 +35,4 @@ public static void createIamCredentialsSettings2() throws Exception { IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); } } -// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java index 9ab356fc55..d3175fd2f4 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest] @@ -49,4 +50,4 @@ public static void generateAccessTokenCallableFutureCallGenerateAccessTokenReque } } } -// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java index 14e0b81fc3..a1114ac8f4 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest] @@ -44,4 +45,4 @@ public static void generateAccessTokenGenerateAccessTokenRequest() throws Except } } } -// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java index 853762b74e..226b2145b8 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration] @@ -43,4 +44,4 @@ public static void generateAccessTokenServiceAccountNameListStringListStringDura } } } -// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java index 18e5aa92c4..fdaf352a06 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration] @@ -42,4 +43,4 @@ public static void generateAccessTokenStringListStringListStringDuration() throw } } } -// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java index 98d3751573..94cefcb4f7 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest] @@ -47,4 +48,4 @@ public static void generateIdTokenCallableFutureCallGenerateIdTokenRequest() thr } } } -// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java index 245d0f6b7e..5def520635 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest] @@ -43,4 +44,4 @@ public static void generateIdTokenGenerateIdTokenRequest() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java index fd2920d9e9..8ce23709e6 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean] @@ -41,4 +42,4 @@ public static void generateIdTokenServiceAccountNameListStringStringBoolean() th } } } -// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java index df656ab584..01be488df4 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean] @@ -41,4 +42,4 @@ public static void generateIdTokenStringListStringStringBoolean() throws Excepti } } } -// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java index aceff97566..b4999407ac 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest] @@ -47,4 +48,4 @@ public static void signBlobCallableFutureCallSignBlobRequest() throws Exception } } } -// [END credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java index 5d20bb5b01..b9fc259c08 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring] @@ -40,4 +41,4 @@ public static void signBlobServiceAccountNameListStringByteString() throws Excep } } } -// [END credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java index b2e543aec8..980968fa98 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest] @@ -43,4 +44,4 @@ public static void signBlobSignBlobRequest() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java index ee5458f95a..7fc2ff2729 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring] @@ -40,4 +41,4 @@ public static void signBlobStringListStringByteString() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java index 2ae94bb351..bb9137dc0a 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest] @@ -46,4 +47,4 @@ public static void signJwtCallableFutureCallSignJwtRequest() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java index d3fd1acf61..4ad24d93b5 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring] @@ -39,4 +40,4 @@ public static void signJwtServiceAccountNameListStringString() throws Exception } } } -// [END credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java index 9d1fd78a41..94912bd6b4 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest] @@ -42,4 +43,4 @@ public static void signJwtSignJwtRequest() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java index 78f2f7a52e..ebec0650d2 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring] @@ -39,4 +40,4 @@ public static void signJwtStringListStringString() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java index 4580d28591..a716435457 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.samples; // [START credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings] @@ -43,4 +44,4 @@ public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsSett IamCredentialsSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build(); } } -// [END credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java index ca13e6bbb4..e436fa3f31 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.iam.credentials.v1.stub.samples; // [START credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings] @@ -43,4 +44,4 @@ public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsStub IamCredentialsStubSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build(); } } -// [END credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings] \ No newline at end of file +// [END credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java index 83cb630aaf..19e13b595c 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicyclient_create_iampolicysettings1] @@ -37,4 +38,4 @@ public static void createIAMPolicySettings1() throws Exception { IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings); } } -// [END iam_v1_generated_iampolicyclient_create_iampolicysettings1] \ No newline at end of file +// [END iam_v1_generated_iampolicyclient_create_iampolicysettings1] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java index 489eb602e9..c0aa9f1c20 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicyclient_create_iampolicysettings2] @@ -34,4 +35,4 @@ public static void createIAMPolicySettings2() throws Exception { IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings); } } -// [END iam_v1_generated_iampolicyclient_create_iampolicysettings2] \ No newline at end of file +// [END iam_v1_generated_iampolicyclient_create_iampolicysettings2] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 907191d7ee..7e21845bac 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest] @@ -43,4 +44,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file +// [END iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 717f96be75..6bc1bab93a 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest] @@ -40,4 +41,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest] \ No newline at end of file +// [END iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index 20d7d2dd31..df518a1cb4 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest] @@ -42,4 +43,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file +// [END iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index 12177c0620..36fa34ef8d 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest] @@ -39,4 +40,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest] \ No newline at end of file +// [END iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index 388050d418..8689bbfaab 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest] @@ -45,4 +46,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file +// [END iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index 1a68379dd0..d851f32861 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest] @@ -40,4 +41,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file +// [END iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java index eacab86dee..aba42f02b5 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.samples; // [START iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings] @@ -41,4 +42,4 @@ public static void setIamPolicySettingsSetRetrySettingsIAMPolicySettings() throw IAMPolicySettings iAMPolicySettings = iAMPolicySettingsBuilder.build(); } } -// [END iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings] \ No newline at end of file +// [END iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java index e9e8102baf..328e845616 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.iam.v1.stub.samples; // [START iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings] @@ -41,4 +42,4 @@ public static void setIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings() t IAMPolicyStubSettings iAMPolicySettings = iAMPolicySettingsBuilder.build(); } } -// [END iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings] \ No newline at end of file +// [END iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java index 0898f33e64..3d00fd4d4c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest] @@ -51,4 +52,4 @@ public static void asymmetricDecryptAsymmetricDecryptRequest() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java index 1c1ccdcc4d..d804b81625 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest] @@ -56,4 +57,4 @@ public static void asymmetricDecryptCallableFutureCallAsymmetricDecryptRequest() } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java index 102fabce9c..2baa8d76f4 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring] @@ -41,4 +42,4 @@ public static void asymmetricDecryptCryptoKeyVersionNameByteString() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java index 03afb42e8b..6ba421d91c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring] @@ -42,4 +43,4 @@ public static void asymmetricDecryptStringByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java index b8c7b610e0..9a29a299dd 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest] @@ -51,4 +52,4 @@ public static void asymmetricSignAsymmetricSignRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java index f5e1794016..30a05a2730 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest] @@ -55,4 +56,4 @@ public static void asymmetricSignCallableFutureCallAsymmetricSignRequest() throw } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java index 6ca4e379ee..dedc3b5696 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest] @@ -40,4 +41,4 @@ public static void asymmetricSignCryptoKeyVersionNameDigest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java index c55883f341..76bcf2600a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest] @@ -41,4 +42,4 @@ public static void asymmetricSignStringDigest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java index b2133d5352..4a14a19450 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1] @@ -38,4 +39,4 @@ public static void createKeyManagementServiceSettings1() throws Exception { KeyManagementServiceClient.create(keyManagementServiceSettings); } } -// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java index e58560f37c..0360eef270 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2] @@ -35,4 +36,4 @@ public static void createKeyManagementServiceSettings2() throws Exception { KeyManagementServiceClient.create(keyManagementServiceSettings); } } -// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java index d92ad8d71d..2b96b8574f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest] @@ -47,4 +48,4 @@ public static void createCryptoKeyCallableFutureCallCreateCryptoKeyRequest() thr } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java index c55540e7bb..10a7d021d3 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest] @@ -43,4 +44,4 @@ public static void createCryptoKeyCreateCryptoKeyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java index dbc7a7a84c..e9067d766b 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey] @@ -39,4 +40,4 @@ public static void createCryptoKeyKeyRingNameStringCryptoKey() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java index dd0bb05866..5bcc48ec10 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey] @@ -39,4 +40,4 @@ public static void createCryptoKeyStringStringCryptoKey() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java index 3e0e2b0411..eed882aba5 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest] @@ -48,4 +49,4 @@ public static void createCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersio } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java index 344b6676cf..60c9fcce52 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest] @@ -43,4 +44,4 @@ public static void createCryptoKeyVersionCreateCryptoKeyVersionRequest() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java index 6e1dd4e58b..2bddd5f140 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion] @@ -39,4 +40,4 @@ public static void createCryptoKeyVersionCryptoKeyNameCryptoKeyVersion() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java index 8827d724a3..50e4bbee34 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion] @@ -39,4 +40,4 @@ public static void createCryptoKeyVersionStringCryptoKeyVersion() throws Excepti } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java index c3bc13ff0a..bc0e8fddc7 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest] @@ -46,4 +47,4 @@ public static void createImportJobCallableFutureCallCreateImportJobRequest() thr } } } -// [END kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java index b11acbc002..ba996b9247 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest] @@ -42,4 +43,4 @@ public static void createImportJobCreateImportJobRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java index 60f00d248e..52ae4a6a1d 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob] @@ -39,4 +40,4 @@ public static void createImportJobKeyRingNameStringImportJob() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java index a8e83c219b..d33570ed5a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob] @@ -39,4 +40,4 @@ public static void createImportJobStringStringImportJob() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java index 631abffe05..5e736db1f1 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest] @@ -46,4 +47,4 @@ public static void createKeyRingCallableFutureCallCreateKeyRingRequest() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java index a5d4fcb9a7..c4b249510d 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest] @@ -42,4 +43,4 @@ public static void createKeyRingCreateKeyRingRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java index 61f0f3b315..4edfc0412f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring] @@ -38,4 +39,4 @@ public static void createKeyRingLocationNameStringKeyRing() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java index 00466c562c..91db9a14a4 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring] @@ -38,4 +39,4 @@ public static void createKeyRingStringStringKeyRing() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java index 9b344c57b8..a627445e30 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest] @@ -52,4 +53,4 @@ public static void decryptCallableFutureCallDecryptRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java index 19dc47e1b5..2a0acd4a0e 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring] @@ -39,4 +40,4 @@ public static void decryptCryptoKeyNameByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java index 3bc8b39296..2bff7d1b89 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest] @@ -48,4 +49,4 @@ public static void decryptDecryptRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java index 5e4b03a796..9df8530bd5 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring] @@ -39,4 +40,4 @@ public static void decryptStringByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java index e0b00dafb4..eccd451bf7 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest] @@ -52,4 +53,4 @@ public static void destroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVers } } } -// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java index 917ef8df7e..3e5123ce43 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname] @@ -38,4 +39,4 @@ public static void destroyCryptoKeyVersionCryptoKeyVersionName() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java index 43799edc14..d8bd751715 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest] @@ -47,4 +48,4 @@ public static void destroyCryptoKeyVersionDestroyCryptoKeyVersionRequest() throw } } } -// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java index 65552bbe43..03f71ce4d5 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string] @@ -39,4 +40,4 @@ public static void destroyCryptoKeyVersionString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java index 909b013c31..665b9fc4e5 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest] @@ -52,4 +53,4 @@ public static void encryptCallableFutureCallEncryptRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java index 8ffa31906a..8540105afd 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest] @@ -48,4 +49,4 @@ public static void encryptEncryptRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java index 79cb639085..6ded5f3e84 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring] @@ -39,4 +40,4 @@ public static void encryptResourceNameByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java index 1de6457530..8be50bdf47 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring] @@ -39,4 +40,4 @@ public static void encryptStringByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java index 1e75a13e85..9e8bf8fe7f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest] @@ -46,4 +47,4 @@ public static void getCryptoKeyCallableFutureCallGetCryptoKeyRequest() throws Ex } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java index 57adcd44b2..13c73c06af 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname] @@ -37,4 +38,4 @@ public static void getCryptoKeyCryptoKeyName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java index 90478709ab..11fb25f74e 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest] @@ -42,4 +43,4 @@ public static void getCryptoKeyGetCryptoKeyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java index 1c6bb400c8..d7cd91b7fd 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getcryptokey_string] @@ -37,4 +38,4 @@ public static void getCryptoKeyString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_string] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_string] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java index ebb574938f..7e37a66333 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest] @@ -52,4 +53,4 @@ public static void getCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionReque } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java index 798df88b35..1acea326a3 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname] @@ -38,4 +39,4 @@ public static void getCryptoKeyVersionCryptoKeyVersionName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java index 6545b8e386..f22cff8fb6 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest] @@ -47,4 +48,4 @@ public static void getCryptoKeyVersionGetCryptoKeyVersionRequest() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java index d71aa674af..53e7aa21fb 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string] @@ -39,4 +40,4 @@ public static void getCryptoKeyVersionString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 5e3e3d2d70..4d40d7410c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] @@ -48,4 +49,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 2d07d0cfad..55a46996c7 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest] @@ -44,4 +45,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java index 529115d1a6..407ce71281 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest] @@ -46,4 +47,4 @@ public static void getImportJobCallableFutureCallGetImportJobRequest() throws Ex } } } -// [END kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java index 31aed7e7db..86cbe0e2ae 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest] @@ -42,4 +43,4 @@ public static void getImportJobGetImportJobRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java index 0ccdc067de..0b904b324c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname] @@ -37,4 +38,4 @@ public static void getImportJobImportJobName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java index 3a13e4406f..bb5ceb2848 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getimportjob_string] @@ -37,4 +38,4 @@ public static void getImportJobString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getimportjob_string] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_string] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java index 784cfe69c1..88983a64ef 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest] @@ -44,4 +45,4 @@ public static void getKeyRingCallableFutureCallGetKeyRingRequest() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java index 1b0692fc70..ebdcbc4dce 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest] @@ -40,4 +41,4 @@ public static void getKeyRingGetKeyRingRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java index 02de4baca3..5c5c19b8b8 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname] @@ -36,4 +37,4 @@ public static void getKeyRingKeyRingName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java index 5a98d309ed..86fbe24841 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getkeyring_string] @@ -36,4 +37,4 @@ public static void getKeyRingString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getkeyring_string] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_string] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java index 3954c23984..02864316cf 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest] @@ -40,4 +41,4 @@ public static void getLocationCallableFutureCallGetLocationRequest() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java index 98c3ec554f..c97821f604 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest] @@ -36,4 +37,4 @@ public static void getLocationGetLocationRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java index 4f0dcae0d0..073248d14d 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest] @@ -51,4 +52,4 @@ public static void getPublicKeyCallableFutureCallGetPublicKeyRequest() throws Ex } } } -// [END kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java index f33e263d11..2f753bec39 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname] @@ -38,4 +39,4 @@ public static void getPublicKeyCryptoKeyVersionName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java index 672c28cd85..e7e1172cf0 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest] @@ -47,4 +48,4 @@ public static void getPublicKeyGetPublicKeyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java index 4e6211bcb0..1e3284b063 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_getpublickey_string] @@ -39,4 +40,4 @@ public static void getPublicKeyString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getpublickey_string] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_string] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java index 2bd0ebea18..1f2442663f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest] @@ -48,4 +49,4 @@ public static void importCryptoKeyVersionCallableFutureCallImportCryptoKeyVersio } } } -// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java index 97df9724cf..a24f22027e 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest] @@ -43,4 +44,4 @@ public static void importCryptoKeyVersionImportCryptoKeyVersionRequest() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java index 73a3527df2..a1572e2504 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest] @@ -58,4 +59,4 @@ public static void listCryptoKeysCallableCallListCryptoKeysRequest() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java index ca91115317..a05fefdc32 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall] @@ -38,4 +39,4 @@ public static void listCryptoKeysKeyRingNameIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java index b0cb3db001..aadbde1352 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall] @@ -46,4 +47,4 @@ public static void listCryptoKeysListCryptoKeysRequestIterateAll() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java index d19c549cd6..817fdba90a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest] @@ -50,4 +51,4 @@ public static void listCryptoKeysPagedCallableFutureCallListCryptoKeysRequest() } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java index df37a3b3bb..2717b79970 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall] @@ -38,4 +39,4 @@ public static void listCryptoKeysStringIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java index 1aa88a4ecf..f879a29f54 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest] @@ -61,4 +62,4 @@ public static void listCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java index 010f9b9607..cdaf3c9beb 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall] @@ -40,4 +41,4 @@ public static void listCryptoKeyVersionsCryptoKeyNameIterateAll() throws Excepti } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java index 0206afbc39..a3129b9ebf 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall] @@ -50,4 +51,4 @@ public static void listCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll() } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java index 0fece00656..43ec06c526 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest] @@ -53,4 +54,4 @@ public static void listCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVers } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java index 9362ad3d02..dc1f195bcf 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall] @@ -40,4 +41,4 @@ public static void listCryptoKeyVersionsStringIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java index ca4d055de7..abb2ea9ea8 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest] @@ -58,4 +59,4 @@ public static void listImportJobsCallableCallListImportJobsRequest() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java index 5afdbbe6ec..b8eaec6d42 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall] @@ -38,4 +39,4 @@ public static void listImportJobsKeyRingNameIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java index 1b28132133..c4e46369b3 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall] @@ -46,4 +47,4 @@ public static void listImportJobsListImportJobsRequestIterateAll() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java index ae0fb1b448..929d037a98 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest] @@ -50,4 +51,4 @@ public static void listImportJobsPagedCallableFutureCallListImportJobsRequest() } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java index 97d192c562..b75d4665b3 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall] @@ -38,4 +39,4 @@ public static void listImportJobsStringIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java index 1b7859b8b1..29ddc12585 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest] @@ -58,4 +59,4 @@ public static void listKeyRingsCallableCallListKeyRingsRequest() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java index d7569ad2a9..b47038ad40 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall] @@ -46,4 +47,4 @@ public static void listKeyRingsListKeyRingsRequestIterateAll() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java index 99a09ff615..fedec9a1c6 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall] @@ -38,4 +39,4 @@ public static void listKeyRingsLocationNameIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java index 6c2c9150a9..d51957ac64 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest] @@ -50,4 +51,4 @@ public static void listKeyRingsPagedCallableFutureCallListKeyRingsRequest() thro } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java index cb0818d8f2..c18effc21f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall] @@ -38,4 +39,4 @@ public static void listKeyRingsStringIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java index 6127534c25..b6916b64ed 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest] @@ -56,4 +57,4 @@ public static void listLocationsCallableCallListLocationsRequest() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java index 15ca7b3c86..511ee07878 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall] @@ -44,4 +45,4 @@ public static void listLocationsListLocationsRequestIterateAll() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java index 117857a51d..abeb6a55bd 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest] @@ -48,4 +49,4 @@ public static void listLocationsPagedCallableFutureCallListLocationsRequest() th } } } -// [END kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java index 4ef8653f78..cba48e370d 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest] @@ -52,4 +53,4 @@ public static void restoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVers } } } -// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java index a0ff8e5684..8418b299fd 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname] @@ -38,4 +39,4 @@ public static void restoreCryptoKeyVersionCryptoKeyVersionName() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java index 028aa72f38..5181164b5a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest] @@ -47,4 +48,4 @@ public static void restoreCryptoKeyVersionRestoreCryptoKeyVersionRequest() throw } } } -// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java index c1bbbbb8b6..7fdaa16d8d 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string] @@ -39,4 +40,4 @@ public static void restoreCryptoKeyVersionString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index 72bea92ddd..d744399b0b 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] @@ -49,4 +50,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index f04572ef8e..c7d7af5a47 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest] @@ -44,4 +45,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java index 294b3171bf..21a064eb21 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest] @@ -45,4 +46,4 @@ public static void updateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest() thr } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java index 24a917db33..10d3572884 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask] @@ -37,4 +38,4 @@ public static void updateCryptoKeyCryptoKeyFieldMask() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java index 1d3e95ad18..369f58dc59 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest] @@ -41,4 +42,4 @@ public static void updateCryptoKeyUpdateCryptoKeyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java index 463eec5d76..c091e37fc1 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest] @@ -49,4 +50,4 @@ public static void main(String[] args) throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java index 9152868b43..f621261bbb 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring] @@ -39,4 +40,4 @@ public static void updateCryptoKeyPrimaryVersionCryptoKeyNameString() throws Exc } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java index 1992640f4b..ff865b7eef 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring] @@ -39,4 +40,4 @@ public static void updateCryptoKeyPrimaryVersionStringString() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java index adf3dbf62c..eb306f2efb 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest] @@ -44,4 +45,4 @@ public static void updateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionReq } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java index 47b2690701..71f030fd17 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest] @@ -46,4 +47,4 @@ public static void updateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersio } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java index 746d63936e..47aca6283a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask] @@ -38,4 +39,4 @@ public static void updateCryptoKeyVersionCryptoKeyVersionFieldMask() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java index 0723f78907..6d3d01d6f4 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest] @@ -41,4 +42,4 @@ public static void updateCryptoKeyVersionUpdateCryptoKeyVersionRequest() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest] \ No newline at end of file +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java index 45a8f65b1b..025651a0f3 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.samples; // [START kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings] @@ -44,4 +45,4 @@ public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceSetting keyManagementServiceSettingsBuilder.build(); } } -// [END kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings] \ No newline at end of file +// [END kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java index 866b63b5a3..959d248f15 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.kms.v1.stub.samples; // [START kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings] @@ -44,4 +45,4 @@ public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSet keyManagementServiceSettingsBuilder.build(); } } -// [END kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings] \ No newline at end of file +// [END kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java index f83add1ec7..e477d0aa9c 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_create_libraryservicesettings1] @@ -37,4 +38,4 @@ public static void createLibraryServiceSettings1() throws Exception { LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings); } } -// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings1] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings1] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java index f662ff7f01..3fc287590e 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_create_libraryservicesettings2] @@ -34,4 +35,4 @@ public static void createLibraryServiceSettings2() throws Exception { LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings); } } -// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings2] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings2] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java index 6edd38d719..9f0843b482 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest] @@ -43,4 +44,4 @@ public static void createBookCallableFutureCallCreateBookRequest() throws Except } } } -// [END library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java index e800591f3f..439d111720 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_createbook_createbookrequest] @@ -40,4 +41,4 @@ public static void createBookCreateBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createbook_createbookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_createbook_createbookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java index f433de963a..f6385ee586 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_createbook_shelfnamebook] @@ -36,4 +37,4 @@ public static void createBookShelfNameBook() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createbook_shelfnamebook] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_createbook_shelfnamebook] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java index 4570c8d24b..bd3a7759fb 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_createbook_stringbook] @@ -36,4 +37,4 @@ public static void createBookStringBook() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createbook_stringbook] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_createbook_stringbook] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java index 6db1dd2e6a..2eb1a61938 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest] @@ -39,4 +40,4 @@ public static void createShelfCallableFutureCallCreateShelfRequest() throws Exce } } } -// [END library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java index 583b0ee80a..0181a16db5 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_createshelf_createshelfrequest] @@ -36,4 +37,4 @@ public static void createShelfCreateShelfRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createshelf_createshelfrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_createshelf_createshelfrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java index dedad66b20..67ebaeab98 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_createshelf_shelf] @@ -34,4 +35,4 @@ public static void createShelfShelf() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createshelf_shelf] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_createshelf_shelf] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java index c9d79452bf..954496125c 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_deletebook_bookname] @@ -35,4 +36,4 @@ public static void deleteBookBookName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deletebook_bookname] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_deletebook_bookname] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java index 67c5cb400d..e740d6a42b 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest] @@ -42,4 +43,4 @@ public static void deleteBookCallableFutureCallDeleteBookRequest() throws Except } } } -// [END library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java index 7fc4b0f8ab..3fadac6775 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_deletebook_deletebookrequest] @@ -39,4 +40,4 @@ public static void deleteBookDeleteBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deletebook_deletebookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_deletebook_deletebookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java index 72edee404a..c3417c2a17 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_deletebook_string] @@ -35,4 +36,4 @@ public static void deleteBookString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deletebook_string] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_deletebook_string] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java index 790f673784..cb169ed800 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest] @@ -40,4 +41,4 @@ public static void deleteShelfCallableFutureCallDeleteShelfRequest() throws Exce } } } -// [END library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java index 673d9f96d9..5c8f0e26b6 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest] @@ -37,4 +38,4 @@ public static void deleteShelfDeleteShelfRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java index dd3810f20d..76db14f084 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_deleteshelf_shelfname] @@ -35,4 +36,4 @@ public static void deleteShelfShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deleteshelf_shelfname] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_deleteshelf_shelfname] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java index 528a001132..b33ee9763d 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_deleteshelf_string] @@ -35,4 +36,4 @@ public static void deleteShelfString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deleteshelf_string] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_deleteshelf_string] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java index b1e161df02..358f1f6892 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_getbook_bookname] @@ -35,4 +36,4 @@ public static void getBookBookName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getbook_bookname] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_getbook_bookname] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java index 2caea720af..950183bcd4 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest] @@ -40,4 +41,4 @@ public static void getBookCallableFutureCallGetBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java index 4126edcac9..755352dd1c 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_getbook_getbookrequest] @@ -37,4 +38,4 @@ public static void getBookGetBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getbook_getbookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_getbook_getbookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java index a1564c5d85..66a0b6f7f5 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_getbook_string] @@ -35,4 +36,4 @@ public static void getBookString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getbook_string] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_getbook_string] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java index 7b5be47cd2..b388ac9394 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest] @@ -40,4 +41,4 @@ public static void getShelfCallableFutureCallGetShelfRequest() throws Exception } } } -// [END library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java index d9a89b5c9d..850b1abd9f 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_getshelf_getshelfrequest] @@ -37,4 +38,4 @@ public static void getShelfGetShelfRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getshelf_getshelfrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_getshelf_getshelfrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java index e8a26321ab..c8e6581fb9 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_getshelf_shelfname] @@ -35,4 +36,4 @@ public static void getShelfShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getshelf_shelfname] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_getshelf_shelfname] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java index 6b624ecab0..6b9753120f 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_getshelf_string] @@ -35,4 +36,4 @@ public static void getShelfString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getshelf_string] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_getshelf_string] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java index c0dcfb58c7..4c2736b997 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest] @@ -54,4 +55,4 @@ public static void listBooksCallableCallListBooksRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java index b8e79b2536..b316b08690 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall] @@ -43,4 +44,4 @@ public static void listBooksListBooksRequestIterateAll() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java index 671d303e9f..1d7cbca64f 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest] @@ -46,4 +47,4 @@ public static void listBooksPagedCallableFutureCallListBooksRequest() throws Exc } } } -// [END library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java index e937a9a318..58fcb2f12e 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall] @@ -37,4 +38,4 @@ public static void listBooksShelfNameIterateAll() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java index b2a4a2d2de..8c14521043 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_listbooks_stringiterateall] @@ -37,4 +38,4 @@ public static void listBooksStringIterateAll() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listbooks_stringiterateall] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_listbooks_stringiterateall] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java index 6243673e02..c63c3d1f7c 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest] @@ -52,4 +53,4 @@ public static void listShelvesCallableCallListShelvesRequest() throws Exception } } } -// [END library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java index 0d6c08a34a..630935ea6d 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall] @@ -41,4 +42,4 @@ public static void listShelvesListShelvesRequestIterateAll() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java index 248ab6034c..b193fb3f1e 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest] @@ -44,4 +45,4 @@ public static void listShelvesPagedCallableFutureCallListShelvesRequest() throws } } } -// [END library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java index 4c272a08bc..40e9de36b9 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest] @@ -43,4 +44,4 @@ public static void mergeShelvesCallableFutureCallMergeShelvesRequest() throws Ex } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java index 80067edaf8..3e18871e17 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest] @@ -40,4 +41,4 @@ public static void mergeShelvesMergeShelvesRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java index 987d1a1afc..e8888e4653 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname] @@ -36,4 +37,4 @@ public static void mergeShelvesShelfNameShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java index 346802f50d..79253d8c1a 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring] @@ -36,4 +37,4 @@ public static void mergeShelvesShelfNameString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java index fc86cf7c30..eeb3f8e33f 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname] @@ -36,4 +37,4 @@ public static void mergeShelvesStringShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java index 509f8b507f..87661349ab 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_mergeshelves_stringstring] @@ -36,4 +37,4 @@ public static void mergeShelvesStringString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_stringstring] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_mergeshelves_stringstring] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java index 24d282e15f..0fe1b786e2 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_movebook_booknameshelfname] @@ -37,4 +38,4 @@ public static void moveBookBookNameShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_booknameshelfname] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_movebook_booknameshelfname] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java index fb0a8c1f9f..67bf2c81cc 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_movebook_booknamestring] @@ -37,4 +38,4 @@ public static void moveBookBookNameString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_booknamestring] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_movebook_booknamestring] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java index ab839d08e9..db6bde96cf 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest] @@ -44,4 +45,4 @@ public static void moveBookCallableFutureCallMoveBookRequest() throws Exception } } } -// [END library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java index 4bfab82b36..10af375671 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_movebook_movebookrequest] @@ -41,4 +42,4 @@ public static void moveBookMoveBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_movebookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_movebook_movebookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java index e831c40b9b..1160e768d4 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_movebook_stringshelfname] @@ -37,4 +38,4 @@ public static void moveBookStringShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_stringshelfname] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_movebook_stringshelfname] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java index e8978ccbdb..4ea069d544 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_movebook_stringstring] @@ -37,4 +38,4 @@ public static void moveBookStringString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_stringstring] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_movebook_stringstring] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java index da009f3664..b180d6ce9c 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_updatebook_bookfieldmask] @@ -36,4 +37,4 @@ public static void updateBookBookFieldMask() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_updatebook_bookfieldmask] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_updatebook_bookfieldmask] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java index 43f5b35e09..897ad3b92d 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest] @@ -43,4 +44,4 @@ public static void updateBookCallableFutureCallUpdateBookRequest() throws Except } } } -// [END library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java index 68b7c0ce6f..f6247004de 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryserviceclient_updatebook_updatebookrequest] @@ -40,4 +41,4 @@ public static void updateBookUpdateBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_updatebook_updatebookrequest] \ No newline at end of file +// [END library_v1_generated_libraryserviceclient_updatebook_updatebookrequest] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java index b5401cec2f..a05f9b61d8 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.samples; // [START library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings] @@ -42,4 +43,4 @@ public static void createShelfSettingsSetRetrySettingsLibraryServiceSettings() t LibraryServiceSettings libraryServiceSettings = libraryServiceSettingsBuilder.build(); } } -// [END library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings] \ No newline at end of file +// [END library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java index 04b6cb0118..6f7007f46c 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.example.library.v1.stub.samples; // [START library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings] @@ -43,4 +44,4 @@ public static void createShelfSettingsSetRetrySettingsLibraryServiceStubSettings LibraryServiceStubSettings libraryServiceSettings = libraryServiceSettingsBuilder.build(); } } -// [END library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings] \ No newline at end of file +// [END library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java index 600a857825..3937675299 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_create_configsettings1] @@ -37,4 +38,4 @@ public static void createConfigSettings1() throws Exception { ConfigClient configClient = ConfigClient.create(configSettings); } } -// [END logging_v2_generated_configclient_create_configsettings1] \ No newline at end of file +// [END logging_v2_generated_configclient_create_configsettings1] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java index f1a50a94b9..3b17c2649b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_create_configsettings2] @@ -33,4 +34,4 @@ public static void createConfigSettings2() throws Exception { ConfigClient configClient = ConfigClient.create(configSettings); } } -// [END logging_v2_generated_configclient_create_configsettings2] \ No newline at end of file +// [END logging_v2_generated_configclient_create_configsettings2] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java index d63f81a7ea..86ee440acb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest] @@ -44,4 +45,4 @@ public static void createBucketCallableFutureCallCreateBucketRequest() throws Ex } } } -// [END logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java index 999cb79bf5..7e076bde5e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createbucket_createbucketrequest] @@ -41,4 +42,4 @@ public static void createBucketCreateBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_createbucket_createbucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_createbucket_createbucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java index f78854ac0b..a6b0bd0256 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion] @@ -36,4 +37,4 @@ public static void createExclusionBillingAccountNameLogExclusion() throws Except } } } -// [END logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion] \ No newline at end of file +// [END logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java index 4484917458..fca2c93954 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest] @@ -43,4 +44,4 @@ public static void createExclusionCallableFutureCallCreateExclusionRequest() thr } } } -// [END logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java index 817cd34b5c..5fe87af68e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createexclusion_createexclusionrequest] @@ -40,4 +41,4 @@ public static void createExclusionCreateExclusionRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_createexclusion_createexclusionrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_createexclusion_createexclusionrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java index 79107fb488..8963539d0e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createexclusion_foldernamelogexclusion] @@ -36,4 +37,4 @@ public static void createExclusionFolderNameLogExclusion() throws Exception { } } } -// [END logging_v2_generated_configclient_createexclusion_foldernamelogexclusion] \ No newline at end of file +// [END logging_v2_generated_configclient_createexclusion_foldernamelogexclusion] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java index 97e890cac0..49c682edd9 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion] @@ -36,4 +37,4 @@ public static void createExclusionOrganizationNameLogExclusion() throws Exceptio } } } -// [END logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion] \ No newline at end of file +// [END logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java index 37ba43abba..520aaf6809 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createexclusion_projectnamelogexclusion] @@ -36,4 +37,4 @@ public static void createExclusionProjectNameLogExclusion() throws Exception { } } } -// [END logging_v2_generated_configclient_createexclusion_projectnamelogexclusion] \ No newline at end of file +// [END logging_v2_generated_configclient_createexclusion_projectnamelogexclusion] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java index d193a78c31..b4ebe432bb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createexclusion_stringlogexclusion] @@ -36,4 +37,4 @@ public static void createExclusionStringLogExclusion() throws Exception { } } } -// [END logging_v2_generated_configclient_createexclusion_stringlogexclusion] \ No newline at end of file +// [END logging_v2_generated_configclient_createexclusion_stringlogexclusion] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java index 4dc261e1c9..663ee0714c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createsink_billingaccountnamelogsink] @@ -36,4 +37,4 @@ public static void createSinkBillingAccountNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_billingaccountnamelogsink] \ No newline at end of file +// [END logging_v2_generated_configclient_createsink_billingaccountnamelogsink] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java index b4b897d669..b20ec81eb3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest] @@ -44,4 +45,4 @@ public static void createSinkCallableFutureCallCreateSinkRequest() throws Except } } } -// [END logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java index e8729f5070..688c2f15b7 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createsink_createsinkrequest] @@ -41,4 +42,4 @@ public static void createSinkCreateSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_createsinkrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_createsink_createsinkrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java index 46dd7f0d51..32c3d70143 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createsink_foldernamelogsink] @@ -36,4 +37,4 @@ public static void createSinkFolderNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_foldernamelogsink] \ No newline at end of file +// [END logging_v2_generated_configclient_createsink_foldernamelogsink] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java index 4e995d2bd9..80950a38ab 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createsink_organizationnamelogsink] @@ -36,4 +37,4 @@ public static void createSinkOrganizationNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_organizationnamelogsink] \ No newline at end of file +// [END logging_v2_generated_configclient_createsink_organizationnamelogsink] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java index b572a1e3c0..f16e2544eb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createsink_projectnamelogsink] @@ -36,4 +37,4 @@ public static void createSinkProjectNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_projectnamelogsink] \ No newline at end of file +// [END logging_v2_generated_configclient_createsink_projectnamelogsink] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java index d2e0fc17ef..9b4e271fa6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createsink_stringlogsink] @@ -36,4 +37,4 @@ public static void createSinkStringLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_stringlogsink] \ No newline at end of file +// [END logging_v2_generated_configclient_createsink_stringlogsink] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java index fdebdb8127..6bf9152127 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest] @@ -43,4 +44,4 @@ public static void createViewCallableFutureCallCreateViewRequest() throws Except } } } -// [END logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java index 7b1663c8be..783040184a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_createview_createviewrequest] @@ -40,4 +41,4 @@ public static void createViewCreateViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_createview_createviewrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_createview_createviewrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java index e958176022..a1c770a052 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest] @@ -44,4 +45,4 @@ public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Ex } } } -// [END logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java index 73d314001a..60c0cf2eb8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deletebucket_deletebucketrequest] @@ -41,4 +42,4 @@ public static void deleteBucketDeleteBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_deletebucket_deletebucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_deletebucket_deletebucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java index 722804b12e..c278395833 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest] @@ -43,4 +44,4 @@ public static void deleteExclusionCallableFutureCallDeleteExclusionRequest() thr } } } -// [END logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java index 2014c45da1..69bd702bf6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest] @@ -40,4 +41,4 @@ public static void deleteExclusionDeleteExclusionRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java index b8783886d4..cdc94b04a8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deleteexclusion_logexclusionname] @@ -35,4 +36,4 @@ public static void deleteExclusionLogExclusionName() throws Exception { } } } -// [END logging_v2_generated_configclient_deleteexclusion_logexclusionname] \ No newline at end of file +// [END logging_v2_generated_configclient_deleteexclusion_logexclusionname] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java index a74994eb4e..2881aea6ce 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deleteexclusion_string] @@ -35,4 +36,4 @@ public static void deleteExclusionString() throws Exception { } } } -// [END logging_v2_generated_configclient_deleteexclusion_string] \ No newline at end of file +// [END logging_v2_generated_configclient_deleteexclusion_string] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java index b52501e83a..6cd07a9cc2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest] @@ -42,4 +43,4 @@ public static void deleteSinkCallableFutureCallDeleteSinkRequest() throws Except } } } -// [END logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java index dc88d18b41..ed031ee5a8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deletesink_deletesinkrequest] @@ -39,4 +40,4 @@ public static void deleteSinkDeleteSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_deletesink_deletesinkrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_deletesink_deletesinkrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java index f568cae194..4169d95302 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deletesink_logsinkname] @@ -35,4 +36,4 @@ public static void deleteSinkLogSinkName() throws Exception { } } } -// [END logging_v2_generated_configclient_deletesink_logsinkname] \ No newline at end of file +// [END logging_v2_generated_configclient_deletesink_logsinkname] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java index 496295011b..c365abf660 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deletesink_string] @@ -35,4 +36,4 @@ public static void deleteSinkString() throws Exception { } } } -// [END logging_v2_generated_configclient_deletesink_string] \ No newline at end of file +// [END logging_v2_generated_configclient_deletesink_string] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java index c351fbef0a..2d9a7b45cd 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest] @@ -45,4 +46,4 @@ public static void deleteViewCallableFutureCallDeleteViewRequest() throws Except } } } -// [END logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java index 592f65210f..0b60b1d013 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_deleteview_deleteviewrequest] @@ -42,4 +43,4 @@ public static void deleteViewDeleteViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_deleteview_deleteviewrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_deleteview_deleteviewrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java index c74c8be32e..4fbd2a26b3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest] @@ -44,4 +45,4 @@ public static void getBucketCallableFutureCallGetBucketRequest() throws Exceptio } } } -// [END logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java index 236e7e87eb..60497f5acd 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getbucket_getbucketrequest] @@ -41,4 +42,4 @@ public static void getBucketGetBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getbucket_getbucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getbucket_getbucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java index 51577f099a..a5de57b6d5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest] @@ -42,4 +43,4 @@ public static void getCmekSettingsCallableFutureCallGetCmekSettingsRequest() thr } } } -// [END logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java index 0bff0cc1a1..ea168f1b8f 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest] @@ -39,4 +40,4 @@ public static void getCmekSettingsGetCmekSettingsRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java index 4d032976b4..9fc5cf3042 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest] @@ -43,4 +44,4 @@ public static void getExclusionCallableFutureCallGetExclusionRequest() throws Ex } } } -// [END logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java index a122fb3c4c..9bfacb10a5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getexclusion_getexclusionrequest] @@ -40,4 +41,4 @@ public static void getExclusionGetExclusionRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getexclusion_getexclusionrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getexclusion_getexclusionrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java index ad0511c0b3..978c50ad20 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getexclusion_logexclusionname] @@ -35,4 +36,4 @@ public static void getExclusionLogExclusionName() throws Exception { } } } -// [END logging_v2_generated_configclient_getexclusion_logexclusionname] \ No newline at end of file +// [END logging_v2_generated_configclient_getexclusion_logexclusionname] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java index e19dcde937..2bf7a3f262 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getexclusion_string] @@ -35,4 +36,4 @@ public static void getExclusionString() throws Exception { } } } -// [END logging_v2_generated_configclient_getexclusion_string] \ No newline at end of file +// [END logging_v2_generated_configclient_getexclusion_string] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java index 0d8a0bd641..cbc4fa72fb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest] @@ -42,4 +43,4 @@ public static void getSinkCallableFutureCallGetSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java index 82e8bf1311..43bcff3b1c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getsink_getsinkrequest] @@ -39,4 +40,4 @@ public static void getSinkGetSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getsink_getsinkrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getsink_getsinkrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java index 9f1e67ff3f..61d8aa72e5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getsink_logsinkname] @@ -35,4 +36,4 @@ public static void getSinkLogSinkName() throws Exception { } } } -// [END logging_v2_generated_configclient_getsink_logsinkname] \ No newline at end of file +// [END logging_v2_generated_configclient_getsink_logsinkname] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java index 2e7c8a98de..600b00b849 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getsink_string] @@ -35,4 +36,4 @@ public static void getSinkString() throws Exception { } } } -// [END logging_v2_generated_configclient_getsink_string] \ No newline at end of file +// [END logging_v2_generated_configclient_getsink_string] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java index 993725fce9..47c2d18fee 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest] @@ -45,4 +46,4 @@ public static void getViewCallableFutureCallGetViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java index cc144ab168..f0ee1c9490 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_getview_getviewrequest] @@ -42,4 +43,4 @@ public static void getViewGetViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getview_getviewrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_getview_getviewrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java index a851c6e8bd..4551109a99 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall] @@ -38,4 +39,4 @@ public static void listBucketsBillingAccountLocationNameIterateAll() throws Exce } } } -// [END logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java index 143d9baab9..554ade7e1a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest] @@ -54,4 +55,4 @@ public static void listBucketsCallableCallListBucketsRequest() throws Exception } } } -// [END logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java index 5c874ac6a6..f7c8d39aa2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall] @@ -37,4 +38,4 @@ public static void listBucketsFolderLocationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java index 5cbc40112b..b94773f3ae 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall] @@ -43,4 +44,4 @@ public static void listBucketsListBucketsRequestIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java index 7460d01d86..fde0b7e660 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listbuckets_locationnameiterateall] @@ -37,4 +38,4 @@ public static void listBucketsLocationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listbuckets_locationnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listbuckets_locationnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java index edd9f86ff8..9fc134e214 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall] @@ -37,4 +38,4 @@ public static void listBucketsOrganizationLocationNameIterateAll() throws Except } } } -// [END logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java index 97deda2041..22f7950640 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] @@ -46,4 +47,4 @@ public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws } } } -// [END logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java index 188594259b..6dc98d6900 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listbuckets_stringiterateall] @@ -37,4 +38,4 @@ public static void listBucketsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listbuckets_stringiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listbuckets_stringiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java index 668c44f979..bda88e1a38 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall] @@ -37,4 +38,4 @@ public static void listExclusionsBillingAccountNameIterateAll() throws Exception } } } -// [END logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java index a86c03c5ed..89ad566cbd 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest] @@ -54,4 +55,4 @@ public static void listExclusionsCallableCallListExclusionsRequest() throws Exce } } } -// [END logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java index 6a60a66c74..1d65181907 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listexclusions_foldernameiterateall] @@ -37,4 +38,4 @@ public static void listExclusionsFolderNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listexclusions_foldernameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listexclusions_foldernameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java index fed8ac565f..45f44f06c6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall] @@ -43,4 +44,4 @@ public static void listExclusionsListExclusionsRequestIterateAll() throws Except } } } -// [END logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java index 9904bb29e2..0095814237 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listexclusions_organizationnameiterateall] @@ -37,4 +38,4 @@ public static void listExclusionsOrganizationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listexclusions_organizationnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listexclusions_organizationnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java index a682d8d258..6ce3b5f9f1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest] @@ -47,4 +48,4 @@ public static void listExclusionsPagedCallableFutureCallListExclusionsRequest() } } } -// [END logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java index d10e03c4ec..24b81e2af7 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listexclusions_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listExclusionsProjectNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listexclusions_projectnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listexclusions_projectnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java index 3885d3cd0b..b02d45d8df 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listexclusions_stringiterateall] @@ -37,4 +38,4 @@ public static void listExclusionsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listexclusions_stringiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listexclusions_stringiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java index a9c0ff1931..ba0119000d 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listsinks_billingaccountnameiterateall] @@ -37,4 +38,4 @@ public static void listSinksBillingAccountNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_billingaccountnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listsinks_billingaccountnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java index 3c2da13c05..6619a1898f 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest] @@ -54,4 +55,4 @@ public static void listSinksCallableCallListSinksRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java index bcdb2cc221..06d59b2c96 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listsinks_foldernameiterateall] @@ -37,4 +38,4 @@ public static void listSinksFolderNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_foldernameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listsinks_foldernameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java index b021a8e7f7..83f701fb39 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listsinks_listsinksrequestiterateall] @@ -43,4 +44,4 @@ public static void listSinksListSinksRequestIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_listsinksrequestiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listsinks_listsinksrequestiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java index e5268c2ee7..7e45aa8b45 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listsinks_organizationnameiterateall] @@ -37,4 +38,4 @@ public static void listSinksOrganizationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_organizationnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listsinks_organizationnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java index c10fab4624..a7d96ef8bd 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest] @@ -46,4 +47,4 @@ public static void listSinksPagedCallableFutureCallListSinksRequest() throws Exc } } } -// [END logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java index 5da4ab00fe..c8d504b536 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listsinks_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listSinksProjectNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_projectnameiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listsinks_projectnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java index 87cb103b8d..034ff7ed1a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listsinks_stringiterateall] @@ -37,4 +38,4 @@ public static void listSinksStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_stringiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listsinks_stringiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java index c7b9ec67a4..043b800dfc 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listviews_callablecalllistviewsrequest] @@ -53,4 +54,4 @@ public static void listViewsCallableCallListViewsRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_listviews_callablecalllistviewsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_listviews_callablecalllistviewsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java index c6ced98623..0fca1a9971 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listviews_listviewsrequestiterateall] @@ -42,4 +43,4 @@ public static void listViewsListViewsRequestIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listviews_listviewsrequestiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listviews_listviewsrequestiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java index c0c365f9f7..30325ff369 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest] @@ -45,4 +46,4 @@ public static void listViewsPagedCallableFutureCallListViewsRequest() throws Exc } } } -// [END logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java index 8984885521..71071ba3d6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_listviews_stringiterateall] @@ -36,4 +37,4 @@ public static void listViewsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listviews_stringiterateall] \ No newline at end of file +// [END logging_v2_generated_configclient_listviews_stringiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java index e4e1e81796..8debd24526 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest] @@ -44,4 +45,4 @@ public static void undeleteBucketCallableFutureCallUndeleteBucketRequest() throw } } } -// [END logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java index 71cc2d4f86..25d9341102 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_undeletebucket_undeletebucketrequest] @@ -41,4 +42,4 @@ public static void undeleteBucketUndeleteBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_undeletebucket_undeletebucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_undeletebucket_undeletebucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java index d647082519..37f0c05787 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest] @@ -47,4 +48,4 @@ public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Ex } } } -// [END logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java index c635cbd20c..62849a6bc1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatebucket_updatebucketrequest] @@ -44,4 +45,4 @@ public static void updateBucketUpdateBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_updatebucket_updatebucketrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updatebucket_updatebucketrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java index a3af75202c..4bca0debc8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest] @@ -46,4 +47,4 @@ public static void updateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest } } } -// [END logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java index d63dcc1af4..a12efbbb66 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest] @@ -41,4 +42,4 @@ public static void updateCmekSettingsUpdateCmekSettingsRequest() throws Exceptio } } } -// [END logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java index ad2f7db0ce..8fc25840e2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest] @@ -46,4 +47,4 @@ public static void updateExclusionCallableFutureCallUpdateExclusionRequest() thr } } } -// [END logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java index 842e8f6a2f..ed4e1b23bb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask] @@ -38,4 +39,4 @@ public static void updateExclusionLogExclusionNameLogExclusionFieldMask() throws } } } -// [END logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask] \ No newline at end of file +// [END logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java index d93af3cb5f..6229948b2c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask] @@ -38,4 +39,4 @@ public static void updateExclusionStringLogExclusionFieldMask() throws Exception } } } -// [END logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask] \ No newline at end of file +// [END logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java index 1feb799b29..1d5ef943f3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updateexclusion_updateexclusionrequest] @@ -43,4 +44,4 @@ public static void updateExclusionUpdateExclusionRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_updateexclusion_updateexclusionrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updateexclusion_updateexclusionrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java index d3a3dc0367..16d612b6e6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest] @@ -46,4 +47,4 @@ public static void updateSinkCallableFutureCallUpdateSinkRequest() throws Except } } } -// [END logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java index d3a4dd38df..22af62c3b3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatesink_logsinknamelogsink] @@ -36,4 +37,4 @@ public static void updateSinkLogSinkNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_logsinknamelogsink] \ No newline at end of file +// [END logging_v2_generated_configclient_updatesink_logsinknamelogsink] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java index 17432914f0..1136e1519c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask] @@ -38,4 +39,4 @@ public static void updateSinkLogSinkNameLogSinkFieldMask() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask] \ No newline at end of file +// [END logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java index c859464e70..c5e641a0a7 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatesink_stringlogsink] @@ -36,4 +37,4 @@ public static void updateSinkStringLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_stringlogsink] \ No newline at end of file +// [END logging_v2_generated_configclient_updatesink_stringlogsink] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java index 4872e66a13..f184b8f920 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask] @@ -38,4 +39,4 @@ public static void updateSinkStringLogSinkFieldMask() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask] \ No newline at end of file +// [END logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java index f36ba4393a..bfd1ddfe33 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updatesink_updatesinkrequest] @@ -43,4 +44,4 @@ public static void updateSinkUpdateSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_updatesinkrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updatesink_updatesinkrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java index 479a7faf73..456a13078d 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest] @@ -44,4 +45,4 @@ public static void updateViewCallableFutureCallUpdateViewRequest() throws Except } } } -// [END logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java index 73552c3f3e..ac6afbe82d 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configclient_updateview_updateviewrequest] @@ -41,4 +42,4 @@ public static void updateViewUpdateViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_updateview_updateviewrequest] \ No newline at end of file +// [END logging_v2_generated_configclient_updateview_updateviewrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java index 9b4a2c5168..53a9e79247 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings] @@ -41,4 +42,4 @@ public static void getBucketSettingsSetRetrySettingsConfigSettings() throws Exce ConfigSettings configSettings = configSettingsBuilder.build(); } } -// [END logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings] \ No newline at end of file +// [END logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java index 7e6b14526b..f1c0c7490a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_create_loggingsettings1] @@ -37,4 +38,4 @@ public static void createLoggingSettings1() throws Exception { LoggingClient loggingClient = LoggingClient.create(loggingSettings); } } -// [END logging_v2_generated_loggingclient_create_loggingsettings1] \ No newline at end of file +// [END logging_v2_generated_loggingclient_create_loggingsettings1] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java index 3a20eeb187..b9d5f1264b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_create_loggingsettings2] @@ -33,4 +34,4 @@ public static void createLoggingSettings2() throws Exception { LoggingClient loggingClient = LoggingClient.create(loggingSettings); } } -// [END logging_v2_generated_loggingclient_create_loggingsettings2] \ No newline at end of file +// [END logging_v2_generated_loggingclient_create_loggingsettings2] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java index dd7c2888e4..86ae4369b0 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest] @@ -42,4 +43,4 @@ public static void deleteLogCallableFutureCallDeleteLogRequest() throws Exceptio } } } -// [END logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java index 87423bad56..7aedc29ec7 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_deletelog_deletelogrequest] @@ -39,4 +40,4 @@ public static void deleteLogDeleteLogRequest() throws Exception { } } } -// [END logging_v2_generated_loggingclient_deletelog_deletelogrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_deletelog_deletelogrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java index d122bb63f0..329646b0d2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_deletelog_logname] @@ -35,4 +36,4 @@ public static void deleteLogLogName() throws Exception { } } } -// [END logging_v2_generated_loggingclient_deletelog_logname] \ No newline at end of file +// [END logging_v2_generated_loggingclient_deletelog_logname] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java index 23a0ca96b2..3bb56a7a6b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_deletelog_string] @@ -35,4 +36,4 @@ public static void deleteLogString() throws Exception { } } } -// [END logging_v2_generated_loggingclient_deletelog_string] \ No newline at end of file +// [END logging_v2_generated_loggingclient_deletelog_string] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java index 71aa58c3b1..c499c25eac 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest] @@ -56,4 +57,4 @@ public static void listLogEntriesCallableCallListLogEntriesRequest() throws Exce } } } -// [END logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java index 615e440cb5..61e4d14109 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall] @@ -45,4 +46,4 @@ public static void listLogEntriesListLogEntriesRequestIterateAll() throws Except } } } -// [END logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java index 217dbf166e..45d28afa96 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall] @@ -41,4 +42,4 @@ public static void listLogEntriesListStringStringStringIterateAll() throws Excep } } } -// [END logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java index 88c240a2b2..ce4f76642a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest] @@ -48,4 +49,4 @@ public static void listLogEntriesPagedCallableFutureCallListLogEntriesRequest() } } } -// [END logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java index d9d7b676a1..ac496ac3e8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall] @@ -36,4 +37,4 @@ public static void listLogsBillingAccountNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java index d5c38b23eb..5fc22faae5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest] @@ -55,4 +56,4 @@ public static void listLogsCallableCallListLogsRequest() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java index 13b572548d..3d8ffb8aef 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogs_foldernameiterateall] @@ -36,4 +37,4 @@ public static void listLogsFolderNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_foldernameiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogs_foldernameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java index a7c50788bd..a730fe7e50 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall] @@ -44,4 +45,4 @@ public static void listLogsListLogsRequestIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java index ef4008b273..d7c9285384 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogs_organizationnameiterateall] @@ -36,4 +37,4 @@ public static void listLogsOrganizationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_organizationnameiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogs_organizationnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java index 12201ed59c..a0282bc7dc 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest] @@ -47,4 +48,4 @@ public static void listLogsPagedCallableFutureCallListLogsRequest() throws Excep } } } -// [END logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java index 9145a1ec11..c41d02a30e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogs_projectnameiterateall] @@ -36,4 +37,4 @@ public static void listLogsProjectNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_projectnameiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogs_projectnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java index f4f881a39f..8a1d5b13b0 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listlogs_stringiterateall] @@ -36,4 +37,4 @@ public static void listLogsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_stringiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listlogs_stringiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java index 046e2d5bf7..33880cf6d3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest] @@ -55,4 +56,4 @@ public static void main(String[] args) throws Exception { } } } -// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java index d4e4d855fa..4f207837c6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall] @@ -44,4 +45,4 @@ public static void main(String[] args) throws Exception { } } } -// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java index 21ea6d19bc..3ba2b8391f 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest] @@ -48,4 +49,4 @@ public static void main(String[] args) throws Exception { } } } -// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java index 76d5414ac8..73b835d4e3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest] @@ -48,4 +49,4 @@ public static void tailLogEntriesCallableCallTailLogEntriesRequest() throws Exce } } } -// [END logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java index f9f7f744fd..e319bdfbb8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest] @@ -52,4 +53,4 @@ public static void writeLogEntriesCallableFutureCallWriteLogEntriesRequest() thr } } } -// [END logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java index df72be28cf..68e295d003 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry] @@ -46,4 +47,4 @@ public static void writeLogEntriesLogNameMonitoredResourceMapStringStringListLog } } } -// [END logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry] \ No newline at end of file +// [END logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java index 961a1d51f5..eaf120ce2b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry] @@ -46,4 +47,4 @@ public static void writeLogEntriesStringMonitoredResourceMapStringStringListLogE } } } -// [END logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry] \ No newline at end of file +// [END logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java index 3a0cd302d0..3b9400d1ef 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest] @@ -48,4 +49,4 @@ public static void writeLogEntriesWriteLogEntriesRequest() throws Exception { } } } -// [END logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest] \ No newline at end of file +// [END logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java index 943db2b5a3..0edf1edeb3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings] @@ -41,4 +42,4 @@ public static void deleteLogSettingsSetRetrySettingsLoggingSettings() throws Exc LoggingSettings loggingSettings = loggingSettingsBuilder.build(); } } -// [END logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings] \ No newline at end of file +// [END logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java index 2a56bcff3d..670a730647 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_create_metricssettings1] @@ -37,4 +38,4 @@ public static void createMetricsSettings1() throws Exception { MetricsClient metricsClient = MetricsClient.create(metricsSettings); } } -// [END logging_v2_generated_metricsclient_create_metricssettings1] \ No newline at end of file +// [END logging_v2_generated_metricsclient_create_metricssettings1] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java index e008a66ec4..f444528f9c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_create_metricssettings2] @@ -33,4 +34,4 @@ public static void createMetricsSettings2() throws Exception { MetricsClient metricsClient = MetricsClient.create(metricsSettings); } } -// [END logging_v2_generated_metricsclient_create_metricssettings2] \ No newline at end of file +// [END logging_v2_generated_metricsclient_create_metricssettings2] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java index c6bf2fc5d6..66acac6c56 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest] @@ -43,4 +44,4 @@ public static void createLogMetricCallableFutureCallCreateLogMetricRequest() thr } } } -// [END logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java index 84eddf37d9..dcf78223fa 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest] @@ -40,4 +41,4 @@ public static void createLogMetricCreateLogMetricRequest() throws Exception { } } } -// [END logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java index fd373aea26..b4c679f48d 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric] @@ -36,4 +37,4 @@ public static void createLogMetricProjectNameLogMetric() throws Exception { } } } -// [END logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric] \ No newline at end of file +// [END logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java index 6ebb92b15a..c5cd09a26e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_createlogmetric_stringlogmetric] @@ -36,4 +37,4 @@ public static void createLogMetricStringLogMetric() throws Exception { } } } -// [END logging_v2_generated_metricsclient_createlogmetric_stringlogmetric] \ No newline at end of file +// [END logging_v2_generated_metricsclient_createlogmetric_stringlogmetric] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java index feafae0e8a..3853da2da2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest] @@ -42,4 +43,4 @@ public static void deleteLogMetricCallableFutureCallDeleteLogMetricRequest() thr } } } -// [END logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java index c286c50554..9438b13f1f 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest] @@ -39,4 +40,4 @@ public static void deleteLogMetricDeleteLogMetricRequest() throws Exception { } } } -// [END logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java index 550cdb53b6..717dcbac28 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_deletelogmetric_logmetricname] @@ -35,4 +36,4 @@ public static void deleteLogMetricLogMetricName() throws Exception { } } } -// [END logging_v2_generated_metricsclient_deletelogmetric_logmetricname] \ No newline at end of file +// [END logging_v2_generated_metricsclient_deletelogmetric_logmetricname] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java index 514656877e..cab825b684 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_deletelogmetric_string] @@ -35,4 +36,4 @@ public static void deleteLogMetricString() throws Exception { } } } -// [END logging_v2_generated_metricsclient_deletelogmetric_string] \ No newline at end of file +// [END logging_v2_generated_metricsclient_deletelogmetric_string] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java index 1eebcc20af..0b00fe08ae 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest] @@ -42,4 +43,4 @@ public static void getLogMetricCallableFutureCallGetLogMetricRequest() throws Ex } } } -// [END logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java index d815be1fde..68d72d5d3c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest] @@ -39,4 +40,4 @@ public static void getLogMetricGetLogMetricRequest() throws Exception { } } } -// [END logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java index bc4dcdbad0..19047fa92b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_getlogmetric_logmetricname] @@ -35,4 +36,4 @@ public static void getLogMetricLogMetricName() throws Exception { } } } -// [END logging_v2_generated_metricsclient_getlogmetric_logmetricname] \ No newline at end of file +// [END logging_v2_generated_metricsclient_getlogmetric_logmetricname] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java index cb971ebe17..de502d3088 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_getlogmetric_string] @@ -35,4 +36,4 @@ public static void getLogMetricString() throws Exception { } } } -// [END logging_v2_generated_metricsclient_getlogmetric_string] \ No newline at end of file +// [END logging_v2_generated_metricsclient_getlogmetric_string] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java index 6ab55be970..cdc9020aba 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest] @@ -54,4 +55,4 @@ public static void listLogMetricsCallableCallListLogMetricsRequest() throws Exce } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java index d8a7d01665..9b22af0444 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall] @@ -43,4 +44,4 @@ public static void listLogMetricsListLogMetricsRequestIterateAll() throws Except } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall] \ No newline at end of file +// [END logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java index 907deee515..ae137d194c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest] @@ -46,4 +47,4 @@ public static void listLogMetricsPagedCallableFutureCallListLogMetricsRequest() } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java index c019d5bbe4..103167f9dc 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listLogMetricsProjectNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall] \ No newline at end of file +// [END logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java index 7f3b63a264..be444dbfbb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_listlogmetrics_stringiterateall] @@ -37,4 +38,4 @@ public static void listLogMetricsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_stringiterateall] \ No newline at end of file +// [END logging_v2_generated_metricsclient_listlogmetrics_stringiterateall] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java index 3f18d96bef..f68d85582a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest] @@ -43,4 +44,4 @@ public static void updateLogMetricCallableFutureCallUpdateLogMetricRequest() thr } } } -// [END logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java index 643991a3de..b55164f906 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric] @@ -36,4 +37,4 @@ public static void updateLogMetricLogMetricNameLogMetric() throws Exception { } } } -// [END logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric] \ No newline at end of file +// [END logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java index 1f9f041bc2..4dc7d0150c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric] @@ -36,4 +37,4 @@ public static void updateLogMetricStringLogMetric() throws Exception { } } } -// [END logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric] \ No newline at end of file +// [END logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java index 6652e0b747..5c5d4c0123 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest] @@ -40,4 +41,4 @@ public static void updateLogMetricUpdateLogMetricRequest() throws Exception { } } } -// [END logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest] \ No newline at end of file +// [END logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java index be58c853c1..1098ade31f 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.samples; // [START logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings] @@ -41,4 +42,4 @@ public static void getLogMetricSettingsSetRetrySettingsMetricsSettings() throws MetricsSettings metricsSettings = metricsSettingsBuilder.build(); } } -// [END logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings] \ No newline at end of file +// [END logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java index 17a80a87d3..c269d05ac2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.stub.samples; // [START logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings] @@ -43,4 +44,4 @@ public static void getBucketSettingsSetRetrySettingsConfigServiceV2StubSettings( ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build(); } } -// [END logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings] \ No newline at end of file +// [END logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java index 9c7cf2f3cb..72f30607a9 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.stub.samples; // [START logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] @@ -43,4 +44,4 @@ public static void deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings LoggingServiceV2StubSettings loggingSettings = loggingSettingsBuilder.build(); } } -// [END logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] \ No newline at end of file +// [END logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java index 7dc05f3197..b44e31a55c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.logging.v2.stub.samples; // [START logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings] @@ -43,4 +44,4 @@ public static void getLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSetti MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build(); } } -// [END logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings] \ No newline at end of file +// [END logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java index 98112ac7be..4f0337c9f9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1] @@ -37,4 +38,4 @@ public static void createSchemaServiceSettings1() throws Exception { SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); } } -// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java index 214a0e7275..36eb26be62 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2] @@ -34,4 +35,4 @@ public static void createSchemaServiceSettings2() throws Exception { SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); } } -// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java index a6e5020dd5..2314e32f2c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest] @@ -44,4 +45,4 @@ public static void createSchemaCallableFutureCallCreateSchemaRequest() throws Ex } } } -// [END pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java index 36d94db66b..429a56ab4e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest] @@ -41,4 +42,4 @@ public static void createSchemaCreateSchemaRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java index 6118cbf7ad..50c51b5100 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring] @@ -37,4 +38,4 @@ public static void createSchemaProjectNameSchemaString() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java index 5d0298eef9..7decc94cbd 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring] @@ -37,4 +38,4 @@ public static void createSchemaStringSchemaString() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java index 9843bf6b5b..6e64c2ebc3 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest] @@ -42,4 +43,4 @@ public static void deleteSchemaCallableFutureCallDeleteSchemaRequest() throws Ex } } } -// [END pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java index 51bf752c46..ab4f5fd082 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest] @@ -39,4 +40,4 @@ public static void deleteSchemaDeleteSchemaRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java index 714f3040ac..76d5d8221d 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname] @@ -35,4 +36,4 @@ public static void deleteSchemaSchemaName() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java index 86df844fd0..9de5030abf 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_deleteschema_string] @@ -35,4 +36,4 @@ public static void deleteSchemaString() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_deleteschema_string] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 89ff6dad13..136b81a22b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] @@ -44,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index f505834e39..949b88d5ce 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest] @@ -41,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java index 9309c455eb..0bf52cba89 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest] @@ -44,4 +45,4 @@ public static void getSchemaCallableFutureCallGetSchemaRequest() throws Exceptio } } } -// [END pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java index 7a390f2ded..bcbcff54fa 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest] @@ -41,4 +42,4 @@ public static void getSchemaGetSchemaRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java index b093b27d8e..02e9fec16f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_getschema_schemaname] @@ -35,4 +36,4 @@ public static void getSchemaSchemaName() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_getschema_schemaname] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_getschema_schemaname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java index cacaad7250..7d5a4eae1c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_getschema_string] @@ -35,4 +36,4 @@ public static void getSchemaString() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_getschema_string] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_getschema_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java index 29f3eac2f0..7f3ab6de35 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest] @@ -56,4 +57,4 @@ public static void listSchemasCallableCallListSchemasRequest() throws Exception } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java index 6dfa4a4fbf..97f56a6ea8 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall] @@ -45,4 +46,4 @@ public static void listSchemasListSchemasRequestIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java index 49906d4804..da0d64d629 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest] @@ -48,4 +49,4 @@ public static void listSchemasPagedCallableFutureCallListSchemasRequest() throws } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java index b7b2d5560c..2126a357f1 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listSchemasProjectNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java index 99c7028482..a296ce0144 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall] @@ -37,4 +38,4 @@ public static void listSchemasStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index 33df082a73..36a0ae54d5 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest] @@ -43,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index c1de7690a9..e7ea97052e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest] @@ -40,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index b09420997a..e9aa6fb0b8 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] @@ -46,4 +47,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index 9562298021..6ada7c6f7f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest] @@ -41,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java index bb23081780..a992bc074e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest] @@ -47,4 +48,4 @@ public static void validateMessageCallableFutureCallValidateMessageRequest() thr } } } -// [END pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java index 3d0c804e5f..01677ec433 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest] @@ -43,4 +44,4 @@ public static void validateMessageValidateMessageRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java index db260ffd51..9f882ddf8e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest] @@ -45,4 +46,4 @@ public static void validateSchemaCallableFutureCallValidateSchemaRequest() throw } } } -// [END pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java index b51de5f461..2e22c31e7b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema] @@ -37,4 +38,4 @@ public static void validateSchemaProjectNameSchema() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java index eafa274b55..5071bddf54 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_validateschema_stringschema] @@ -37,4 +38,4 @@ public static void validateSchemaStringSchema() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_validateschema_stringschema] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_validateschema_stringschema] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java index 46be736d1d..42eb8556c2 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest] @@ -41,4 +42,4 @@ public static void validateSchemaValidateSchemaRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest] \ No newline at end of file +// [END pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java index a1dac27fd3..8022a6ad5a 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings] @@ -41,4 +42,4 @@ public static void createSchemaSettingsSetRetrySettingsSchemaServiceSettings() t SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); } } -// [END pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings] \ No newline at end of file +// [END pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java index 89520d9a45..725ab36c19 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub.samples; // [START pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] @@ -41,4 +42,4 @@ public static void createTopicSettingsSetRetrySettingsPublisherStubSettings() th PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build(); } } -// [END pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] \ No newline at end of file +// [END pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java index dc8f86d488..8ce090c43f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub.samples; // [START pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings] @@ -43,4 +44,4 @@ public static void createSchemaSettingsSetRetrySettingsSchemaServiceStubSettings SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); } } -// [END pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings] \ No newline at end of file +// [END pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java index 85e1708043..55a7508c2e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub.samples; // [START pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings] @@ -43,4 +44,4 @@ public static void createSubscriptionSettingsSetRetrySettingsSubscriberStubSetti SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build(); } } -// [END pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings] \ No newline at end of file +// [END pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java index a503ea7882..7c6f833142 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest] @@ -41,4 +42,4 @@ public static void acknowledgeAcknowledgeRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java index fb56efa0c9..a1173afc5c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest] @@ -44,4 +45,4 @@ public static void acknowledgeCallableFutureCallAcknowledgeRequest() throws Exce } } } -// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java index 71de097889..516b23f913 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring] @@ -38,4 +39,4 @@ public static void acknowledgeStringListString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java index 6aaf7a224f..0db42f9abf 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring] @@ -38,4 +39,4 @@ public static void acknowledgeSubscriptionNameListString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java index e9ea9213cb..a45b505bfd 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1] @@ -38,4 +39,4 @@ public static void createSubscriptionAdminSettings1() throws Exception { SubscriptionAdminClient.create(subscriptionAdminSettings); } } -// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java index 1f05b47f25..4fd53d34df 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2] @@ -35,4 +36,4 @@ public static void createSubscriptionAdminSettings2() throws Exception { SubscriptionAdminClient.create(subscriptionAdminSettings); } } -// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java index 72f14f7203..e598c7e556 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest] @@ -47,4 +48,4 @@ public static void createSnapshotCallableFutureCallCreateSnapshotRequest() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java index 15f7a27168..324a0effb2 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest] @@ -43,4 +44,4 @@ public static void createSnapshotCreateSnapshotRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java index 3615910a42..e293ba91fe 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring] @@ -37,4 +38,4 @@ public static void createSnapshotSnapshotNameString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java index 8b44458ab4..a082431240 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname] @@ -37,4 +38,4 @@ public static void createSnapshotSnapshotNameSubscriptionName() throws Exception } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java index c77139a347..e3a63eb615 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring] @@ -37,4 +38,4 @@ public static void createSnapshotStringString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java index 5c22c96bd3..6b825e681c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname] @@ -37,4 +38,4 @@ public static void createSnapshotStringSubscriptionName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java index 204f600b83..3d03aace79 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription] @@ -63,4 +64,4 @@ public static void createSubscriptionCallableFutureCallSubscription() throws Exc } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java index bd8c3d15db..211590b918 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint] @@ -41,4 +42,4 @@ public static void createSubscriptionStringStringPushConfigInt() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java index f95d9f48b3..3498007aa7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint] @@ -41,4 +42,4 @@ public static void createSubscriptionStringTopicNamePushConfigInt() throws Excep } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java index b8b3073778..60688e3984 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription] @@ -59,4 +60,4 @@ public static void createSubscriptionSubscription() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java index 2e340a0d79..189ee73712 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint] @@ -41,4 +42,4 @@ public static void createSubscriptionSubscriptionNameStringPushConfigInt() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java index 16885e72e4..08e072dce7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint] @@ -41,4 +42,4 @@ public static void createSubscriptionSubscriptionNameTopicNamePushConfigInt() th } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java index 6d7b35a3bd..34a6fe9e35 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest] @@ -43,4 +44,4 @@ public static void deleteSnapshotCallableFutureCallDeleteSnapshotRequest() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java index 67d446678a..0bc1bf92e9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest] @@ -39,4 +40,4 @@ public static void deleteSnapshotDeleteSnapshotRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java index ac333777c7..838e7a6a22 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname] @@ -35,4 +36,4 @@ public static void deleteSnapshotSnapshotName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java index 7812a84949..1ea328dfc8 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string] @@ -35,4 +36,4 @@ public static void deleteSnapshotString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java index 5e23c72803..47762d5ece 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest] @@ -44,4 +45,4 @@ public static void deleteSubscriptionCallableFutureCallDeleteSubscriptionRequest } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java index 51451a709d..564d9f2857 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest] @@ -39,4 +40,4 @@ public static void deleteSubscriptionDeleteSubscriptionRequest() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java index f7e2802c79..f500e9c9d0 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_string] @@ -35,4 +36,4 @@ public static void deleteSubscriptionString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_string] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java index ee07cdd0be..38ee7ccdd6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname] @@ -35,4 +36,4 @@ public static void deleteSubscriptionSubscriptionName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 98ec60a3f1..57963ae29f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] @@ -44,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 74bec6ff54..507c5076b4 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest] @@ -41,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java index 47eda0f2f0..452f8c7904 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest] @@ -43,4 +44,4 @@ public static void getSnapshotCallableFutureCallGetSnapshotRequest() throws Exce } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java index c64df8c945..89e1a65dea 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest] @@ -39,4 +40,4 @@ public static void getSnapshotGetSnapshotRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java index 6c81d1f1dd..88949e99da 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname] @@ -35,4 +36,4 @@ public static void getSnapshotSnapshotName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java index 3882af8c8f..0d631d8f0f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_string] @@ -35,4 +36,4 @@ public static void getSnapshotString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_string] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java index 0129a8f55b..7ce072a5c0 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest] @@ -43,4 +44,4 @@ public static void getSubscriptionCallableFutureCallGetSubscriptionRequest() thr } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java index b698df9039..6dc258bab6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest] @@ -39,4 +40,4 @@ public static void getSubscriptionGetSubscriptionRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java index 083f79d9a6..b368535d2b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getsubscription_string] @@ -35,4 +36,4 @@ public static void getSubscriptionString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_string] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java index 738a2f7ed5..066e22ba2b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname] @@ -35,4 +36,4 @@ public static void getSubscriptionSubscriptionName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java index f868d78d81..162491629e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest] @@ -55,4 +56,4 @@ public static void listSnapshotsCallableCallListSnapshotsRequest() throws Except } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java index 00dd25283c..623c5c2524 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall] @@ -43,4 +44,4 @@ public static void listSnapshotsListSnapshotsRequestIterateAll() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java index f437b5f5d0..1fb2a5d6f5 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest] @@ -47,4 +48,4 @@ public static void listSnapshotsPagedCallableFutureCallListSnapshotsRequest() th } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java index 3524220604..c3f885703f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listSnapshotsProjectNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java index c52e420ee2..ccd5fb48fa 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall] @@ -37,4 +38,4 @@ public static void listSnapshotsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java index 89ac330bd9..3085e8ceb9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest] @@ -55,4 +56,4 @@ public static void listSubscriptionsCallableCallListSubscriptionsRequest() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java index 8523342140..1c0a8d3184 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall] @@ -43,4 +44,4 @@ public static void listSubscriptionsListSubscriptionsRequestIterateAll() throws } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java index 2959431c7b..776da81c42 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest] @@ -48,4 +49,4 @@ public static void listSubscriptionsPagedCallableFutureCallListSubscriptionsRequ } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java index b1e1e0fbc5..6d33de622f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listSubscriptionsProjectNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java index 7f9b72fc83..df45750ffb 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall] @@ -37,4 +38,4 @@ public static void listSubscriptionsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java index 1999c083cd..7ab8218a0c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest] @@ -47,4 +48,4 @@ public static void modifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest() } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java index f968a39d79..7fd47c0038 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest] @@ -42,4 +43,4 @@ public static void modifyAckDeadlineModifyAckDeadlineRequest() throws Exception } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java index 0fafaf7873..24c9406829 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint] @@ -39,4 +40,4 @@ public static void modifyAckDeadlineStringListStringInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java index 2fdb04917d..6cf53b1692 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint] @@ -39,4 +40,4 @@ public static void modifyAckDeadlineSubscriptionNameListStringInt() throws Excep } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java index 5a6308f8c9..a425a93c64 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest] @@ -45,4 +46,4 @@ public static void modifyPushConfigCallableFutureCallModifyPushConfigRequest() t } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java index 13b31750d9..f81b006790 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest] @@ -41,4 +42,4 @@ public static void modifyPushConfigModifyPushConfigRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java index 5023955f53..baba9dfaa8 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig] @@ -37,4 +38,4 @@ public static void modifyPushConfigStringPushConfig() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java index fccd7f2571..1d69c54902 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig] @@ -37,4 +38,4 @@ public static void modifyPushConfigSubscriptionNamePushConfig() throws Exception } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java index 5e3f6d3bc9..565fbde781 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest] @@ -44,4 +45,4 @@ public static void pullCallableFutureCallPullRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java index 3125503403..ec96a00b94 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_pull_pullrequest] @@ -41,4 +42,4 @@ public static void pullPullRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_pullrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_pull_pullrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java index 7c9c769103..18db73877c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint] @@ -38,4 +39,4 @@ public static void pullStringBooleanInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java index 4ff697d912..c73f852a66 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_pull_stringint] @@ -36,4 +37,4 @@ public static void pullStringInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_stringint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_pull_stringint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java index 186b7e4902..b83a2119a7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint] @@ -38,4 +39,4 @@ public static void pullSubscriptionNameBooleanInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java index 356a1c7148..47f9d42aef 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint] @@ -36,4 +37,4 @@ public static void pullSubscriptionNameInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java index 5071d19752..fd0cfecba8 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest] @@ -42,4 +43,4 @@ public static void seekCallableFutureCallSeekRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java index f20f0be032..3a9ebc1830 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_seek_seekrequest] @@ -39,4 +40,4 @@ public static void seekSeekRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_seek_seekrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_seek_seekrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index 1e103bea8d..fba0b68a3c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] @@ -43,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index a80180ff92..d3dc22d507 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest] @@ -40,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java index e28b149e55..cf951e0aa5 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest] @@ -53,4 +54,4 @@ public static void streamingPullCallableCallStreamingPullRequest() throws Except } } } -// [END pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index cdb95bc080..b67d0708c9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] @@ -46,4 +47,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index ffbd5a6871..b73ff0820a 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest] @@ -41,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java index cb436c37c8..d64346b7cc 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest] @@ -44,4 +45,4 @@ public static void updateSnapshotCallableFutureCallUpdateSnapshotRequest() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java index 18eac79c43..edc943ba85 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest] @@ -40,4 +41,4 @@ public static void updateSnapshotUpdateSnapshotRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java index 4e34ce4fab..803e32d8f7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest] @@ -45,4 +46,4 @@ public static void updateSubscriptionCallableFutureCallUpdateSubscriptionRequest } } } -// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java index edf9376484..dcca3b3abd 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest] @@ -40,4 +41,4 @@ public static void updateSubscriptionUpdateSubscriptionRequest() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java index d331653710..ffcec0fa1b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings] @@ -43,4 +44,4 @@ public static void createSubscriptionSettingsSetRetrySettingsSubscriptionAdminSe SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build(); } } -// [END pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings] \ No newline at end of file +// [END pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java index a621283899..482e545c4c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_create_topicadminsettings1] @@ -37,4 +38,4 @@ public static void createTopicAdminSettings1() throws Exception { TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); } } -// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings1] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings1] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java index f877598dce..6390b7d45a 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_create_topicadminsettings2] @@ -34,4 +35,4 @@ public static void createTopicAdminSettings2() throws Exception { TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); } } -// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings2] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings2] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java index 003f814b84..b2aec3f52c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic] @@ -51,4 +52,4 @@ public static void createTopicCallableFutureCallTopic() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java index 4376d2b2c4..7d7a3a53fa 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_createtopic_string] @@ -35,4 +36,4 @@ public static void createTopicString() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_createtopic_string] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_createtopic_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java index 85c713b3a6..a210933060 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_createtopic_topic] @@ -48,4 +49,4 @@ public static void createTopicTopic() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_createtopic_topic] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_createtopic_topic] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java index cffb7d6d24..97f97b14d4 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_createtopic_topicname] @@ -35,4 +36,4 @@ public static void createTopicTopicName() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_createtopic_topicname] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_createtopic_topicname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java index 4f7b3ca290..c95f68ac1d 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest] @@ -42,4 +43,4 @@ public static void deleteTopicCallableFutureCallDeleteTopicRequest() throws Exce } } } -// [END pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java index 1fe93b61d3..508a6d7316 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest] @@ -39,4 +40,4 @@ public static void deleteTopicDeleteTopicRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java index 7e88ba342b..eb822a2cb7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_deletetopic_string] @@ -35,4 +36,4 @@ public static void deleteTopicString() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_deletetopic_string] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_deletetopic_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java index aeac4c3021..2302520f6c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_deletetopic_topicname] @@ -35,4 +36,4 @@ public static void deleteTopicTopicName() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_deletetopic_topicname] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_deletetopic_topicname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java index bff559346d..13bda08de1 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest] @@ -44,4 +45,4 @@ public static void detachSubscriptionCallableFutureCallDetachSubscriptionRequest } } } -// [END pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java index ff5e9e6a9d..f4a35d0e06 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest] @@ -39,4 +40,4 @@ public static void detachSubscriptionDetachSubscriptionRequest() throws Exceptio } } } -// [END pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 8f80c131a3..605d9c633a 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] @@ -44,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 73bc967d2d..77ef1dd3c9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest] @@ -41,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java index 3dcee4d98a..9cb3a172bc 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest] @@ -42,4 +43,4 @@ public static void getTopicCallableFutureCallGetTopicRequest() throws Exception } } } -// [END pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java index 85333bed13..3e825894f6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest] @@ -39,4 +40,4 @@ public static void getTopicGetTopicRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java index bfaf22db79..8283fed27e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_gettopic_string] @@ -35,4 +36,4 @@ public static void getTopicString() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_gettopic_string] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_gettopic_string] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java index e4a99279e3..4df18cb61b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_gettopic_topicname] @@ -35,4 +36,4 @@ public static void getTopicTopicName() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_gettopic_topicname] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_gettopic_topicname] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java index 2b16a6d50b..d0e579b941 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest] @@ -54,4 +55,4 @@ public static void listTopicsCallableCallListTopicsRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java index d27aba66d4..a68e55df2f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall] @@ -43,4 +44,4 @@ public static void listTopicsListTopicsRequestIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java index fe14116a3d..d74f640f56 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest] @@ -46,4 +47,4 @@ public static void listTopicsPagedCallableFutureCallListTopicsRequest() throws E } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java index a39ef53c50..dd62a1262b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listTopicsProjectNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java index fbd2996a09..f2212b7d41 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopics_stringiterateall] @@ -37,4 +38,4 @@ public static void listTopicsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_stringiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopics_stringiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java index 7fb3c06ea2..72811f3286 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest] @@ -54,4 +55,4 @@ public static void listTopicSnapshotsCallableCallListTopicSnapshotsRequest() thr } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java index 413f977d2f..c0f9afeb48 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall] @@ -42,4 +43,4 @@ public static void listTopicSnapshotsListTopicSnapshotsRequestIterateAll() throw } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java index 529e906aff..12d14acade 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest] @@ -47,4 +48,4 @@ public static void listTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRe } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java index fe2305e443..4374008b85 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall] @@ -36,4 +37,4 @@ public static void listTopicSnapshotsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java index 075ab05137..aa6a72659b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall] @@ -36,4 +37,4 @@ public static void listTopicSnapshotsTopicNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java index d41fb629c9..7244916ba6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest] @@ -55,4 +56,4 @@ public static void listTopicSubscriptionsCallableCallListTopicSubscriptionsReque } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java index f3c376e5aa..3475e43e7c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall] @@ -43,4 +44,4 @@ public static void listTopicSubscriptionsListTopicSubscriptionsRequestIterateAll } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java index 32c40d6a32..d9bfb2d629 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest] @@ -47,4 +48,4 @@ public static void listTopicSubscriptionsPagedCallableFutureCallListTopicSubscri } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java index 79a44c2147..10044450a7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall] @@ -36,4 +37,4 @@ public static void listTopicSubscriptionsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java index c18157fc06..79e7f1bdfe 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall] @@ -36,4 +37,4 @@ public static void listTopicSubscriptionsTopicNameIterateAll() throws Exception } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java index 48290f2902..cfb45d6c7f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest] @@ -45,4 +46,4 @@ public static void publishCallableFutureCallPublishRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java index a007672db2..54a101749f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_publish_publishrequest] @@ -42,4 +43,4 @@ public static void publishPublishRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_publish_publishrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_publish_publishrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java index f90e143b3d..a421ecc80c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage] @@ -39,4 +40,4 @@ public static void publishStringListPubsubMessage() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java index 7ea36b3ea9..5b3b017162 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage] @@ -39,4 +40,4 @@ public static void publishTopicNameListPubsubMessage() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index cea0722062..600590d72c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] @@ -43,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index da90976c61..5944a91d10 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest] @@ -40,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index 9ecef23810..4a5ba85737 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] @@ -46,4 +47,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index 757caba3b2..19f54f8ff7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest] @@ -41,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java index dbbe800adf..84002bd103 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest] @@ -43,4 +44,4 @@ public static void updateTopicCallableFutureCallUpdateTopicRequest() throws Exce } } } -// [END pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java index 654cbdc044..9601f48339 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest] @@ -40,4 +41,4 @@ public static void updateTopicUpdateTopicRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest] \ No newline at end of file +// [END pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java index b78be58206..4dc41960e6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.samples; // [START pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings] @@ -41,4 +42,4 @@ public static void createTopicSettingsSetRetrySettingsTopicAdminSettings() throw TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build(); } } -// [END pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings] \ No newline at end of file +// [END pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java index da60afc6ca..7e7624144f 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1] @@ -37,4 +38,4 @@ public static void createCloudRedisSettings1() throws Exception { CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); } } -// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java index 9a4298a43e..f2be6a94eb 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2] @@ -34,4 +35,4 @@ public static void createCloudRedisSettings2() throws Exception { CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); } } -// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java index 9734e3a4a5..e929fd8629 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget] @@ -41,4 +42,4 @@ public static void createInstanceAsyncCreateInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java index 0117526bc2..a4fdae9c15 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget] @@ -37,4 +38,4 @@ public static void createInstanceAsyncLocationNameStringInstanceGet() throws Exc } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java index 24cbb565cc..623cca419e 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget] @@ -37,4 +38,4 @@ public static void createInstanceAsyncStringStringInstanceGet() throws Exception } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java index ee62fe4f75..07d4d3ec65 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest] @@ -45,4 +46,4 @@ public static void createInstanceCallableFutureCallCreateInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java index 03b38219ed..a1c0d6c502 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest] @@ -47,4 +48,4 @@ public static void createInstanceOperationCallableFutureCallCreateInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java index c80248d8d9..488833c6e5 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget] @@ -39,4 +40,4 @@ public static void deleteInstanceAsyncDeleteInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java index f0b7a3da0b..e2297f9959 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget] @@ -35,4 +36,4 @@ public static void deleteInstanceAsyncInstanceNameGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java index d5971eed4a..bb32db4e7f 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget] @@ -35,4 +36,4 @@ public static void deleteInstanceAsyncStringGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java index 511572f6e1..a83cf69130 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest] @@ -42,4 +43,4 @@ public static void deleteInstanceCallableFutureCallDeleteInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java index 4b467fb053..53120a3d75 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest] @@ -45,4 +46,4 @@ public static void deleteInstanceOperationCallableFutureCallDeleteInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java index ad05c37389..bf83385029 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget] @@ -40,4 +41,4 @@ public static void exportInstanceAsyncExportInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java index 2354cee865..e984a80b15 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget] @@ -36,4 +37,4 @@ public static void exportInstanceAsyncStringOutputConfigGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java index d59919786b..d660dfa031 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest] @@ -43,4 +44,4 @@ public static void exportInstanceCallableFutureCallExportInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java index 47a1aa70c9..2940b7a054 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest] @@ -46,4 +47,4 @@ public static void exportInstanceOperationCallableFutureCallExportInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java index a793f752f2..d06b0edc2a 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget] @@ -39,4 +40,4 @@ public static void failoverInstanceAsyncFailoverInstanceRequestGet() throws Exce } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java index c49b8c5ef3..6545013c76 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget] @@ -39,4 +40,4 @@ public static void failoverInstanceAsyncInstanceNameFailoverInstanceRequestDataP } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java index eb3bcd1eba..e78477764a 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget] @@ -39,4 +40,4 @@ public static void failoverInstanceAsyncStringFailoverInstanceRequestDataProtect } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java index aece1d80b4..9daebd5aa3 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest] @@ -42,4 +43,4 @@ public static void failoverInstanceCallableFutureCallFailoverInstanceRequest() t } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java index fc2e20b566..9e8a81b442 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest] @@ -45,4 +46,4 @@ public static void failoverInstanceOperationCallableFutureCallFailoverInstanceRe } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java index 631c39a0e4..b0d88b4d2a 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest] @@ -42,4 +43,4 @@ public static void getInstanceCallableFutureCallGetInstanceRequest() throws Exce } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java index 69cfe49dd2..abffe7d1d4 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest] @@ -39,4 +40,4 @@ public static void getInstanceGetInstanceRequest() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java index 4f4949a82c..2fa22f0e52 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_getinstance_instancename] @@ -35,4 +36,4 @@ public static void getInstanceInstanceName() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstance_instancename] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_getinstance_instancename] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java index 04166ad8ee..4423d3be06 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_getinstance_string] @@ -35,4 +36,4 @@ public static void getInstanceString() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstance_string] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_getinstance_string] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java index 42c047955d..77d2bfc525 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest] @@ -44,4 +45,4 @@ public static void getInstanceAuthStringCallableFutureCallGetInstanceAuthStringR } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java index 3d3121511b..435c90bf69 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest] @@ -39,4 +40,4 @@ public static void getInstanceAuthStringGetInstanceAuthStringRequest() throws Ex } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java index d46c3f1575..ade4696711 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename] @@ -35,4 +36,4 @@ public static void getInstanceAuthStringInstanceName() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java index 0ab2b73901..80197fe300 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string] @@ -35,4 +36,4 @@ public static void getInstanceAuthStringString() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java index 01d071f670..e88a2b023e 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget] @@ -40,4 +41,4 @@ public static void importInstanceAsyncImportInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java index 715db0bb73..736bf101c2 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget] @@ -36,4 +37,4 @@ public static void importInstanceAsyncStringInputConfigGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java index 247777cc69..813ec005e1 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest] @@ -43,4 +44,4 @@ public static void importInstanceCallableFutureCallImportInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java index 5c0f21d1e1..0c70605dee 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest] @@ -46,4 +47,4 @@ public static void importInstanceOperationCallableFutureCallImportInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java index 8dd11d94d7..b4e793b07b 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest] @@ -54,4 +55,4 @@ public static void listInstancesCallableCallListInstancesRequest() throws Except } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java index 1daf7c52cd..22762b2aa8 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall] @@ -43,4 +44,4 @@ public static void listInstancesListInstancesRequestIterateAll() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java index 7ca49b702c..c962b0a8d5 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall] @@ -37,4 +38,4 @@ public static void listInstancesLocationNameIterateAll() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java index 2ca969350d..392e8fe540 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest] @@ -47,4 +48,4 @@ public static void listInstancesPagedCallableFutureCallListInstancesRequest() th } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java index 7f5b6e83db..2c77c5f7cd 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall] @@ -37,4 +38,4 @@ public static void listInstancesStringIterateAll() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java index 82f5b69e09..13fc22bc14 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget] @@ -44,4 +45,4 @@ public static void main(String[] args) throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java index 46325d6a32..8e4fb75929 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget] @@ -41,4 +42,4 @@ public static void rescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet() t } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java index 60c290f2ba..3893baf925 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget] @@ -44,4 +45,4 @@ public static void main(String[] args) throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java index f63ee3d98d..066d6ddb8c 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest] @@ -46,4 +47,4 @@ public static void rescheduleMaintenanceCallableFutureCallRescheduleMaintenanceR } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java index fb69912795..79d94071e2 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest] @@ -47,4 +48,4 @@ public static void rescheduleMaintenanceOperationCallableFutureCallRescheduleMai } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java index 58caa8df18..ed3719b971 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget] @@ -36,4 +37,4 @@ public static void updateInstanceAsyncFieldMaskInstanceGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java index 3348eb88db..dedd733363 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget] @@ -40,4 +41,4 @@ public static void updateInstanceAsyncUpdateInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java index 0005096db1..b920d7631f 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest] @@ -44,4 +45,4 @@ public static void updateInstanceCallableFutureCallUpdateInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java index 115e954de0..acf8989d03 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest] @@ -46,4 +47,4 @@ public static void updateInstanceOperationCallableFutureCallUpdateInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java index 9a84513d68..63c80c0bb8 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget] @@ -36,4 +37,4 @@ public static void upgradeInstanceAsyncInstanceNameStringGet() throws Exception } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java index cc49cc4761..c7af623806 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget] @@ -36,4 +37,4 @@ public static void upgradeInstanceAsyncStringStringGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java index 68b09ac30e..7d89f633c6 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget] @@ -40,4 +41,4 @@ public static void upgradeInstanceAsyncUpgradeInstanceRequestGet() throws Except } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java index c561deaef5..9c4d708fc0 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest] @@ -43,4 +44,4 @@ public static void upgradeInstanceCallableFutureCallUpgradeInstanceRequest() thr } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java index e2c89c963b..679d847334 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest] @@ -46,4 +47,4 @@ public static void upgradeInstanceOperationCallableFutureCallUpgradeInstanceRequ } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java index 58b4e92bd6..7da220b4ae 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.samples; // [START redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings] @@ -41,4 +42,4 @@ public static void getInstanceSettingsSetRetrySettingsCloudRedisSettings() throw CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); } } -// [END redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java index 8a013c9729..26929a7945 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.redis.v1beta1.stub.samples; // [START redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings] @@ -41,4 +42,4 @@ public static void getInstanceSettingsSetRetrySettingsCloudRedisStubSettings() t CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); } } -// [END redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings] \ No newline at end of file +// [END redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java index 522ddac2ef..43690bd61b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest] @@ -55,4 +56,4 @@ public static void composeObjectCallableFutureCallComposeObjectRequest() throws } } } -// [END storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java index 655402180f..35bc8fd75c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_composeobject_composeobjectrequest] @@ -52,4 +53,4 @@ public static void composeObjectComposeObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_composeobject_composeobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_composeobject_composeobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java index 9170205956..1be74b9483 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_create_storagesettings1] @@ -37,4 +38,4 @@ public static void createStorageSettings1() throws Exception { StorageClient storageClient = StorageClient.create(storageSettings); } } -// [END storage_v2_generated_storageclient_create_storagesettings1] \ No newline at end of file +// [END storage_v2_generated_storageclient_create_storagesettings1] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java index 21039b36bd..1bacd7f056 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_create_storagesettings2] @@ -33,4 +34,4 @@ public static void createStorageSettings2() throws Exception { StorageClient storageClient = StorageClient.create(storageSettings); } } -// [END storage_v2_generated_storageclient_create_storagesettings2] \ No newline at end of file +// [END storage_v2_generated_storageclient_create_storagesettings2] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java index b2589faaa9..cbd761d2ef 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest] @@ -48,4 +49,4 @@ public static void createBucketCallableFutureCallCreateBucketRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java index 11b608d5e3..bf1578f5cb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createbucket_createbucketrequest] @@ -45,4 +46,4 @@ public static void createBucketCreateBucketRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_createbucket_createbucketrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_createbucket_createbucketrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java index 72617e7c69..680bc039fd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createbucket_projectnamebucketstring] @@ -37,4 +38,4 @@ public static void createBucketProjectNameBucketString() throws Exception { } } } -// [END storage_v2_generated_storageclient_createbucket_projectnamebucketstring] \ No newline at end of file +// [END storage_v2_generated_storageclient_createbucket_projectnamebucketstring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java index 9464e20b69..2ee8717ae6 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createbucket_stringbucketstring] @@ -37,4 +38,4 @@ public static void createBucketStringBucketString() throws Exception { } } } -// [END storage_v2_generated_storageclient_createbucket_stringbucketstring] \ No newline at end of file +// [END storage_v2_generated_storageclient_createbucket_stringbucketstring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java index 3efaae29b2..9ac9bfa4b2 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest] @@ -46,4 +47,4 @@ public static void createHmacKeyCallableFutureCallCreateHmacKeyRequest() throws } } } -// [END storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java index 9db8761433..9974de6081 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createhmackey_createhmackeyrequest] @@ -42,4 +43,4 @@ public static void createHmacKeyCreateHmacKeyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_createhmackey_createhmackeyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_createhmackey_createhmackeyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java index f8015cd4bd..f05bcb55d5 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createhmackey_projectnamestring] @@ -36,4 +37,4 @@ public static void createHmacKeyProjectNameString() throws Exception { } } } -// [END storage_v2_generated_storageclient_createhmackey_projectnamestring] \ No newline at end of file +// [END storage_v2_generated_storageclient_createhmackey_projectnamestring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java index 20da7784db..b0a17df922 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createhmackey_stringstring] @@ -36,4 +37,4 @@ public static void createHmacKeyStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_createhmackey_stringstring] \ No newline at end of file +// [END storage_v2_generated_storageclient_createhmackey_stringstring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java index a23d377f8f..9af28721c3 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest] @@ -45,4 +46,4 @@ public static void createNotificationCallableFutureCallCreateNotificationRequest } } } -// [END storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java index c975d6cc2f..0db3d7821d 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createnotification_createnotificationrequest] @@ -40,4 +41,4 @@ public static void createNotificationCreateNotificationRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_createnotification_createnotificationrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_createnotification_createnotificationrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java index 9301a1b9b0..fbce0c4eeb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createnotification_projectnamenotification] @@ -36,4 +37,4 @@ public static void createNotificationProjectNameNotification() throws Exception } } } -// [END storage_v2_generated_storageclient_createnotification_projectnamenotification] \ No newline at end of file +// [END storage_v2_generated_storageclient_createnotification_projectnamenotification] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java index 85bb94e5be..fe4cbb53b7 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_createnotification_stringnotification] @@ -36,4 +37,4 @@ public static void createNotificationStringNotification() throws Exception { } } } -// [END storage_v2_generated_storageclient_createnotification_stringnotification] \ No newline at end of file +// [END storage_v2_generated_storageclient_createnotification_stringnotification] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java index 05043043d8..fed5fdd5da 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletebucket_bucketname] @@ -35,4 +36,4 @@ public static void deleteBucketBucketName() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletebucket_bucketname] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletebucket_bucketname] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java index c626271f53..db34bca2ae 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest] @@ -46,4 +47,4 @@ public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java index 5360b4df78..b71379f3e6 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletebucket_deletebucketrequest] @@ -43,4 +44,4 @@ public static void deleteBucketDeleteBucketRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletebucket_deletebucketrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletebucket_deletebucketrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java index c915a0d7db..6eb166e42f 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletebucket_string] @@ -35,4 +36,4 @@ public static void deleteBucketString() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletebucket_string] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletebucket_string] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java index 69cd4be8a0..ff71fee9d8 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest] @@ -45,4 +46,4 @@ public static void deleteHmacKeyCallableFutureCallDeleteHmacKeyRequest() throws } } } -// [END storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java index 49ead72246..98964624ad 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest] @@ -42,4 +43,4 @@ public static void deleteHmacKeyDeleteHmacKeyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java index cab5a1a0de..e6ffef06ec 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletehmackey_stringprojectname] @@ -36,4 +37,4 @@ public static void deleteHmacKeyStringProjectName() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletehmackey_stringprojectname] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletehmackey_stringprojectname] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java index 2f9ba4553d..6d9689124c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletehmackey_stringstring] @@ -36,4 +37,4 @@ public static void deleteHmacKeyStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletehmackey_stringstring] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletehmackey_stringstring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java index 9cfe38c504..3fbcf952c5 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest] @@ -43,4 +44,4 @@ public static void deleteNotificationCallableFutureCallDeleteNotificationRequest } } } -// [END storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java index 939c3b33fd..b6587a7fc1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletenotification_deletenotificationrequest] @@ -39,4 +40,4 @@ public static void deleteNotificationDeleteNotificationRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_deletenotification_deletenotificationrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletenotification_deletenotificationrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java index 4ac74857c4..db36f31e91 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletenotification_notificationname] @@ -35,4 +36,4 @@ public static void deleteNotificationNotificationName() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletenotification_notificationname] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletenotification_notificationname] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java index 64a047c071..70a3b305eb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deletenotification_string] @@ -35,4 +36,4 @@ public static void deleteNotificationString() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletenotification_string] \ No newline at end of file +// [END storage_v2_generated_storageclient_deletenotification_string] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java index 2f94fcd722..fa896075d3 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest] @@ -52,4 +53,4 @@ public static void deleteObjectCallableFutureCallDeleteObjectRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java index ba50643181..010f9eabf8 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deleteobject_deleteobjectrequest] @@ -49,4 +50,4 @@ public static void deleteObjectDeleteObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_deleteobject_deleteobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_deleteobject_deleteobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java index 0d72e1a655..28755a3eeb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deleteobject_stringstring] @@ -35,4 +36,4 @@ public static void deleteObjectStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_deleteobject_stringstring] \ No newline at end of file +// [END storage_v2_generated_storageclient_deleteobject_stringstring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java index f92ca76e37..f00459c239 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_deleteobject_stringstringlong] @@ -36,4 +37,4 @@ public static void deleteObjectStringStringLong() throws Exception { } } } -// [END storage_v2_generated_storageclient_deleteobject_stringstringlong] \ No newline at end of file +// [END storage_v2_generated_storageclient_deleteobject_stringstringlong] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java index a904689f02..71f1b4e873 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getbucket_bucketname] @@ -35,4 +36,4 @@ public static void getBucketBucketName() throws Exception { } } } -// [END storage_v2_generated_storageclient_getbucket_bucketname] \ No newline at end of file +// [END storage_v2_generated_storageclient_getbucket_bucketname] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java index 02bcb0e5f5..130b95f5f1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest] @@ -48,4 +49,4 @@ public static void getBucketCallableFutureCallGetBucketRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java index 28ac0f03e1..8d709a16c6 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getbucket_getbucketrequest] @@ -45,4 +46,4 @@ public static void getBucketGetBucketRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_getbucket_getbucketrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getbucket_getbucketrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java index c5b4b96b1e..574419ed34 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getbucket_string] @@ -35,4 +36,4 @@ public static void getBucketString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getbucket_string] \ No newline at end of file +// [END storage_v2_generated_storageclient_getbucket_string] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java index 287432c3aa..368837d591 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest] @@ -45,4 +46,4 @@ public static void getHmacKeyCallableFutureCallGetHmacKeyRequest() throws Except } } } -// [END storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java index 8746921640..af45ba3ae7 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_gethmackey_gethmackeyrequest] @@ -42,4 +43,4 @@ public static void getHmacKeyGetHmacKeyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_gethmackey_gethmackeyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_gethmackey_gethmackeyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java index 008112f8eb..077e334f42 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_gethmackey_stringprojectname] @@ -36,4 +37,4 @@ public static void getHmacKeyStringProjectName() throws Exception { } } } -// [END storage_v2_generated_storageclient_gethmackey_stringprojectname] \ No newline at end of file +// [END storage_v2_generated_storageclient_gethmackey_stringprojectname] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java index e0737aff64..bbf444d760 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_gethmackey_stringstring] @@ -36,4 +37,4 @@ public static void getHmacKeyStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_gethmackey_stringstring] \ No newline at end of file +// [END storage_v2_generated_storageclient_gethmackey_stringstring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 70a9e10db6..140f06b380 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest] @@ -46,4 +47,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index b2d9b453a0..b981971511 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest] @@ -43,4 +44,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java index 9ba1a8a852..4dbd70b806 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getiampolicy_resourcename] @@ -37,4 +38,4 @@ public static void getIamPolicyResourceName() throws Exception { } } } -// [END storage_v2_generated_storageclient_getiampolicy_resourcename] \ No newline at end of file +// [END storage_v2_generated_storageclient_getiampolicy_resourcename] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java index b448deaf32..f03eaec3b0 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getiampolicy_string] @@ -36,4 +37,4 @@ public static void getIamPolicyString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getiampolicy_string] \ No newline at end of file +// [END storage_v2_generated_storageclient_getiampolicy_string] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java index f6e2098681..fa4f045ce3 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getnotification_bucketname] @@ -35,4 +36,4 @@ public static void getNotificationBucketName() throws Exception { } } } -// [END storage_v2_generated_storageclient_getnotification_bucketname] \ No newline at end of file +// [END storage_v2_generated_storageclient_getnotification_bucketname] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java index 651087fd51..b807c11ba5 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest] @@ -42,4 +43,4 @@ public static void getNotificationCallableFutureCallGetNotificationRequest() thr } } } -// [END storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java index b094916202..de8397b380 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getnotification_getnotificationrequest] @@ -39,4 +40,4 @@ public static void getNotificationGetNotificationRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_getnotification_getnotificationrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getnotification_getnotificationrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java index 4ed128fe7a..641213ca3a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getnotification_string] @@ -35,4 +36,4 @@ public static void getNotificationString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getnotification_string] \ No newline at end of file +// [END storage_v2_generated_storageclient_getnotification_string] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java index a41d9741d2..89227e6f0d 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest] @@ -53,4 +54,4 @@ public static void getObjectCallableFutureCallGetObjectRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java index 896b0b146d..c296ba8eb4 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getobject_getobjectrequest] @@ -50,4 +51,4 @@ public static void getObjectGetObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_getobject_getobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getobject_getobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java index 2e2302ee5a..0cb90e21ab 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getobject_stringstring] @@ -35,4 +36,4 @@ public static void getObjectStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getobject_stringstring] \ No newline at end of file +// [END storage_v2_generated_storageclient_getobject_stringstring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java index c70bd4ada7..cd17ab2c9a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getobject_stringstringlong] @@ -36,4 +37,4 @@ public static void getObjectStringStringLong() throws Exception { } } } -// [END storage_v2_generated_storageclient_getobject_stringstringlong] \ No newline at end of file +// [END storage_v2_generated_storageclient_getobject_stringstringlong] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java index ab558b737c..6a3826eac3 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest] @@ -46,4 +47,4 @@ public static void getServiceAccountCallableFutureCallGetServiceAccountRequest() } } } -// [END storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java index f58331f444..d2e3a2c158 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest] @@ -41,4 +42,4 @@ public static void getServiceAccountGetServiceAccountRequest() throws Exception } } } -// [END storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java index 8aa7eebf79..8558c89585 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getserviceaccount_projectname] @@ -35,4 +36,4 @@ public static void getServiceAccountProjectName() throws Exception { } } } -// [END storage_v2_generated_storageclient_getserviceaccount_projectname] \ No newline at end of file +// [END storage_v2_generated_storageclient_getserviceaccount_projectname] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java index 4dd5e35482..4dab59fbcd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_getserviceaccount_string] @@ -35,4 +36,4 @@ public static void getServiceAccountString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getserviceaccount_string] \ No newline at end of file +// [END storage_v2_generated_storageclient_getserviceaccount_string] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java index 93c5fadec9..a9c77024d9 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest] @@ -59,4 +60,4 @@ public static void listBucketsCallableCallListBucketsRequest() throws Exception } } } -// [END storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java index 72033abae9..6f7acd76dd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall] @@ -48,4 +49,4 @@ public static void listBucketsListBucketsRequestIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java index 66985890aa..d690032729 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] @@ -51,4 +52,4 @@ public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws } } } -// [END storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java index cabfbdfa47..e59b195804 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listbuckets_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listBucketsProjectNameIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listbuckets_projectnameiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listbuckets_projectnameiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java index 6d01ff5db1..02e7495299 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listbuckets_stringiterateall] @@ -37,4 +38,4 @@ public static void listBucketsStringIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listbuckets_stringiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listbuckets_stringiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java index 6de67b73d5..02ba97242c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest] @@ -58,4 +59,4 @@ public static void listHmacKeysCallableCallListHmacKeysRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java index 49ae116c85..aac1a5f354 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall] @@ -47,4 +48,4 @@ public static void listHmacKeysListHmacKeysRequestIterateAll() throws Exception } } } -// [END storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java index ff28880164..84ffd87a3b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest] @@ -51,4 +52,4 @@ public static void listHmacKeysPagedCallableFutureCallListHmacKeysRequest() thro } } } -// [END storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java index 62240f333f..6f7a9de8a1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listhmackeys_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listHmacKeysProjectNameIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listhmackeys_projectnameiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listhmackeys_projectnameiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java index 6cd1a026d0..0b69f4c9bd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listhmackeys_stringiterateall] @@ -37,4 +38,4 @@ public static void listHmacKeysStringIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listhmackeys_stringiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listhmackeys_stringiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java index 2a438bc708..3f9d0d33cd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest] @@ -55,4 +56,4 @@ public static void listNotificationsCallableCallListNotificationsRequest() throw } } } -// [END storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java index 407d780e47..feb9e3ce8d 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall] @@ -43,4 +44,4 @@ public static void listNotificationsListNotificationsRequestIterateAll() throws } } } -// [END storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java index b2d5f46493..593abb0633 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest] @@ -48,4 +49,4 @@ public static void listNotificationsPagedCallableFutureCallListNotificationsRequ } } } -// [END storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java index e7d6914b05..30aa687aec 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listnotifications_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listNotificationsProjectNameIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listnotifications_projectnameiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listnotifications_projectnameiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java index c73f4be179..29bb23d88a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listnotifications_stringiterateall] @@ -37,4 +38,4 @@ public static void listNotificationsStringIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listnotifications_stringiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listnotifications_stringiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java index b5c9569bfa..c9e7684a29 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest] @@ -64,4 +65,4 @@ public static void listObjectsCallableCallListObjectsRequest() throws Exception } } } -// [END storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java index a3ff153a0d..45c8bc2281 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall] @@ -53,4 +54,4 @@ public static void listObjectsListObjectsRequestIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java index f71989b16e..9764e5f876 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest] @@ -56,4 +57,4 @@ public static void listObjectsPagedCallableFutureCallListObjectsRequest() throws } } } -// [END storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java index d8de8bca18..d4f483a5fd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listobjects_projectnameiterateall] @@ -37,4 +38,4 @@ public static void listObjectsProjectNameIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listobjects_projectnameiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listobjects_projectnameiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java index e2b61e88a1..e588477374 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_listobjects_stringiterateall] @@ -37,4 +38,4 @@ public static void listObjectsStringIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listobjects_stringiterateall] \ No newline at end of file +// [END storage_v2_generated_storageclient_listobjects_stringiterateall] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java index 6afbe752a3..6c9e1575c3 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname] @@ -35,4 +36,4 @@ public static void lockBucketRetentionPolicyBucketName() throws Exception { } } } -// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname] \ No newline at end of file +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java index 55e823315d..1047008e8b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest] @@ -47,4 +48,4 @@ public static void lockBucketRetentionPolicyCallableFutureCallLockBucketRetentio } } } -// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java index 8979089588..faf37bdaa0 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest] @@ -42,4 +43,4 @@ public static void lockBucketRetentionPolicyLockBucketRetentionPolicyRequest() t } } } -// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java index 5d86e8e1b2..f38daed1bb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_lockbucketretentionpolicy_string] @@ -35,4 +36,4 @@ public static void lockBucketRetentionPolicyString() throws Exception { } } } -// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_string] \ No newline at end of file +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_string] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java index e1f0acf08a..83ae64a379 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest] @@ -46,4 +47,4 @@ public static void queryWriteStatusCallableFutureCallQueryWriteStatusRequest() t } } } -// [END storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java index 9b54333582..1ffa269d59 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest] @@ -42,4 +43,4 @@ public static void queryWriteStatusQueryWriteStatusRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java index 5a53d74a05..ac429256a8 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_querywritestatus_string] @@ -34,4 +35,4 @@ public static void queryWriteStatusString() throws Exception { } } } -// [END storage_v2_generated_storageclient_querywritestatus_string] \ No newline at end of file +// [END storage_v2_generated_storageclient_querywritestatus_string] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java index ccd540d4a6..1f81735525 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest] @@ -56,4 +57,4 @@ public static void readObjectCallableCallReadObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java index 32e5e5f110..ab899e2326 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest] @@ -72,4 +73,4 @@ public static void rewriteObjectCallableFutureCallRewriteObjectRequest() throws } } } -// [END storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java index c94aeb405a..3c73af861a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest] @@ -69,4 +70,4 @@ public static void rewriteObjectRewriteObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index 0f3fdd05b0..3495d29acb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest] @@ -45,4 +46,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java index ed88b62e00..88c4ad4afd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy] @@ -38,4 +39,4 @@ public static void setIamPolicyResourceNamePolicy() throws Exception { } } } -// [END storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy] \ No newline at end of file +// [END storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index d4ff10bfe1..6efcd8f83f 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest] @@ -42,4 +43,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java index 108d431411..e08773018d 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_setiampolicy_stringpolicy] @@ -37,4 +38,4 @@ public static void setIamPolicyStringPolicy() throws Exception { } } } -// [END storage_v2_generated_storageclient_setiampolicy_stringpolicy] \ No newline at end of file +// [END storage_v2_generated_storageclient_setiampolicy_stringpolicy] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java index 14cb34fd69..a59fd356df 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest] @@ -48,4 +49,4 @@ public static void startResumableWriteCallableFutureCallStartResumableWriteReque } } } -// [END storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java index 4af29ff9f6..b6dd164040 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest] @@ -43,4 +44,4 @@ public static void startResumableWriteStartResumableWriteRequest() throws Except } } } -// [END storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index 58302c2ef4..e01cea4fe1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest] @@ -48,4 +49,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java index 327c9646d4..1b1660a42e 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_testiampermissions_resourcenameliststring] @@ -40,4 +41,4 @@ public static void testIamPermissionsResourceNameListString() throws Exception { } } } -// [END storage_v2_generated_storageclient_testiampermissions_resourcenameliststring] \ No newline at end of file +// [END storage_v2_generated_storageclient_testiampermissions_resourcenameliststring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java index 7ff6c868af..f5ca4c268c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_testiampermissions_stringliststring] @@ -39,4 +40,4 @@ public static void testIamPermissionsStringListString() throws Exception { } } } -// [END storage_v2_generated_storageclient_testiampermissions_stringliststring] \ No newline at end of file +// [END storage_v2_generated_storageclient_testiampermissions_stringliststring] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index a773f3d9b7..ba14aec0f7 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest] @@ -43,4 +44,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java index e4cf15a5c9..09f510723b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updatebucket_bucketfieldmask] @@ -36,4 +37,4 @@ public static void updateBucketBucketFieldMask() throws Exception { } } } -// [END storage_v2_generated_storageclient_updatebucket_bucketfieldmask] \ No newline at end of file +// [END storage_v2_generated_storageclient_updatebucket_bucketfieldmask] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java index 9306cc258a..e74f8d3bc1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest] @@ -51,4 +52,4 @@ public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java index ed9db9b4de..6a86cdc187 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updatebucket_updatebucketrequest] @@ -48,4 +49,4 @@ public static void updateBucketUpdateBucketRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_updatebucket_updatebucketrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_updatebucket_updatebucketrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java index 13d50767bb..5dca888c67 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest] @@ -45,4 +46,4 @@ public static void updateHmacKeyCallableFutureCallUpdateHmacKeyRequest() throws } } } -// [END storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java index 1b08039093..9addacb99d 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask] @@ -36,4 +37,4 @@ public static void updateHmacKeyHmacKeyMetadataFieldMask() throws Exception { } } } -// [END storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask] \ No newline at end of file +// [END storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java index 00922474c9..bac8611fe1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest] @@ -42,4 +43,4 @@ public static void updateHmacKeyUpdateHmacKeyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java index cfdc1ef2dc..38b46ac07a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest] @@ -53,4 +54,4 @@ public static void updateObjectCallableFutureCallUpdateObjectRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java index 1f0bb62891..bad10d7c23 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updateobject_objectfieldmask] @@ -36,4 +37,4 @@ public static void updateObjectObjectFieldMask() throws Exception { } } } -// [END storage_v2_generated_storageclient_updateobject_objectfieldmask] \ No newline at end of file +// [END storage_v2_generated_storageclient_updateobject_objectfieldmask] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java index ebf51e0765..4d407ab7a1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_updateobject_updateobjectrequest] @@ -50,4 +51,4 @@ public static void updateObjectUpdateObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_updateobject_updateobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_updateobject_updateobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java index 2c6a848a72..4751db455c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest] @@ -65,4 +66,4 @@ public void onCompleted() { } } } -// [END storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest] \ No newline at end of file +// [END storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java index 44be288392..ff422821e0 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.samples; // [START storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings] @@ -41,4 +42,4 @@ public static void deleteBucketSettingsSetRetrySettingsStorageSettings() throws StorageSettings storageSettings = storageSettingsBuilder.build(); } } -// [END storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings] \ No newline at end of file +// [END storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java index 5b6e5b6d55..ff1691abde 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.storage.v2.stub.samples; // [START storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings] @@ -41,4 +42,4 @@ public static void deleteBucketSettingsSetRetrySettingsStorageStubSettings() thr StorageStubSettings storageSettings = storageSettingsBuilder.build(); } } -// [END storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings] \ No newline at end of file +// [END storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings] From d44185fd2bdcfbb3157456280e6c1ecb026fe609 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 4 Mar 2022 16:57:13 -0800 Subject: [PATCH 15/29] formatting --- .../gapic/composer/samplecode/SampleComposerTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java index 5c51a7c00f..3aeb964da9 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java @@ -13,6 +13,8 @@ // limitations under the License. package com.google.api.generator.gapic.composer.samplecode; +import static org.junit.Assert.assertEquals; + import com.google.api.generator.engine.ast.AssignmentExpr; import com.google.api.generator.engine.ast.ClassDefinition; import com.google.api.generator.engine.ast.Expr; @@ -31,12 +33,9 @@ import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.testutils.LineFormatter; import com.google.common.collect.ImmutableList; -import org.junit.Test; - import java.util.Arrays; import java.util.List; - -import static org.junit.Assert.assertEquals; +import org.junit.Test; public class SampleComposerTest { private final String packageName = "com.google.example"; From 223853f129bfbdfdff2b6764054a4a1211dc28b6 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 4 Mar 2022 17:25:19 -0800 Subject: [PATCH 16/29] refactor: writing --- .../generator/engine/ast/ClassDefinition.java | 6 + .../engine/writer/JavaWriterVisitor.java | 29 ++++- .../composer/samplecode/SampleCodeWriter.java | 20 +++- .../composer/samplecode/SampleComposer.java | 72 ++++-------- .../api/generator/gapic/model/RegionTag.java | 31 +++++ .../api/generator/gapic/model/Sample.java | 7 +- .../samplecode/SampleCodeWriterTest.java | 99 ++++++++++++++-- .../samplecode/SampleComposerTest.java | 110 ++++-------------- .../generator/gapic/model/RegionTagTest.java | 69 ++++++++++- .../api/generator/gapic/model/SampleTest.java | 2 +- 10 files changed, 291 insertions(+), 154 deletions(-) diff --git a/src/main/java/com/google/api/generator/engine/ast/ClassDefinition.java b/src/main/java/com/google/api/generator/engine/ast/ClassDefinition.java index ec8f4f7b43..4e1211ba3a 100644 --- a/src/main/java/com/google/api/generator/engine/ast/ClassDefinition.java +++ b/src/main/java/com/google/api/generator/engine/ast/ClassDefinition.java @@ -14,6 +14,7 @@ package com.google.api.generator.engine.ast; +import com.google.api.generator.gapic.model.RegionTag; import com.google.auto.value.AutoValue; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; @@ -26,6 +27,9 @@ public abstract class ClassDefinition implements AstNode { // Optional. public abstract ImmutableList fileHeader(); + // Required for samples classes. + @Nullable + public abstract RegionTag regionTag(); // Required. public abstract ScopeNode scope(); // Required. @@ -92,6 +96,8 @@ public Builder setFileHeader(CommentStatement... headerComments) { public abstract Builder setFileHeader(List fileHeader); + public abstract Builder setRegionTag(RegionTag regionTag); + public Builder setHeaderCommentStatements(CommentStatement... comments) { return setHeaderCommentStatements(Arrays.asList(comments)); } diff --git a/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java b/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java index b1d750157e..d1ef68f34c 100644 --- a/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java +++ b/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java @@ -63,6 +63,7 @@ import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.engine.ast.WhileStatement; +import com.google.api.generator.gapic.model.RegionTag; import java.util.Arrays; import java.util.Iterator; import java.util.List; @@ -910,6 +911,15 @@ public void visit(ClassDefinition classDefinition) { newline(); } + String regionTagReplace = "REPLACE_REGION_TAG"; + if (classDefinition.regionTag() != null) { + statements( + Arrays.asList( + classDefinition + .regionTag() + .generateTag(RegionTag.RegionTagRegion.START, regionTagReplace))); + } + // This must go first, so that we can check for type collisions. classDefinition.accept(importWriterVisitor); if (!classDefinition.isNested()) { @@ -974,10 +984,27 @@ public void visit(ClassDefinition classDefinition) { classes(classDefinition.nestedClasses()); rightBrace(); + if (classDefinition.regionTag() != null) { + statements( + Arrays.asList( + classDefinition + .regionTag() + .generateTag(RegionTag.RegionTagRegion.END, regionTagReplace))); + } // We should have valid Java by now, so format it. if (!classDefinition.isNested()) { - buffer.replace(0, buffer.length(), JavaFormatter.format(buffer.toString())); + String formattedClazz = JavaFormatter.format(buffer.toString()); + + // fixing region tag after formatting + // formatter splits long region tags on multiple lines and moves the end tag up - doesn't meet + // tag requirements + if (classDefinition.regionTag() != null) { + formattedClazz = + formattedClazz.replaceAll(regionTagReplace, classDefinition.regionTag().generate()); + formattedClazz = formattedClazz.replaceAll("} // \\[END", "}\n// \\[END"); + } + buffer.replace(0, buffer.length(), formattedClazz); } } diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java index 74b3c5c69a..60a5092598 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java @@ -17,16 +17,23 @@ import com.google.api.generator.engine.ast.ClassDefinition; import com.google.api.generator.engine.ast.Statement; import com.google.api.generator.engine.writer.JavaWriterVisitor; +import com.google.api.generator.gapic.model.Sample; +import com.google.common.annotations.VisibleForTesting; import java.util.Arrays; import java.util.List; public final class SampleCodeWriter { - static String write(Statement... statement) { - return write(Arrays.asList(statement)); + public static String writeInlineSample(List statements) { + return write(SampleComposer.composeInlineSample(statements)); + } + + public static String writeExecutableSample(Sample sample, String packkage) { + return write(SampleComposer.composeExecutableSample(sample, packkage)); } - static String write(List statements) { + @VisibleForTesting + public static String write(List statements) { JavaWriterVisitor visitor = new JavaWriterVisitor(); for (Statement statement : statements) { statement.accept(visitor); @@ -36,9 +43,14 @@ static String write(List statements) { return formattedSampleCode.replaceAll("@", "{@literal @}"); } - static String write(ClassDefinition classDefinition) { + @VisibleForTesting + public static String write(ClassDefinition classDefinition) { JavaWriterVisitor visitor = new JavaWriterVisitor(); classDefinition.accept(visitor); return visitor.write(); } + + public static String write(Statement... statement) { + return write(Arrays.asList(statement)); + } } diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java index 12bfce044a..3bc22ef4bc 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java @@ -16,6 +16,7 @@ import com.google.api.generator.engine.ast.AssignmentExpr; import com.google.api.generator.engine.ast.ClassDefinition; +import com.google.api.generator.engine.ast.CommentStatement; import com.google.api.generator.engine.ast.Expr; import com.google.api.generator.engine.ast.ExprStatement; import com.google.api.generator.engine.ast.MethodDefinition; @@ -29,8 +30,6 @@ import com.google.api.generator.gapic.model.RegionTag; import com.google.api.generator.gapic.model.Sample; import com.google.api.generator.gapic.utils.JavaStyle; -import com.google.common.annotations.VisibleForTesting; -import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.Arrays; @@ -38,66 +37,36 @@ import java.util.stream.Collectors; public class SampleComposer { - public static String createInlineSample(List sampleBody) { - List statementsWithComment = new ArrayList<>(); - statementsWithComment.addAll(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT); - statementsWithComment.addAll(sampleBody); - return SampleCodeWriter.write(statementsWithComment); + static List composeInlineSample(List sampleBody) { + return bodyWithComment(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT, sampleBody); } // "Executable" meaning it includes the necessary code to execute java code, // still may require additional configuration to actually execute generated sample code - public static String createExecutableSample(Sample sample, String pakkage) { - Preconditions.checkState(!sample.fileHeader().isEmpty(), "File header should not be empty"); - String sampleHeader = SampleCodeWriter.write(sample.fileHeader()); - String sampleClass = - SampleCodeWriter.write( - composeExecutableSample( - pakkage, - sample.name(), - sample.variableAssignments(), - bodyWithComment(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT, sample.body()))); - sampleClass = includeRegionTags(sampleClass, sample.regionTag()); - return String.format("%s\n%s", sampleHeader, sampleClass); + static ClassDefinition composeExecutableSample(Sample sample, String pakkage) { + return createExecutableSample( + sample.fileHeader(), + pakkage, + sample.name(), + sample.variableAssignments(), + bodyWithComment(CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT, sample.body()), + sample.regionTag()); } private static List bodyWithComment( List autoGeneratedComment, List sampleBody) { - List bodyWithComment = new ArrayList<>(); - bodyWithComment.addAll(autoGeneratedComment); + List bodyWithComment = new ArrayList<>(autoGeneratedComment); bodyWithComment.addAll(sampleBody); return bodyWithComment; } - @VisibleForTesting - protected static String includeRegionTags(String sampleClass, RegionTag regionTag) { - Preconditions.checkState( - !regionTag.apiShortName().isEmpty(), "apiShortName should not be empty"); - String rt = regionTag.apiShortName() + "_"; - if (!regionTag.apiVersion().isEmpty()) { - rt = rt + regionTag.apiVersion() + "_"; - } - rt = rt + "generated_" + regionTag.serviceName() + "_" + regionTag.rpcName(); - if (!regionTag.overloadDisambiguation().isEmpty()) { - rt = rt + "_" + regionTag.overloadDisambiguation(); - } - String start = String.format("// [START %s]", rt.toLowerCase()); - String end = String.format("// [END %s]", rt.toLowerCase()); - - String sampleWithRegionTags = String.format("%s%s", start, sampleClass); - // START region tag should go below package statement - if (sampleClass.startsWith("package")) { - sampleWithRegionTags = sampleClass.replaceAll("(^package .+\n)", "$1\n" + start); - } - sampleWithRegionTags = String.format("%s%s", sampleWithRegionTags, end); - return sampleWithRegionTags; - } - - private static ClassDefinition composeExecutableSample( + private static ClassDefinition createExecutableSample( + List fileHeader, String packageName, String sampleMethodName, List sampleVariableAssignments, - List sampleBody) { + List sampleBody, + RegionTag regionTag) { String sampleClassName = JavaStyle.toUpperCamelCase(sampleMethodName); List sampleMethodArgs = composeSampleMethodArgs(sampleVariableAssignments); @@ -108,7 +77,8 @@ private static ClassDefinition composeExecutableSample( composeInvokeMethodStatement(sampleMethodName, sampleMethodArgs))); MethodDefinition sampleMethod = composeSampleMethod(sampleMethodName, sampleMethodArgs, sampleBody); - return composeSampleClass(packageName, sampleClassName, mainMethod, sampleMethod); + return composeSampleClass( + fileHeader, packageName, sampleClassName, mainMethod, sampleMethod, regionTag); } private static List composeSampleMethodArgs( @@ -143,11 +113,15 @@ private static List composeMainBody( } private static ClassDefinition composeSampleClass( + List fileHeader, String packageName, String sampleClassName, MethodDefinition mainMethod, - MethodDefinition sampleMethod) { + MethodDefinition sampleMethod, + RegionTag regionTag) { return ClassDefinition.builder() + .setFileHeader(fileHeader) + .setRegionTag(regionTag) .setScope(ScopeNode.PUBLIC) .setPackageString(packageName) .setName(sampleClassName) diff --git a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java index aec3965e7e..e7971d8fc0 100644 --- a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java +++ b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java @@ -14,8 +14,11 @@ package com.google.api.generator.gapic.model; +import com.google.api.generator.engine.ast.CommentStatement; +import com.google.api.generator.engine.ast.LineComment; import com.google.api.generator.gapic.utils.JavaStyle; import com.google.auto.value.AutoValue; +import com.google.common.base.Preconditions; @AutoValue public abstract class RegionTag { @@ -91,4 +94,32 @@ private final String sanitizeVersion(String version) { return JavaStyle.toLowerCamelCase(version.replaceAll("[^a-zA-Z0-9.]", "")); } } + + public enum RegionTagRegion { + START, + END + } + + public String generate() { + Preconditions.checkState(!apiShortName().isEmpty(), "apiShortName can't be empty"); + Preconditions.checkState(!serviceName().isEmpty(), "serviceName can't be empty"); + Preconditions.checkState(!rpcName().isEmpty(), "rpcName can't be empty"); + + String rt = apiShortName() + "_"; + if (!apiVersion().isEmpty()) { + rt = rt + apiVersion() + "_"; + } + rt = rt + "generated_" + serviceName() + "_" + rpcName(); + if (!overloadDisambiguation().isEmpty()) { + rt = rt + "_" + overloadDisambiguation(); + } + + return rt.toLowerCase(); + } + + public static CommentStatement generateTag( + RegionTagRegion regionTagRegion, String regionTagContent) { + return CommentStatement.withComment( + LineComment.withComment("[" + regionTagRegion.name() + " " + regionTagContent + "]")); + } } diff --git a/src/main/java/com/google/api/generator/gapic/model/Sample.java b/src/main/java/com/google/api/generator/gapic/model/Sample.java index 978d8a0b67..53666ad0fc 100644 --- a/src/main/java/com/google/api/generator/gapic/model/Sample.java +++ b/src/main/java/com/google/api/generator/gapic/model/Sample.java @@ -15,6 +15,7 @@ package com.google.api.generator.gapic.model; import com.google.api.generator.engine.ast.AssignmentExpr; +import com.google.api.generator.engine.ast.CommentStatement; import com.google.api.generator.engine.ast.Statement; import com.google.api.generator.gapic.utils.JavaStyle; import com.google.auto.value.AutoValue; @@ -27,7 +28,7 @@ public abstract class Sample { public abstract List variableAssignments(); - public abstract List fileHeader(); + public abstract List fileHeader(); public abstract RegionTag regionTag(); @@ -42,7 +43,7 @@ public static Builder builder() { abstract Builder toBuilder(); - public final Sample withHeader(List header) { + public final Sample withHeader(List header) { return toBuilder().setFileHeader(header).build(); } @@ -56,7 +57,7 @@ public abstract static class Builder { public abstract Builder setVariableAssignments(List variableAssignments); - public abstract Builder setFileHeader(List header); + public abstract Builder setFileHeader(List header); public abstract Builder setRegionTag(RegionTag regionTag); diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java index d9456c7dcf..96287b82bd 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java @@ -14,10 +14,10 @@ package com.google.api.generator.gapic.composer.samplecode; -import static junit.framework.TestCase.assertEquals; - import com.google.api.gax.rpc.ClientSettings; import com.google.api.generator.engine.ast.AssignmentExpr; +import com.google.api.generator.engine.ast.BlockComment; +import com.google.api.generator.engine.ast.CommentStatement; import com.google.api.generator.engine.ast.ConcreteReference; import com.google.api.generator.engine.ast.ExprStatement; import com.google.api.generator.engine.ast.MethodInvocationExpr; @@ -28,12 +28,23 @@ import com.google.api.generator.engine.ast.ValueExpr; import com.google.api.generator.engine.ast.Variable; import com.google.api.generator.engine.ast.VariableExpr; +import com.google.api.generator.gapic.model.RegionTag; +import com.google.api.generator.gapic.model.Sample; +import com.google.api.generator.testutils.LineFormatter; import java.util.Arrays; +import java.util.List; +import org.junit.Assert; +import org.junit.BeforeClass; import org.junit.Test; public class SampleCodeWriterTest { - @Test - public void writeSampleCode_statements() { + private static String packageName = "com.google.samples"; + private static List testingSampleStatements; + private static Sample testingSample; + private static RegionTag regionTag; + + @BeforeClass + public static void setUp() { TypeNode settingType = TypeNode.withReference(ConcreteReference.withClazz(ClientSettings.class)); Variable aVar = Variable.builder().setName("clientSettings").setType(settingType).build(); @@ -53,23 +64,95 @@ public void writeSampleCode_statements() { .setVariableExpr(aVarExpr.toBuilder().setIsDecl(true).build()) .setValueExpr(aValueExpr) .build(); - Statement sampleStatement = + TryCatchStatement sampleStatement = TryCatchStatement.builder() .setTryResourceExpr(createAssignmentExpr("aBool", "false", TypeNode.BOOLEAN)) .setTryBody( Arrays.asList(ExprStatement.withExpr(createAssignmentExpr("x", "3", TypeNode.INT)))) .setIsSampleCode(true) .build(); - String result = SampleCodeWriter.write(ExprStatement.withExpr(assignmentExpr), sampleStatement); + + testingSampleStatements = + Arrays.asList(ExprStatement.withExpr(assignmentExpr), sampleStatement); + regionTag = + RegionTag.builder() + .setApiShortName("testing") + .setApiVersion("v1") + .setServiceName("samples") + .setRpcName("write") + .build(); + testingSample = + Sample.builder() + .setFileHeader( + Arrays.asList( + CommentStatement.withComment(BlockComment.withComment("Apache License")))) + .setBody(testingSampleStatements) + .setRegionTag(regionTag) + .build(); + } + + @Test + public void writeSampleCodeStatements() { + String result = SampleCodeWriter.write(testingSampleStatements); String expected = "ClientSettings clientSettings = ClientSettings.newBuilder().build();\n" + "try (boolean aBool = false) {\n" + " int x = 3;\n" + "}"; - assertEquals(expected, result); + Assert.assertEquals(expected, result); + } + + @Test + public void writeInlineSample() { + String result = SampleCodeWriter.writeInlineSample(testingSampleStatements); + String expected = + LineFormatter.lines( + "// This snippet has been automatically generated for illustrative purposes only.\n", + "// It may require modifications to work in your environment.\n", + "ClientSettings clientSettings = ClientSettings.newBuilder().build();\n", + "try (boolean aBool = false) {\n", + " int x = 3;\n", + "}"); + Assert.assertEquals(expected, result); + } + + @Test + public void writeExecutableSample() { + Sample sample = + testingSample.withRegionTag(regionTag.withOverloadDisambiguation("ExecutableSample")); + String result = SampleCodeWriter.writeExecutableSample(sample, packageName); + String expected = + LineFormatter.lines( + "/*\n", + " * Apache License\n", + " */\n", + "\n", + "package com.google.samples;\n", + "\n", + "// [START testing_v1_generated_samples_write_executablesample]\n", + "import com.google.api.gax.rpc.ClientSettings;\n", + "\n", + "public class WriteExecutableSample {\n", + "\n", + " public static void main(String[] args) throws Exception {\n", + " writeExecutableSample();\n", + " }\n", + "\n", + " public static void writeExecutableSample() throws Exception {\n", + " // This snippet has been automatically generated for illustrative purposes only.\n", + " // It may require modifications to work in your environment.\n", + " ClientSettings clientSettings = ClientSettings.newBuilder().build();\n", + " try (boolean aBool = false) {\n", + " int x = 3;\n", + " }\n", + " }\n", + "}\n", + "// [END testing_v1_generated_samples_write_executablesample]\n"); + Assert.assertEquals(expected, result); } - private AssignmentExpr createAssignmentExpr(String varName, String varValue, TypeNode type) { + private static AssignmentExpr createAssignmentExpr( + String varName, String varValue, TypeNode type) { Variable variable = Variable.builder().setName(varName).setType(type).build(); VariableExpr variableExpr = VariableExpr.builder().setVariable(variable).setIsDecl(true).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java index 603382b950..3aeb964da9 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java @@ -14,11 +14,9 @@ package com.google.api.generator.gapic.composer.samplecode; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThrows; import com.google.api.generator.engine.ast.AssignmentExpr; -import com.google.api.generator.engine.ast.BlockComment; -import com.google.api.generator.engine.ast.CommentStatement; +import com.google.api.generator.engine.ast.ClassDefinition; import com.google.api.generator.engine.ast.Expr; import com.google.api.generator.engine.ast.ExprStatement; import com.google.api.generator.engine.ast.MethodInvocationExpr; @@ -41,26 +39,13 @@ public class SampleComposerTest { private final String packageName = "com.google.example"; - private final List header = - Arrays.asList(CommentStatement.withComment(BlockComment.withComment("Apache License"))); private final RegionTag.Builder regionTag = - RegionTag.builder().setApiShortName("echo").setApiVersion("v1beta").setServiceName("echo"); - - @Test - public void createExecutableSampleNoSample() { - assertThrows( - NullPointerException.class, () -> SampleComposer.createExecutableSample(null, packageName)); - } - - @Test - public void createInlineSampleNoSample() { - assertThrows(NullPointerException.class, () -> SampleComposer.createInlineSample(null)); - } + RegionTag.builder().setApiShortName("apiName").setServiceName("echo"); @Test public void createInlineSample() { List sampleBody = Arrays.asList(ExprStatement.withExpr(systemOutPrint("testing"))); - String sampleResult = SampleComposer.createInlineSample(sampleBody); + String sampleResult = writeSample(SampleComposer.composeInlineSample(sampleBody)); String expected = LineFormatter.lines( "// This snippet has been automatically generated for illustrative purposes only.\n", @@ -70,52 +55,10 @@ public void createInlineSample() { assertEquals(expected, sampleResult); } - @Test - public void createExecutableSampleMissingApiName() { - Sample noApiShortNameSample = - Sample.builder() - .setRegionTag( - regionTag - .setApiShortName("") - .setRpcName("createExecutableSample") - .setOverloadDisambiguation("MissingApiShortName") - .build()) - .build(); - - assertThrows( - IllegalStateException.class, - () -> SampleComposer.createExecutableSample(noApiShortNameSample, packageName)); - } - - @Test - public void createExecutableSampleNoHeader() { - Sample sample = - Sample.builder() - .setRegionTag( - regionTag - .setRpcName("createExecutableSample") - .setOverloadDisambiguation("NoHeader") - .build()) - .build(); - assertThrows( - IllegalStateException.class, - () -> SampleComposer.createExecutableSample(sample, packageName)); - } - - @Test - public void includeRegionTagMissingApiVersionMissingOverload() { - String sampleResult = - SampleComposer.includeRegionTags( - "", regionTag.setApiVersion("").setRpcName("rpcName").build()); - String expected = "// [START echo_generated_echo_rpcname]// [END echo_generated_echo_rpcname]"; - assertEquals(expected, sampleResult); - } - @Test public void createExecutableSampleEmptyStatementSample() { Sample sample = Sample.builder() - .setFileHeader(header) .setRegionTag( regionTag .setRpcName("createExecutableSample") @@ -123,15 +66,12 @@ public void createExecutableSampleEmptyStatementSample() { .build()) .build(); - String sampleResult = SampleComposer.createExecutableSample(sample, packageName); + String sampleResult = writeSample(SampleComposer.composeExecutableSample(sample, packageName)); String expected = LineFormatter.lines( - "/*\n", - " * Apache License\n", - " */\n", "package com.google.example;\n", "\n", - "// [START echo_v1beta_generated_echo_createexecutablesample_emptystatementsample]\n", + "// [START apiname_generated_echo_createexecutablesample_emptystatementsample]\n", "public class CreateExecutableSampleEmptyStatementSample {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -143,7 +83,7 @@ public void createExecutableSampleEmptyStatementSample() { " // It may require modifications to work in your environment.\n", " }\n", "}\n", - "// [END echo_v1beta_generated_echo_createexecutablesample_emptystatementsample]"); + "// [END apiname_generated_echo_createexecutablesample_emptystatementsample]\n"); assertEquals(expected, sampleResult); } @@ -155,7 +95,6 @@ public void createExecutableSampleMethodArgsNoVar() { Sample sample = Sample.builder() .setBody(ImmutableList.of(sampleBody)) - .setFileHeader(header) .setRegionTag( regionTag .setRpcName("createExecutableSample") @@ -163,15 +102,12 @@ public void createExecutableSampleMethodArgsNoVar() { .build()) .build(); - String sampleResult = SampleComposer.createExecutableSample(sample, packageName); + String sampleResult = writeSample(SampleComposer.composeExecutableSample(sample, packageName)); String expected = LineFormatter.lines( - "/*\n", - " * Apache License\n", - " */\n", "package com.google.example;\n", "\n", - "// [START echo_v1beta_generated_echo_createexecutablesample_methodargsnovar]\n", + "// [START apiname_generated_echo_createexecutablesample_methodargsnovar]\n", "public class CreateExecutableSampleMethodArgsNoVar {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -184,7 +120,7 @@ public void createExecutableSampleMethodArgsNoVar() { " System.out.println(\"Testing CreateExecutableSampleMethodArgsNoVar\");\n", " }\n", "}\n", - "// [END echo_v1beta_generated_echo_createexecutablesample_methodargsnovar]"); + "// [END apiname_generated_echo_createexecutablesample_methodargsnovar]\n"); assertEquals(expected, sampleResult); } @@ -208,19 +144,15 @@ public void createExecutableSampleMethod() { Sample.builder() .setBody(ImmutableList.of(sampleBody)) .setVariableAssignments(ImmutableList.of(varAssignment)) - .setFileHeader(header) .setRegionTag(regionTag.setRpcName("createExecutableSample").build()) .build(); - String sampleResult = SampleComposer.createExecutableSample(sample, packageName); + String sampleResult = writeSample(SampleComposer.composeExecutableSample(sample, packageName)); String expected = LineFormatter.lines( - "/*\n", - " * Apache License\n", - " */\n", "package com.google.example;\n", "\n", - "// [START echo_v1beta_generated_echo_createexecutablesample]\n", + "// [START apiname_generated_echo_createexecutablesample]\n", "public class CreateExecutableSample {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -234,7 +166,7 @@ public void createExecutableSampleMethod() { " System.out.println(content);\n", " }\n", "}\n", - "// [END echo_v1beta_generated_echo_createexecutablesample]"); + "// [END apiname_generated_echo_createexecutablesample]\n"); assertEquals(expected, sampleResult); } @@ -291,7 +223,6 @@ public void createExecutableSampleMethodMultipleStatements() { .setBody(ImmutableList.of(strBodyStatement, intBodyStatement, objBodyStatement)) .setVariableAssignments( ImmutableList.of(strVarAssignment, intVarAssignment, objVarAssignment)) - .setFileHeader(header) .setRegionTag( regionTag .setRpcName("createExecutableSample") @@ -299,15 +230,12 @@ public void createExecutableSampleMethodMultipleStatements() { .build()) .build(); - String sampleResult = SampleComposer.createExecutableSample(sample, packageName); + String sampleResult = writeSample(SampleComposer.composeExecutableSample(sample, packageName)); String expected = LineFormatter.lines( - "/*\n", - " * Apache License\n", - " */\n", "package com.google.example;\n", "\n", - "// [START echo_v1beta_generated_echo_createexecutablesample_methodmultiplestatements]\n", + "// [START apiname_generated_echo_createexecutablesample_methodmultiplestatements]\n", "public class CreateExecutableSampleMethodMultipleStatements {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -326,7 +254,7 @@ public void createExecutableSampleMethodMultipleStatements() { " System.out.println(thing.response());\n", " }\n", "}\n", - "// [END echo_v1beta_generated_echo_createexecutablesample_methodmultiplestatements]"); + "// [END apiname_generated_echo_createexecutablesample_methodmultiplestatements]\n"); assertEquals(expected, sampleResult); } @@ -355,4 +283,12 @@ private static MethodInvocationExpr composeSystemOutPrint(Expr content) { .setArguments(content) .build(); } + + private static String writeSample(ClassDefinition sample) { + return SampleCodeWriter.write(sample); + } + + private static String writeSample(List sample) { + return SampleCodeWriter.write(sample); + } } diff --git a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java index 949339ecdd..1f7c8de56b 100644 --- a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java +++ b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java @@ -14,12 +14,15 @@ package com.google.api.generator.gapic.model; +import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; +import com.google.api.generator.testutils.LineFormatter; +import java.util.Arrays; import org.junit.Assert; import org.junit.Test; public class RegionTagTest { private final String serviceName = "serviceName"; - private final String apiVersion = "1"; + private final String apiVersion = "v1"; private final String apiShortName = "shortName"; private final String rpcName = "rpcName"; private final String disambiguation = "disambiguation"; @@ -76,4 +79,68 @@ public void regionTagSanitizeAttributes() { Assert.assertEquals("serviceNameString", regionTag.serviceName()); Assert.assertEquals("rpcNameString10", regionTag.rpcName()); } + + @Test + public void generateRegionTagsMissingRequiredFields() { + RegionTag rtMissingShortName = + RegionTag.builder() + .setApiVersion(apiVersion) + .setServiceName(serviceName) + .setRpcName(rpcName) + .build(); + Assert.assertThrows(IllegalStateException.class, () -> rtMissingShortName.generate()); + } + + @Test + public void generateRegionTagsValidMissingFields() { + RegionTag regionTag = + RegionTag.builder() + .setApiShortName(apiShortName) + .setServiceName(serviceName) + .setRpcName(rpcName) + .build(); + + String result = regionTag.generate(); + String expected = "shortname_generated_servicename_rpcname"; + Assert.assertEquals(expected, result); + } + + @Test + public void generateRegionTagsAllFields() { + RegionTag regionTag = + RegionTag.builder() + .setApiShortName(apiShortName) + .setApiVersion(apiVersion) + .setServiceName(serviceName) + .setRpcName(rpcName) + .setOverloadDisambiguation(disambiguation) + .build(); + + String result = regionTag.generate(); + String expected = "shortname_v1_generated_servicename_rpcname_disambiguation"; + Assert.assertEquals(expected, result); + } + + @Test + public void generateRegionTagTag() { + RegionTag regionTag = + RegionTag.builder() + .setApiShortName(apiShortName) + .setApiVersion(apiVersion) + .setServiceName(serviceName) + .setRpcName(rpcName) + .setOverloadDisambiguation(disambiguation) + .build(); + + String result = + SampleCodeWriter.write( + Arrays.asList( + regionTag.generateTag(RegionTag.RegionTagRegion.START, regionTag.generate()), + regionTag.generateTag(RegionTag.RegionTagRegion.END, regionTag.generate()))); + String expected = + LineFormatter.lines( + "// [START shortname_v1_generated_servicename_rpcname_disambiguation]\n", + "// [END shortname_v1_generated_servicename_rpcname_disambiguation]"); + Assert.assertEquals(expected, result); + } } diff --git a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java index fcd5810935..aeef996606 100644 --- a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java +++ b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java @@ -29,7 +29,7 @@ public class SampleTest { RegionTag.builder().setServiceName("serviceName").setRpcName("rpcName").build(); private final List sampleBody = Arrays.asList(CommentStatement.withComment(LineComment.withComment("testing"))); - private final List header = + private final List header = Arrays.asList(CommentStatement.withComment(BlockComment.withComment("apache license"))); @Test From e2e2f91d8979e171cc8410329eba1935ce284097 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Mon, 7 Mar 2022 14:12:06 -0800 Subject: [PATCH 17/29] refactor: include sync/async region tag attribut --- .../api/generator/gapic/model/RegionTag.java | 12 +++++++++++- .../samplecode/SampleCodeWriterTest.java | 4 ++-- .../composer/samplecode/SampleComposerTest.java | 16 ++++++++-------- .../api/generator/gapic/model/RegionTagTest.java | 12 ++++++++---- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java index e7971d8fc0..39997dae82 100644 --- a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java +++ b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java @@ -32,11 +32,14 @@ public abstract class RegionTag { public abstract String overloadDisambiguation(); + public abstract Boolean isSynchronous(); + public static Builder builder() { return new AutoValue_RegionTag.Builder() .setApiVersion("") .setApiShortName("") - .setOverloadDisambiguation(""); + .setOverloadDisambiguation("") + .setIsSynchronous(true); } abstract RegionTag.Builder toBuilder(); @@ -65,6 +68,8 @@ public abstract static class Builder { public abstract Builder setOverloadDisambiguation(String overloadDisambiguation); + public abstract Builder setIsSynchronous(Boolean isSynchronous); + abstract String apiVersion(); abstract String apiShortName(); @@ -113,6 +118,11 @@ public String generate() { if (!overloadDisambiguation().isEmpty()) { rt = rt + "_" + overloadDisambiguation(); } + if (isSynchronous()) { + rt = rt + "_sync"; + } else { + rt = rt + "_async"; + } return rt.toLowerCase(); } diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java index 96287b82bd..7b5bdeaa5a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java @@ -129,7 +129,7 @@ public void writeExecutableSample() { "\n", "package com.google.samples;\n", "\n", - "// [START testing_v1_generated_samples_write_executablesample]\n", + "// [START testing_v1_generated_samples_write_executablesample_sync]\n", "import com.google.api.gax.rpc.ClientSettings;\n", "\n", "public class WriteExecutableSample {\n", @@ -147,7 +147,7 @@ public void writeExecutableSample() { " }\n", " }\n", "}\n", - "// [END testing_v1_generated_samples_write_executablesample]\n"); + "// [END testing_v1_generated_samples_write_executablesample_sync]\n"); Assert.assertEquals(expected, result); } diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java index 3aeb964da9..9a4cd72a98 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java @@ -71,7 +71,7 @@ public void createExecutableSampleEmptyStatementSample() { LineFormatter.lines( "package com.google.example;\n", "\n", - "// [START apiname_generated_echo_createexecutablesample_emptystatementsample]\n", + "// [START apiname_generated_echo_createexecutablesample_emptystatementsample_sync]\n", "public class CreateExecutableSampleEmptyStatementSample {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -83,7 +83,7 @@ public void createExecutableSampleEmptyStatementSample() { " // It may require modifications to work in your environment.\n", " }\n", "}\n", - "// [END apiname_generated_echo_createexecutablesample_emptystatementsample]\n"); + "// [END apiname_generated_echo_createexecutablesample_emptystatementsample_sync]\n"); assertEquals(expected, sampleResult); } @@ -107,7 +107,7 @@ public void createExecutableSampleMethodArgsNoVar() { LineFormatter.lines( "package com.google.example;\n", "\n", - "// [START apiname_generated_echo_createexecutablesample_methodargsnovar]\n", + "// [START apiname_generated_echo_createexecutablesample_methodargsnovar_sync]\n", "public class CreateExecutableSampleMethodArgsNoVar {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -120,7 +120,7 @@ public void createExecutableSampleMethodArgsNoVar() { " System.out.println(\"Testing CreateExecutableSampleMethodArgsNoVar\");\n", " }\n", "}\n", - "// [END apiname_generated_echo_createexecutablesample_methodargsnovar]\n"); + "// [END apiname_generated_echo_createexecutablesample_methodargsnovar_sync]\n"); assertEquals(expected, sampleResult); } @@ -152,7 +152,7 @@ public void createExecutableSampleMethod() { LineFormatter.lines( "package com.google.example;\n", "\n", - "// [START apiname_generated_echo_createexecutablesample]\n", + "// [START apiname_generated_echo_createexecutablesample_sync]\n", "public class CreateExecutableSample {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -166,7 +166,7 @@ public void createExecutableSampleMethod() { " System.out.println(content);\n", " }\n", "}\n", - "// [END apiname_generated_echo_createexecutablesample]\n"); + "// [END apiname_generated_echo_createexecutablesample_sync]\n"); assertEquals(expected, sampleResult); } @@ -235,7 +235,7 @@ public void createExecutableSampleMethodMultipleStatements() { LineFormatter.lines( "package com.google.example;\n", "\n", - "// [START apiname_generated_echo_createexecutablesample_methodmultiplestatements]\n", + "// [START apiname_generated_echo_createexecutablesample_methodmultiplestatements_sync]\n", "public class CreateExecutableSampleMethodMultipleStatements {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -254,7 +254,7 @@ public void createExecutableSampleMethodMultipleStatements() { " System.out.println(thing.response());\n", " }\n", "}\n", - "// [END apiname_generated_echo_createexecutablesample_methodmultiplestatements]\n"); + "// [END apiname_generated_echo_createexecutablesample_methodmultiplestatements_sync]\n"); assertEquals(expected, sampleResult); } diff --git a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java index 1f7c8de56b..248905add4 100644 --- a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java +++ b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java @@ -37,6 +37,7 @@ public void regionTagNoRpcName() { .setApiShortName(apiShortName) .setServiceName(serviceName) .setOverloadDisambiguation(disambiguation) + .setIsSynchronous(true) .build()); } @@ -50,6 +51,7 @@ public void regionTagNoServiceName() { .setApiShortName(apiShortName) .setRpcName(rpcName) .setOverloadDisambiguation(disambiguation) + .setIsSynchronous(true) .build()); } @@ -61,6 +63,7 @@ public void regionTagValidMissingFields() { Assert.assertEquals("", regionTag.apiShortName()); Assert.assertEquals("", regionTag.apiVersion()); Assert.assertEquals("", regionTag.overloadDisambiguation()); + Assert.assertEquals(true, regionTag.isSynchronous()); } @Test @@ -101,7 +104,7 @@ public void generateRegionTagsValidMissingFields() { .build(); String result = regionTag.generate(); - String expected = "shortname_generated_servicename_rpcname"; + String expected = "shortname_generated_servicename_rpcname_sync"; Assert.assertEquals(expected, result); } @@ -114,10 +117,11 @@ public void generateRegionTagsAllFields() { .setServiceName(serviceName) .setRpcName(rpcName) .setOverloadDisambiguation(disambiguation) + .setIsSynchronous(false) .build(); String result = regionTag.generate(); - String expected = "shortname_v1_generated_servicename_rpcname_disambiguation"; + String expected = "shortname_v1_generated_servicename_rpcname_disambiguation_async"; Assert.assertEquals(expected, result); } @@ -139,8 +143,8 @@ public void generateRegionTagTag() { regionTag.generateTag(RegionTag.RegionTagRegion.END, regionTag.generate()))); String expected = LineFormatter.lines( - "// [START shortname_v1_generated_servicename_rpcname_disambiguation]\n", - "// [END shortname_v1_generated_servicename_rpcname_disambiguation]"); + "// [START shortname_v1_generated_servicename_rpcname_disambiguation_sync]\n", + "// [END shortname_v1_generated_servicename_rpcname_disambiguation_sync]"); Assert.assertEquals(expected, result); } } From 5f022fbe6f7f6967e5d813b78846cd83f4e43ed8 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Mon, 7 Mar 2022 14:13:00 -0800 Subject: [PATCH 18/29] refactor: include sync/async region tag attribute goldens --- .../gapic/composer/goldens/AddApacheLicenseSample.golden | 6 +++--- .../samples/bookshopclient/CreateBookshopSettings1.golden | 6 +++--- .../samples/bookshopclient/CreateBookshopSettings2.golden | 6 +++--- .../GetBookCallableFutureCallGetBookRequest.golden | 6 +++--- .../samples/bookshopclient/GetBookGetBookRequest.golden | 6 +++--- .../samples/bookshopclient/GetBookIntListBook.golden | 6 +++--- .../samples/bookshopclient/GetBookStringListBook.golden | 6 +++--- .../CreateDeprecatedServiceSettings1.golden | 6 +++--- .../CreateDeprecatedServiceSettings2.golden | 6 +++--- .../FastFibonacciCallableFutureCallFibonacciRequest.golden | 6 +++--- .../FastFibonacciFibonacciRequest.golden | 6 +++--- .../SlowFibonacciCallableFutureCallFibonacciRequest.golden | 6 +++--- .../SlowFibonacciFibonacciRequest.golden | 6 +++--- .../goldens/samples/echoclient/BlockBlockRequest.golden | 6 +++--- .../echoclient/BlockCallableFutureCallBlockRequest.golden | 6 +++--- .../echoclient/ChatAgainCallableCallEchoRequest.golden | 6 +++--- .../samples/echoclient/ChatCallableCallEchoRequest.golden | 6 +++--- .../echoclient/CollectClientStreamingCallEchoRequest.golden | 6 +++--- .../CollideNameCallableFutureCallEchoRequest.golden | 6 +++--- .../samples/echoclient/CollideNameEchoRequest.golden | 6 +++--- .../goldens/samples/echoclient/CreateEchoSettings1.golden | 6 +++--- .../goldens/samples/echoclient/CreateEchoSettings2.golden | 6 +++--- .../composer/grpc/goldens/samples/echoclient/Echo.golden | 6 +++--- .../echoclient/EchoCallableFutureCallEchoRequest.golden | 6 +++--- .../grpc/goldens/samples/echoclient/EchoEchoRequest.golden | 6 +++--- .../grpc/goldens/samples/echoclient/EchoFoobarName.golden | 6 +++--- .../grpc/goldens/samples/echoclient/EchoResourceName.golden | 6 +++--- .../grpc/goldens/samples/echoclient/EchoStatus.golden | 6 +++--- .../grpc/goldens/samples/echoclient/EchoString1.golden | 6 +++--- .../grpc/goldens/samples/echoclient/EchoString2.golden | 6 +++--- .../grpc/goldens/samples/echoclient/EchoString3.golden | 6 +++--- .../goldens/samples/echoclient/EchoStringSeverity.golden | 6 +++--- .../echoclient/ExpandCallableCallExpandRequest.golden | 6 +++--- .../PagedExpandCallableCallPagedExpandRequest.golden | 6 +++--- ...edExpandPagedCallableFutureCallPagedExpandRequest.golden | 6 +++--- .../PagedExpandPagedExpandRequestIterateAll.golden | 6 +++--- .../SimplePagedExpandCallableCallPagedExpandRequest.golden | 6 +++--- .../samples/echoclient/SimplePagedExpandIterateAll.golden | 6 +++--- ...edExpandPagedCallableFutureCallPagedExpandRequest.golden | 6 +++--- .../SimplePagedExpandPagedExpandRequestIterateAll.golden | 6 +++--- .../goldens/samples/echoclient/WaitAsyncDurationGet.golden | 6 +++--- .../goldens/samples/echoclient/WaitAsyncTimestampGet.golden | 6 +++--- .../samples/echoclient/WaitAsyncWaitRequestGet.golden | 6 +++--- .../echoclient/WaitCallableFutureCallWaitRequest.golden | 6 +++--- .../WaitOperationCallableFutureCallWaitRequest.golden | 6 +++--- .../samples/identityclient/CreateIdentitySettings1.golden | 6 +++--- .../samples/identityclient/CreateIdentitySettings2.golden | 6 +++--- .../CreateUserCallableFutureCallCreateUserRequest.golden | 6 +++--- .../identityclient/CreateUserCreateUserRequest.golden | 6 +++--- .../identityclient/CreateUserStringStringString.golden | 6 +++--- ...reateUserStringStringStringIntStringBooleanDouble.golden | 6 +++--- ...ringStringStringStringIntStringStringStringString.golden | 6 +++--- .../DeleteUserCallableFutureCallDeleteUserRequest.golden | 6 +++--- .../identityclient/DeleteUserDeleteUserRequest.golden | 6 +++--- .../goldens/samples/identityclient/DeleteUserString.golden | 6 +++--- .../samples/identityclient/DeleteUserUserName.golden | 6 +++--- .../GetUserCallableFutureCallGetUserRequest.golden | 6 +++--- .../samples/identityclient/GetUserGetUserRequest.golden | 6 +++--- .../goldens/samples/identityclient/GetUserString.golden | 6 +++--- .../goldens/samples/identityclient/GetUserUserName.golden | 6 +++--- .../ListUsersCallableCallListUsersRequest.golden | 6 +++--- .../ListUsersListUsersRequestIterateAll.golden | 6 +++--- .../ListUsersPagedCallableFutureCallListUsersRequest.golden | 6 +++--- .../UpdateUserCallableFutureCallUpdateUserRequest.golden | 6 +++--- .../identityclient/UpdateUserUpdateUserRequest.golden | 6 +++--- .../ConnectCallableCallConnectRequest.golden | 6 +++--- .../CreateBlurbCallableFutureCallCreateBlurbRequest.golden | 6 +++--- .../messagingclient/CreateBlurbCreateBlurbRequest.golden | 6 +++--- .../messagingclient/CreateBlurbProfileNameByteString.golden | 6 +++--- .../messagingclient/CreateBlurbProfileNameString.golden | 6 +++--- .../messagingclient/CreateBlurbRoomNameByteString.golden | 6 +++--- .../messagingclient/CreateBlurbRoomNameString.golden | 6 +++--- .../messagingclient/CreateBlurbStringByteString.golden | 6 +++--- .../samples/messagingclient/CreateBlurbStringString.golden | 6 +++--- .../samples/messagingclient/CreateMessagingSettings1.golden | 6 +++--- .../samples/messagingclient/CreateMessagingSettings2.golden | 6 +++--- .../CreateRoomCallableFutureCallCreateRoomRequest.golden | 6 +++--- .../messagingclient/CreateRoomCreateRoomRequest.golden | 6 +++--- .../samples/messagingclient/CreateRoomStringString.golden | 6 +++--- .../samples/messagingclient/DeleteBlurbBlurbName.golden | 6 +++--- .../DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden | 6 +++--- .../messagingclient/DeleteBlurbDeleteBlurbRequest.golden | 6 +++--- .../samples/messagingclient/DeleteBlurbString.golden | 6 +++--- .../DeleteRoomCallableFutureCallDeleteRoomRequest.golden | 6 +++--- .../messagingclient/DeleteRoomDeleteRoomRequest.golden | 6 +++--- .../samples/messagingclient/DeleteRoomRoomName.golden | 6 +++--- .../goldens/samples/messagingclient/DeleteRoomString.golden | 6 +++--- .../samples/messagingclient/GetBlurbBlurbName.golden | 6 +++--- .../GetBlurbCallableFutureCallGetBlurbRequest.golden | 6 +++--- .../samples/messagingclient/GetBlurbGetBlurbRequest.golden | 6 +++--- .../goldens/samples/messagingclient/GetBlurbString.golden | 6 +++--- .../GetRoomCallableFutureCallGetRoomRequest.golden | 6 +++--- .../samples/messagingclient/GetRoomGetRoomRequest.golden | 6 +++--- .../goldens/samples/messagingclient/GetRoomRoomName.golden | 6 +++--- .../goldens/samples/messagingclient/GetRoomString.golden | 6 +++--- .../ListBlurbsCallableCallListBlurbsRequest.golden | 6 +++--- .../ListBlurbsListBlurbsRequestIterateAll.golden | 6 +++--- ...istBlurbsPagedCallableFutureCallListBlurbsRequest.golden | 6 +++--- .../messagingclient/ListBlurbsProfileNameIterateAll.golden | 6 +++--- .../messagingclient/ListBlurbsRoomNameIterateAll.golden | 6 +++--- .../messagingclient/ListBlurbsStringIterateAll.golden | 6 +++--- .../ListRoomsCallableCallListRoomsRequest.golden | 6 +++--- .../ListRoomsListRoomsRequestIterateAll.golden | 6 +++--- .../ListRoomsPagedCallableFutureCallListRoomsRequest.golden | 6 +++--- .../SearchBlurbsAsyncSearchBlurbsRequestGet.golden | 6 +++--- .../messagingclient/SearchBlurbsAsyncStringGet.golden | 6 +++--- ...SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden | 6 +++--- ...rbsOperationCallableFutureCallSearchBlurbsRequest.golden | 6 +++--- .../SendBlurbsClientStreamingCallCreateBlurbRequest.golden | 6 +++--- .../StreamBlurbsCallableCallStreamBlurbsRequest.golden | 6 +++--- .../UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden | 6 +++--- .../messagingclient/UpdateBlurbUpdateBlurbRequest.golden | 6 +++--- .../UpdateRoomCallableFutureCallUpdateRoomRequest.golden | 6 +++--- .../messagingclient/UpdateRoomUpdateRoomRequest.golden | 6 +++--- ...opicSettingsSetRetrySettingsPublisherStubSettings.golden | 6 +++--- ...tingsSetRetrySettingsLoggingServiceV2StubSettings.golden | 6 +++--- .../EchoSettingsSetRetrySettingsEchoSettings.golden | 6 +++--- .../EchoSettingsSetRetrySettingsEchoStubSettings.golden | 6 +++--- ...SettingsSetRetrySettingsDeprecatedServiceSettings.golden | 6 +++--- ...ingsSetRetrySettingsDeprecatedServiceStubSettings.golden | 6 +++--- .../AnalyzeIamPolicyAnalyzeIamPolicyRequest.java | 6 +++--- ...eIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java | 6 +++--- ...ngrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java | 6 +++--- ...allableFutureCallAnalyzeIamPolicyLongrunningRequest.java | 6 +++--- ...allableFutureCallAnalyzeIamPolicyLongrunningRequest.java | 6 +++--- .../analyzemove/AnalyzeMoveAnalyzeMoveRequest.java | 6 +++--- .../AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java | 6 +++--- .../BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java | 6 +++--- ...storyCallableFutureCallBatchGetAssetsHistoryRequest.java | 6 +++--- .../create/CreateAssetServiceSettings1.java | 6 +++--- .../create/CreateAssetServiceSettings2.java | 6 +++--- .../CreateFeedCallableFutureCallCreateFeedRequest.java | 6 +++--- .../createfeed/CreateFeedCreateFeedRequest.java | 6 +++--- .../v1/assetserviceclient/createfeed/CreateFeedString.java | 6 +++--- .../DeleteFeedCallableFutureCallDeleteFeedRequest.java | 6 +++--- .../deletefeed/DeleteFeedDeleteFeedRequest.java | 6 +++--- .../assetserviceclient/deletefeed/DeleteFeedFeedName.java | 6 +++--- .../v1/assetserviceclient/deletefeed/DeleteFeedString.java | 6 +++--- .../ExportAssetsAsyncExportAssetsRequestGet.java | 6 +++--- .../ExportAssetsCallableFutureCallExportAssetsRequest.java | 6 +++--- ...ssetsOperationCallableFutureCallExportAssetsRequest.java | 6 +++--- .../getfeed/GetFeedCallableFutureCallGetFeedRequest.java | 6 +++--- .../v1/assetserviceclient/getfeed/GetFeedFeedName.java | 6 +++--- .../assetserviceclient/getfeed/GetFeedGetFeedRequest.java | 6 +++--- .../asset/v1/assetserviceclient/getfeed/GetFeedString.java | 6 +++--- .../listassets/ListAssetsCallableCallListAssetsRequest.java | 6 +++--- .../listassets/ListAssetsListAssetsRequestIterateAll.java | 6 +++--- .../ListAssetsPagedCallableFutureCallListAssetsRequest.java | 6 +++--- .../listassets/ListAssetsResourceNameIterateAll.java | 6 +++--- .../listassets/ListAssetsStringIterateAll.java | 6 +++--- .../ListFeedsCallableFutureCallListFeedsRequest.java | 6 +++--- .../listfeeds/ListFeedsListFeedsRequest.java | 6 +++--- .../v1/assetserviceclient/listfeeds/ListFeedsString.java | 6 +++--- ...lIamPoliciesCallableCallSearchAllIamPoliciesRequest.java | 6 +++--- ...sPagedCallableFutureCallSearchAllIamPoliciesRequest.java | 6 +++--- ...AllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java | 6 +++--- .../SearchAllIamPoliciesStringStringIterateAll.java | 6 +++--- ...chAllResourcesCallableCallSearchAllResourcesRequest.java | 6 +++--- ...cesPagedCallableFutureCallSearchAllResourcesRequest.java | 6 +++--- ...archAllResourcesSearchAllResourcesRequestIterateAll.java | 6 +++--- .../SearchAllResourcesStringStringListStringIterateAll.java | 6 +++--- .../UpdateFeedCallableFutureCallUpdateFeedRequest.java | 6 +++--- .../v1/assetserviceclient/updatefeed/UpdateFeedFeed.java | 6 +++--- .../updatefeed/UpdateFeedUpdateFeedRequest.java | 6 +++--- ...HistorySettingsSetRetrySettingsAssetServiceSettings.java | 6 +++--- ...orySettingsSetRetrySettingsAssetServiceStubSettings.java | 6 +++--- ...MutateRowCallableFutureCallCheckAndMutateRowRequest.java | 6 +++--- .../CheckAndMutateRowCheckAndMutateRowRequest.java | 6 +++--- ...owStringByteStringRowFilterListMutationListMutation.java | 6 +++--- ...ngByteStringRowFilterListMutationListMutationString.java | 6 +++--- ...ableNameByteStringRowFilterListMutationListMutation.java | 6 +++--- ...meByteStringRowFilterListMutationListMutationString.java | 6 +++--- .../create/CreateBaseBigtableDataSettings1.java | 6 +++--- .../create/CreateBaseBigtableDataSettings2.java | 6 +++--- .../MutateRowCallableFutureCallMutateRowRequest.java | 6 +++--- .../mutaterow/MutateRowMutateRowRequest.java | 6 +++--- .../mutaterow/MutateRowStringByteStringListMutation.java | 6 +++--- .../MutateRowStringByteStringListMutationString.java | 6 +++--- .../mutaterow/MutateRowTableNameByteStringListMutation.java | 6 +++--- .../MutateRowTableNameByteStringListMutationString.java | 6 +++--- .../mutaterows/MutateRowsCallableCallMutateRowsRequest.java | 6 +++--- ...WriteRowCallableFutureCallReadModifyWriteRowRequest.java | 6 +++--- .../ReadModifyWriteRowReadModifyWriteRowRequest.java | 6 +++--- ...difyWriteRowStringByteStringListReadModifyWriteRule.java | 6 +++--- ...iteRowStringByteStringListReadModifyWriteRuleString.java | 6 +++--- ...yWriteRowTableNameByteStringListReadModifyWriteRule.java | 6 +++--- ...RowTableNameByteStringListReadModifyWriteRuleString.java | 6 +++--- .../readrows/ReadRowsCallableCallReadRowsRequest.java | 6 +++--- .../SampleRowKeysCallableCallSampleRowKeysRequest.java | 6 +++--- ...RowSettingsSetRetrySettingsBaseBigtableDataSettings.java | 6 +++--- ...tateRowSettingsSetRetrySettingsBigtableStubSettings.java | 6 +++--- ...regatedListAggregatedListAddressesRequestIterateAll.java | 6 +++--- ...gatedListCallableCallAggregatedListAddressesRequest.java | 6 +++--- ...gedCallableFutureCallAggregatedListAddressesRequest.java | 6 +++--- .../aggregatedlist/AggregatedListStringIterateAll.java | 6 +++--- .../addressesclient/create/CreateAddressesSettings1.java | 6 +++--- .../addressesclient/create/CreateAddressesSettings2.java | 6 +++--- .../delete/DeleteAsyncDeleteAddressRequestGet.java | 6 +++--- .../delete/DeleteAsyncStringStringStringGet.java | 6 +++--- .../DeleteCallableFutureCallDeleteAddressRequest.java | 6 +++--- ...leteOperationCallableFutureCallDeleteAddressRequest.java | 6 +++--- .../insert/InsertAsyncInsertAddressRequestGet.java | 6 +++--- .../insert/InsertAsyncStringStringAddressGet.java | 6 +++--- .../InsertCallableFutureCallInsertAddressRequest.java | 6 +++--- ...sertOperationCallableFutureCallInsertAddressRequest.java | 6 +++--- .../list/ListCallableCallListAddressesRequest.java | 6 +++--- .../list/ListListAddressesRequestIterateAll.java | 6 +++--- .../ListPagedCallableFutureCallListAddressesRequest.java | 6 +++--- .../list/ListStringStringStringIterateAll.java | 6 +++--- ...egatedListSettingsSetRetrySettingsAddressesSettings.java | 6 +++--- .../create/CreateRegionOperationsSettings1.java | 6 +++--- .../create/CreateRegionOperationsSettings2.java | 6 +++--- .../get/GetCallableFutureCallGetRegionOperationRequest.java | 6 +++--- .../get/GetGetRegionOperationRequest.java | 6 +++--- .../regionoperationsclient/get/GetStringStringString.java | 6 +++--- .../WaitCallableFutureCallWaitRegionOperationRequest.java | 6 +++--- .../regionoperationsclient/wait/WaitStringStringString.java | 6 +++--- .../wait/WaitWaitRegionOperationRequest.java | 6 +++--- ...GetSettingsSetRetrySettingsRegionOperationsSettings.java | 6 +++--- ...edListSettingsSetRetrySettingsAddressesStubSettings.java | 6 +++--- ...ettingsSetRetrySettingsRegionOperationsStubSettings.java | 6 +++--- .../create/CreateIamCredentialsSettings1.java | 6 +++--- .../create/CreateIamCredentialsSettings2.java | 6 +++--- ...ssTokenCallableFutureCallGenerateAccessTokenRequest.java | 6 +++--- .../GenerateAccessTokenGenerateAccessTokenRequest.java | 6 +++--- ...TokenServiceAccountNameListStringListStringDuration.java | 6 +++--- ...nerateAccessTokenStringListStringListStringDuration.java | 6 +++--- ...rateIdTokenCallableFutureCallGenerateIdTokenRequest.java | 6 +++--- .../GenerateIdTokenGenerateIdTokenRequest.java | 6 +++--- ...ateIdTokenServiceAccountNameListStringStringBoolean.java | 6 +++--- .../GenerateIdTokenStringListStringStringBoolean.java | 6 +++--- .../signblob/SignBlobCallableFutureCallSignBlobRequest.java | 6 +++--- .../SignBlobServiceAccountNameListStringByteString.java | 6 +++--- .../signblob/SignBlobSignBlobRequest.java | 6 +++--- .../signblob/SignBlobStringListStringByteString.java | 6 +++--- .../signjwt/SignJwtCallableFutureCallSignJwtRequest.java | 6 +++--- .../signjwt/SignJwtServiceAccountNameListStringString.java | 6 +++--- .../iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java | 6 +++--- .../signjwt/SignJwtStringListStringString.java | 6 +++--- ...TokenSettingsSetRetrySettingsIamCredentialsSettings.java | 6 +++--- ...nSettingsSetRetrySettingsIamCredentialsStubSettings.java | 6 +++--- .../v1/iampolicyclient/create/CreateIAMPolicySettings1.java | 6 +++--- .../v1/iampolicyclient/create/CreateIAMPolicySettings2.java | 6 +++--- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 6 +++--- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 6 +++--- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 6 +++--- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 6 +++--- ...missionsCallableFutureCallTestIamPermissionsRequest.java | 6 +++--- .../TestIamPermissionsTestIamPermissionsRequest.java | 6 +++--- ...tIamPolicySettingsSetRetrySettingsIAMPolicySettings.java | 6 +++--- ...PolicySettingsSetRetrySettingsIAMPolicyStubSettings.java | 6 +++--- .../AsymmetricDecryptAsymmetricDecryptRequest.java | 6 +++--- ...icDecryptCallableFutureCallAsymmetricDecryptRequest.java | 6 +++--- .../AsymmetricDecryptCryptoKeyVersionNameByteString.java | 6 +++--- .../AsymmetricDecryptStringByteString.java | 6 +++--- .../asymmetricsign/AsymmetricSignAsymmetricSignRequest.java | 6 +++--- ...ymmetricSignCallableFutureCallAsymmetricSignRequest.java | 6 +++--- .../AsymmetricSignCryptoKeyVersionNameDigest.java | 6 +++--- .../asymmetricsign/AsymmetricSignStringDigest.java | 6 +++--- .../create/CreateKeyManagementServiceSettings1.java | 6 +++--- .../create/CreateKeyManagementServiceSettings2.java | 6 +++--- ...teCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java | 6 +++--- .../CreateCryptoKeyCreateCryptoKeyRequest.java | 6 +++--- .../CreateCryptoKeyKeyRingNameStringCryptoKey.java | 6 +++--- .../CreateCryptoKeyStringStringCryptoKey.java | 6 +++--- ...sionCallableFutureCallCreateCryptoKeyVersionRequest.java | 6 +++--- ...CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java | 6 +++--- ...CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java | 6 +++--- .../CreateCryptoKeyVersionStringCryptoKeyVersion.java | 6 +++--- ...teImportJobCallableFutureCallCreateImportJobRequest.java | 6 +++--- .../CreateImportJobCreateImportJobRequest.java | 6 +++--- .../CreateImportJobKeyRingNameStringImportJob.java | 6 +++--- .../CreateImportJobStringStringImportJob.java | 6 +++--- ...CreateKeyRingCallableFutureCallCreateKeyRingRequest.java | 6 +++--- .../createkeyring/CreateKeyRingCreateKeyRingRequest.java | 6 +++--- .../CreateKeyRingLocationNameStringKeyRing.java | 6 +++--- .../createkeyring/CreateKeyRingStringStringKeyRing.java | 6 +++--- .../decrypt/DecryptCallableFutureCallDecryptRequest.java | 6 +++--- .../decrypt/DecryptCryptoKeyNameByteString.java | 6 +++--- .../decrypt/DecryptDecryptRequest.java | 6 +++--- .../decrypt/DecryptStringByteString.java | 6 +++--- ...ionCallableFutureCallDestroyCryptoKeyVersionRequest.java | 6 +++--- .../DestroyCryptoKeyVersionCryptoKeyVersionName.java | 6 +++--- ...stroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java | 6 +++--- .../DestroyCryptoKeyVersionString.java | 6 +++--- .../encrypt/EncryptCallableFutureCallEncryptRequest.java | 6 +++--- .../encrypt/EncryptEncryptRequest.java | 6 +++--- .../encrypt/EncryptResourceNameByteString.java | 6 +++--- .../encrypt/EncryptStringByteString.java | 6 +++--- .../GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java | 6 +++--- .../getcryptokey/GetCryptoKeyCryptoKeyName.java | 6 +++--- .../getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java | 6 +++--- .../getcryptokey/GetCryptoKeyString.java | 6 +++--- ...VersionCallableFutureCallGetCryptoKeyVersionRequest.java | 6 +++--- .../GetCryptoKeyVersionCryptoKeyVersionName.java | 6 +++--- .../GetCryptoKeyVersionGetCryptoKeyVersionRequest.java | 6 +++--- .../getcryptokeyversion/GetCryptoKeyVersionString.java | 6 +++--- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 6 +++--- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 6 +++--- .../GetImportJobCallableFutureCallGetImportJobRequest.java | 6 +++--- .../getimportjob/GetImportJobGetImportJobRequest.java | 6 +++--- .../getimportjob/GetImportJobImportJobName.java | 6 +++--- .../getimportjob/GetImportJobString.java | 6 +++--- .../GetKeyRingCallableFutureCallGetKeyRingRequest.java | 6 +++--- .../getkeyring/GetKeyRingGetKeyRingRequest.java | 6 +++--- .../getkeyring/GetKeyRingKeyRingName.java | 6 +++--- .../getkeyring/GetKeyRingString.java | 6 +++--- .../GetLocationCallableFutureCallGetLocationRequest.java | 6 +++--- .../getlocation/GetLocationGetLocationRequest.java | 6 +++--- .../GetPublicKeyCallableFutureCallGetPublicKeyRequest.java | 6 +++--- .../getpublickey/GetPublicKeyCryptoKeyVersionName.java | 6 +++--- .../getpublickey/GetPublicKeyGetPublicKeyRequest.java | 6 +++--- .../getpublickey/GetPublicKeyString.java | 6 +++--- ...sionCallableFutureCallImportCryptoKeyVersionRequest.java | 6 +++--- ...ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java | 6 +++--- .../ListCryptoKeysCallableCallListCryptoKeysRequest.java | 6 +++--- .../listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java | 6 +++--- .../ListCryptoKeysListCryptoKeysRequestIterateAll.java | 6 +++--- ...ptoKeysPagedCallableFutureCallListCryptoKeysRequest.java | 6 +++--- .../listcryptokeys/ListCryptoKeysStringIterateAll.java | 6 +++--- ...KeyVersionsCallableCallListCryptoKeyVersionsRequest.java | 6 +++--- .../ListCryptoKeyVersionsCryptoKeyNameIterateAll.java | 6 +++--- ...toKeyVersionsListCryptoKeyVersionsRequestIterateAll.java | 6 +++--- ...PagedCallableFutureCallListCryptoKeyVersionsRequest.java | 6 +++--- .../ListCryptoKeyVersionsStringIterateAll.java | 6 +++--- .../ListImportJobsCallableCallListImportJobsRequest.java | 6 +++--- .../listimportjobs/ListImportJobsKeyRingNameIterateAll.java | 6 +++--- .../ListImportJobsListImportJobsRequestIterateAll.java | 6 +++--- ...ortJobsPagedCallableFutureCallListImportJobsRequest.java | 6 +++--- .../listimportjobs/ListImportJobsStringIterateAll.java | 6 +++--- .../ListKeyRingsCallableCallListKeyRingsRequest.java | 6 +++--- .../ListKeyRingsListKeyRingsRequestIterateAll.java | 6 +++--- .../listkeyrings/ListKeyRingsLocationNameIterateAll.java | 6 +++--- ...tKeyRingsPagedCallableFutureCallListKeyRingsRequest.java | 6 +++--- .../listkeyrings/ListKeyRingsStringIterateAll.java | 6 +++--- .../ListLocationsCallableCallListLocationsRequest.java | 6 +++--- .../ListLocationsListLocationsRequestIterateAll.java | 6 +++--- ...ocationsPagedCallableFutureCallListLocationsRequest.java | 6 +++--- ...ionCallableFutureCallRestoreCryptoKeyVersionRequest.java | 6 +++--- .../RestoreCryptoKeyVersionCryptoKeyVersionName.java | 6 +++--- ...storeCryptoKeyVersionRestoreCryptoKeyVersionRequest.java | 6 +++--- .../RestoreCryptoKeyVersionString.java | 6 +++--- ...missionsCallableFutureCallTestIamPermissionsRequest.java | 6 +++--- .../TestIamPermissionsTestIamPermissionsRequest.java | 6 +++--- ...teCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java | 6 +++--- .../updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java | 6 +++--- .../UpdateCryptoKeyUpdateCryptoKeyRequest.java | 6 +++--- ...lableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java | 6 +++--- .../UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java | 6 +++--- .../UpdateCryptoKeyPrimaryVersionStringString.java | 6 +++--- ...yPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java | 6 +++--- ...sionCallableFutureCallUpdateCryptoKeyVersionRequest.java | 6 +++--- .../UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java | 6 +++--- ...UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java | 6 +++--- ...ettingsSetRetrySettingsKeyManagementServiceSettings.java | 6 +++--- ...ngsSetRetrySettingsKeyManagementServiceStubSettings.java | 6 +++--- .../create/CreateLibraryServiceSettings1.java | 6 +++--- .../create/CreateLibraryServiceSettings2.java | 6 +++--- .../CreateBookCallableFutureCallCreateBookRequest.java | 6 +++--- .../createbook/CreateBookCreateBookRequest.java | 6 +++--- .../createbook/CreateBookShelfNameBook.java | 6 +++--- .../createbook/CreateBookStringBook.java | 6 +++--- .../CreateShelfCallableFutureCallCreateShelfRequest.java | 6 +++--- .../createshelf/CreateShelfCreateShelfRequest.java | 6 +++--- .../libraryserviceclient/createshelf/CreateShelfShelf.java | 6 +++--- .../libraryserviceclient/deletebook/DeleteBookBookName.java | 6 +++--- .../DeleteBookCallableFutureCallDeleteBookRequest.java | 6 +++--- .../deletebook/DeleteBookDeleteBookRequest.java | 6 +++--- .../libraryserviceclient/deletebook/DeleteBookString.java | 6 +++--- .../DeleteShelfCallableFutureCallDeleteShelfRequest.java | 6 +++--- .../deleteshelf/DeleteShelfDeleteShelfRequest.java | 6 +++--- .../deleteshelf/DeleteShelfShelfName.java | 6 +++--- .../libraryserviceclient/deleteshelf/DeleteShelfString.java | 6 +++--- .../v1/libraryserviceclient/getbook/GetBookBookName.java | 6 +++--- .../getbook/GetBookCallableFutureCallGetBookRequest.java | 6 +++--- .../libraryserviceclient/getbook/GetBookGetBookRequest.java | 6 +++--- .../v1/libraryserviceclient/getbook/GetBookString.java | 6 +++--- .../getshelf/GetShelfCallableFutureCallGetShelfRequest.java | 6 +++--- .../getshelf/GetShelfGetShelfRequest.java | 6 +++--- .../v1/libraryserviceclient/getshelf/GetShelfShelfName.java | 6 +++--- .../v1/libraryserviceclient/getshelf/GetShelfString.java | 6 +++--- .../listbooks/ListBooksCallableCallListBooksRequest.java | 6 +++--- .../listbooks/ListBooksListBooksRequestIterateAll.java | 6 +++--- .../ListBooksPagedCallableFutureCallListBooksRequest.java | 6 +++--- .../listbooks/ListBooksShelfNameIterateAll.java | 6 +++--- .../listbooks/ListBooksStringIterateAll.java | 6 +++--- .../ListShelvesCallableCallListShelvesRequest.java | 6 +++--- .../ListShelvesListShelvesRequestIterateAll.java | 6 +++--- ...istShelvesPagedCallableFutureCallListShelvesRequest.java | 6 +++--- .../MergeShelvesCallableFutureCallMergeShelvesRequest.java | 6 +++--- .../mergeshelves/MergeShelvesMergeShelvesRequest.java | 6 +++--- .../mergeshelves/MergeShelvesShelfNameShelfName.java | 6 +++--- .../mergeshelves/MergeShelvesShelfNameString.java | 6 +++--- .../mergeshelves/MergeShelvesStringShelfName.java | 6 +++--- .../mergeshelves/MergeShelvesStringString.java | 6 +++--- .../movebook/MoveBookBookNameShelfName.java | 6 +++--- .../movebook/MoveBookBookNameString.java | 6 +++--- .../movebook/MoveBookCallableFutureCallMoveBookRequest.java | 6 +++--- .../movebook/MoveBookMoveBookRequest.java | 6 +++--- .../movebook/MoveBookStringShelfName.java | 6 +++--- .../libraryserviceclient/movebook/MoveBookStringString.java | 6 +++--- .../updatebook/UpdateBookBookFieldMask.java | 6 +++--- .../UpdateBookCallableFutureCallUpdateBookRequest.java | 6 +++--- .../updatebook/UpdateBookUpdateBookRequest.java | 6 +++--- ...ShelfSettingsSetRetrySettingsLibraryServiceSettings.java | 6 +++--- ...fSettingsSetRetrySettingsLibraryServiceStubSettings.java | 6 +++--- .../v2/configclient/create/CreateConfigSettings1.java | 6 +++--- .../v2/configclient/create/CreateConfigSettings2.java | 6 +++--- .../CreateBucketCallableFutureCallCreateBucketRequest.java | 6 +++--- .../createbucket/CreateBucketCreateBucketRequest.java | 6 +++--- .../CreateExclusionBillingAccountNameLogExclusion.java | 6 +++--- ...teExclusionCallableFutureCallCreateExclusionRequest.java | 6 +++--- .../CreateExclusionCreateExclusionRequest.java | 6 +++--- .../CreateExclusionFolderNameLogExclusion.java | 6 +++--- .../CreateExclusionOrganizationNameLogExclusion.java | 6 +++--- .../CreateExclusionProjectNameLogExclusion.java | 6 +++--- .../createexclusion/CreateExclusionStringLogExclusion.java | 6 +++--- .../createsink/CreateSinkBillingAccountNameLogSink.java | 6 +++--- .../CreateSinkCallableFutureCallCreateSinkRequest.java | 6 +++--- .../createsink/CreateSinkCreateSinkRequest.java | 6 +++--- .../createsink/CreateSinkFolderNameLogSink.java | 6 +++--- .../createsink/CreateSinkOrganizationNameLogSink.java | 6 +++--- .../createsink/CreateSinkProjectNameLogSink.java | 6 +++--- .../v2/configclient/createsink/CreateSinkStringLogSink.java | 6 +++--- .../CreateViewCallableFutureCallCreateViewRequest.java | 6 +++--- .../createview/CreateViewCreateViewRequest.java | 6 +++--- .../DeleteBucketCallableFutureCallDeleteBucketRequest.java | 6 +++--- .../deletebucket/DeleteBucketDeleteBucketRequest.java | 6 +++--- ...teExclusionCallableFutureCallDeleteExclusionRequest.java | 6 +++--- .../DeleteExclusionDeleteExclusionRequest.java | 6 +++--- .../deleteexclusion/DeleteExclusionLogExclusionName.java | 6 +++--- .../configclient/deleteexclusion/DeleteExclusionString.java | 6 +++--- .../DeleteSinkCallableFutureCallDeleteSinkRequest.java | 6 +++--- .../deletesink/DeleteSinkDeleteSinkRequest.java | 6 +++--- .../v2/configclient/deletesink/DeleteSinkLogSinkName.java | 6 +++--- .../v2/configclient/deletesink/DeleteSinkString.java | 6 +++--- .../DeleteViewCallableFutureCallDeleteViewRequest.java | 6 +++--- .../deleteview/DeleteViewDeleteViewRequest.java | 6 +++--- .../GetBucketCallableFutureCallGetBucketRequest.java | 6 +++--- .../configclient/getbucket/GetBucketGetBucketRequest.java | 6 +++--- ...mekSettingsCallableFutureCallGetCmekSettingsRequest.java | 6 +++--- .../GetCmekSettingsGetCmekSettingsRequest.java | 6 +++--- .../GetExclusionCallableFutureCallGetExclusionRequest.java | 6 +++--- .../getexclusion/GetExclusionGetExclusionRequest.java | 6 +++--- .../getexclusion/GetExclusionLogExclusionName.java | 6 +++--- .../v2/configclient/getexclusion/GetExclusionString.java | 6 +++--- .../getsink/GetSinkCallableFutureCallGetSinkRequest.java | 6 +++--- .../v2/configclient/getsink/GetSinkGetSinkRequest.java | 6 +++--- .../logging/v2/configclient/getsink/GetSinkLogSinkName.java | 6 +++--- .../logging/v2/configclient/getsink/GetSinkString.java | 6 +++--- .../getview/GetViewCallableFutureCallGetViewRequest.java | 6 +++--- .../v2/configclient/getview/GetViewGetViewRequest.java | 6 +++--- .../ListBucketsBillingAccountLocationNameIterateAll.java | 6 +++--- .../ListBucketsCallableCallListBucketsRequest.java | 6 +++--- .../ListBucketsFolderLocationNameIterateAll.java | 6 +++--- .../ListBucketsListBucketsRequestIterateAll.java | 6 +++--- .../listbuckets/ListBucketsLocationNameIterateAll.java | 6 +++--- .../ListBucketsOrganizationLocationNameIterateAll.java | 6 +++--- ...istBucketsPagedCallableFutureCallListBucketsRequest.java | 6 +++--- .../listbuckets/ListBucketsStringIterateAll.java | 6 +++--- .../ListExclusionsBillingAccountNameIterateAll.java | 6 +++--- .../ListExclusionsCallableCallListExclusionsRequest.java | 6 +++--- .../listexclusions/ListExclusionsFolderNameIterateAll.java | 6 +++--- .../ListExclusionsListExclusionsRequestIterateAll.java | 6 +++--- .../ListExclusionsOrganizationNameIterateAll.java | 6 +++--- ...lusionsPagedCallableFutureCallListExclusionsRequest.java | 6 +++--- .../listexclusions/ListExclusionsProjectNameIterateAll.java | 6 +++--- .../listexclusions/ListExclusionsStringIterateAll.java | 6 +++--- .../listsinks/ListSinksBillingAccountNameIterateAll.java | 6 +++--- .../listsinks/ListSinksCallableCallListSinksRequest.java | 6 +++--- .../listsinks/ListSinksFolderNameIterateAll.java | 6 +++--- .../listsinks/ListSinksListSinksRequestIterateAll.java | 6 +++--- .../listsinks/ListSinksOrganizationNameIterateAll.java | 6 +++--- .../ListSinksPagedCallableFutureCallListSinksRequest.java | 6 +++--- .../listsinks/ListSinksProjectNameIterateAll.java | 6 +++--- .../configclient/listsinks/ListSinksStringIterateAll.java | 6 +++--- .../listviews/ListViewsCallableCallListViewsRequest.java | 6 +++--- .../listviews/ListViewsListViewsRequestIterateAll.java | 6 +++--- .../ListViewsPagedCallableFutureCallListViewsRequest.java | 6 +++--- .../configclient/listviews/ListViewsStringIterateAll.java | 6 +++--- ...deleteBucketCallableFutureCallUndeleteBucketRequest.java | 6 +++--- .../undeletebucket/UndeleteBucketUndeleteBucketRequest.java | 6 +++--- .../UpdateBucketCallableFutureCallUpdateBucketRequest.java | 6 +++--- .../updatebucket/UpdateBucketUpdateBucketRequest.java | 6 +++--- ...SettingsCallableFutureCallUpdateCmekSettingsRequest.java | 6 +++--- .../UpdateCmekSettingsUpdateCmekSettingsRequest.java | 6 +++--- ...teExclusionCallableFutureCallUpdateExclusionRequest.java | 6 +++--- ...pdateExclusionLogExclusionNameLogExclusionFieldMask.java | 6 +++--- .../UpdateExclusionStringLogExclusionFieldMask.java | 6 +++--- .../UpdateExclusionUpdateExclusionRequest.java | 6 +++--- .../UpdateSinkCallableFutureCallUpdateSinkRequest.java | 6 +++--- .../updatesink/UpdateSinkLogSinkNameLogSink.java | 6 +++--- .../updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java | 6 +++--- .../v2/configclient/updatesink/UpdateSinkStringLogSink.java | 6 +++--- .../updatesink/UpdateSinkStringLogSinkFieldMask.java | 6 +++--- .../updatesink/UpdateSinkUpdateSinkRequest.java | 6 +++--- .../UpdateViewCallableFutureCallUpdateViewRequest.java | 6 +++--- .../updateview/UpdateViewUpdateViewRequest.java | 6 +++--- .../GetBucketSettingsSetRetrySettingsConfigSettings.java | 6 +++--- .../v2/loggingclient/create/CreateLoggingSettings1.java | 6 +++--- .../v2/loggingclient/create/CreateLoggingSettings2.java | 6 +++--- .../DeleteLogCallableFutureCallDeleteLogRequest.java | 6 +++--- .../loggingclient/deletelog/DeleteLogDeleteLogRequest.java | 6 +++--- .../v2/loggingclient/deletelog/DeleteLogLogName.java | 6 +++--- .../logging/v2/loggingclient/deletelog/DeleteLogString.java | 6 +++--- .../ListLogEntriesCallableCallListLogEntriesRequest.java | 6 +++--- .../ListLogEntriesListLogEntriesRequestIterateAll.java | 6 +++--- .../ListLogEntriesListStringStringStringIterateAll.java | 6 +++--- ...EntriesPagedCallableFutureCallListLogEntriesRequest.java | 6 +++--- .../listlogs/ListLogsBillingAccountNameIterateAll.java | 6 +++--- .../listlogs/ListLogsCallableCallListLogsRequest.java | 6 +++--- .../listlogs/ListLogsFolderNameIterateAll.java | 6 +++--- .../listlogs/ListLogsListLogsRequestIterateAll.java | 6 +++--- .../listlogs/ListLogsOrganizationNameIterateAll.java | 6 +++--- .../ListLogsPagedCallableFutureCallListLogsRequest.java | 6 +++--- .../listlogs/ListLogsProjectNameIterateAll.java | 6 +++--- .../v2/loggingclient/listlogs/ListLogsStringIterateAll.java | 6 +++--- ...CallableCallListMonitoredResourceDescriptorsRequest.java | 6 +++--- ...rsListMonitoredResourceDescriptorsRequestIterateAll.java | 6 +++--- ...leFutureCallListMonitoredResourceDescriptorsRequest.java | 6 +++--- .../TailLogEntriesCallableCallTailLogEntriesRequest.java | 6 +++--- ...eLogEntriesCallableFutureCallWriteLogEntriesRequest.java | 6 +++--- ...LogNameMonitoredResourceMapStringStringListLogEntry.java | 6 +++--- ...sStringMonitoredResourceMapStringStringListLogEntry.java | 6 +++--- .../WriteLogEntriesWriteLogEntriesRequest.java | 6 +++--- .../DeleteLogSettingsSetRetrySettingsLoggingSettings.java | 6 +++--- .../v2/metricsclient/create/CreateMetricsSettings1.java | 6 +++--- .../v2/metricsclient/create/CreateMetricsSettings2.java | 6 +++--- ...teLogMetricCallableFutureCallCreateLogMetricRequest.java | 6 +++--- .../CreateLogMetricCreateLogMetricRequest.java | 6 +++--- .../CreateLogMetricProjectNameLogMetric.java | 6 +++--- .../createlogmetric/CreateLogMetricStringLogMetric.java | 6 +++--- ...teLogMetricCallableFutureCallDeleteLogMetricRequest.java | 6 +++--- .../DeleteLogMetricDeleteLogMetricRequest.java | 6 +++--- .../deletelogmetric/DeleteLogMetricLogMetricName.java | 6 +++--- .../deletelogmetric/DeleteLogMetricString.java | 6 +++--- .../GetLogMetricCallableFutureCallGetLogMetricRequest.java | 6 +++--- .../getlogmetric/GetLogMetricGetLogMetricRequest.java | 6 +++--- .../getlogmetric/GetLogMetricLogMetricName.java | 6 +++--- .../v2/metricsclient/getlogmetric/GetLogMetricString.java | 6 +++--- .../ListLogMetricsCallableCallListLogMetricsRequest.java | 6 +++--- .../ListLogMetricsListLogMetricsRequestIterateAll.java | 6 +++--- ...MetricsPagedCallableFutureCallListLogMetricsRequest.java | 6 +++--- .../listlogmetrics/ListLogMetricsProjectNameIterateAll.java | 6 +++--- .../listlogmetrics/ListLogMetricsStringIterateAll.java | 6 +++--- ...teLogMetricCallableFutureCallUpdateLogMetricRequest.java | 6 +++--- .../UpdateLogMetricLogMetricNameLogMetric.java | 6 +++--- .../updatelogmetric/UpdateLogMetricStringLogMetric.java | 6 +++--- .../UpdateLogMetricUpdateLogMetricRequest.java | 6 +++--- ...GetLogMetricSettingsSetRetrySettingsMetricsSettings.java | 6 +++--- ...SettingsSetRetrySettingsConfigServiceV2StubSettings.java | 6 +++--- ...ettingsSetRetrySettingsLoggingServiceV2StubSettings.java | 6 +++--- ...ettingsSetRetrySettingsMetricsServiceV2StubSettings.java | 6 +++--- .../create/CreateSchemaServiceSettings1.java | 6 +++--- .../create/CreateSchemaServiceSettings2.java | 6 +++--- .../CreateSchemaCallableFutureCallCreateSchemaRequest.java | 6 +++--- .../createschema/CreateSchemaCreateSchemaRequest.java | 6 +++--- .../createschema/CreateSchemaProjectNameSchemaString.java | 6 +++--- .../createschema/CreateSchemaStringSchemaString.java | 6 +++--- .../DeleteSchemaCallableFutureCallDeleteSchemaRequest.java | 6 +++--- .../deleteschema/DeleteSchemaDeleteSchemaRequest.java | 6 +++--- .../deleteschema/DeleteSchemaSchemaName.java | 6 +++--- .../deleteschema/DeleteSchemaString.java | 6 +++--- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 6 +++--- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 6 +++--- .../GetSchemaCallableFutureCallGetSchemaRequest.java | 6 +++--- .../getschema/GetSchemaGetSchemaRequest.java | 6 +++--- .../schemaserviceclient/getschema/GetSchemaSchemaName.java | 6 +++--- .../v1/schemaserviceclient/getschema/GetSchemaString.java | 6 +++--- .../ListSchemasCallableCallListSchemasRequest.java | 6 +++--- .../ListSchemasListSchemasRequestIterateAll.java | 6 +++--- ...istSchemasPagedCallableFutureCallListSchemasRequest.java | 6 +++--- .../listschemas/ListSchemasProjectNameIterateAll.java | 6 +++--- .../listschemas/ListSchemasStringIterateAll.java | 6 +++--- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 6 +++--- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 6 +++--- ...missionsCallableFutureCallTestIamPermissionsRequest.java | 6 +++--- .../TestIamPermissionsTestIamPermissionsRequest.java | 6 +++--- ...dateMessageCallableFutureCallValidateMessageRequest.java | 6 +++--- .../ValidateMessageValidateMessageRequest.java | 6 +++--- ...lidateSchemaCallableFutureCallValidateSchemaRequest.java | 6 +++--- .../validateschema/ValidateSchemaProjectNameSchema.java | 6 +++--- .../validateschema/ValidateSchemaStringSchema.java | 6 +++--- .../validateschema/ValidateSchemaValidateSchemaRequest.java | 6 +++--- ...SchemaSettingsSetRetrySettingsSchemaServiceSettings.java | 6 +++--- ...eTopicSettingsSetRetrySettingsPublisherStubSettings.java | 6 +++--- ...maSettingsSetRetrySettingsSchemaServiceStubSettings.java | 6 +++--- ...ptionSettingsSetRetrySettingsSubscriberStubSettings.java | 6 +++--- .../acknowledge/AcknowledgeAcknowledgeRequest.java | 6 +++--- .../AcknowledgeCallableFutureCallAcknowledgeRequest.java | 6 +++--- .../acknowledge/AcknowledgeStringListString.java | 6 +++--- .../acknowledge/AcknowledgeSubscriptionNameListString.java | 6 +++--- .../create/CreateSubscriptionAdminSettings1.java | 6 +++--- .../create/CreateSubscriptionAdminSettings2.java | 6 +++--- ...eateSnapshotCallableFutureCallCreateSnapshotRequest.java | 6 +++--- .../createsnapshot/CreateSnapshotCreateSnapshotRequest.java | 6 +++--- .../createsnapshot/CreateSnapshotSnapshotNameString.java | 6 +++--- .../CreateSnapshotSnapshotNameSubscriptionName.java | 6 +++--- .../createsnapshot/CreateSnapshotStringString.java | 6 +++--- .../CreateSnapshotStringSubscriptionName.java | 6 +++--- .../CreateSubscriptionCallableFutureCallSubscription.java | 6 +++--- .../CreateSubscriptionStringStringPushConfigInt.java | 6 +++--- .../CreateSubscriptionStringTopicNamePushConfigInt.java | 6 +++--- .../createsubscription/CreateSubscriptionSubscription.java | 6 +++--- ...eateSubscriptionSubscriptionNameStringPushConfigInt.java | 6 +++--- ...eSubscriptionSubscriptionNameTopicNamePushConfigInt.java | 6 +++--- ...leteSnapshotCallableFutureCallDeleteSnapshotRequest.java | 6 +++--- .../deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java | 6 +++--- .../deletesnapshot/DeleteSnapshotSnapshotName.java | 6 +++--- .../deletesnapshot/DeleteSnapshotString.java | 6 +++--- ...criptionCallableFutureCallDeleteSubscriptionRequest.java | 6 +++--- .../DeleteSubscriptionDeleteSubscriptionRequest.java | 6 +++--- .../deletesubscription/DeleteSubscriptionString.java | 6 +++--- .../DeleteSubscriptionSubscriptionName.java | 6 +++--- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 6 +++--- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 6 +++--- .../GetSnapshotCallableFutureCallGetSnapshotRequest.java | 6 +++--- .../getsnapshot/GetSnapshotGetSnapshotRequest.java | 6 +++--- .../getsnapshot/GetSnapshotSnapshotName.java | 6 +++--- .../getsnapshot/GetSnapshotString.java | 6 +++--- ...ubscriptionCallableFutureCallGetSubscriptionRequest.java | 6 +++--- .../GetSubscriptionGetSubscriptionRequest.java | 6 +++--- .../getsubscription/GetSubscriptionString.java | 6 +++--- .../getsubscription/GetSubscriptionSubscriptionName.java | 6 +++--- .../ListSnapshotsCallableCallListSnapshotsRequest.java | 6 +++--- .../ListSnapshotsListSnapshotsRequestIterateAll.java | 6 +++--- ...napshotsPagedCallableFutureCallListSnapshotsRequest.java | 6 +++--- .../listsnapshots/ListSnapshotsProjectNameIterateAll.java | 6 +++--- .../listsnapshots/ListSnapshotsStringIterateAll.java | 6 +++--- ...stSubscriptionsCallableCallListSubscriptionsRequest.java | 6 +++--- ...ListSubscriptionsListSubscriptionsRequestIterateAll.java | 6 +++--- ...ionsPagedCallableFutureCallListSubscriptionsRequest.java | 6 +++--- .../ListSubscriptionsProjectNameIterateAll.java | 6 +++--- .../ListSubscriptionsStringIterateAll.java | 6 +++--- ...kDeadlineCallableFutureCallModifyAckDeadlineRequest.java | 6 +++--- .../ModifyAckDeadlineModifyAckDeadlineRequest.java | 6 +++--- .../ModifyAckDeadlineStringListStringInt.java | 6 +++--- .../ModifyAckDeadlineSubscriptionNameListStringInt.java | 6 +++--- ...PushConfigCallableFutureCallModifyPushConfigRequest.java | 6 +++--- .../ModifyPushConfigModifyPushConfigRequest.java | 6 +++--- .../modifypushconfig/ModifyPushConfigStringPushConfig.java | 6 +++--- .../ModifyPushConfigSubscriptionNamePushConfig.java | 6 +++--- .../pull/PullCallableFutureCallPullRequest.java | 6 +++--- .../v1/subscriptionadminclient/pull/PullPullRequest.java | 6 +++--- .../subscriptionadminclient/pull/PullStringBooleanInt.java | 6 +++--- .../v1/subscriptionadminclient/pull/PullStringInt.java | 6 +++--- .../pull/PullSubscriptionNameBooleanInt.java | 6 +++--- .../pull/PullSubscriptionNameInt.java | 6 +++--- .../seek/SeekCallableFutureCallSeekRequest.java | 6 +++--- .../v1/subscriptionadminclient/seek/SeekSeekRequest.java | 6 +++--- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 6 +++--- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 6 +++--- .../StreamingPullCallableCallStreamingPullRequest.java | 6 +++--- ...missionsCallableFutureCallTestIamPermissionsRequest.java | 6 +++--- .../TestIamPermissionsTestIamPermissionsRequest.java | 6 +++--- ...dateSnapshotCallableFutureCallUpdateSnapshotRequest.java | 6 +++--- .../updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java | 6 +++--- ...criptionCallableFutureCallUpdateSubscriptionRequest.java | 6 +++--- .../UpdateSubscriptionUpdateSubscriptionRequest.java | 6 +++--- ...onSettingsSetRetrySettingsSubscriptionAdminSettings.java | 6 +++--- .../topicadminclient/create/CreateTopicAdminSettings1.java | 6 +++--- .../topicadminclient/create/CreateTopicAdminSettings2.java | 6 +++--- .../createtopic/CreateTopicCallableFutureCallTopic.java | 6 +++--- .../v1/topicadminclient/createtopic/CreateTopicString.java | 6 +++--- .../v1/topicadminclient/createtopic/CreateTopicTopic.java | 6 +++--- .../topicadminclient/createtopic/CreateTopicTopicName.java | 6 +++--- .../DeleteTopicCallableFutureCallDeleteTopicRequest.java | 6 +++--- .../deletetopic/DeleteTopicDeleteTopicRequest.java | 6 +++--- .../v1/topicadminclient/deletetopic/DeleteTopicString.java | 6 +++--- .../topicadminclient/deletetopic/DeleteTopicTopicName.java | 6 +++--- ...criptionCallableFutureCallDetachSubscriptionRequest.java | 6 +++--- .../DetachSubscriptionDetachSubscriptionRequest.java | 6 +++--- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 6 +++--- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 6 +++--- .../gettopic/GetTopicCallableFutureCallGetTopicRequest.java | 6 +++--- .../topicadminclient/gettopic/GetTopicGetTopicRequest.java | 6 +++--- .../pubsub/v1/topicadminclient/gettopic/GetTopicString.java | 6 +++--- .../v1/topicadminclient/gettopic/GetTopicTopicName.java | 6 +++--- .../listtopics/ListTopicsCallableCallListTopicsRequest.java | 6 +++--- .../listtopics/ListTopicsListTopicsRequestIterateAll.java | 6 +++--- .../ListTopicsPagedCallableFutureCallListTopicsRequest.java | 6 +++--- .../listtopics/ListTopicsProjectNameIterateAll.java | 6 +++--- .../listtopics/ListTopicsStringIterateAll.java | 6 +++--- ...TopicSnapshotsCallableCallListTopicSnapshotsRequest.java | 6 +++--- ...stTopicSnapshotsListTopicSnapshotsRequestIterateAll.java | 6 +++--- ...otsPagedCallableFutureCallListTopicSnapshotsRequest.java | 6 +++--- .../ListTopicSnapshotsStringIterateAll.java | 6 +++--- .../ListTopicSnapshotsTopicNameIterateAll.java | 6 +++--- ...scriptionsCallableCallListTopicSubscriptionsRequest.java | 6 +++--- ...ubscriptionsListTopicSubscriptionsRequestIterateAll.java | 6 +++--- ...agedCallableFutureCallListTopicSubscriptionsRequest.java | 6 +++--- .../ListTopicSubscriptionsStringIterateAll.java | 6 +++--- .../ListTopicSubscriptionsTopicNameIterateAll.java | 6 +++--- .../publish/PublishCallableFutureCallPublishRequest.java | 6 +++--- .../v1/topicadminclient/publish/PublishPublishRequest.java | 6 +++--- .../publish/PublishStringListPubsubMessage.java | 6 +++--- .../publish/PublishTopicNameListPubsubMessage.java | 6 +++--- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 6 +++--- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 6 +++--- ...missionsCallableFutureCallTestIamPermissionsRequest.java | 6 +++--- .../TestIamPermissionsTestIamPermissionsRequest.java | 6 +++--- .../UpdateTopicCallableFutureCallUpdateTopicRequest.java | 6 +++--- .../updatetopic/UpdateTopicUpdateTopicRequest.java | 6 +++--- ...eateTopicSettingsSetRetrySettingsTopicAdminSettings.java | 6 +++--- .../cloudredisclient/create/CreateCloudRedisSettings1.java | 6 +++--- .../cloudredisclient/create/CreateCloudRedisSettings2.java | 6 +++--- .../CreateInstanceAsyncCreateInstanceRequestGet.java | 6 +++--- .../CreateInstanceAsyncLocationNameStringInstanceGet.java | 6 +++--- .../CreateInstanceAsyncStringStringInstanceGet.java | 6 +++--- ...eateInstanceCallableFutureCallCreateInstanceRequest.java | 6 +++--- ...nceOperationCallableFutureCallCreateInstanceRequest.java | 6 +++--- .../DeleteInstanceAsyncDeleteInstanceRequestGet.java | 6 +++--- .../deleteinstance/DeleteInstanceAsyncInstanceNameGet.java | 6 +++--- .../deleteinstance/DeleteInstanceAsyncStringGet.java | 6 +++--- ...leteInstanceCallableFutureCallDeleteInstanceRequest.java | 6 +++--- ...nceOperationCallableFutureCallDeleteInstanceRequest.java | 6 +++--- .../ExportInstanceAsyncExportInstanceRequestGet.java | 6 +++--- .../ExportInstanceAsyncStringOutputConfigGet.java | 6 +++--- ...portInstanceCallableFutureCallExportInstanceRequest.java | 6 +++--- ...nceOperationCallableFutureCallExportInstanceRequest.java | 6 +++--- .../FailoverInstanceAsyncFailoverInstanceRequestGet.java | 6 +++--- ...nceNameFailoverInstanceRequestDataProtectionModeGet.java | 6 +++--- ...cStringFailoverInstanceRequestDataProtectionModeGet.java | 6 +++--- ...erInstanceCallableFutureCallFailoverInstanceRequest.java | 6 +++--- ...eOperationCallableFutureCallFailoverInstanceRequest.java | 6 +++--- .../GetInstanceCallableFutureCallGetInstanceRequest.java | 6 +++--- .../getinstance/GetInstanceGetInstanceRequest.java | 6 +++--- .../getinstance/GetInstanceInstanceName.java | 6 +++--- .../cloudredisclient/getinstance/GetInstanceString.java | 6 +++--- ...tringCallableFutureCallGetInstanceAuthStringRequest.java | 6 +++--- .../GetInstanceAuthStringGetInstanceAuthStringRequest.java | 6 +++--- .../GetInstanceAuthStringInstanceName.java | 6 +++--- .../getinstanceauthstring/GetInstanceAuthStringString.java | 6 +++--- .../ImportInstanceAsyncImportInstanceRequestGet.java | 6 +++--- .../ImportInstanceAsyncStringInputConfigGet.java | 6 +++--- ...portInstanceCallableFutureCallImportInstanceRequest.java | 6 +++--- ...nceOperationCallableFutureCallImportInstanceRequest.java | 6 +++--- .../ListInstancesCallableCallListInstancesRequest.java | 6 +++--- .../ListInstancesListInstancesRequestIterateAll.java | 6 +++--- .../listinstances/ListInstancesLocationNameIterateAll.java | 6 +++--- ...nstancesPagedCallableFutureCallListInstancesRequest.java | 6 +++--- .../listinstances/ListInstancesStringIterateAll.java | 6 +++--- ...cheduleMaintenanceRequestRescheduleTypeTimestampGet.java | 6 +++--- ...duleMaintenanceAsyncRescheduleMaintenanceRequestGet.java | 6 +++--- ...cheduleMaintenanceRequestRescheduleTypeTimestampGet.java | 6 +++--- ...nanceCallableFutureCallRescheduleMaintenanceRequest.java | 6 +++--- ...ationCallableFutureCallRescheduleMaintenanceRequest.java | 6 +++--- .../UpdateInstanceAsyncFieldMaskInstanceGet.java | 6 +++--- .../UpdateInstanceAsyncUpdateInstanceRequestGet.java | 6 +++--- ...dateInstanceCallableFutureCallUpdateInstanceRequest.java | 6 +++--- ...nceOperationCallableFutureCallUpdateInstanceRequest.java | 6 +++--- .../UpgradeInstanceAsyncInstanceNameStringGet.java | 6 +++--- .../UpgradeInstanceAsyncStringStringGet.java | 6 +++--- .../UpgradeInstanceAsyncUpgradeInstanceRequestGet.java | 6 +++--- ...adeInstanceCallableFutureCallUpgradeInstanceRequest.java | 6 +++--- ...ceOperationCallableFutureCallUpgradeInstanceRequest.java | 6 +++--- ...tInstanceSettingsSetRetrySettingsCloudRedisSettings.java | 6 +++--- ...tanceSettingsSetRetrySettingsCloudRedisStubSettings.java | 6 +++--- ...ComposeObjectCallableFutureCallComposeObjectRequest.java | 6 +++--- .../composeobject/ComposeObjectComposeObjectRequest.java | 6 +++--- .../v2/storageclient/create/CreateStorageSettings1.java | 6 +++--- .../v2/storageclient/create/CreateStorageSettings2.java | 6 +++--- .../CreateBucketCallableFutureCallCreateBucketRequest.java | 6 +++--- .../createbucket/CreateBucketCreateBucketRequest.java | 6 +++--- .../createbucket/CreateBucketProjectNameBucketString.java | 6 +++--- .../createbucket/CreateBucketStringBucketString.java | 6 +++--- ...CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java | 6 +++--- .../createhmackey/CreateHmacKeyCreateHmacKeyRequest.java | 6 +++--- .../createhmackey/CreateHmacKeyProjectNameString.java | 6 +++--- .../createhmackey/CreateHmacKeyStringString.java | 6 +++--- ...ficationCallableFutureCallCreateNotificationRequest.java | 6 +++--- .../CreateNotificationCreateNotificationRequest.java | 6 +++--- .../CreateNotificationProjectNameNotification.java | 6 +++--- .../CreateNotificationStringNotification.java | 6 +++--- .../storageclient/deletebucket/DeleteBucketBucketName.java | 6 +++--- .../DeleteBucketCallableFutureCallDeleteBucketRequest.java | 6 +++--- .../deletebucket/DeleteBucketDeleteBucketRequest.java | 6 +++--- .../v2/storageclient/deletebucket/DeleteBucketString.java | 6 +++--- ...DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java | 6 +++--- .../deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java | 6 +++--- .../deletehmackey/DeleteHmacKeyStringProjectName.java | 6 +++--- .../deletehmackey/DeleteHmacKeyStringString.java | 6 +++--- ...ficationCallableFutureCallDeleteNotificationRequest.java | 6 +++--- .../DeleteNotificationDeleteNotificationRequest.java | 6 +++--- .../DeleteNotificationNotificationName.java | 6 +++--- .../deletenotification/DeleteNotificationString.java | 6 +++--- .../DeleteObjectCallableFutureCallDeleteObjectRequest.java | 6 +++--- .../deleteobject/DeleteObjectDeleteObjectRequest.java | 6 +++--- .../deleteobject/DeleteObjectStringString.java | 6 +++--- .../deleteobject/DeleteObjectStringStringLong.java | 6 +++--- .../v2/storageclient/getbucket/GetBucketBucketName.java | 6 +++--- .../GetBucketCallableFutureCallGetBucketRequest.java | 6 +++--- .../storageclient/getbucket/GetBucketGetBucketRequest.java | 6 +++--- .../storage/v2/storageclient/getbucket/GetBucketString.java | 6 +++--- .../GetHmacKeyCallableFutureCallGetHmacKeyRequest.java | 6 +++--- .../gethmackey/GetHmacKeyGetHmacKeyRequest.java | 6 +++--- .../gethmackey/GetHmacKeyStringProjectName.java | 6 +++--- .../v2/storageclient/gethmackey/GetHmacKeyStringString.java | 6 +++--- .../GetIamPolicyCallableFutureCallGetIamPolicyRequest.java | 6 +++--- .../getiampolicy/GetIamPolicyGetIamPolicyRequest.java | 6 +++--- .../getiampolicy/GetIamPolicyResourceName.java | 6 +++--- .../v2/storageclient/getiampolicy/GetIamPolicyString.java | 6 +++--- .../getnotification/GetNotificationBucketName.java | 6 +++--- ...otificationCallableFutureCallGetNotificationRequest.java | 6 +++--- .../GetNotificationGetNotificationRequest.java | 6 +++--- .../getnotification/GetNotificationString.java | 6 +++--- .../GetObjectCallableFutureCallGetObjectRequest.java | 6 +++--- .../storageclient/getobject/GetObjectGetObjectRequest.java | 6 +++--- .../v2/storageclient/getobject/GetObjectStringString.java | 6 +++--- .../storageclient/getobject/GetObjectStringStringLong.java | 6 +++--- ...ceAccountCallableFutureCallGetServiceAccountRequest.java | 6 +++--- .../GetServiceAccountGetServiceAccountRequest.java | 6 +++--- .../getserviceaccount/GetServiceAccountProjectName.java | 6 +++--- .../getserviceaccount/GetServiceAccountString.java | 6 +++--- .../ListBucketsCallableCallListBucketsRequest.java | 6 +++--- .../ListBucketsListBucketsRequestIterateAll.java | 6 +++--- ...istBucketsPagedCallableFutureCallListBucketsRequest.java | 6 +++--- .../listbuckets/ListBucketsProjectNameIterateAll.java | 6 +++--- .../listbuckets/ListBucketsStringIterateAll.java | 6 +++--- .../ListHmacKeysCallableCallListHmacKeysRequest.java | 6 +++--- .../ListHmacKeysListHmacKeysRequestIterateAll.java | 6 +++--- ...tHmacKeysPagedCallableFutureCallListHmacKeysRequest.java | 6 +++--- .../listhmackeys/ListHmacKeysProjectNameIterateAll.java | 6 +++--- .../listhmackeys/ListHmacKeysStringIterateAll.java | 6 +++--- ...stNotificationsCallableCallListNotificationsRequest.java | 6 +++--- ...ListNotificationsListNotificationsRequestIterateAll.java | 6 +++--- ...ionsPagedCallableFutureCallListNotificationsRequest.java | 6 +++--- .../ListNotificationsProjectNameIterateAll.java | 6 +++--- .../ListNotificationsStringIterateAll.java | 6 +++--- .../ListObjectsCallableCallListObjectsRequest.java | 6 +++--- .../ListObjectsListObjectsRequestIterateAll.java | 6 +++--- ...istObjectsPagedCallableFutureCallListObjectsRequest.java | 6 +++--- .../listobjects/ListObjectsProjectNameIterateAll.java | 6 +++--- .../listobjects/ListObjectsStringIterateAll.java | 6 +++--- .../LockBucketRetentionPolicyBucketName.java | 6 +++--- ...yCallableFutureCallLockBucketRetentionPolicyRequest.java | 6 +++--- ...cketRetentionPolicyLockBucketRetentionPolicyRequest.java | 6 +++--- .../LockBucketRetentionPolicyString.java | 6 +++--- ...riteStatusCallableFutureCallQueryWriteStatusRequest.java | 6 +++--- .../QueryWriteStatusQueryWriteStatusRequest.java | 6 +++--- .../querywritestatus/QueryWriteStatusString.java | 6 +++--- .../readobject/ReadObjectCallableCallReadObjectRequest.java | 6 +++--- ...RewriteObjectCallableFutureCallRewriteObjectRequest.java | 6 +++--- .../rewriteobject/RewriteObjectRewriteObjectRequest.java | 6 +++--- .../SetIamPolicyCallableFutureCallSetIamPolicyRequest.java | 6 +++--- .../setiampolicy/SetIamPolicyResourceNamePolicy.java | 6 +++--- .../setiampolicy/SetIamPolicySetIamPolicyRequest.java | 6 +++--- .../setiampolicy/SetIamPolicyStringPolicy.java | 6 +++--- ...leWriteCallableFutureCallStartResumableWriteRequest.java | 6 +++--- .../StartResumableWriteStartResumableWriteRequest.java | 6 +++--- ...missionsCallableFutureCallTestIamPermissionsRequest.java | 6 +++--- .../TestIamPermissionsResourceNameListString.java | 6 +++--- .../TestIamPermissionsStringListString.java | 6 +++--- .../TestIamPermissionsTestIamPermissionsRequest.java | 6 +++--- .../updatebucket/UpdateBucketBucketFieldMask.java | 6 +++--- .../UpdateBucketCallableFutureCallUpdateBucketRequest.java | 6 +++--- .../updatebucket/UpdateBucketUpdateBucketRequest.java | 6 +++--- ...UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java | 6 +++--- .../UpdateHmacKeyHmacKeyMetadataFieldMask.java | 6 +++--- .../updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java | 6 +++--- .../UpdateObjectCallableFutureCallUpdateObjectRequest.java | 6 +++--- .../updateobject/UpdateObjectObjectFieldMask.java | 6 +++--- .../updateobject/UpdateObjectUpdateObjectRequest.java | 6 +++--- .../WriteObjectClientStreamingCallWriteObjectRequest.java | 6 +++--- ...DeleteBucketSettingsSetRetrySettingsStorageSettings.java | 6 +++--- ...teBucketSettingsSetRetrySettingsStorageStubSettings.java | 6 +++--- 866 files changed, 2598 insertions(+), 2598 deletions(-) diff --git a/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden b/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden index 3f728adaee..9b36124ec7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.stub.samples; -// [START goldensample_generated_service_addapachelicense_sample] +// [START goldensample_generated_service_addapachelicense_sample_sync] public class AddApacheLicenseSample { public static void main(String[] args) throws Exception { @@ -28,4 +28,4 @@ public class AddApacheLicenseSample { // It may require modifications to work in your environment. } } -// [END goldensample_generated_service_addapachelicense_sample] +// [END goldensample_generated_service_addapachelicense_sample_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden index 01dbc4284a..160528108e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.bookshop.v1beta1.samples; -// [START goldensample_generated_bookshopclient_create_bookshopsettings1] +// [START goldensample_generated_bookshopclient_create_bookshopsettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.bookshop.v1beta1.BookshopClient; import com.google.bookshop.v1beta1.BookshopSettings; @@ -38,4 +38,4 @@ public class CreateBookshopSettings1 { BookshopClient bookshopClient = BookshopClient.create(bookshopSettings); } } -// [END goldensample_generated_bookshopclient_create_bookshopsettings1] +// [END goldensample_generated_bookshopclient_create_bookshopsettings1_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden index 9959c72e9c..cd738148c7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.bookshop.v1beta1.samples; -// [START goldensample_generated_bookshopclient_create_bookshopsettings2] +// [START goldensample_generated_bookshopclient_create_bookshopsettings2_sync] import com.google.bookshop.v1beta1.BookshopClient; import com.google.bookshop.v1beta1.BookshopSettings; import com.google.bookshop.v1beta1.myEndpoint; @@ -35,4 +35,4 @@ public class CreateBookshopSettings2 { BookshopClient bookshopClient = BookshopClient.create(bookshopSettings); } } -// [END goldensample_generated_bookshopclient_create_bookshopsettings2] +// [END goldensample_generated_bookshopclient_create_bookshopsettings2_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden index 5e95098c49..0159689449 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.bookshop.v1beta1.samples; -// [START goldensample_generated_bookshopclient_getbook_callablefuturecallgetbookrequest] +// [START goldensample_generated_bookshopclient_getbook_callablefuturecallgetbookrequest_sync] import com.google.api.core.ApiFuture; import com.google.bookshop.v1beta1.Book; import com.google.bookshop.v1beta1.BookshopClient; @@ -45,4 +45,4 @@ public class GetBookCallableFutureCallGetBookRequest { } } } -// [END goldensample_generated_bookshopclient_getbook_callablefuturecallgetbookrequest] +// [END goldensample_generated_bookshopclient_getbook_callablefuturecallgetbookrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden index cbe6a6b51d..bf9df1e770 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.bookshop.v1beta1.samples; -// [START goldensample_generated_bookshopclient_getbook_getbookrequest] +// [START goldensample_generated_bookshopclient_getbook_getbookrequest_sync] import com.google.bookshop.v1beta1.Book; import com.google.bookshop.v1beta1.BookshopClient; import com.google.bookshop.v1beta1.GetBookRequest; @@ -42,4 +42,4 @@ public class GetBookGetBookRequest { } } } -// [END goldensample_generated_bookshopclient_getbook_getbookrequest] +// [END goldensample_generated_bookshopclient_getbook_getbookrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden index c28c94468a..2a0268c445 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.bookshop.v1beta1.samples; -// [START goldensample_generated_bookshopclient_getbook_intlistbook] +// [START goldensample_generated_bookshopclient_getbook_intlistbook_sync] import com.google.bookshop.v1beta1.Book; import com.google.bookshop.v1beta1.BookshopClient; import java.util.ArrayList; @@ -38,4 +38,4 @@ public class GetBookIntListBook { } } } -// [END goldensample_generated_bookshopclient_getbook_intlistbook] +// [END goldensample_generated_bookshopclient_getbook_intlistbook_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden index 7126554d61..0802b5c32f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.bookshop.v1beta1.samples; -// [START goldensample_generated_bookshopclient_getbook_stringlistbook] +// [START goldensample_generated_bookshopclient_getbook_stringlistbook_sync] import com.google.bookshop.v1beta1.Book; import com.google.bookshop.v1beta1.BookshopClient; import java.util.ArrayList; @@ -38,4 +38,4 @@ public class GetBookStringListBook { } } } -// [END goldensample_generated_bookshopclient_getbook_stringlistbook] +// [END goldensample_generated_bookshopclient_getbook_stringlistbook_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden index 2f87d82dc2..b756082888 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.testdata.v1.samples; -// [START goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings1] +// [START goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.testdata.v1.DeprecatedServiceClient; import com.google.testdata.v1.DeprecatedServiceSettings; @@ -39,4 +39,4 @@ public class CreateDeprecatedServiceSettings1 { DeprecatedServiceClient.create(deprecatedServiceSettings); } } -// [END goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings1] +// [END goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings1_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden index 57ef10f253..44d95d0d14 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.testdata.v1.samples; -// [START goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings2] +// [START goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings2_sync] import com.google.testdata.v1.DeprecatedServiceClient; import com.google.testdata.v1.DeprecatedServiceSettings; import com.google.testdata.v1.myEndpoint; @@ -36,4 +36,4 @@ public class CreateDeprecatedServiceSettings2 { DeprecatedServiceClient.create(deprecatedServiceSettings); } } -// [END goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings2] +// [END goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings2_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden index 06e8b270b3..fdd16f2533 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.testdata.v1.samples; -// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest] +// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.testdata.v1.DeprecatedServiceClient; @@ -39,4 +39,4 @@ public class FastFibonacciCallableFutureCallFibonacciRequest { } } } -// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest] +// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden index 64996be25f..265cdae5fd 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.testdata.v1.samples; -// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest] +// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest_sync] import com.google.protobuf.Empty; import com.google.testdata.v1.DeprecatedServiceClient; import com.google.testdata.v1.FibonacciRequest; @@ -36,4 +36,4 @@ public class FastFibonacciFibonacciRequest { } } } -// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest] +// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden index 70b6c6ad5f..05a5037da2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.testdata.v1.samples; -// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest] +// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.testdata.v1.DeprecatedServiceClient; @@ -39,4 +39,4 @@ public class SlowFibonacciCallableFutureCallFibonacciRequest { } } } -// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest] +// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden index 0c20d40bc3..c1451a0344 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.testdata.v1.samples; -// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest] +// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest_sync] import com.google.protobuf.Empty; import com.google.testdata.v1.DeprecatedServiceClient; import com.google.testdata.v1.FibonacciRequest; @@ -36,4 +36,4 @@ public class SlowFibonacciFibonacciRequest { } } } -// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest] +// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden index ddeda24da9..05ccb4471c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_block_blockrequest] +// [START goldensample_generated_echoclient_block_blockrequest_sync] import com.google.showcase.v1beta1.BlockRequest; import com.google.showcase.v1beta1.BlockResponse; import com.google.showcase.v1beta1.EchoClient; @@ -36,4 +36,4 @@ public class BlockBlockRequest { } } } -// [END goldensample_generated_echoclient_block_blockrequest] +// [END goldensample_generated_echoclient_block_blockrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden index e2d4bb7277..1f9a8efbf4 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_block_callablefuturecallblockrequest] +// [START goldensample_generated_echoclient_block_callablefuturecallblockrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.BlockRequest; import com.google.showcase.v1beta1.BlockResponse; @@ -39,4 +39,4 @@ public class BlockCallableFutureCallBlockRequest { } } } -// [END goldensample_generated_echoclient_block_callablefuturecallblockrequest] +// [END goldensample_generated_echoclient_block_callablefuturecallblockrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden index 2e836313b6..78730bf07d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_chatagain_callablecallechorequest] +// [START goldensample_generated_echoclient_chatagain_callablecallechorequest_sync] import com.google.api.gax.rpc.BidiStream; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -50,4 +50,4 @@ public class ChatAgainCallableCallEchoRequest { } } } -// [END goldensample_generated_echoclient_chatagain_callablecallechorequest] +// [END goldensample_generated_echoclient_chatagain_callablecallechorequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden index a621e4f4c1..9120ddab20 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_chat_callablecallechorequest] +// [START goldensample_generated_echoclient_chat_callablecallechorequest_sync] import com.google.api.gax.rpc.BidiStream; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -50,4 +50,4 @@ public class ChatCallableCallEchoRequest { } } } -// [END goldensample_generated_echoclient_chat_callablecallechorequest] +// [END goldensample_generated_echoclient_chat_callablecallechorequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden index f398ca5667..aa39a4f200 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_collect_clientstreamingcallechorequest] +// [START goldensample_generated_echoclient_collect_clientstreamingcallechorequest_sync] import com.google.api.gax.rpc.ApiStreamObserver; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -65,4 +65,4 @@ public class CollectClientStreamingCallEchoRequest { } } } -// [END goldensample_generated_echoclient_collect_clientstreamingcallechorequest] +// [END goldensample_generated_echoclient_collect_clientstreamingcallechorequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden index da365f449e..049792f07a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_collidename_callablefuturecallechorequest] +// [START goldensample_generated_echoclient_collidename_callablefuturecallechorequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -48,4 +48,4 @@ public class CollideNameCallableFutureCallEchoRequest { } } } -// [END goldensample_generated_echoclient_collidename_callablefuturecallechorequest] +// [END goldensample_generated_echoclient_collidename_callablefuturecallechorequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden index 63d612b381..97eb3cbe8c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_collidename_echorequest] +// [START goldensample_generated_echoclient_collidename_echorequest_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.Foobar; @@ -45,4 +45,4 @@ public class CollideNameEchoRequest { } } } -// [END goldensample_generated_echoclient_collidename_echorequest] +// [END goldensample_generated_echoclient_collidename_echorequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden index b70c117599..aebc0f2381 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_create_echosettings1] +// [START goldensample_generated_echoclient_create_echosettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoSettings; @@ -38,4 +38,4 @@ public class CreateEchoSettings1 { EchoClient echoClient = EchoClient.create(echoSettings); } } -// [END goldensample_generated_echoclient_create_echosettings1] +// [END goldensample_generated_echoclient_create_echosettings1_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden index 3b9ea210fb..c7b26b0880 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_create_echosettings2] +// [START goldensample_generated_echoclient_create_echosettings2_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoSettings; import com.google.showcase.v1beta1.myEndpoint; @@ -34,4 +34,4 @@ public class CreateEchoSettings2 { EchoClient echoClient = EchoClient.create(echoSettings); } } -// [END goldensample_generated_echoclient_create_echosettings2] +// [END goldensample_generated_echoclient_create_echosettings2_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden index 1d23cfce80..0dd520c078 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo] +// [START goldensample_generated_echoclient_echo_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -34,4 +34,4 @@ public class Echo { } } } -// [END goldensample_generated_echoclient_echo] +// [END goldensample_generated_echoclient_echo_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden index 1f7ae09e17..50ecd65138 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_callablefuturecallechorequest] +// [START goldensample_generated_echoclient_echo_callablefuturecallechorequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -48,4 +48,4 @@ public class EchoCallableFutureCallEchoRequest { } } } -// [END goldensample_generated_echoclient_echo_callablefuturecallechorequest] +// [END goldensample_generated_echoclient_echo_callablefuturecallechorequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden index 1c01f52ea8..8b5a021ee9 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_echorequest] +// [START goldensample_generated_echoclient_echo_echorequest_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; @@ -45,4 +45,4 @@ public class EchoEchoRequest { } } } -// [END goldensample_generated_echoclient_echo_echorequest] +// [END goldensample_generated_echoclient_echo_echorequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden index 9ead86bb10..0be1db2992 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_foobarname] +// [START goldensample_generated_echoclient_echo_foobarname_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.FoobarName; @@ -36,4 +36,4 @@ public class EchoFoobarName { } } } -// [END goldensample_generated_echoclient_echo_foobarname] +// [END goldensample_generated_echoclient_echo_foobarname_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden index 6c32ad20f8..941b2093e3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_resourcename] +// [START goldensample_generated_echoclient_echo_resourcename_sync] import com.google.api.resourcenames.ResourceName; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -37,4 +37,4 @@ public class EchoResourceName { } } } -// [END goldensample_generated_echoclient_echo_resourcename] +// [END goldensample_generated_echoclient_echo_resourcename_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden index af9eb0dfd5..1fa6c44670 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_status] +// [START goldensample_generated_echoclient_echo_status_sync] import com.google.rpc.Status; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -36,4 +36,4 @@ public class EchoStatus { } } } -// [END goldensample_generated_echoclient_echo_status] +// [END goldensample_generated_echoclient_echo_status_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden index f5330c427f..7eccf3c49d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_string1] +// [START goldensample_generated_echoclient_echo_string1_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -35,4 +35,4 @@ public class EchoString1 { } } } -// [END goldensample_generated_echoclient_echo_string1] +// [END goldensample_generated_echoclient_echo_string1_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden index a36a64dad0..6e042be317 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_string2] +// [START goldensample_generated_echoclient_echo_string2_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.FoobarName; @@ -36,4 +36,4 @@ public class EchoString2 { } } } -// [END goldensample_generated_echoclient_echo_string2] +// [END goldensample_generated_echoclient_echo_string2_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden index 32c968988a..9b4f1788f0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_string3] +// [START goldensample_generated_echoclient_echo_string3_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.FoobarName; @@ -36,4 +36,4 @@ public class EchoString3 { } } } -// [END goldensample_generated_echoclient_echo_string3] +// [END goldensample_generated_echoclient_echo_string3_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden index d719454ae6..7f98339e1d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_echo_stringseverity] +// [START goldensample_generated_echoclient_echo_stringseverity_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.Severity; @@ -37,4 +37,4 @@ public class EchoStringSeverity { } } } -// [END goldensample_generated_echoclient_echo_stringseverity] +// [END goldensample_generated_echoclient_echo_stringseverity_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden index d1270f7cbe..e62ffc20b2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_expand_callablecallexpandrequest] +// [START goldensample_generated_echoclient_expand_callablecallexpandrequest_sync] import com.google.api.gax.rpc.ServerStream; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -41,4 +41,4 @@ public class ExpandCallableCallExpandRequest { } } } -// [END goldensample_generated_echoclient_expand_callablecallexpandrequest] +// [END goldensample_generated_echoclient_expand_callablecallexpandrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden index 5b97554ff6..7aed8f30b1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_pagedexpand_callablecallpagedexpandrequest] +// [START goldensample_generated_echoclient_pagedexpand_callablecallpagedexpandrequest_sync] import com.google.common.base.Strings; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -54,4 +54,4 @@ public class PagedExpandCallableCallPagedExpandRequest { } } } -// [END goldensample_generated_echoclient_pagedexpand_callablecallpagedexpandrequest] +// [END goldensample_generated_echoclient_pagedexpand_callablecallpagedexpandrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden index 5004239ab5..93217aafd7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest] +// [START goldensample_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -46,4 +46,4 @@ public class PagedExpandPagedCallableFutureCallPagedExpandRequest { } } } -// [END goldensample_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest] +// [END goldensample_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden index ef3124a6c9..55735493ab 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_pagedexpand_pagedexpandrequestiterateall] +// [START goldensample_generated_echoclient_pagedexpand_pagedexpandrequestiterateall_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.PagedExpandRequest; @@ -43,4 +43,4 @@ public class PagedExpandPagedExpandRequestIterateAll { } } } -// [END goldensample_generated_echoclient_pagedexpand_pagedexpandrequestiterateall] +// [END goldensample_generated_echoclient_pagedexpand_pagedexpandrequestiterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden index 63b5118dc4..93ef55b0ba 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest] +// [START goldensample_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest_sync] import com.google.common.base.Strings; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -54,4 +54,4 @@ public class SimplePagedExpandCallableCallPagedExpandRequest { } } } -// [END goldensample_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest] +// [END goldensample_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden index 302154f07e..42b3537a66 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_simplepagedexpand_iterateall] +// [START goldensample_generated_echoclient_simplepagedexpand_iterateall_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -36,4 +36,4 @@ public class SimplePagedExpandIterateAll { } } } -// [END goldensample_generated_echoclient_simplepagedexpand_iterateall] +// [END goldensample_generated_echoclient_simplepagedexpand_iterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden index 9623f7d274..124011449a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest] +// [START goldensample_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; @@ -47,4 +47,4 @@ public class SimplePagedExpandPagedCallableFutureCallPagedExpandRequest { } } } -// [END goldensample_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest] +// [END goldensample_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden index 866283489c..5c20551486 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall] +// [START goldensample_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.PagedExpandRequest; @@ -43,4 +43,4 @@ public class SimplePagedExpandPagedExpandRequestIterateAll { } } } -// [END goldensample_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall] +// [END goldensample_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden index abaaedd92d..ccad9b7083 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_wait_asyncdurationget] +// [START goldensample_generated_echoclient_wait_asyncdurationget_sync] import com.google.protobuf.Duration; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.WaitResponse; @@ -36,4 +36,4 @@ public class WaitAsyncDurationGet { } } } -// [END goldensample_generated_echoclient_wait_asyncdurationget] +// [END goldensample_generated_echoclient_wait_asyncdurationget_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden index ef6164ba42..741fb3e079 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_wait_asynctimestampget] +// [START goldensample_generated_echoclient_wait_asynctimestampget_sync] import com.google.protobuf.Timestamp; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.WaitResponse; @@ -36,4 +36,4 @@ public class WaitAsyncTimestampGet { } } } -// [END goldensample_generated_echoclient_wait_asynctimestampget] +// [END goldensample_generated_echoclient_wait_asynctimestampget_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden index c3767affb3..cd12412408 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_wait_asyncwaitrequestget] +// [START goldensample_generated_echoclient_wait_asyncwaitrequestget_sync] import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.WaitRequest; import com.google.showcase.v1beta1.WaitResponse; @@ -36,4 +36,4 @@ public class WaitAsyncWaitRequestGet { } } } -// [END goldensample_generated_echoclient_wait_asyncwaitrequestget] +// [END goldensample_generated_echoclient_wait_asyncwaitrequestget_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden index d72e60f048..3a706aab82 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_wait_callablefuturecallwaitrequest] +// [START goldensample_generated_echoclient_wait_callablefuturecallwaitrequest_sync] import com.google.api.core.ApiFuture; import com.google.longrunning.Operation; import com.google.showcase.v1beta1.EchoClient; @@ -39,4 +39,4 @@ public class WaitCallableFutureCallWaitRequest { } } } -// [END goldensample_generated_echoclient_wait_callablefuturecallwaitrequest] +// [END goldensample_generated_echoclient_wait_callablefuturecallwaitrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden index 32f8811cd0..96e4558d06 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echoclient_wait_operationcallablefuturecallwaitrequest] +// [START goldensample_generated_echoclient_wait_operationcallablefuturecallwaitrequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.WaitMetadata; @@ -41,4 +41,4 @@ public class WaitOperationCallableFutureCallWaitRequest { } } } -// [END goldensample_generated_echoclient_wait_operationcallablefuturecallwaitrequest] +// [END goldensample_generated_echoclient_wait_operationcallablefuturecallwaitrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden index fee178aae2..9dc4e92633 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_create_identitysettings1] +// [START goldensample_generated_identityclient_create_identitysettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.IdentitySettings; @@ -38,4 +38,4 @@ public class CreateIdentitySettings1 { IdentityClient identityClient = IdentityClient.create(identitySettings); } } -// [END goldensample_generated_identityclient_create_identitysettings1] +// [END goldensample_generated_identityclient_create_identitysettings1_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden index a9a5b0d9fe..455817ed85 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_create_identitysettings2] +// [START goldensample_generated_identityclient_create_identitysettings2_sync] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.IdentitySettings; import com.google.showcase.v1beta1.myEndpoint; @@ -35,4 +35,4 @@ public class CreateIdentitySettings2 { IdentityClient identityClient = IdentityClient.create(identitySettings); } } -// [END goldensample_generated_identityclient_create_identitysettings2] +// [END goldensample_generated_identityclient_create_identitysettings2_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden index 925dd76243..f8474c4fdb 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_createuser_callablefuturecallcreateuserrequest] +// [START goldensample_generated_identityclient_createuser_callablefuturecallcreateuserrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.CreateUserRequest; import com.google.showcase.v1beta1.IdentityClient; @@ -44,4 +44,4 @@ public class CreateUserCallableFutureCallCreateUserRequest { } } } -// [END goldensample_generated_identityclient_createuser_callablefuturecallcreateuserrequest] +// [END goldensample_generated_identityclient_createuser_callablefuturecallcreateuserrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden index 784e0ffdae..1ce14cbba3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_createuser_createuserrequest] +// [START goldensample_generated_identityclient_createuser_createuserrequest_sync] import com.google.showcase.v1beta1.CreateUserRequest; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; @@ -41,4 +41,4 @@ public class CreateUserCreateUserRequest { } } } -// [END goldensample_generated_identityclient_createuser_createuserrequest] +// [END goldensample_generated_identityclient_createuser_createuserrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden index 6568a3e977..608d8ffca8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_createuser_stringstringstring] +// [START goldensample_generated_identityclient_createuser_stringstringstring_sync] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -38,4 +38,4 @@ public class CreateUserStringStringString { } } } -// [END goldensample_generated_identityclient_createuser_stringstringstring] +// [END goldensample_generated_identityclient_createuser_stringstringstring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden index 4297ea4644..dd07782313 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_createuser_stringstringstringintstringbooleandouble] +// [START goldensample_generated_identityclient_createuser_stringstringstringintstringbooleandouble_sync] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -44,4 +44,4 @@ public class CreateUserStringStringStringIntStringBooleanDouble { } } } -// [END goldensample_generated_identityclient_createuser_stringstringstringintstringbooleandouble] +// [END goldensample_generated_identityclient_createuser_stringstringstringintstringbooleandouble_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden index 1b17958571..b7cb9406f3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring] +// [START goldensample_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring_sync] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -57,4 +57,4 @@ public class CreateUserStringStringStringStringStringIntStringStringStringString } } } -// [END goldensample_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring] +// [END goldensample_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden index aa88481333..e5c6f13349 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest] +// [START goldensample_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.DeleteUserRequest; @@ -41,4 +41,4 @@ public class DeleteUserCallableFutureCallDeleteUserRequest { } } } -// [END goldensample_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest] +// [END goldensample_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden index 7ce7e3e0a6..bcd122074c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_deleteuser_deleteuserrequest] +// [START goldensample_generated_identityclient_deleteuser_deleteuserrequest_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.DeleteUserRequest; import com.google.showcase.v1beta1.IdentityClient; @@ -38,4 +38,4 @@ public class DeleteUserDeleteUserRequest { } } } -// [END goldensample_generated_identityclient_deleteuser_deleteuserrequest] +// [END goldensample_generated_identityclient_deleteuser_deleteuserrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden index a9ecea8f75..1ebcd0f790 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_deleteuser_string] +// [START goldensample_generated_identityclient_deleteuser_string_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.UserName; @@ -36,4 +36,4 @@ public class DeleteUserString { } } } -// [END goldensample_generated_identityclient_deleteuser_string] +// [END goldensample_generated_identityclient_deleteuser_string_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden index bc17135e09..5a4a89106d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_deleteuser_username] +// [START goldensample_generated_identityclient_deleteuser_username_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.UserName; @@ -36,4 +36,4 @@ public class DeleteUserUserName { } } } -// [END goldensample_generated_identityclient_deleteuser_username] +// [END goldensample_generated_identityclient_deleteuser_username_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden index fb38321eab..84c5952c03 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_getuser_callablefuturecallgetuserrequest] +// [START goldensample_generated_identityclient_getuser_callablefuturecallgetuserrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.GetUserRequest; import com.google.showcase.v1beta1.IdentityClient; @@ -41,4 +41,4 @@ public class GetUserCallableFutureCallGetUserRequest { } } } -// [END goldensample_generated_identityclient_getuser_callablefuturecallgetuserrequest] +// [END goldensample_generated_identityclient_getuser_callablefuturecallgetuserrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden index ca680e57fc..1b26d41d3d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_getuser_getuserrequest] +// [START goldensample_generated_identityclient_getuser_getuserrequest_sync] import com.google.showcase.v1beta1.GetUserRequest; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; @@ -38,4 +38,4 @@ public class GetUserGetUserRequest { } } } -// [END goldensample_generated_identityclient_getuser_getuserrequest] +// [END goldensample_generated_identityclient_getuser_getuserrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden index b770a563e0..e67b732955 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_getuser_string] +// [START goldensample_generated_identityclient_getuser_string_sync] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -36,4 +36,4 @@ public class GetUserString { } } } -// [END goldensample_generated_identityclient_getuser_string] +// [END goldensample_generated_identityclient_getuser_string_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden index cca87e672d..b3dde74628 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_getuser_username] +// [START goldensample_generated_identityclient_getuser_username_sync] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.User; import com.google.showcase.v1beta1.UserName; @@ -36,4 +36,4 @@ public class GetUserUserName { } } } -// [END goldensample_generated_identityclient_getuser_username] +// [END goldensample_generated_identityclient_getuser_username_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden index 3b847d7c91..9fa7de6618 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_listusers_callablecalllistusersrequest] +// [START goldensample_generated_identityclient_listusers_callablecalllistusersrequest_sync] import com.google.common.base.Strings; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.ListUsersRequest; @@ -53,4 +53,4 @@ public class ListUsersCallableCallListUsersRequest { } } } -// [END goldensample_generated_identityclient_listusers_callablecalllistusersrequest] +// [END goldensample_generated_identityclient_listusers_callablecalllistusersrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden index c9c4865ea3..e083f44030 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_listusers_listusersrequestiterateall] +// [START goldensample_generated_identityclient_listusers_listusersrequestiterateall_sync] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.ListUsersRequest; import com.google.showcase.v1beta1.User; @@ -42,4 +42,4 @@ public class ListUsersListUsersRequestIterateAll { } } } -// [END goldensample_generated_identityclient_listusers_listusersrequestiterateall] +// [END goldensample_generated_identityclient_listusers_listusersrequestiterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden index 2080557d06..782a138721 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest] +// [START goldensample_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.ListUsersRequest; @@ -45,4 +45,4 @@ public class ListUsersPagedCallableFutureCallListUsersRequest { } } } -// [END goldensample_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest] +// [END goldensample_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden index 44fb95ba20..ead47f3bff 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_updateuser_callablefuturecallupdateuserrequest] +// [START goldensample_generated_identityclient_updateuser_callablefuturecallupdateuserrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.UpdateUserRequest; @@ -40,4 +40,4 @@ public class UpdateUserCallableFutureCallUpdateUserRequest { } } } -// [END goldensample_generated_identityclient_updateuser_callablefuturecallupdateuserrequest] +// [END goldensample_generated_identityclient_updateuser_callablefuturecallupdateuserrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden index 4188838a6b..394ca00442 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_identityclient_updateuser_updateuserrequest] +// [START goldensample_generated_identityclient_updateuser_updateuserrequest_sync] import com.google.showcase.v1beta1.IdentityClient; import com.google.showcase.v1beta1.UpdateUserRequest; import com.google.showcase.v1beta1.User; @@ -37,4 +37,4 @@ public class UpdateUserUpdateUserRequest { } } } -// [END goldensample_generated_identityclient_updateuser_updateuserrequest] +// [END goldensample_generated_identityclient_updateuser_updateuserrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden index 182920099b..9c1f97f09c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_connect_callablecallconnectrequest] +// [START goldensample_generated_messagingclient_connect_callablecallconnectrequest_sync] import com.google.api.gax.rpc.BidiStream; import com.google.showcase.v1beta1.ConnectRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -42,4 +42,4 @@ public class ConnectCallableCallConnectRequest { } } } -// [END goldensample_generated_messagingclient_connect_callablecallconnectrequest] +// [END goldensample_generated_messagingclient_connect_callablecallconnectrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden index c4691a3c26..a5be9abb1e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest] +// [START goldensample_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.CreateBlurbRequest; @@ -44,4 +44,4 @@ public class CreateBlurbCallableFutureCallCreateBlurbRequest { } } } -// [END goldensample_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest] +// [END goldensample_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden index 5b7c4278d5..23dcbc7221 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createblurb_createblurbrequest] +// [START goldensample_generated_messagingclient_createblurb_createblurbrequest_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.CreateBlurbRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -41,4 +41,4 @@ public class CreateBlurbCreateBlurbRequest { } } } -// [END goldensample_generated_messagingclient_createblurb_createblurbrequest] +// [END goldensample_generated_messagingclient_createblurb_createblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden index 85fc7ced05..a576e2fdc4 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createblurb_profilenamebytestring] +// [START goldensample_generated_messagingclient_createblurb_profilenamebytestring_sync] import com.google.protobuf.ByteString; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; @@ -38,4 +38,4 @@ public class CreateBlurbProfileNameByteString { } } } -// [END goldensample_generated_messagingclient_createblurb_profilenamebytestring] +// [END goldensample_generated_messagingclient_createblurb_profilenamebytestring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden index a58963590e..f18f919b01 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createblurb_profilenamestring] +// [START goldensample_generated_messagingclient_createblurb_profilenamestring_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -37,4 +37,4 @@ public class CreateBlurbProfileNameString { } } } -// [END goldensample_generated_messagingclient_createblurb_profilenamestring] +// [END goldensample_generated_messagingclient_createblurb_profilenamestring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden index 71f07bc9c2..5784ab64b5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createblurb_roomnamebytestring] +// [START goldensample_generated_messagingclient_createblurb_roomnamebytestring_sync] import com.google.protobuf.ByteString; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; @@ -38,4 +38,4 @@ public class CreateBlurbRoomNameByteString { } } } -// [END goldensample_generated_messagingclient_createblurb_roomnamebytestring] +// [END goldensample_generated_messagingclient_createblurb_roomnamebytestring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden index fa533a7a4f..5584074988 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createblurb_roomnamestring] +// [START goldensample_generated_messagingclient_createblurb_roomnamestring_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.RoomName; @@ -37,4 +37,4 @@ public class CreateBlurbRoomNameString { } } } -// [END goldensample_generated_messagingclient_createblurb_roomnamestring] +// [END goldensample_generated_messagingclient_createblurb_roomnamestring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden index 7c2f6448cc..c9b346ee30 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createblurb_stringbytestring] +// [START goldensample_generated_messagingclient_createblurb_stringbytestring_sync] import com.google.protobuf.ByteString; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; @@ -38,4 +38,4 @@ public class CreateBlurbStringByteString { } } } -// [END goldensample_generated_messagingclient_createblurb_stringbytestring] +// [END goldensample_generated_messagingclient_createblurb_stringbytestring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden index d9ccec7e89..58dc934fe4 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createblurb_stringstring] +// [START goldensample_generated_messagingclient_createblurb_stringstring_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -37,4 +37,4 @@ public class CreateBlurbStringString { } } } -// [END goldensample_generated_messagingclient_createblurb_stringstring] +// [END goldensample_generated_messagingclient_createblurb_stringstring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden index c2eb4c29a0..4db21095bb 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_create_messagingsettings1] +// [START goldensample_generated_messagingclient_create_messagingsettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.MessagingSettings; @@ -38,4 +38,4 @@ public class CreateMessagingSettings1 { MessagingClient messagingClient = MessagingClient.create(messagingSettings); } } -// [END goldensample_generated_messagingclient_create_messagingsettings1] +// [END goldensample_generated_messagingclient_create_messagingsettings1_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden index f319d36416..ae17f16372 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_create_messagingsettings2] +// [START goldensample_generated_messagingclient_create_messagingsettings2_sync] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.MessagingSettings; import com.google.showcase.v1beta1.myEndpoint; @@ -35,4 +35,4 @@ public class CreateMessagingSettings2 { MessagingClient messagingClient = MessagingClient.create(messagingSettings); } } -// [END goldensample_generated_messagingclient_create_messagingsettings2] +// [END goldensample_generated_messagingclient_create_messagingsettings2_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden index ea1452b9f0..8144d67c0d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createroom_callablefuturecallcreateroomrequest] +// [START goldensample_generated_messagingclient_createroom_callablefuturecallcreateroomrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.CreateRoomRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -40,4 +40,4 @@ public class CreateRoomCallableFutureCallCreateRoomRequest { } } } -// [END goldensample_generated_messagingclient_createroom_callablefuturecallcreateroomrequest] +// [END goldensample_generated_messagingclient_createroom_callablefuturecallcreateroomrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden index b905a455f1..5c5aa13513 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createroom_createroomrequest] +// [START goldensample_generated_messagingclient_createroom_createroomrequest_sync] import com.google.showcase.v1beta1.CreateRoomRequest; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -37,4 +37,4 @@ public class CreateRoomCreateRoomRequest { } } } -// [END goldensample_generated_messagingclient_createroom_createroomrequest] +// [END goldensample_generated_messagingclient_createroom_createroomrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden index 80a7ad78ec..382d566986 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_createroom_stringstring] +// [START goldensample_generated_messagingclient_createroom_stringstring_sync] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -36,4 +36,4 @@ public class CreateRoomStringString { } } } -// [END goldensample_generated_messagingclient_createroom_stringstring] +// [END goldensample_generated_messagingclient_createroom_stringstring_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden index c11c652934..e3983487c0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_deleteblurb_blurbname] +// [START goldensample_generated_messagingclient_deleteblurb_blurbname_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.MessagingClient; @@ -36,4 +36,4 @@ public class DeleteBlurbBlurbName { } } } -// [END goldensample_generated_messagingclient_deleteblurb_blurbname] +// [END goldensample_generated_messagingclient_deleteblurb_blurbname_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden index 6cf287ab72..eb48cfa721 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest] +// [START goldensample_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.BlurbName; @@ -45,4 +45,4 @@ public class DeleteBlurbCallableFutureCallDeleteBlurbRequest { } } } -// [END goldensample_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest] +// [END goldensample_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden index a1b929c4d1..04c48c3529 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_deleteblurb_deleteblurbrequest] +// [START goldensample_generated_messagingclient_deleteblurb_deleteblurbrequest_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.DeleteBlurbRequest; @@ -42,4 +42,4 @@ public class DeleteBlurbDeleteBlurbRequest { } } } -// [END goldensample_generated_messagingclient_deleteblurb_deleteblurbrequest] +// [END goldensample_generated_messagingclient_deleteblurb_deleteblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden index 03b85640ff..019dabee5f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_deleteblurb_string] +// [START goldensample_generated_messagingclient_deleteblurb_string_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.MessagingClient; @@ -37,4 +37,4 @@ public class DeleteBlurbString { } } } -// [END goldensample_generated_messagingclient_deleteblurb_string] +// [END goldensample_generated_messagingclient_deleteblurb_string_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden index 7353d8ca3c..e462cb267b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest] +// [START goldensample_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.showcase.v1beta1.DeleteRoomRequest; @@ -41,4 +41,4 @@ public class DeleteRoomCallableFutureCallDeleteRoomRequest { } } } -// [END goldensample_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest] +// [END goldensample_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden index 06d79dd106..dcf0a13941 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_deleteroom_deleteroomrequest] +// [START goldensample_generated_messagingclient_deleteroom_deleteroomrequest_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.DeleteRoomRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -38,4 +38,4 @@ public class DeleteRoomDeleteRoomRequest { } } } -// [END goldensample_generated_messagingclient_deleteroom_deleteroomrequest] +// [END goldensample_generated_messagingclient_deleteroom_deleteroomrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden index 7e415ba075..62da07d7ff 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_deleteroom_roomname] +// [START goldensample_generated_messagingclient_deleteroom_roomname_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.RoomName; @@ -36,4 +36,4 @@ public class DeleteRoomRoomName { } } } -// [END goldensample_generated_messagingclient_deleteroom_roomname] +// [END goldensample_generated_messagingclient_deleteroom_roomname_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden index 4d14d0a540..9d145ae564 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_deleteroom_string] +// [START goldensample_generated_messagingclient_deleteroom_string_sync] import com.google.protobuf.Empty; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.RoomName; @@ -36,4 +36,4 @@ public class DeleteRoomString { } } } -// [END goldensample_generated_messagingclient_deleteroom_string] +// [END goldensample_generated_messagingclient_deleteroom_string_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden index c90e21fdf7..689a9d82ea 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_getblurb_blurbname] +// [START goldensample_generated_messagingclient_getblurb_blurbname_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.MessagingClient; @@ -36,4 +36,4 @@ public class GetBlurbBlurbName { } } } -// [END goldensample_generated_messagingclient_getblurb_blurbname] +// [END goldensample_generated_messagingclient_getblurb_blurbname_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden index d42d82b324..2b30f902b2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest] +// [START goldensample_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.BlurbName; @@ -45,4 +45,4 @@ public class GetBlurbCallableFutureCallGetBlurbRequest { } } } -// [END goldensample_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest] +// [END goldensample_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden index 960de7465c..2212f43a89 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_getblurb_getblurbrequest] +// [START goldensample_generated_messagingclient_getblurb_getblurbrequest_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.GetBlurbRequest; @@ -42,4 +42,4 @@ public class GetBlurbGetBlurbRequest { } } } -// [END goldensample_generated_messagingclient_getblurb_getblurbrequest] +// [END goldensample_generated_messagingclient_getblurb_getblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden index 5b9ceae167..ed07595390 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_getblurb_string] +// [START goldensample_generated_messagingclient_getblurb_string_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.BlurbName; import com.google.showcase.v1beta1.MessagingClient; @@ -37,4 +37,4 @@ public class GetBlurbString { } } } -// [END goldensample_generated_messagingclient_getblurb_string] +// [END goldensample_generated_messagingclient_getblurb_string_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden index d82a9504c3..e8fd708c47 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_getroom_callablefuturecallgetroomrequest] +// [START goldensample_generated_messagingclient_getroom_callablefuturecallgetroomrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.GetRoomRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -41,4 +41,4 @@ public class GetRoomCallableFutureCallGetRoomRequest { } } } -// [END goldensample_generated_messagingclient_getroom_callablefuturecallgetroomrequest] +// [END goldensample_generated_messagingclient_getroom_callablefuturecallgetroomrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden index 3b05083511..e17640564c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_getroom_getroomrequest] +// [START goldensample_generated_messagingclient_getroom_getroomrequest_sync] import com.google.showcase.v1beta1.GetRoomRequest; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -38,4 +38,4 @@ public class GetRoomGetRoomRequest { } } } -// [END goldensample_generated_messagingclient_getroom_getroomrequest] +// [END goldensample_generated_messagingclient_getroom_getroomrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden index eb1289d7ab..1207ea8ae7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_getroom_roomname] +// [START goldensample_generated_messagingclient_getroom_roomname_sync] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; import com.google.showcase.v1beta1.RoomName; @@ -36,4 +36,4 @@ public class GetRoomRoomName { } } } -// [END goldensample_generated_messagingclient_getroom_roomname] +// [END goldensample_generated_messagingclient_getroom_roomname_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden index 33960ae36a..5e06997655 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_getroom_string] +// [START goldensample_generated_messagingclient_getroom_string_sync] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; import com.google.showcase.v1beta1.RoomName; @@ -36,4 +36,4 @@ public class GetRoomString { } } } -// [END goldensample_generated_messagingclient_getroom_string] +// [END goldensample_generated_messagingclient_getroom_string_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden index 0fc2096375..312784ed13 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listblurbs_callablecalllistblurbsrequest] +// [START goldensample_generated_messagingclient_listblurbs_callablecalllistblurbsrequest_sync] import com.google.common.base.Strings; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.ListBlurbsRequest; @@ -55,4 +55,4 @@ public class ListBlurbsCallableCallListBlurbsRequest { } } } -// [END goldensample_generated_messagingclient_listblurbs_callablecalllistblurbsrequest] +// [END goldensample_generated_messagingclient_listblurbs_callablecalllistblurbsrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden index 4946b61317..2811911fed 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listblurbs_listblurbsrequestiterateall] +// [START goldensample_generated_messagingclient_listblurbs_listblurbsrequestiterateall_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.ListBlurbsRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -44,4 +44,4 @@ public class ListBlurbsListBlurbsRequestIterateAll { } } } -// [END goldensample_generated_messagingclient_listblurbs_listblurbsrequestiterateall] +// [END goldensample_generated_messagingclient_listblurbs_listblurbsrequestiterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden index 0747f00e46..725c0a19c3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest] +// [START goldensample_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.ListBlurbsRequest; @@ -47,4 +47,4 @@ public class ListBlurbsPagedCallableFutureCallListBlurbsRequest { } } } -// [END goldensample_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest] +// [END goldensample_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden index 96f8e7b515..215f3d5a33 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listblurbs_profilenameiterateall] +// [START goldensample_generated_messagingclient_listblurbs_profilenameiterateall_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -38,4 +38,4 @@ public class ListBlurbsProfileNameIterateAll { } } } -// [END goldensample_generated_messagingclient_listblurbs_profilenameiterateall] +// [END goldensample_generated_messagingclient_listblurbs_profilenameiterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden index e06450f890..85f8b17ba8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listblurbs_roomnameiterateall] +// [START goldensample_generated_messagingclient_listblurbs_roomnameiterateall_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.RoomName; @@ -38,4 +38,4 @@ public class ListBlurbsRoomNameIterateAll { } } } -// [END goldensample_generated_messagingclient_listblurbs_roomnameiterateall] +// [END goldensample_generated_messagingclient_listblurbs_roomnameiterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden index b80750cd5e..7d7c094256 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listblurbs_stringiterateall] +// [START goldensample_generated_messagingclient_listblurbs_stringiterateall_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -38,4 +38,4 @@ public class ListBlurbsStringIterateAll { } } } -// [END goldensample_generated_messagingclient_listblurbs_stringiterateall] +// [END goldensample_generated_messagingclient_listblurbs_stringiterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden index c890cd01b5..fe1021ca3c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listrooms_callablecalllistroomsrequest] +// [START goldensample_generated_messagingclient_listrooms_callablecalllistroomsrequest_sync] import com.google.common.base.Strings; import com.google.showcase.v1beta1.ListRoomsRequest; import com.google.showcase.v1beta1.ListRoomsResponse; @@ -53,4 +53,4 @@ public class ListRoomsCallableCallListRoomsRequest { } } } -// [END goldensample_generated_messagingclient_listrooms_callablecalllistroomsrequest] +// [END goldensample_generated_messagingclient_listrooms_callablecalllistroomsrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden index bd13dab554..c5186e0b20 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listrooms_listroomsrequestiterateall] +// [START goldensample_generated_messagingclient_listrooms_listroomsrequestiterateall_sync] import com.google.showcase.v1beta1.ListRoomsRequest; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -42,4 +42,4 @@ public class ListRoomsListRoomsRequestIterateAll { } } } -// [END goldensample_generated_messagingclient_listrooms_listroomsrequestiterateall] +// [END goldensample_generated_messagingclient_listrooms_listroomsrequestiterateall_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden index fbd74293d8..e1353e34fa 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest] +// [START goldensample_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.ListRoomsRequest; import com.google.showcase.v1beta1.MessagingClient; @@ -45,4 +45,4 @@ public class ListRoomsPagedCallableFutureCallListRoomsRequest { } } } -// [END goldensample_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest] +// [END goldensample_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden index acc69f6203..f35ed2d526 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget] +// [START goldensample_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget_sync] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; import com.google.showcase.v1beta1.SearchBlurbsRequest; @@ -43,4 +43,4 @@ public class SearchBlurbsAsyncSearchBlurbsRequestGet { } } } -// [END goldensample_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget] +// [END goldensample_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden index 1d074ecc3c..86916f0acd 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_searchblurbs_asyncstringget] +// [START goldensample_generated_messagingclient_searchblurbs_asyncstringget_sync] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.SearchBlurbsResponse; @@ -35,4 +35,4 @@ public class SearchBlurbsAsyncStringGet { } } } -// [END goldensample_generated_messagingclient_searchblurbs_asyncstringget] +// [END goldensample_generated_messagingclient_searchblurbs_asyncstringget_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden index b1e7a636d4..4e89ce7649 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest] +// [START goldensample_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest_sync] import com.google.api.core.ApiFuture; import com.google.longrunning.Operation; import com.google.showcase.v1beta1.MessagingClient; @@ -46,4 +46,4 @@ public class SearchBlurbsCallableFutureCallSearchBlurbsRequest { } } } -// [END goldensample_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest] +// [END goldensample_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden index f677e704b3..5233e85da6 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest] +// [START goldensample_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -48,4 +48,4 @@ public class SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest { } } } -// [END goldensample_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest] +// [END goldensample_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden index d57b67e76e..5cf2484780 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest] +// [START goldensample_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest_sync] import com.google.api.gax.rpc.ApiStreamObserver; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.CreateBlurbRequest; @@ -62,4 +62,4 @@ public class SendBlurbsClientStreamingCallCreateBlurbRequest { } } } -// [END goldensample_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest] +// [END goldensample_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden index e215036a6b..c264041cb0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest] +// [START goldensample_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest_sync] import com.google.api.gax.rpc.ServerStream; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.ProfileName; @@ -43,4 +43,4 @@ public class StreamBlurbsCallableCallStreamBlurbsRequest { } } } -// [END goldensample_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest] +// [END goldensample_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden index 2f1978010e..26f84132b3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest] +// [START goldensample_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; @@ -40,4 +40,4 @@ public class UpdateBlurbCallableFutureCallUpdateBlurbRequest { } } } -// [END goldensample_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest] +// [END goldensample_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden index 51b0dc22eb..023d8c8aa0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_updateblurb_updateblurbrequest] +// [START goldensample_generated_messagingclient_updateblurb_updateblurbrequest_sync] import com.google.showcase.v1beta1.Blurb; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.UpdateBlurbRequest; @@ -37,4 +37,4 @@ public class UpdateBlurbUpdateBlurbRequest { } } } -// [END goldensample_generated_messagingclient_updateblurb_updateblurbrequest] +// [END goldensample_generated_messagingclient_updateblurb_updateblurbrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden index 631224ce85..ca80454b4a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest] +// [START goldensample_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest_sync] import com.google.api.core.ApiFuture; import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; @@ -40,4 +40,4 @@ public class UpdateRoomCallableFutureCallUpdateRoomRequest { } } } -// [END goldensample_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest] +// [END goldensample_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden index 4ac589cd41..646580846a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_messagingclient_updateroom_updateroomrequest] +// [START goldensample_generated_messagingclient_updateroom_updateroomrequest_sync] import com.google.showcase.v1beta1.MessagingClient; import com.google.showcase.v1beta1.Room; import com.google.showcase.v1beta1.UpdateRoomRequest; @@ -37,4 +37,4 @@ public class UpdateRoomUpdateRoomRequest { } } } -// [END goldensample_generated_messagingclient_updateroom_updateroomrequest] +// [END goldensample_generated_messagingclient_updateroom_updateroomrequest_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden index 2fc905de98..1255ad84fa 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.pubsub.v1.stub.samples; -// [START goldensample_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] +// [START goldensample_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings_sync] import com.google.pubsub.v1.stub.PublisherStubSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public class CreateTopicSettingsSetRetrySettingsPublisherStubSettings { PublisherStubSettings publisherSettings = publisherSettingsBuilder.build(); } } -// [END goldensample_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] +// [END goldensample_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden index f1233ede92..618bcfb26d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.logging.v2.stub.samples; -// [START goldensample_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] +// [START goldensample_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings_sync] import com.google.logging.v2.stub.LoggingServiceV2StubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public class DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings { LoggingServiceV2StubSettings loggingServiceV2Settings = loggingServiceV2SettingsBuilder.build(); } } -// [END goldensample_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] +// [END goldensample_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden index b51fd7923f..9c57072e7f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.samples; -// [START goldensample_generated_echosettings_echo_settingssetretrysettingsechosettings] +// [START goldensample_generated_echosettings_echo_settingssetretrysettingsechosettings_sync] import com.google.showcase.v1beta1.EchoSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public class EchoSettingsSetRetrySettingsEchoSettings { EchoSettings echoSettings = echoSettingsBuilder.build(); } } -// [END goldensample_generated_echosettings_echo_settingssetretrysettingsechosettings] +// [END goldensample_generated_echosettings_echo_settingssetretrysettingsechosettings_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden index 48a8d497c6..5232f488b2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.showcase.v1beta1.stub.samples; -// [START goldensample_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings] +// [START goldensample_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings_sync] import com.google.showcase.v1beta1.stub.EchoStubSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public class EchoSettingsSetRetrySettingsEchoStubSettings { EchoStubSettings echoSettings = echoSettingsBuilder.build(); } } -// [END goldensample_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings] +// [END goldensample_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden index f0bd295d35..7b9180f62a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.testdata.v1.samples; -// [START goldensample_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings] +// [START goldensample_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings_sync] import com.google.testdata.v1.DeprecatedServiceSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings { DeprecatedServiceSettings deprecatedServiceSettings = deprecatedServiceSettingsBuilder.build(); } } -// [END goldensample_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings] +// [END goldensample_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings_sync] diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden index 494dc60e49..28e8c12e18 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.testdata.v1.stub.samples; -// [START goldensample_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings] +// [START goldensample_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings_sync] import com.google.testdata.v1.stub.DeprecatedServiceStubSettings; import java.time.Duration; @@ -45,4 +45,4 @@ public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings deprecatedServiceSettingsBuilder.build(); } } -// [END goldensample_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings] +// [END goldensample_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java index b301dbf4d6..3e35bf09be 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest] +// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest_sync] import com.google.cloud.asset.v1.AnalyzeIamPolicyRequest; import com.google.cloud.asset.v1.AnalyzeIamPolicyResponse; import com.google.cloud.asset.v1.AssetServiceClient; @@ -42,4 +42,4 @@ public static void analyzeIamPolicyAnalyzeIamPolicyRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest] +// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java index 8033a4c25b..d1a408b562 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest] +// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AnalyzeIamPolicyRequest; import com.google.cloud.asset.v1.AnalyzeIamPolicyResponse; @@ -46,4 +46,4 @@ public static void analyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest() t } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest] +// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java index bf5fb799cd..5a2cef2a9a 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget] +// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget_sync] import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest; import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse; import com.google.cloud.asset.v1.AssetServiceClient; @@ -44,4 +44,4 @@ public static void analyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRe } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget] +// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java index 6647dbbaad..8faabcb889 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest] +// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest; import com.google.cloud.asset.v1.AssetServiceClient; @@ -48,4 +48,4 @@ public static void main(String[] args) throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest] +// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java index 92758f5643..fc1239944a 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest] +// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata; import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest; @@ -51,4 +51,4 @@ public static void main(String[] args) throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest] +// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java index 17ae84ac76..e9f378f14d 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest] +// [START asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest_sync] import com.google.cloud.asset.v1.AnalyzeMoveRequest; import com.google.cloud.asset.v1.AnalyzeMoveResponse; import com.google.cloud.asset.v1.AssetServiceClient; @@ -40,4 +40,4 @@ public static void analyzeMoveAnalyzeMoveRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest] +// [END asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java index 58ae9578e6..178787c5e9 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest] +// [START asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AnalyzeMoveRequest; import com.google.cloud.asset.v1.AnalyzeMoveResponse; @@ -44,4 +44,4 @@ public static void analyzeMoveCallableFutureCallAnalyzeMoveRequest() throws Exce } } } -// [END asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest] +// [END asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java index 457964becf..d5146bd151 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest] +// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest; import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse; @@ -47,4 +47,4 @@ public static void batchGetAssetsHistoryBatchGetAssetsHistoryRequest() throws Ex } } } -// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest] +// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java index bc440c5c2d..802f1df0dc 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest] +// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest; @@ -52,4 +52,4 @@ public static void batchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryR } } } -// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest] +// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java index 85d20c5053..0e4e2edae5 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_create_assetservicesettings1] +// [START asset_v1_generated_assetserviceclient_create_assetservicesettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.AssetServiceSettings; @@ -38,4 +38,4 @@ public static void createAssetServiceSettings1() throws Exception { AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); } } -// [END asset_v1_generated_assetserviceclient_create_assetservicesettings1] +// [END asset_v1_generated_assetserviceclient_create_assetservicesettings1_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java index 561c48f4e7..e129dc7bab 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_create_assetservicesettings2] +// [START asset_v1_generated_assetserviceclient_create_assetservicesettings2_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.AssetServiceSettings; import com.google.cloud.asset.v1.myEndpoint; @@ -35,4 +35,4 @@ public static void createAssetServiceSettings2() throws Exception { AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); } } -// [END asset_v1_generated_assetserviceclient_create_assetservicesettings2] +// [END asset_v1_generated_assetserviceclient_create_assetservicesettings2_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java index 03d781799e..a19b63ecf8 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest] +// [START asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.CreateFeedRequest; @@ -44,4 +44,4 @@ public static void createFeedCallableFutureCallCreateFeedRequest() throws Except } } } -// [END asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest] +// [END asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java index 0114db6e11..2273e9a53e 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_createfeed_createfeedrequest] +// [START asset_v1_generated_assetserviceclient_createfeed_createfeedrequest_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.CreateFeedRequest; import com.google.cloud.asset.v1.Feed; @@ -41,4 +41,4 @@ public static void createFeedCreateFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_createfeed_createfeedrequest] +// [END asset_v1_generated_assetserviceclient_createfeed_createfeedrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java index 443b241af4..750a50274a 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_createfeed_string] +// [START asset_v1_generated_assetserviceclient_createfeed_string_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.Feed; @@ -35,4 +35,4 @@ public static void createFeedString() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_createfeed_string] +// [END asset_v1_generated_assetserviceclient_createfeed_string_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java index 7556239d9d..073a210227 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest] +// [START asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.DeleteFeedRequest; @@ -43,4 +43,4 @@ public static void deleteFeedCallableFutureCallDeleteFeedRequest() throws Except } } } -// [END asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest] +// [END asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java index 98ffb785e6..3502f7d312 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest] +// [START asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.DeleteFeedRequest; import com.google.cloud.asset.v1.FeedName; @@ -40,4 +40,4 @@ public static void deleteFeedDeleteFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest] +// [END asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java index b26866a7f6..9841da1ae3 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_deletefeed_feedname] +// [START asset_v1_generated_assetserviceclient_deletefeed_feedname_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.FeedName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteFeedFeedName() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_deletefeed_feedname] +// [END asset_v1_generated_assetserviceclient_deletefeed_feedname_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java index a7a53a7bca..d84e82586c 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_deletefeed_string] +// [START asset_v1_generated_assetserviceclient_deletefeed_string_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.FeedName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteFeedString() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_deletefeed_string] +// [END asset_v1_generated_assetserviceclient_deletefeed_string_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java index 8194c7a58f..9ac99b4822 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget] +// [START asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ContentType; import com.google.cloud.asset.v1.ExportAssetsRequest; @@ -49,4 +49,4 @@ public static void exportAssetsAsyncExportAssetsRequestGet() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget] +// [END asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java index e93d6b8b62..8df0de4440 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest] +// [START asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ContentType; @@ -52,4 +52,4 @@ public static void exportAssetsCallableFutureCallExportAssetsRequest() throws Ex } } } -// [END asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest] +// [END asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java index c377bf6b3f..c4382d86f8 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest] +// [START asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ContentType; @@ -53,4 +53,4 @@ public static void exportAssetsOperationCallableFutureCallExportAssetsRequest() } } } -// [END asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest] +// [END asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java index c1406b42bb..4dcbbd696b 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest] +// [START asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.Feed; @@ -43,4 +43,4 @@ public static void getFeedCallableFutureCallGetFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest] +// [END asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java index 20cfc495c3..8d94b4915c 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_getfeed_feedname] +// [START asset_v1_generated_assetserviceclient_getfeed_feedname_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.Feed; import com.google.cloud.asset.v1.FeedName; @@ -36,4 +36,4 @@ public static void getFeedFeedName() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_getfeed_feedname] +// [END asset_v1_generated_assetserviceclient_getfeed_feedname_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java index 2550b1c76d..21089e49b8 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_getfeed_getfeedrequest] +// [START asset_v1_generated_assetserviceclient_getfeed_getfeedrequest_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.Feed; import com.google.cloud.asset.v1.FeedName; @@ -40,4 +40,4 @@ public static void getFeedGetFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_getfeed_getfeedrequest] +// [END asset_v1_generated_assetserviceclient_getfeed_getfeedrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java index f79c07f025..1c96b97c10 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_getfeed_string] +// [START asset_v1_generated_assetserviceclient_getfeed_string_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.Feed; import com.google.cloud.asset.v1.FeedName; @@ -36,4 +36,4 @@ public static void getFeedString() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_getfeed_string] +// [END asset_v1_generated_assetserviceclient_getfeed_string_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java index 354f1ce6c8..762d16284b 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest] +// [START asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest_sync] import com.google.cloud.asset.v1.Asset; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ContentType; @@ -62,4 +62,4 @@ public static void listAssetsCallableCallListAssetsRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest] +// [END asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java index 2bbe47cb09..fe7cba8626 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall] +// [START asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall_sync] import com.google.cloud.asset.v1.Asset; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ContentType; @@ -51,4 +51,4 @@ public static void listAssetsListAssetsRequestIterateAll() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall] +// [END asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java index 8bfb26f22c..1b066c9519 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest] +// [START asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.Asset; import com.google.cloud.asset.v1.AssetServiceClient; @@ -54,4 +54,4 @@ public static void listAssetsPagedCallableFutureCallListAssetsRequest() throws E } } } -// [END asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest] +// [END asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java index c26d090d9c..6284b20e4a 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall] +// [START asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall_sync] import com.google.api.resourcenames.ResourceName; import com.google.cloud.asset.v1.Asset; import com.google.cloud.asset.v1.AssetServiceClient; @@ -39,4 +39,4 @@ public static void listAssetsResourceNameIterateAll() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall] +// [END asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java index 838f602010..752305f480 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_listassets_stringiterateall] +// [START asset_v1_generated_assetserviceclient_listassets_stringiterateall_sync] import com.google.cloud.asset.v1.Asset; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.FeedName; @@ -38,4 +38,4 @@ public static void listAssetsStringIterateAll() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listassets_stringiterateall] +// [END asset_v1_generated_assetserviceclient_listassets_stringiterateall_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java index 2deda4a1f6..23a40e9657 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest] +// [START asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ListFeedsRequest; @@ -41,4 +41,4 @@ public static void listFeedsCallableFutureCallListFeedsRequest() throws Exceptio } } } -// [END asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest] +// [END asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java index 2fdcbcaed0..2c6652e59a 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest] +// [START asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ListFeedsRequest; import com.google.cloud.asset.v1.ListFeedsResponse; @@ -37,4 +37,4 @@ public static void listFeedsListFeedsRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest] +// [END asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java index 75f230f39b..10107107dd 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_listfeeds_string] +// [START asset_v1_generated_assetserviceclient_listfeeds_string_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ListFeedsResponse; @@ -35,4 +35,4 @@ public static void listFeedsString() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_listfeeds_string] +// [END asset_v1_generated_assetserviceclient_listfeeds_string_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java index a7bcfc381c..bf4d8648e4 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest] +// [START asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.IamPolicySearchResult; import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest; @@ -60,4 +60,4 @@ public static void searchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest() } } } -// [END asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest] +// [END asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java index 4a8f6adf49..f8c88451b1 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest] +// [START asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.IamPolicySearchResult; @@ -52,4 +52,4 @@ public static void searchAllIamPoliciesPagedCallableFutureCallSearchAllIamPolici } } } -// [END asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest] +// [END asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java index 289c3d42f9..2bac86e8aa 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall] +// [START asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.IamPolicySearchResult; import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest; @@ -48,4 +48,4 @@ public static void searchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll() t } } } -// [END asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall] +// [END asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java index 7230af9685..2b12386eb6 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall] +// [START asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.IamPolicySearchResult; @@ -39,4 +39,4 @@ public static void searchAllIamPoliciesStringStringIterateAll() throws Exception } } } -// [END asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall] +// [END asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java index 8d27a8f8f3..65531e219e 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest] +// [START asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ResourceSearchResult; import com.google.cloud.asset.v1.SearchAllResourcesRequest; @@ -61,4 +61,4 @@ public static void searchAllResourcesCallableCallSearchAllResourcesRequest() thr } } } -// [END asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest] +// [END asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java index e959132efc..919199a800 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest] +// [START asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ResourceSearchResult; @@ -54,4 +54,4 @@ public static void searchAllResourcesPagedCallableFutureCallSearchAllResourcesRe } } } -// [END asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest] +// [END asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java index 019a507016..01f7b6e99d 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall] +// [START asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ResourceSearchResult; import com.google.cloud.asset.v1.SearchAllResourcesRequest; @@ -50,4 +50,4 @@ public static void searchAllResourcesSearchAllResourcesRequestIterateAll() throw } } } -// [END asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall] +// [END asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java index 55da8a9dec..0b2d288071 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall] +// [START asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.ResourceSearchResult; import java.util.ArrayList; @@ -42,4 +42,4 @@ public static void searchAllResourcesStringStringListStringIterateAll() throws E } } } -// [END asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall] +// [END asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java index bb6c4e1129..28c1f9c9cf 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest] +// [START asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.Feed; @@ -44,4 +44,4 @@ public static void updateFeedCallableFutureCallUpdateFeedRequest() throws Except } } } -// [END asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest] +// [END asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java index 98d60e90fd..500beb663e 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_updatefeed_feed] +// [START asset_v1_generated_assetserviceclient_updatefeed_feed_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.Feed; @@ -35,4 +35,4 @@ public static void updateFeedFeed() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_updatefeed_feed] +// [END asset_v1_generated_assetserviceclient_updatefeed_feed_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java index e3e5a18b93..ff07c720d9 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest] +// [START asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest_sync] import com.google.cloud.asset.v1.AssetServiceClient; import com.google.cloud.asset.v1.Feed; import com.google.cloud.asset.v1.UpdateFeedRequest; @@ -41,4 +41,4 @@ public static void updateFeedUpdateFeedRequest() throws Exception { } } } -// [END asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest] +// [END asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java index 599f154a93..c490576dca 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.samples; -// [START asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings] +// [START asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings_sync] import com.google.cloud.asset.v1.AssetServiceSettings; import java.time.Duration; @@ -43,4 +43,4 @@ public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSett AssetServiceSettings assetServiceSettings = assetServiceSettingsBuilder.build(); } } -// [END asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings] +// [END asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings_sync] diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java index cc33bab4d7..636dd0c73d 100644 --- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java +++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.asset.v1.stub.samples; -// [START asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings] +// [START asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings_sync] import com.google.cloud.asset.v1.stub.AssetServiceStubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStub AssetServiceStubSettings assetServiceSettings = assetServiceSettingsBuilder.build(); } } -// [END asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings] +// [END asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java index 8fbed41fde..644278cecf 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest] +// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest_sync] import com.google.api.core.ApiFuture; import com.google.bigtable.v2.CheckAndMutateRowRequest; import com.google.bigtable.v2.CheckAndMutateRowResponse; @@ -54,4 +54,4 @@ public static void checkAndMutateRowCallableFutureCallCheckAndMutateRowRequest() } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest] +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java index 51b2828733..1d32a966e4 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest] +// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest_sync] import com.google.bigtable.v2.CheckAndMutateRowRequest; import com.google.bigtable.v2.CheckAndMutateRowResponse; import com.google.bigtable.v2.Mutation; @@ -49,4 +49,4 @@ public static void checkAndMutateRowCheckAndMutateRowRequest() throws Exception } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest] +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java index c10236c816..150745a06f 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation] +// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation_sync] import com.google.bigtable.v2.CheckAndMutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.RowFilter; @@ -48,4 +48,4 @@ public static void checkAndMutateRowStringByteStringRowFilterListMutationListMut } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation] +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutation_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java index 2457943adb..7301259531 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring] +// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring_sync] import com.google.bigtable.v2.CheckAndMutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.RowFilter; @@ -49,4 +49,4 @@ public static void checkAndMutateRowStringByteStringRowFilterListMutationListMut } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring] +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_stringbytestringrowfilterlistmutationlistmutationstring_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java index e58c1cde29..a87686da31 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation] +// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation_sync] import com.google.bigtable.v2.CheckAndMutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.RowFilter; @@ -48,4 +48,4 @@ public static void checkAndMutateRowTableNameByteStringRowFilterListMutationList } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation] +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutation_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java index 3377e5b097..9a44a21b27 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring] +// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring_sync] import com.google.bigtable.v2.CheckAndMutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.RowFilter; @@ -49,4 +49,4 @@ public static void checkAndMutateRowTableNameByteStringRowFilterListMutationList } } } -// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring] +// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_tablenamebytestringrowfilterlistmutationlistmutationstring_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java index a4ba2a782f..ba73379d50 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1] +// [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient; import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings; @@ -39,4 +39,4 @@ public static void createBaseBigtableDataSettings1() throws Exception { BaseBigtableDataClient.create(baseBigtableDataSettings); } } -// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1] +// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java index ae55b74628..48025a0e28 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2] +// [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2_sync] import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient; import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings; import com.google.cloud.bigtable.data.v2.myEndpoint; @@ -36,4 +36,4 @@ public static void createBaseBigtableDataSettings2() throws Exception { BaseBigtableDataClient.create(baseBigtableDataSettings); } } -// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2] +// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java index 25898e8301..3c6d1b5686 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest] +// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest_sync] import com.google.api.core.ApiFuture; import com.google.bigtable.v2.MutateRowRequest; import com.google.bigtable.v2.MutateRowResponse; @@ -50,4 +50,4 @@ public static void mutateRowCallableFutureCallMutateRowRequest() throws Exceptio } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest] +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java index ae8a7d22f4..58a91bfa2f 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest] +// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest_sync] import com.google.bigtable.v2.MutateRowRequest; import com.google.bigtable.v2.MutateRowResponse; import com.google.bigtable.v2.Mutation; @@ -46,4 +46,4 @@ public static void mutateRowMutateRowRequest() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest] +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java index ff763494c4..47e7f49678 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation] +// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation_sync] import com.google.bigtable.v2.MutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.TableName; @@ -42,4 +42,4 @@ public static void mutateRowStringByteStringListMutation() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation] +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutation_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java index f3dff627d2..358c656404 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring] +// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring_sync] import com.google.bigtable.v2.MutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.TableName; @@ -44,4 +44,4 @@ public static void mutateRowStringByteStringListMutationString() throws Exceptio } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring] +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_stringbytestringlistmutationstring_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java index 254e03f478..1b2169416e 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation] +// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation_sync] import com.google.bigtable.v2.MutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.TableName; @@ -42,4 +42,4 @@ public static void mutateRowTableNameByteStringListMutation() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation] +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutation_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java index addec9628e..6ebf96a0e7 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring] +// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring_sync] import com.google.bigtable.v2.MutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.TableName; @@ -44,4 +44,4 @@ public static void mutateRowTableNameByteStringListMutationString() throws Excep } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring] +// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_tablenamebytestringlistmutationstring_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java index a1fd0ecbd7..bd040c330c 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest] +// [START bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest_sync] import com.google.api.gax.rpc.ServerStream; import com.google.bigtable.v2.MutateRowsRequest; import com.google.bigtable.v2.MutateRowsResponse; @@ -48,4 +48,4 @@ public static void mutateRowsCallableCallMutateRowsRequest() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest] +// [END bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java index 00b2bf117d..46dfdc0234 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest] +// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest_sync] import com.google.api.core.ApiFuture; import com.google.bigtable.v2.ReadModifyWriteRowRequest; import com.google.bigtable.v2.ReadModifyWriteRowResponse; @@ -51,4 +51,4 @@ public static void readModifyWriteRowCallableFutureCallReadModifyWriteRowRequest } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest] +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java index 0ef31761d0..1afae99560 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest] +// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest_sync] import com.google.bigtable.v2.ReadModifyWriteRowRequest; import com.google.bigtable.v2.ReadModifyWriteRowResponse; import com.google.bigtable.v2.ReadModifyWriteRule; @@ -46,4 +46,4 @@ public static void readModifyWriteRowReadModifyWriteRowRequest() throws Exceptio } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest] +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java index f3d50f1a5a..3004052bc2 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule] +// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule_sync] import com.google.bigtable.v2.ReadModifyWriteRowResponse; import com.google.bigtable.v2.ReadModifyWriteRule; import com.google.bigtable.v2.TableName; @@ -43,4 +43,4 @@ public static void readModifyWriteRowStringByteStringListReadModifyWriteRule() t } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule] +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterule_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java index 20aa2c8a1c..733a4a525e 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring] +// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring_sync] import com.google.bigtable.v2.ReadModifyWriteRowResponse; import com.google.bigtable.v2.ReadModifyWriteRule; import com.google.bigtable.v2.TableName; @@ -45,4 +45,4 @@ public static void readModifyWriteRowStringByteStringListReadModifyWriteRuleStri } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring] +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_stringbytestringlistreadmodifywriterulestring_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java index edbfd9b233..d76c3f09c5 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule] +// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule_sync] import com.google.bigtable.v2.ReadModifyWriteRowResponse; import com.google.bigtable.v2.ReadModifyWriteRule; import com.google.bigtable.v2.TableName; @@ -44,4 +44,4 @@ public static void readModifyWriteRowTableNameByteStringListReadModifyWriteRule( } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule] +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterule_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java index adeb4b7cb9..e958a23c80 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring] +// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring_sync] import com.google.bigtable.v2.ReadModifyWriteRowResponse; import com.google.bigtable.v2.ReadModifyWriteRule; import com.google.bigtable.v2.TableName; @@ -45,4 +45,4 @@ public static void readModifyWriteRowTableNameByteStringListReadModifyWriteRuleS } } } -// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring] +// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_tablenamebytestringlistreadmodifywriterulestring_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java index 0bb9c94d79..21fd0cb739 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest] +// [START bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest_sync] import com.google.api.gax.rpc.ServerStream; import com.google.bigtable.v2.ReadRowsRequest; import com.google.bigtable.v2.ReadRowsResponse; @@ -51,4 +51,4 @@ public static void readRowsCallableCallReadRowsRequest() throws Exception { } } } -// [END bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest] +// [END bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java index 56e0e54524..2973c1e113 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest] +// [START bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest_sync] import com.google.api.gax.rpc.ServerStream; import com.google.bigtable.v2.SampleRowKeysRequest; import com.google.bigtable.v2.SampleRowKeysResponse; @@ -46,4 +46,4 @@ public static void sampleRowKeysCallableCallSampleRowKeysRequest() throws Except } } } -// [END bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest] +// [END bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java index 24f1863d4b..01a7f01362 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.samples; -// [START bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings] +// [START bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings_sync] import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings; import java.time.Duration; @@ -43,4 +43,4 @@ public static void mutateRowSettingsSetRetrySettingsBaseBigtableDataSettings() t BaseBigtableDataSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build(); } } -// [END bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings] +// [END bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings_sync] diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java index c7d392fed4..a10929f1fe 100644 --- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java +++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.bigtable.data.v2.stub.samples; -// [START bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings] +// [START bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings_sync] import com.google.cloud.bigtable.data.v2.stub.BigtableStubSettings; import java.time.Duration; @@ -43,4 +43,4 @@ public static void mutateRowSettingsSetRetrySettingsBigtableStubSettings() throw BigtableStubSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build(); } } -// [END bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings] +// [END bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java index 49a6d4be6d..f444adbe48 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall] +// [START compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall_sync] import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.AddressesScopedList; import com.google.cloud.compute.v1small.AggregatedListAddressesRequest; @@ -48,4 +48,4 @@ public static void aggregatedListAggregatedListAddressesRequestIterateAll() thro } } } -// [END compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall] +// [END compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java index 6d5836e406..61b7b37641 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest] +// [START compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest_sync] import com.google.cloud.compute.v1small.AddressAggregatedList; import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.AddressesScopedList; @@ -58,4 +58,4 @@ public static void aggregatedListCallableCallAggregatedListAddressesRequest() th } } } -// [END compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest] +// [END compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java index 96bf2bfd52..0fb636e07c 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest] +// [START compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.AddressesScopedList; @@ -52,4 +52,4 @@ public static void aggregatedListPagedCallableFutureCallAggregatedListAddressesR } } } -// [END compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest] +// [END compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java index e510fbc49d..6135ffad96 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall] +// [START compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall_sync] import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.AddressesScopedList; import java.util.Map; @@ -39,4 +39,4 @@ public static void aggregatedListStringIterateAll() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall] +// [END compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java index bced002fd0..3b6240f567 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_create_addressessettings1] +// [START compute_v1small_generated_addressesclient_create_addressessettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.AddressesSettings; @@ -38,4 +38,4 @@ public static void createAddressesSettings1() throws Exception { AddressesClient addressesClient = AddressesClient.create(addressesSettings); } } -// [END compute_v1small_generated_addressesclient_create_addressessettings1] +// [END compute_v1small_generated_addressesclient_create_addressessettings1_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java index 0d587d33c3..1157f9a12c 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_create_addressessettings2] +// [START compute_v1small_generated_addressesclient_create_addressessettings2_sync] import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.AddressesSettings; import com.google.cloud.compute.v1small.myEndpoint; @@ -35,4 +35,4 @@ public static void createAddressesSettings2() throws Exception { AddressesClient addressesClient = AddressesClient.create(addressesSettings); } } -// [END compute_v1small_generated_addressesclient_create_addressessettings2] +// [END compute_v1small_generated_addressesclient_create_addressessettings2_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java index 7ed790561d..ea48081361 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget] +// [START compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget_sync] import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.DeleteAddressRequest; import com.google.cloud.compute.v1small.Operation; @@ -42,4 +42,4 @@ public static void deleteAsyncDeleteAddressRequestGet() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget] +// [END compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java index f11b68f911..a4b0567ecc 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_delete_asyncstringstringstringget] +// [START compute_v1small_generated_addressesclient_delete_asyncstringstringstringget_sync] import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.Operation; @@ -37,4 +37,4 @@ public static void deleteAsyncStringStringStringGet() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_delete_asyncstringstringstringget] +// [END compute_v1small_generated_addressesclient_delete_asyncstringstringstringget_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java index 98027a8ed3..a9e996d3a8 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest] +// [START compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.DeleteAddressRequest; @@ -45,4 +45,4 @@ public static void deleteCallableFutureCallDeleteAddressRequest() throws Excepti } } } -// [END compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest] +// [END compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java index 1f81220862..e27eac3b9a 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest] +// [START compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.DeleteAddressRequest; @@ -46,4 +46,4 @@ public static void deleteOperationCallableFutureCallDeleteAddressRequest() throw } } } -// [END compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest] +// [END compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java index ae7529ce9c..668fc98c06 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget] +// [START compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget_sync] import com.google.cloud.compute.v1small.Address; import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.InsertAddressRequest; @@ -43,4 +43,4 @@ public static void insertAsyncInsertAddressRequestGet() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget] +// [END compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java index 64b383c300..99dfdf3406 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget] +// [START compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget_sync] import com.google.cloud.compute.v1small.Address; import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.Operation; @@ -38,4 +38,4 @@ public static void insertAsyncStringStringAddressGet() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget] +// [END compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java index 7a2bf21647..d533de7c96 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest] +// [START compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.compute.v1small.Address; import com.google.cloud.compute.v1small.AddressesClient; @@ -46,4 +46,4 @@ public static void insertCallableFutureCallInsertAddressRequest() throws Excepti } } } -// [END compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest] +// [END compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java index 0000437e5b..76d473e348 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest] +// [START compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.compute.v1small.Address; import com.google.cloud.compute.v1small.AddressesClient; @@ -47,4 +47,4 @@ public static void insertOperationCallableFutureCallInsertAddressRequest() throw } } } -// [END compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest] +// [END compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java index 7994515a9c..8411998113 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest] +// [START compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest_sync] import com.google.cloud.compute.v1small.Address; import com.google.cloud.compute.v1small.AddressList; import com.google.cloud.compute.v1small.AddressesClient; @@ -57,4 +57,4 @@ public static void listCallableCallListAddressesRequest() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest] +// [END compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java index 63db0cc722..d441dab06c 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall] +// [START compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall_sync] import com.google.cloud.compute.v1small.Address; import com.google.cloud.compute.v1small.AddressesClient; import com.google.cloud.compute.v1small.ListAddressesRequest; @@ -46,4 +46,4 @@ public static void listListAddressesRequestIterateAll() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall] +// [END compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java index f831ddd95d..d51e6a055a 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest] +// [START compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.compute.v1small.Address; import com.google.cloud.compute.v1small.AddressesClient; @@ -49,4 +49,4 @@ public static void listPagedCallableFutureCallListAddressesRequest() throws Exce } } } -// [END compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest] +// [END compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java index 58d5a49b20..dca587941d 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressesclient_list_stringstringstringiterateall] +// [START compute_v1small_generated_addressesclient_list_stringstringstringiterateall_sync] import com.google.cloud.compute.v1small.Address; import com.google.cloud.compute.v1small.AddressesClient; @@ -39,4 +39,4 @@ public static void listStringStringStringIterateAll() throws Exception { } } } -// [END compute_v1small_generated_addressesclient_list_stringstringstringiterateall] +// [END compute_v1small_generated_addressesclient_list_stringstringstringiterateall_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java index 700d22da4e..c273119c38 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings] +// [START compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings_sync] import com.google.cloud.compute.v1small.AddressesSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void aggregatedListSettingsSetRetrySettingsAddressesSettings() thr AddressesSettings addressesSettings = addressesSettingsBuilder.build(); } } -// [END compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings] +// [END compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java index 69ed4a6617..0f893214f3 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1] +// [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.compute.v1small.RegionOperationsClient; import com.google.cloud.compute.v1small.RegionOperationsSettings; @@ -39,4 +39,4 @@ public static void createRegionOperationsSettings1() throws Exception { RegionOperationsClient.create(regionOperationsSettings); } } -// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1] +// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java index b46641796b..706ce7ef78 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2] +// [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2_sync] import com.google.cloud.compute.v1small.RegionOperationsClient; import com.google.cloud.compute.v1small.RegionOperationsSettings; import com.google.cloud.compute.v1small.myEndpoint; @@ -36,4 +36,4 @@ public static void createRegionOperationsSettings2() throws Exception { RegionOperationsClient.create(regionOperationsSettings); } } -// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2] +// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java index b8b71cc14b..4bf699e067 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest] +// [START compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.compute.v1small.GetRegionOperationRequest; import com.google.cloud.compute.v1small.Operation; @@ -44,4 +44,4 @@ public static void getCallableFutureCallGetRegionOperationRequest() throws Excep } } } -// [END compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest] +// [END compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java index e43f34b0be..ff561a2218 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest] +// [START compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest_sync] import com.google.cloud.compute.v1small.GetRegionOperationRequest; import com.google.cloud.compute.v1small.Operation; import com.google.cloud.compute.v1small.RegionOperationsClient; @@ -41,4 +41,4 @@ public static void getGetRegionOperationRequest() throws Exception { } } } -// [END compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest] +// [END compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java index 99c26d6a3e..0b5571c540 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationsclient_get_stringstringstring] +// [START compute_v1small_generated_regionoperationsclient_get_stringstringstring_sync] import com.google.cloud.compute.v1small.Operation; import com.google.cloud.compute.v1small.RegionOperationsClient; @@ -37,4 +37,4 @@ public static void getStringStringString() throws Exception { } } } -// [END compute_v1small_generated_regionoperationsclient_get_stringstringstring] +// [END compute_v1small_generated_regionoperationsclient_get_stringstringstring_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java index 1114c049f1..b4bbda3893 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest] +// [START compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.compute.v1small.Operation; import com.google.cloud.compute.v1small.RegionOperationsClient; @@ -44,4 +44,4 @@ public static void waitCallableFutureCallWaitRegionOperationRequest() throws Exc } } } -// [END compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest] +// [END compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java index 03de391587..023ae6f4e1 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationsclient_wait_stringstringstring] +// [START compute_v1small_generated_regionoperationsclient_wait_stringstringstring_sync] import com.google.cloud.compute.v1small.Operation; import com.google.cloud.compute.v1small.RegionOperationsClient; @@ -37,4 +37,4 @@ public static void waitStringStringString() throws Exception { } } } -// [END compute_v1small_generated_regionoperationsclient_wait_stringstringstring] +// [END compute_v1small_generated_regionoperationsclient_wait_stringstringstring_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java index aaf0fe6de8..57a8924d93 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest] +// [START compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest_sync] import com.google.cloud.compute.v1small.Operation; import com.google.cloud.compute.v1small.RegionOperationsClient; import com.google.cloud.compute.v1small.WaitRegionOperationRequest; @@ -41,4 +41,4 @@ public static void waitWaitRegionOperationRequest() throws Exception { } } } -// [END compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest] +// [END compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java index a6d4c29216..f493244f1d 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.samples; -// [START compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings] +// [START compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings_sync] import com.google.cloud.compute.v1small.RegionOperationsSettings; import java.time.Duration; @@ -43,4 +43,4 @@ public static void getSettingsSetRetrySettingsRegionOperationsSettings() throws RegionOperationsSettings regionOperationsSettings = regionOperationsSettingsBuilder.build(); } } -// [END compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings] +// [END compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java index 4276d48cdc..a67d01c5de 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.stub.samples; -// [START compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings] +// [START compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings_sync] import com.google.cloud.compute.v1small.stub.AddressesStubSettings; import java.time.Duration; @@ -43,4 +43,4 @@ public static void aggregatedListSettingsSetRetrySettingsAddressesStubSettings() AddressesStubSettings addressesSettings = addressesSettingsBuilder.build(); } } -// [END compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings] +// [END compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings_sync] diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java index cc867028ac..3ef6a35fc1 100644 --- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java +++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.compute.v1small.stub.samples; -// [START compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings] +// [START compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings_sync] import com.google.cloud.compute.v1small.stub.RegionOperationsStubSettings; import java.time.Duration; @@ -43,4 +43,4 @@ public static void getSettingsSetRetrySettingsRegionOperationsStubSettings() thr RegionOperationsStubSettings regionOperationsSettings = regionOperationsSettingsBuilder.build(); } } -// [END compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings] +// [END compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java index 279aac61ee..793f58b33a 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1] +// [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.IamCredentialsSettings; @@ -38,4 +38,4 @@ public static void createIamCredentialsSettings1() throws Exception { IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); } } -// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1] +// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java index a4826fd697..b66bee2ac2 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2] +// [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2_sync] import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.IamCredentialsSettings; import com.google.cloud.iam.credentials.v1.myEndpoint; @@ -35,4 +35,4 @@ public static void createIamCredentialsSettings2() throws Exception { IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); } } -// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2] +// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java index d3175fd2f4..d995c3a5be 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest] +// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest; import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse; @@ -50,4 +50,4 @@ public static void generateAccessTokenCallableFutureCallGenerateAccessTokenReque } } } -// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest] +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java index a1114ac8f4..4801ac1829 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest] +// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest_sync] import com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest; import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; @@ -45,4 +45,4 @@ public static void generateAccessTokenGenerateAccessTokenRequest() throws Except } } } -// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest] +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java index 226b2145b8..5d5a780e21 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration] +// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration_sync] import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; @@ -44,4 +44,4 @@ public static void generateAccessTokenServiceAccountNameListStringListStringDura } } } -// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration] +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_serviceaccountnameliststringliststringduration_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java index fdaf352a06..18d0c663b1 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration] +// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration_sync] import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; @@ -43,4 +43,4 @@ public static void generateAccessTokenStringListStringListStringDuration() throw } } } -// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration] +// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_stringliststringliststringduration_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java index 94cefcb4f7..cf862890cb 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest] +// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.iam.credentials.v1.GenerateIdTokenRequest; import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse; @@ -48,4 +48,4 @@ public static void generateIdTokenCallableFutureCallGenerateIdTokenRequest() thr } } } -// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest] +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java index 5def520635..cd0ac25fdb 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest] +// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest_sync] import com.google.cloud.iam.credentials.v1.GenerateIdTokenRequest; import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; @@ -44,4 +44,4 @@ public static void generateIdTokenGenerateIdTokenRequest() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest] +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java index 8ce23709e6..4d4a9051fc 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean] +// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean_sync] import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; @@ -42,4 +42,4 @@ public static void generateIdTokenServiceAccountNameListStringStringBoolean() th } } } -// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean] +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_serviceaccountnameliststringstringboolean_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java index 01be488df4..68342dc23c 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean] +// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean_sync] import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; @@ -42,4 +42,4 @@ public static void generateIdTokenStringListStringStringBoolean() throws Excepti } } } -// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean] +// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_stringliststringstringboolean_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java index b4999407ac..5380515ef0 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest] +// [START credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; @@ -48,4 +48,4 @@ public static void signBlobCallableFutureCallSignBlobRequest() throws Exception } } } -// [END credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest] +// [END credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java index b9fc259c08..f14026d381 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring] +// [START credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring_sync] import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; import com.google.cloud.iam.credentials.v1.SignBlobResponse; @@ -41,4 +41,4 @@ public static void signBlobServiceAccountNameListStringByteString() throws Excep } } } -// [END credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring] +// [END credentials_v1_generated_iamcredentialsclient_signblob_serviceaccountnameliststringbytestring_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java index 980968fa98..c2ae2373a4 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest] +// [START credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest_sync] import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; import com.google.cloud.iam.credentials.v1.SignBlobRequest; @@ -44,4 +44,4 @@ public static void signBlobSignBlobRequest() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest] +// [END credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java index 7fc2ff2729..2c04bd4332 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring] +// [START credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring_sync] import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; import com.google.cloud.iam.credentials.v1.SignBlobResponse; @@ -41,4 +41,4 @@ public static void signBlobStringListStringByteString() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring] +// [END credentials_v1_generated_iamcredentialsclient_signblob_stringliststringbytestring_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java index bb9137dc0a..0ecbaf1780 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest] +// [START credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; @@ -47,4 +47,4 @@ public static void signJwtCallableFutureCallSignJwtRequest() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest] +// [END credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java index 4ad24d93b5..b03e820ea1 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring] +// [START credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring_sync] import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; import com.google.cloud.iam.credentials.v1.SignJwtResponse; @@ -40,4 +40,4 @@ public static void signJwtServiceAccountNameListStringString() throws Exception } } } -// [END credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring] +// [END credentials_v1_generated_iamcredentialsclient_signjwt_serviceaccountnameliststringstring_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java index 94912bd6b4..05492a152f 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest] +// [START credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest_sync] import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; import com.google.cloud.iam.credentials.v1.SignJwtRequest; @@ -43,4 +43,4 @@ public static void signJwtSignJwtRequest() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest] +// [END credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java index ebec0650d2..464fdb7684 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring] +// [START credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring_sync] import com.google.cloud.iam.credentials.v1.IamCredentialsClient; import com.google.cloud.iam.credentials.v1.ServiceAccountName; import com.google.cloud.iam.credentials.v1.SignJwtResponse; @@ -40,4 +40,4 @@ public static void signJwtStringListStringString() throws Exception { } } } -// [END credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring] +// [END credentials_v1_generated_iamcredentialsclient_signjwt_stringliststringstring_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java index a716435457..1e02bc2ca4 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.samples; -// [START credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings] +// [START credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings_sync] import com.google.cloud.iam.credentials.v1.IamCredentialsSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsSett IamCredentialsSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build(); } } -// [END credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings] +// [END credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings_sync] diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java index e436fa3f31..8c4591d382 100644 --- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java +++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.iam.credentials.v1.stub.samples; -// [START credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings] +// [START credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings_sync] import com.google.cloud.iam.credentials.v1.stub.IamCredentialsStubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsStub IamCredentialsStubSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build(); } } -// [END credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings] +// [END credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java index 19e13b595c..c242623c0b 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicyclient_create_iampolicysettings1] +// [START iam_v1_generated_iampolicyclient_create_iampolicysettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.iam.v1.IAMPolicyClient; import com.google.iam.v1.IAMPolicySettings; @@ -38,4 +38,4 @@ public static void createIAMPolicySettings1() throws Exception { IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings); } } -// [END iam_v1_generated_iampolicyclient_create_iampolicysettings1] +// [END iam_v1_generated_iampolicyclient_create_iampolicysettings1_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java index c0aa9f1c20..37d4fecc72 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicyclient_create_iampolicysettings2] +// [START iam_v1_generated_iampolicyclient_create_iampolicysettings2_sync] import com.google.iam.v1.IAMPolicyClient; import com.google.iam.v1.IAMPolicySettings; import com.google.iam.v1.myEndpoint; @@ -35,4 +35,4 @@ public static void createIAMPolicySettings2() throws Exception { IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings); } } -// [END iam_v1_generated_iampolicyclient_create_iampolicysettings2] +// [END iam_v1_generated_iampolicyclient_create_iampolicysettings2_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 7e21845bac..d73686f07b 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [START iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -44,4 +44,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [END iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 6bc1bab93a..ab462d4d9c 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest] +// [START iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest_sync] import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.IAMPolicyClient; @@ -41,4 +41,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest] +// [END iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index df518a1cb4..706b354352 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [START iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.iam.v1.IAMPolicyClient; import com.google.iam.v1.Policy; @@ -43,4 +43,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [END iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index 36fa34ef8d..5c84b5cf14 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest] +// [START iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest_sync] import com.google.iam.v1.IAMPolicyClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -40,4 +40,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest] +// [END iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index 8689bbfaab..42a63935a9 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [START iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.iam.v1.IAMPolicyClient; import com.google.iam.v1.TestIamPermissionsRequest; @@ -46,4 +46,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [END iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index d851f32861..aed1c852d2 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest] +// [START iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest_sync] import com.google.iam.v1.IAMPolicyClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -41,4 +41,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest] +// [END iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java index aba42f02b5..0554ded03e 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.samples; -// [START iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings] +// [START iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings_sync] import com.google.iam.v1.IAMPolicySettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void setIamPolicySettingsSetRetrySettingsIAMPolicySettings() throw IAMPolicySettings iAMPolicySettings = iAMPolicySettingsBuilder.build(); } } -// [END iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings] +// [END iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings_sync] diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java index 328e845616..674a067cd8 100644 --- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java +++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.iam.v1.stub.samples; -// [START iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings] +// [START iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings_sync] import com.google.iam.v1.stub.IAMPolicyStubSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void setIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings() t IAMPolicyStubSettings iAMPolicySettings = iAMPolicySettingsBuilder.build(); } } -// [END iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings] +// [END iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java index 3d00fd4d4c..82607836d7 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest] +// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest_sync] import com.google.cloud.kms.v1.AsymmetricDecryptRequest; import com.google.cloud.kms.v1.AsymmetricDecryptResponse; import com.google.cloud.kms.v1.CryptoKeyVersionName; @@ -52,4 +52,4 @@ public static void asymmetricDecryptAsymmetricDecryptRequest() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest] +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java index d804b81625..1ae24d6cc1 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest] +// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.AsymmetricDecryptRequest; import com.google.cloud.kms.v1.AsymmetricDecryptResponse; @@ -57,4 +57,4 @@ public static void asymmetricDecryptCallableFutureCallAsymmetricDecryptRequest() } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest] +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java index 2baa8d76f4..644be89c61 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring] +// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring_sync] import com.google.cloud.kms.v1.AsymmetricDecryptResponse; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -42,4 +42,4 @@ public static void asymmetricDecryptCryptoKeyVersionNameByteString() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring] +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_cryptokeyversionnamebytestring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java index 6ba421d91c..87621a205c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring] +// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring_sync] import com.google.cloud.kms.v1.AsymmetricDecryptResponse; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -43,4 +43,4 @@ public static void asymmetricDecryptStringByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring] +// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_stringbytestring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java index 9a29a299dd..0e169e946f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest] +// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest_sync] import com.google.cloud.kms.v1.AsymmetricSignRequest; import com.google.cloud.kms.v1.AsymmetricSignResponse; import com.google.cloud.kms.v1.CryptoKeyVersionName; @@ -52,4 +52,4 @@ public static void asymmetricSignAsymmetricSignRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest] +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java index 30a05a2730..007f9ab619 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest] +// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.AsymmetricSignRequest; import com.google.cloud.kms.v1.AsymmetricSignResponse; @@ -56,4 +56,4 @@ public static void asymmetricSignCallableFutureCallAsymmetricSignRequest() throw } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest] +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java index dedc3b5696..5038121288 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest] +// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest_sync] import com.google.cloud.kms.v1.AsymmetricSignResponse; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.Digest; @@ -41,4 +41,4 @@ public static void asymmetricSignCryptoKeyVersionNameDigest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest] +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_cryptokeyversionnamedigest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java index 76bcf2600a..724416c830 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest] +// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest_sync] import com.google.cloud.kms.v1.AsymmetricSignResponse; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.Digest; @@ -42,4 +42,4 @@ public static void asymmetricSignStringDigest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest] +// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_stringdigest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java index 4a14a19450..a690bc4529 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1] +// [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyManagementServiceSettings; @@ -39,4 +39,4 @@ public static void createKeyManagementServiceSettings1() throws Exception { KeyManagementServiceClient.create(keyManagementServiceSettings); } } -// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1] +// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java index 0360eef270..1866d5e17a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2] +// [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyManagementServiceSettings; import com.google.cloud.kms.v1.myEndpoint; @@ -36,4 +36,4 @@ public static void createKeyManagementServiceSettings2() throws Exception { KeyManagementServiceClient.create(keyManagementServiceSettings); } } -// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2] +// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java index 2b96b8574f..4ddb788471 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest] +// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CreateCryptoKeyRequest; import com.google.cloud.kms.v1.CryptoKey; @@ -48,4 +48,4 @@ public static void createCryptoKeyCallableFutureCallCreateCryptoKeyRequest() thr } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest] +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java index 10a7d021d3..983f1bb2f4 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest] +// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest_sync] import com.google.cloud.kms.v1.CreateCryptoKeyRequest; import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -44,4 +44,4 @@ public static void createCryptoKeyCreateCryptoKeyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest] +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java index e9067d766b..b7c273f0c4 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey] +// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -40,4 +40,4 @@ public static void createCryptoKeyKeyRingNameStringCryptoKey() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey] +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_keyringnamestringcryptokey_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java index 5bcc48ec10..3558f6db1c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey] +// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -40,4 +40,4 @@ public static void createCryptoKeyStringStringCryptoKey() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey] +// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_stringstringcryptokey_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java index eed882aba5..153706b49f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest; import com.google.cloud.kms.v1.CryptoKeyName; @@ -49,4 +49,4 @@ public static void createCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersio } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java index 60c9fcce52..3bcae4ad0e 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest_sync] import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; @@ -44,4 +44,4 @@ public static void createCryptoKeyVersionCreateCryptoKeyVersionRequest() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java index 2bddd5f140..177ba5a4fb 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion] +// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void createCryptoKeyVersionCryptoKeyNameCryptoKeyVersion() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion] +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_cryptokeynamecryptokeyversion_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java index 50e4bbee34..f514bef3ad 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion] +// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void createCryptoKeyVersionStringCryptoKeyVersion() throws Excepti } } } -// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion] +// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_stringcryptokeyversion_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java index bc0e8fddc7..74dc96cc68 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest] +// [START kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CreateImportJobRequest; import com.google.cloud.kms.v1.ImportJob; @@ -47,4 +47,4 @@ public static void createImportJobCallableFutureCallCreateImportJobRequest() thr } } } -// [END kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest] +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java index ba996b9247..fa113e2249 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest] +// [START kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest_sync] import com.google.cloud.kms.v1.CreateImportJobRequest; import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -43,4 +43,4 @@ public static void createImportJobCreateImportJobRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest] +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java index 52ae4a6a1d..6503de2e49 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob] +// [START kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob_sync] import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -40,4 +40,4 @@ public static void createImportJobKeyRingNameStringImportJob() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob] +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_keyringnamestringimportjob_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java index d33570ed5a..23190c97fb 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob] +// [START kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob_sync] import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -40,4 +40,4 @@ public static void createImportJobStringStringImportJob() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob] +// [END kms_v1_generated_keymanagementserviceclient_createimportjob_stringstringimportjob_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java index 5e736db1f1..fe73c50d45 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest] +// [START kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CreateKeyRingRequest; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -47,4 +47,4 @@ public static void createKeyRingCallableFutureCallCreateKeyRingRequest() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest] +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java index c4b249510d..1f3e666f31 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest] +// [START kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest_sync] import com.google.cloud.kms.v1.CreateKeyRingRequest; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; @@ -43,4 +43,4 @@ public static void createKeyRingCreateKeyRingRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest] +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java index 4edfc0412f..640b57309e 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring] +// [START kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.LocationName; @@ -39,4 +39,4 @@ public static void createKeyRingLocationNameStringKeyRing() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring] +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_locationnamestringkeyring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java index 91db9a14a4..fe62c3ee3c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring] +// [START kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.LocationName; @@ -39,4 +39,4 @@ public static void createKeyRingStringStringKeyRing() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring] +// [END kms_v1_generated_keymanagementserviceclient_createkeyring_stringstringkeyring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java index a627445e30..5e511e4551 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest] +// [START kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.DecryptRequest; @@ -53,4 +53,4 @@ public static void decryptCallableFutureCallDecryptRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest] +// [END kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java index 2a0acd4a0e..f0a25cfb6e 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring] +// [START kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.DecryptResponse; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void decryptCryptoKeyNameByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring] +// [END kms_v1_generated_keymanagementserviceclient_decrypt_cryptokeynamebytestring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java index 2bff7d1b89..164077eb26 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest] +// [START kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.DecryptRequest; import com.google.cloud.kms.v1.DecryptResponse; @@ -49,4 +49,4 @@ public static void decryptDecryptRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest] +// [END kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java index 9df8530bd5..541dd3f7d4 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring] +// [START kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.DecryptResponse; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void decryptStringByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring] +// [END kms_v1_generated_keymanagementserviceclient_decrypt_stringbytestring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java index eccd451bf7..1165a62ed8 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; @@ -53,4 +53,4 @@ public static void destroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVers } } } -// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java index 3e5123ce43..8f5b2aee0a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname] +// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -39,4 +39,4 @@ public static void destroyCryptoKeyVersionCryptoKeyVersionName() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname] +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_cryptokeyversionname_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java index d8bd751715..29085f4971 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest; @@ -48,4 +48,4 @@ public static void destroyCryptoKeyVersionDestroyCryptoKeyVersionRequest() throw } } } -// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java index 03f71ce4d5..139b041876 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string] +// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void destroyCryptoKeyVersionString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string] +// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_string_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java index 665b9fc4e5..80943e8d95 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest] +// [START kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.EncryptRequest; @@ -53,4 +53,4 @@ public static void encryptCallableFutureCallEncryptRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest] +// [END kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java index 8540105afd..ff51dbd6ba 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest] +// [START kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.EncryptRequest; import com.google.cloud.kms.v1.EncryptResponse; @@ -49,4 +49,4 @@ public static void encryptEncryptRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest] +// [END kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java index 6ded5f3e84..0e3665ae30 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring] +// [START kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring_sync] import com.google.api.resourcenames.ResourceName; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.EncryptResponse; @@ -40,4 +40,4 @@ public static void encryptResourceNameByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring] +// [END kms_v1_generated_keymanagementserviceclient_encrypt_resourcenamebytestring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java index 8be50bdf47..a88d09708a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring] +// [START kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.EncryptResponse; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void encryptStringByteString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring] +// [END kms_v1_generated_keymanagementserviceclient_encrypt_stringbytestring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java index 9e8bf8fe7f..c0d815d43c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest] +// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.CryptoKeyName; @@ -47,4 +47,4 @@ public static void getCryptoKeyCallableFutureCallGetCryptoKeyRequest() throws Ex } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest] +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java index 13c73c06af..f48010ff0b 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname] +// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -38,4 +38,4 @@ public static void getCryptoKeyCryptoKeyName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname] +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_cryptokeyname_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java index 11fb25f74e..0e4816ab01 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest] +// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.GetCryptoKeyRequest; @@ -43,4 +43,4 @@ public static void getCryptoKeyGetCryptoKeyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest] +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java index d7cd91b7fd..2d667dfd0c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_string] +// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_string_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -38,4 +38,4 @@ public static void getCryptoKeyString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_string] +// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_string_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java index 7e37a66333..2eaf3f5588 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; @@ -53,4 +53,4 @@ public static void getCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionReque } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java index 1acea326a3..adf07112be 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname] +// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -39,4 +39,4 @@ public static void getCryptoKeyVersionCryptoKeyVersionName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname] +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_cryptokeyversionname_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java index f22cff8fb6..288025ee6f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest; @@ -48,4 +48,4 @@ public static void getCryptoKeyVersionGetCryptoKeyVersionRequest() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java index 53e7aa21fb..c9dfd9e5b9 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string] +// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void getCryptoKeyVersionString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string] +// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_string_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 4d40d7410c..f47c5b467b 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -49,4 +49,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 55a46996c7..a068e0b36a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest] +// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.iam.v1.GetIamPolicyRequest; @@ -45,4 +45,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest] +// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java index 407ce71281..2bd36de783 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest] +// [START kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.GetImportJobRequest; import com.google.cloud.kms.v1.ImportJob; @@ -47,4 +47,4 @@ public static void getImportJobCallableFutureCallGetImportJobRequest() throws Ex } } } -// [END kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest] +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java index 86cbe0e2ae..1984021623 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest] +// [START kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest_sync] import com.google.cloud.kms.v1.GetImportJobRequest; import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.ImportJobName; @@ -43,4 +43,4 @@ public static void getImportJobGetImportJobRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest] +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java index 0b904b324c..753b35a741 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname] +// [START kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname_sync] import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.ImportJobName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -38,4 +38,4 @@ public static void getImportJobImportJobName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname] +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_importjobname_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java index bb5ceb2848..bfca3d649f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getimportjob_string] +// [START kms_v1_generated_keymanagementserviceclient_getimportjob_string_sync] import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.ImportJobName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -38,4 +38,4 @@ public static void getImportJobString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getimportjob_string] +// [END kms_v1_generated_keymanagementserviceclient_getimportjob_string_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java index 88983a64ef..af378ae4c0 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest] +// [START kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.GetKeyRingRequest; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -45,4 +45,4 @@ public static void getKeyRingCallableFutureCallGetKeyRingRequest() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest] +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java index ebdcbc4dce..3eb1bbd0c2 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest] +// [START kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest_sync] import com.google.cloud.kms.v1.GetKeyRingRequest; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; @@ -41,4 +41,4 @@ public static void getKeyRingGetKeyRingRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest] +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java index 5c5c19b8b8..fefa1806d6 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname] +// [START kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.KeyRingName; @@ -37,4 +37,4 @@ public static void getKeyRingKeyRingName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname] +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_keyringname_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java index 86fbe24841..44f32f9383 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getkeyring_string] +// [START kms_v1_generated_keymanagementserviceclient_getkeyring_string_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.KeyRingName; @@ -37,4 +37,4 @@ public static void getKeyRingString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getkeyring_string] +// [END kms_v1_generated_keymanagementserviceclient_getkeyring_string_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java index 02864316cf..1825d4f351 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest] +// [START kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.location.GetLocationRequest; @@ -41,4 +41,4 @@ public static void getLocationCallableFutureCallGetLocationRequest() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest] +// [END kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java index c97821f604..a26b84b64c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest] +// [START kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.Location; @@ -37,4 +37,4 @@ public static void getLocationGetLocationRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest] +// [END kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java index 073248d14d..0d91b9ae91 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest] +// [START kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.GetPublicKeyRequest; @@ -52,4 +52,4 @@ public static void getPublicKeyCallableFutureCallGetPublicKeyRequest() throws Ex } } } -// [END kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest] +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java index 2f753bec39..795e11cff0 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname] +// [START kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname_sync] import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.PublicKey; @@ -39,4 +39,4 @@ public static void getPublicKeyCryptoKeyVersionName() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname] +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_cryptokeyversionname_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java index e7e1172cf0..3784d375df 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest] +// [START kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest_sync] import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.GetPublicKeyRequest; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -48,4 +48,4 @@ public static void getPublicKeyGetPublicKeyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest] +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java index 1e3284b063..c9cdb7fe5e 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_getpublickey_string] +// [START kms_v1_generated_keymanagementserviceclient_getpublickey_string_sync] import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.PublicKey; @@ -40,4 +40,4 @@ public static void getPublicKeyString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_getpublickey_string] +// [END kms_v1_generated_keymanagementserviceclient_getpublickey_string_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java index 1f2442663f..7a2d09f730 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; @@ -49,4 +49,4 @@ public static void importCryptoKeyVersionCallableFutureCallImportCryptoKeyVersio } } } -// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java index a24f22027e..9b370b4a5d 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest; @@ -44,4 +44,4 @@ public static void importCryptoKeyVersionImportCryptoKeyVersionRequest() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java index a1572e2504..523ff2d5a1 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -59,4 +59,4 @@ public static void listCryptoKeysCallableCallListCryptoKeysRequest() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java index a05fefdc32..8a741c5a8a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -39,4 +39,4 @@ public static void listCryptoKeysKeyRingNameIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java index aadbde1352..8b913f840a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -47,4 +47,4 @@ public static void listCryptoKeysListCryptoKeysRequestIterateAll() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java index 817fdba90a..d2af8dd670 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -51,4 +51,4 @@ public static void listCryptoKeysPagedCallableFutureCallListCryptoKeysRequest() } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java index 2717b79970..cf450ec112 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -39,4 +39,4 @@ public static void listCryptoKeysStringIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java index f879a29f54..dfb6b04b8a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -62,4 +62,4 @@ public static void listCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java index cdaf3c9beb..74faee57dd 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -41,4 +41,4 @@ public static void listCryptoKeyVersionsCryptoKeyNameIterateAll() throws Excepti } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java index a3129b9ebf..b4585ac82e 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -51,4 +51,4 @@ public static void listCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll() } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java index 43ec06c526..a50d5f7806 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; @@ -54,4 +54,4 @@ public static void listCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVers } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java index dc1f195bcf..29ed06384c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -41,4 +41,4 @@ public static void listCryptoKeyVersionsStringIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java index abb2ea9ea8..8d26670da7 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest] +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest_sync] import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -59,4 +59,4 @@ public static void listImportJobsCallableCallListImportJobsRequest() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest] +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java index b8eaec6d42..5096fab9ec 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall_sync] import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -39,4 +39,4 @@ public static void listImportJobsKeyRingNameIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java index c4e46369b3..5cd7a79f25 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall_sync] import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -47,4 +47,4 @@ public static void listImportJobsListImportJobsRequestIterateAll() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java index 929d037a98..901e28fc5c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest] +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -51,4 +51,4 @@ public static void listImportJobsPagedCallableFutureCallListImportJobsRequest() } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest] +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java index b75d4665b3..8740c48460 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall_sync] import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRingName; @@ -39,4 +39,4 @@ public static void listImportJobsStringIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java index 29ddc12585..269f5138d3 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest] +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.ListKeyRingsRequest; @@ -59,4 +59,4 @@ public static void listKeyRingsCallableCallListKeyRingsRequest() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest] +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java index b47038ad40..afbab5ed77 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.ListKeyRingsRequest; @@ -47,4 +47,4 @@ public static void listKeyRingsListKeyRingsRequestIterateAll() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java index fedec9a1c6..223adfd56f 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.LocationName; @@ -39,4 +39,4 @@ public static void listKeyRingsLocationNameIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java index d51957ac64..33f7b6474a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest] +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; @@ -51,4 +51,4 @@ public static void listKeyRingsPagedCallableFutureCallListKeyRingsRequest() thro } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest] +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java index c18effc21f..4c11352cc7 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.LocationName; @@ -39,4 +39,4 @@ public static void listKeyRingsStringIterateAll() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java index b6916b64ed..83c2e8b6be 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest] +// [START kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -57,4 +57,4 @@ public static void listLocationsCallableCallListLocationsRequest() throws Except } } } -// [END kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest] +// [END kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java index 511ee07878..05f3cb828a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall] +// [START kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall_sync] import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.Location; @@ -45,4 +45,4 @@ public static void listLocationsListLocationsRequestIterateAll() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall] +// [END kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java index abeb6a55bd..09d894339c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest] +// [START kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.location.ListLocationsRequest; @@ -49,4 +49,4 @@ public static void listLocationsPagedCallableFutureCallListLocationsRequest() th } } } -// [END kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest] +// [END kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java index cba48e370d..1e90ea2736 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; @@ -53,4 +53,4 @@ public static void restoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVers } } } -// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java index 8418b299fd..087579d14a 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname] +// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -39,4 +39,4 @@ public static void restoreCryptoKeyVersionCryptoKeyVersionName() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname] +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_cryptokeyversionname_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java index 5181164b5a..4e5911aac1 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -48,4 +48,4 @@ public static void restoreCryptoKeyVersionRestoreCryptoKeyVersionRequest() throw } } } -// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java index 7fdaa16d8d..008678b3eb 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string] +// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.CryptoKeyVersionName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void restoreCryptoKeyVersionString() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string] +// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_string_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index d744399b0b..c64f5f3175 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -50,4 +50,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index c7d7af5a47..78666a25ab 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest] +// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest_sync] import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; @@ -45,4 +45,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest] +// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java index 21a064eb21..88f0f9e5c1 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -46,4 +46,4 @@ public static void updateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest() thr } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java index 10d3572884..3b6ad2327b 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.protobuf.FieldMask; @@ -38,4 +38,4 @@ public static void updateCryptoKeyCryptoKeyFieldMask() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_cryptokeyfieldmask_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java index 369f58dc59..881e8341c5 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; @@ -42,4 +42,4 @@ public static void updateCryptoKeyUpdateCryptoKeyRequest() throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java index c091e37fc1..708b12ab46 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.CryptoKeyName; @@ -50,4 +50,4 @@ public static void main(String[] args) throws Exception { } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java index f621261bbb..a4c49860b0 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void updateCryptoKeyPrimaryVersionCryptoKeyNameString() throws Exc } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_cryptokeynamestring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java index ff865b7eef..c50a0dfba0 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -40,4 +40,4 @@ public static void updateCryptoKeyPrimaryVersionStringString() throws Exception } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_stringstring_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java index eb306f2efb..eda8db531c 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest_sync] import com.google.cloud.kms.v1.CryptoKey; import com.google.cloud.kms.v1.CryptoKeyName; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -45,4 +45,4 @@ public static void updateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionReq } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java index 71f030fd17..230df4238b 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; @@ -47,4 +47,4 @@ public static void updateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersio } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java index 47aca6283a..79a1603d35 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.protobuf.FieldMask; @@ -39,4 +39,4 @@ public static void updateCryptoKeyVersionCryptoKeyVersionFieldMask() throws Exce } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_cryptokeyversionfieldmask_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java index 6d3d01d6f4..5336eda9ac 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest] +// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest_sync] import com.google.cloud.kms.v1.CryptoKeyVersion; import com.google.cloud.kms.v1.KeyManagementServiceClient; import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest; @@ -42,4 +42,4 @@ public static void updateCryptoKeyVersionUpdateCryptoKeyVersionRequest() throws } } } -// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest] +// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java index 025651a0f3..c1466b8c03 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.samples; -// [START kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings] +// [START kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings_sync] import com.google.cloud.kms.v1.KeyManagementServiceSettings; import java.time.Duration; @@ -45,4 +45,4 @@ public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceSetting keyManagementServiceSettingsBuilder.build(); } } -// [END kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings] +// [END kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings_sync] diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java index 959d248f15..e58ab1cf99 100644 --- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java +++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.kms.v1.stub.samples; -// [START kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings] +// [START kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings_sync] import com.google.cloud.kms.v1.stub.KeyManagementServiceStubSettings; import java.time.Duration; @@ -45,4 +45,4 @@ public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSet keyManagementServiceSettingsBuilder.build(); } } -// [END kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings] +// [END kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java index e477d0aa9c..a49ca8a444 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_create_libraryservicesettings1] +// [START library_v1_generated_libraryserviceclient_create_libraryservicesettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.cloud.example.library.v1.LibraryServiceSettings; @@ -38,4 +38,4 @@ public static void createLibraryServiceSettings1() throws Exception { LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings); } } -// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings1] +// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings1_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java index 3fc287590e..6b106856ef 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_create_libraryservicesettings2] +// [START library_v1_generated_libraryserviceclient_create_libraryservicesettings2_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.cloud.example.library.v1.LibraryServiceSettings; import com.google.cloud.example.library.v1.myEndpoint; @@ -35,4 +35,4 @@ public static void createLibraryServiceSettings2() throws Exception { LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings); } } -// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings2] +// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings2_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java index 9f0843b482..dbff321914 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest] +// [START library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; @@ -44,4 +44,4 @@ public static void createBookCallableFutureCallCreateBookRequest() throws Except } } } -// [END library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest] +// [END library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java index 439d111720..9ac3d5100b 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_createbook_createbookrequest] +// [START library_v1_generated_libraryserviceclient_createbook_createbookrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.CreateBookRequest; @@ -41,4 +41,4 @@ public static void createBookCreateBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createbook_createbookrequest] +// [END library_v1_generated_libraryserviceclient_createbook_createbookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java index f6385ee586..34b2dcd39d 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_createbook_shelfnamebook] +// [START library_v1_generated_libraryserviceclient_createbook_shelfnamebook_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.ShelfName; @@ -37,4 +37,4 @@ public static void createBookShelfNameBook() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createbook_shelfnamebook] +// [END library_v1_generated_libraryserviceclient_createbook_shelfnamebook_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java index bd3a7759fb..726b98ccf7 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_createbook_stringbook] +// [START library_v1_generated_libraryserviceclient_createbook_stringbook_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.ShelfName; @@ -37,4 +37,4 @@ public static void createBookStringBook() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createbook_stringbook] +// [END library_v1_generated_libraryserviceclient_createbook_stringbook_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java index 2eb1a61938..11a7a9dcbb 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest] +// [START library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.CreateShelfRequest; @@ -40,4 +40,4 @@ public static void createShelfCallableFutureCallCreateShelfRequest() throws Exce } } } -// [END library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest] +// [END library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java index 0181a16db5..f0dcfc5fdb 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_createshelf_createshelfrequest] +// [START library_v1_generated_libraryserviceclient_createshelf_createshelfrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.CreateShelfRequest; import com.google.example.library.v1.Shelf; @@ -37,4 +37,4 @@ public static void createShelfCreateShelfRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createshelf_createshelfrequest] +// [END library_v1_generated_libraryserviceclient_createshelf_createshelfrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java index 67ebaeab98..e8816af5f9 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_createshelf_shelf] +// [START library_v1_generated_libraryserviceclient_createshelf_shelf_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Shelf; @@ -35,4 +35,4 @@ public static void createShelfShelf() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_createshelf_shelf] +// [END library_v1_generated_libraryserviceclient_createshelf_shelf_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java index 954496125c..c21df763bd 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_deletebook_bookname] +// [START library_v1_generated_libraryserviceclient_deletebook_bookname_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.BookName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteBookBookName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deletebook_bookname] +// [END library_v1_generated_libraryserviceclient_deletebook_bookname_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java index e740d6a42b..b7a1587b7e 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest] +// [START library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.BookName; @@ -43,4 +43,4 @@ public static void deleteBookCallableFutureCallDeleteBookRequest() throws Except } } } -// [END library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest] +// [END library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java index 3fadac6775..32b9c923a8 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_deletebook_deletebookrequest] +// [START library_v1_generated_libraryserviceclient_deletebook_deletebookrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.BookName; import com.google.example.library.v1.DeleteBookRequest; @@ -40,4 +40,4 @@ public static void deleteBookDeleteBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deletebook_deletebookrequest] +// [END library_v1_generated_libraryserviceclient_deletebook_deletebookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java index c3417c2a17..54528721e9 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_deletebook_string] +// [START library_v1_generated_libraryserviceclient_deletebook_string_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.BookName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteBookString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deletebook_string] +// [END library_v1_generated_libraryserviceclient_deletebook_string_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java index cb169ed800..de55fc22cf 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest] +// [START library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.DeleteShelfRequest; @@ -41,4 +41,4 @@ public static void deleteShelfCallableFutureCallDeleteShelfRequest() throws Exce } } } -// [END library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest] +// [END library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java index 5c8f0e26b6..0e87b54b58 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest] +// [START library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.DeleteShelfRequest; import com.google.example.library.v1.ShelfName; @@ -38,4 +38,4 @@ public static void deleteShelfDeleteShelfRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest] +// [END library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java index 76db14f084..2e2b06001b 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_deleteshelf_shelfname] +// [START library_v1_generated_libraryserviceclient_deleteshelf_shelfname_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.ShelfName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteShelfShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deleteshelf_shelfname] +// [END library_v1_generated_libraryserviceclient_deleteshelf_shelfname_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java index b33ee9763d..c6eaff1711 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_deleteshelf_string] +// [START library_v1_generated_libraryserviceclient_deleteshelf_string_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.ShelfName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteShelfString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_deleteshelf_string] +// [END library_v1_generated_libraryserviceclient_deleteshelf_string_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java index 358f1f6892..4712d2e739 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_getbook_bookname] +// [START library_v1_generated_libraryserviceclient_getbook_bookname_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.BookName; @@ -36,4 +36,4 @@ public static void getBookBookName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getbook_bookname] +// [END library_v1_generated_libraryserviceclient_getbook_bookname_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java index 950183bcd4..997dfc3f08 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest] +// [START library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; @@ -41,4 +41,4 @@ public static void getBookCallableFutureCallGetBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest] +// [END library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java index 755352dd1c..ee59555cd8 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_getbook_getbookrequest] +// [START library_v1_generated_libraryserviceclient_getbook_getbookrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.BookName; @@ -38,4 +38,4 @@ public static void getBookGetBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getbook_getbookrequest] +// [END library_v1_generated_libraryserviceclient_getbook_getbookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java index 66a0b6f7f5..98ff532a1b 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_getbook_string] +// [START library_v1_generated_libraryserviceclient_getbook_string_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.BookName; @@ -36,4 +36,4 @@ public static void getBookString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getbook_string] +// [END library_v1_generated_libraryserviceclient_getbook_string_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java index b388ac9394..20c140f674 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest] +// [START library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.GetShelfRequest; @@ -41,4 +41,4 @@ public static void getShelfCallableFutureCallGetShelfRequest() throws Exception } } } -// [END library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest] +// [END library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java index 850b1abd9f..8620040e21 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_getshelf_getshelfrequest] +// [START library_v1_generated_libraryserviceclient_getshelf_getshelfrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.GetShelfRequest; import com.google.example.library.v1.Shelf; @@ -38,4 +38,4 @@ public static void getShelfGetShelfRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getshelf_getshelfrequest] +// [END library_v1_generated_libraryserviceclient_getshelf_getshelfrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java index c8e6581fb9..09ec3c10b5 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_getshelf_shelfname] +// [START library_v1_generated_libraryserviceclient_getshelf_shelfname_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Shelf; import com.google.example.library.v1.ShelfName; @@ -36,4 +36,4 @@ public static void getShelfShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getshelf_shelfname] +// [END library_v1_generated_libraryserviceclient_getshelf_shelfname_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java index 6b9753120f..87b86ee5ad 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_getshelf_string] +// [START library_v1_generated_libraryserviceclient_getshelf_string_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Shelf; import com.google.example.library.v1.ShelfName; @@ -36,4 +36,4 @@ public static void getShelfString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_getshelf_string] +// [END library_v1_generated_libraryserviceclient_getshelf_string_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java index 4c2736b997..6808c5044e 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest] +// [START library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.common.base.Strings; import com.google.example.library.v1.Book; @@ -55,4 +55,4 @@ public static void listBooksCallableCallListBooksRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest] +// [END library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java index b316b08690..cc2880fc7c 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall] +// [START library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.ListBooksRequest; @@ -44,4 +44,4 @@ public static void listBooksListBooksRequestIterateAll() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall] +// [END library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java index 1d7cbca64f..e0dce6d501 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest] +// [START library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; @@ -47,4 +47,4 @@ public static void listBooksPagedCallableFutureCallListBooksRequest() throws Exc } } } -// [END library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest] +// [END library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java index 58fcb2f12e..fda2ef5d63 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall] +// [START library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.ShelfName; @@ -38,4 +38,4 @@ public static void listBooksShelfNameIterateAll() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall] +// [END library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java index 8c14521043..5217b54643 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_listbooks_stringiterateall] +// [START library_v1_generated_libraryserviceclient_listbooks_stringiterateall_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.ShelfName; @@ -38,4 +38,4 @@ public static void listBooksStringIterateAll() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listbooks_stringiterateall] +// [END library_v1_generated_libraryserviceclient_listbooks_stringiterateall_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java index c63c3d1f7c..936e1292be 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest] +// [START library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.common.base.Strings; import com.google.example.library.v1.ListShelvesRequest; @@ -53,4 +53,4 @@ public static void listShelvesCallableCallListShelvesRequest() throws Exception } } } -// [END library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest] +// [END library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java index 630935ea6d..ad8d52b197 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall] +// [START library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.ListShelvesRequest; import com.google.example.library.v1.Shelf; @@ -42,4 +42,4 @@ public static void listShelvesListShelvesRequestIterateAll() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall] +// [END library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java index b193fb3f1e..8caa98ab67 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest] +// [START library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.ListShelvesRequest; @@ -45,4 +45,4 @@ public static void listShelvesPagedCallableFutureCallListShelvesRequest() throws } } } -// [END library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest] +// [END library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java index 40e9de36b9..a9b62981e2 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest] +// [START library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.MergeShelvesRequest; @@ -44,4 +44,4 @@ public static void mergeShelvesCallableFutureCallMergeShelvesRequest() throws Ex } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest] +// [END library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java index 3e18871e17..3c8e9953f5 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest] +// [START library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.MergeShelvesRequest; import com.google.example.library.v1.Shelf; @@ -41,4 +41,4 @@ public static void mergeShelvesMergeShelvesRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest] +// [END library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java index e8888e4653..765bbd0585 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname] +// [START library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Shelf; import com.google.example.library.v1.ShelfName; @@ -37,4 +37,4 @@ public static void mergeShelvesShelfNameShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname] +// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnameshelfname_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java index 79253d8c1a..bddfdb5640 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring] +// [START library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Shelf; import com.google.example.library.v1.ShelfName; @@ -37,4 +37,4 @@ public static void mergeShelvesShelfNameString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring] +// [END library_v1_generated_libraryserviceclient_mergeshelves_shelfnamestring_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java index eeb3f8e33f..514902ad1e 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname] +// [START library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Shelf; import com.google.example.library.v1.ShelfName; @@ -37,4 +37,4 @@ public static void mergeShelvesStringShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname] +// [END library_v1_generated_libraryserviceclient_mergeshelves_stringshelfname_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java index 87661349ab..9684e113cb 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_mergeshelves_stringstring] +// [START library_v1_generated_libraryserviceclient_mergeshelves_stringstring_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Shelf; import com.google.example.library.v1.ShelfName; @@ -37,4 +37,4 @@ public static void mergeShelvesStringString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_mergeshelves_stringstring] +// [END library_v1_generated_libraryserviceclient_mergeshelves_stringstring_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java index 0fe1b786e2..fd104a1ee5 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_movebook_booknameshelfname] +// [START library_v1_generated_libraryserviceclient_movebook_booknameshelfname_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.BookName; @@ -38,4 +38,4 @@ public static void moveBookBookNameShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_booknameshelfname] +// [END library_v1_generated_libraryserviceclient_movebook_booknameshelfname_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java index 67bf2c81cc..5410c2f901 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_movebook_booknamestring] +// [START library_v1_generated_libraryserviceclient_movebook_booknamestring_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.BookName; @@ -38,4 +38,4 @@ public static void moveBookBookNameString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_booknamestring] +// [END library_v1_generated_libraryserviceclient_movebook_booknamestring_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java index db6bde96cf..de43ac7565 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest] +// [START library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; @@ -45,4 +45,4 @@ public static void moveBookCallableFutureCallMoveBookRequest() throws Exception } } } -// [END library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest] +// [END library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java index 10af375671..eae71f327e 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_movebook_movebookrequest] +// [START library_v1_generated_libraryserviceclient_movebook_movebookrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.BookName; @@ -42,4 +42,4 @@ public static void moveBookMoveBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_movebookrequest] +// [END library_v1_generated_libraryserviceclient_movebook_movebookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java index 1160e768d4..c8e32abea6 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_movebook_stringshelfname] +// [START library_v1_generated_libraryserviceclient_movebook_stringshelfname_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.BookName; @@ -38,4 +38,4 @@ public static void moveBookStringShelfName() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_stringshelfname] +// [END library_v1_generated_libraryserviceclient_movebook_stringshelfname_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java index 4ea069d544..557201be28 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_movebook_stringstring] +// [START library_v1_generated_libraryserviceclient_movebook_stringstring_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.BookName; @@ -38,4 +38,4 @@ public static void moveBookStringString() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_movebook_stringstring] +// [END library_v1_generated_libraryserviceclient_movebook_stringstring_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java index b180d6ce9c..d8c6cef2a6 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_updatebook_bookfieldmask] +// [START library_v1_generated_libraryserviceclient_updatebook_bookfieldmask_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.protobuf.FieldMask; @@ -37,4 +37,4 @@ public static void updateBookBookFieldMask() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_updatebook_bookfieldmask] +// [END library_v1_generated_libraryserviceclient_updatebook_bookfieldmask_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java index 897ad3b92d..5e15bb0c0f 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest] +// [START library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; @@ -44,4 +44,4 @@ public static void updateBookCallableFutureCallUpdateBookRequest() throws Except } } } -// [END library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest] +// [END library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java index f6247004de..07b3c6c025 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryserviceclient_updatebook_updatebookrequest] +// [START library_v1_generated_libraryserviceclient_updatebook_updatebookrequest_sync] import com.google.cloud.example.library.v1.LibraryServiceClient; import com.google.example.library.v1.Book; import com.google.example.library.v1.UpdateBookRequest; @@ -41,4 +41,4 @@ public static void updateBookUpdateBookRequest() throws Exception { } } } -// [END library_v1_generated_libraryserviceclient_updatebook_updatebookrequest] +// [END library_v1_generated_libraryserviceclient_updatebook_updatebookrequest_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java index a05f9b61d8..168dddc41d 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.samples; -// [START library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings] +// [START library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings_sync] import com.google.cloud.example.library.v1.LibraryServiceSettings; import java.time.Duration; @@ -43,4 +43,4 @@ public static void createShelfSettingsSetRetrySettingsLibraryServiceSettings() t LibraryServiceSettings libraryServiceSettings = libraryServiceSettingsBuilder.build(); } } -// [END library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings] +// [END library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings_sync] diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java index 6f7007f46c..4e36bdb499 100644 --- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java +++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.example.library.v1.stub.samples; -// [START library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings] +// [START library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings_sync] import com.google.cloud.example.library.v1.stub.LibraryServiceStubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void createShelfSettingsSetRetrySettingsLibraryServiceStubSettings LibraryServiceStubSettings libraryServiceSettings = libraryServiceSettingsBuilder.build(); } } -// [END library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings] +// [END library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java index 3937675299..8fa2de90ef 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_create_configsettings1] +// [START logging_v2_generated_configclient_create_configsettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.logging.v2.ConfigClient; import com.google.cloud.logging.v2.ConfigSettings; @@ -38,4 +38,4 @@ public static void createConfigSettings1() throws Exception { ConfigClient configClient = ConfigClient.create(configSettings); } } -// [END logging_v2_generated_configclient_create_configsettings1] +// [END logging_v2_generated_configclient_create_configsettings1_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java index 3b17c2649b..738bfcc4f6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_create_configsettings2] +// [START logging_v2_generated_configclient_create_configsettings2_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.cloud.logging.v2.ConfigSettings; import com.google.cloud.logging.v2.myEndpoint; @@ -34,4 +34,4 @@ public static void createConfigSettings2() throws Exception { ConfigClient configClient = ConfigClient.create(configSettings); } } -// [END logging_v2_generated_configclient_create_configsettings2] +// [END logging_v2_generated_configclient_create_configsettings2_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java index 86ee440acb..83b8fccb3e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest] +// [START logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CreateBucketRequest; @@ -45,4 +45,4 @@ public static void createBucketCallableFutureCallCreateBucketRequest() throws Ex } } } -// [END logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest] +// [END logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java index 7e076bde5e..ef4afe9c5b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createbucket_createbucketrequest] +// [START logging_v2_generated_configclient_createbucket_createbucketrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.LocationName; @@ -42,4 +42,4 @@ public static void createBucketCreateBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_createbucket_createbucketrequest] +// [END logging_v2_generated_configclient_createbucket_createbucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java index a6b0bd0256..aa8edb89ee 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion] +// [START logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.BillingAccountName; import com.google.logging.v2.LogExclusion; @@ -37,4 +37,4 @@ public static void createExclusionBillingAccountNameLogExclusion() throws Except } } } -// [END logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion] +// [END logging_v2_generated_configclient_createexclusion_billingaccountnamelogexclusion_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java index fca2c93954..37a7094598 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest] +// [START logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CreateExclusionRequest; @@ -44,4 +44,4 @@ public static void createExclusionCallableFutureCallCreateExclusionRequest() thr } } } -// [END logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest] +// [END logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java index 5fe87af68e..250d267329 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createexclusion_createexclusionrequest] +// [START logging_v2_generated_configclient_createexclusion_createexclusionrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.LogExclusion; @@ -41,4 +41,4 @@ public static void createExclusionCreateExclusionRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_createexclusion_createexclusionrequest] +// [END logging_v2_generated_configclient_createexclusion_createexclusionrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java index 8963539d0e..24f19a5afb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createexclusion_foldernamelogexclusion] +// [START logging_v2_generated_configclient_createexclusion_foldernamelogexclusion_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.FolderName; import com.google.logging.v2.LogExclusion; @@ -37,4 +37,4 @@ public static void createExclusionFolderNameLogExclusion() throws Exception { } } } -// [END logging_v2_generated_configclient_createexclusion_foldernamelogexclusion] +// [END logging_v2_generated_configclient_createexclusion_foldernamelogexclusion_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java index 49c682edd9..8e1434bab3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion] +// [START logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.OrganizationName; @@ -37,4 +37,4 @@ public static void createExclusionOrganizationNameLogExclusion() throws Exceptio } } } -// [END logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion] +// [END logging_v2_generated_configclient_createexclusion_organizationnamelogexclusion_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java index 520aaf6809..3b510d1c97 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createexclusion_projectnamelogexclusion] +// [START logging_v2_generated_configclient_createexclusion_projectnamelogexclusion_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.ProjectName; @@ -37,4 +37,4 @@ public static void createExclusionProjectNameLogExclusion() throws Exception { } } } -// [END logging_v2_generated_configclient_createexclusion_projectnamelogexclusion] +// [END logging_v2_generated_configclient_createexclusion_projectnamelogexclusion_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java index b4ebe432bb..4553c915b5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createexclusion_stringlogexclusion] +// [START logging_v2_generated_configclient_createexclusion_stringlogexclusion_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.ProjectName; @@ -37,4 +37,4 @@ public static void createExclusionStringLogExclusion() throws Exception { } } } -// [END logging_v2_generated_configclient_createexclusion_stringlogexclusion] +// [END logging_v2_generated_configclient_createexclusion_stringlogexclusion_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java index 663ee0714c..2904fff9b6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createsink_billingaccountnamelogsink] +// [START logging_v2_generated_configclient_createsink_billingaccountnamelogsink_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.BillingAccountName; import com.google.logging.v2.LogSink; @@ -37,4 +37,4 @@ public static void createSinkBillingAccountNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_billingaccountnamelogsink] +// [END logging_v2_generated_configclient_createsink_billingaccountnamelogsink_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java index b20ec81eb3..da8c1ac6a4 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest] +// [START logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CreateSinkRequest; @@ -45,4 +45,4 @@ public static void createSinkCallableFutureCallCreateSinkRequest() throws Except } } } -// [END logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest] +// [END logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java index 688c2f15b7..b72c7bc05c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createsink_createsinkrequest] +// [START logging_v2_generated_configclient_createsink_createsinkrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.LogSink; @@ -42,4 +42,4 @@ public static void createSinkCreateSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_createsinkrequest] +// [END logging_v2_generated_configclient_createsink_createsinkrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java index 32c3d70143..d28056d589 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createsink_foldernamelogsink] +// [START logging_v2_generated_configclient_createsink_foldernamelogsink_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.FolderName; import com.google.logging.v2.LogSink; @@ -37,4 +37,4 @@ public static void createSinkFolderNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_foldernamelogsink] +// [END logging_v2_generated_configclient_createsink_foldernamelogsink_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java index 80950a38ab..0684b4cf18 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createsink_organizationnamelogsink] +// [START logging_v2_generated_configclient_createsink_organizationnamelogsink_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.OrganizationName; @@ -37,4 +37,4 @@ public static void createSinkOrganizationNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_organizationnamelogsink] +// [END logging_v2_generated_configclient_createsink_organizationnamelogsink_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java index f16e2544eb..37aea3b147 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createsink_projectnamelogsink] +// [START logging_v2_generated_configclient_createsink_projectnamelogsink_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.ProjectName; @@ -37,4 +37,4 @@ public static void createSinkProjectNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_projectnamelogsink] +// [END logging_v2_generated_configclient_createsink_projectnamelogsink_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java index 9b4e271fa6..a2bd74365c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createsink_stringlogsink] +// [START logging_v2_generated_configclient_createsink_stringlogsink_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.ProjectName; @@ -37,4 +37,4 @@ public static void createSinkStringLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_createsink_stringlogsink] +// [END logging_v2_generated_configclient_createsink_stringlogsink_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java index 6bf9152127..da65f69a70 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest] +// [START logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CreateViewRequest; @@ -44,4 +44,4 @@ public static void createViewCallableFutureCallCreateViewRequest() throws Except } } } -// [END logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest] +// [END logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java index 783040184a..9408e4774f 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_createview_createviewrequest] +// [START logging_v2_generated_configclient_createview_createviewrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CreateViewRequest; import com.google.logging.v2.LogView; @@ -41,4 +41,4 @@ public static void createViewCreateViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_createview_createviewrequest] +// [END logging_v2_generated_configclient_createview_createviewrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java index a1c770a052..e2485ec430 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest] +// [START logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.DeleteBucketRequest; @@ -45,4 +45,4 @@ public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Ex } } } -// [END logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest] +// [END logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java index 60c0cf2eb8..058f69d31e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deletebucket_deletebucketrequest] +// [START logging_v2_generated_configclient_deletebucket_deletebucketrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.DeleteBucketRequest; import com.google.logging.v2.LogBucketName; @@ -42,4 +42,4 @@ public static void deleteBucketDeleteBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_deletebucket_deletebucketrequest] +// [END logging_v2_generated_configclient_deletebucket_deletebucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java index c278395833..2afee4c697 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest] +// [START logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.DeleteExclusionRequest; @@ -44,4 +44,4 @@ public static void deleteExclusionCallableFutureCallDeleteExclusionRequest() thr } } } -// [END logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest] +// [END logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java index 69bd702bf6..d4833f7b23 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest] +// [START logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.DeleteExclusionRequest; import com.google.logging.v2.LogExclusionName; @@ -41,4 +41,4 @@ public static void deleteExclusionDeleteExclusionRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest] +// [END logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java index cdc94b04a8..d3430d5527 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deleteexclusion_logexclusionname] +// [START logging_v2_generated_configclient_deleteexclusion_logexclusionname_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusionName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteExclusionLogExclusionName() throws Exception { } } } -// [END logging_v2_generated_configclient_deleteexclusion_logexclusionname] +// [END logging_v2_generated_configclient_deleteexclusion_logexclusionname_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java index 2881aea6ce..3fc408f47b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deleteexclusion_string] +// [START logging_v2_generated_configclient_deleteexclusion_string_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusionName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteExclusionString() throws Exception { } } } -// [END logging_v2_generated_configclient_deleteexclusion_string] +// [END logging_v2_generated_configclient_deleteexclusion_string_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java index 6cd07a9cc2..4ef16b7ba1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest] +// [START logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.DeleteSinkRequest; @@ -43,4 +43,4 @@ public static void deleteSinkCallableFutureCallDeleteSinkRequest() throws Except } } } -// [END logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest] +// [END logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java index ed031ee5a8..2d3e0765a5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deletesink_deletesinkrequest] +// [START logging_v2_generated_configclient_deletesink_deletesinkrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.LogSinkName; @@ -40,4 +40,4 @@ public static void deleteSinkDeleteSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_deletesink_deletesinkrequest] +// [END logging_v2_generated_configclient_deletesink_deletesinkrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java index 4169d95302..21504eb69a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deletesink_logsinkname] +// [START logging_v2_generated_configclient_deletesink_logsinkname_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSinkName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteSinkLogSinkName() throws Exception { } } } -// [END logging_v2_generated_configclient_deletesink_logsinkname] +// [END logging_v2_generated_configclient_deletesink_logsinkname_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java index c365abf660..75f04f1453 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deletesink_string] +// [START logging_v2_generated_configclient_deletesink_string_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSinkName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteSinkString() throws Exception { } } } -// [END logging_v2_generated_configclient_deletesink_string] +// [END logging_v2_generated_configclient_deletesink_string_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java index 2d9a7b45cd..21f757502b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest] +// [START logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.DeleteViewRequest; @@ -46,4 +46,4 @@ public static void deleteViewCallableFutureCallDeleteViewRequest() throws Except } } } -// [END logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest] +// [END logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java index 0b60b1d013..22bc149cb3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_deleteview_deleteviewrequest] +// [START logging_v2_generated_configclient_deleteview_deleteviewrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.DeleteViewRequest; import com.google.logging.v2.LogViewName; @@ -43,4 +43,4 @@ public static void deleteViewDeleteViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_deleteview_deleteviewrequest] +// [END logging_v2_generated_configclient_deleteview_deleteviewrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java index 4fbd2a26b3..f9b93a4ed1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest] +// [START logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.GetBucketRequest; @@ -45,4 +45,4 @@ public static void getBucketCallableFutureCallGetBucketRequest() throws Exceptio } } } -// [END logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest] +// [END logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java index 60497f5acd..d977838a01 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getbucket_getbucketrequest] +// [START logging_v2_generated_configclient_getbucket_getbucketrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.LogBucket; @@ -42,4 +42,4 @@ public static void getBucketGetBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getbucket_getbucketrequest] +// [END logging_v2_generated_configclient_getbucket_getbucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java index a5de57b6d5..468fc42978 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest] +// [START logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CmekSettings; @@ -43,4 +43,4 @@ public static void getCmekSettingsCallableFutureCallGetCmekSettingsRequest() thr } } } -// [END logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest] +// [END logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java index ea168f1b8f..f90078a758 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest] +// [START logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CmekSettingsName; @@ -40,4 +40,4 @@ public static void getCmekSettingsGetCmekSettingsRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest] +// [END logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java index 9fc5cf3042..ee4e54c1ae 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest] +// [START logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.GetExclusionRequest; @@ -44,4 +44,4 @@ public static void getExclusionCallableFutureCallGetExclusionRequest() throws Ex } } } -// [END logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest] +// [END logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java index 9bfacb10a5..b93b179e9a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getexclusion_getexclusionrequest] +// [START logging_v2_generated_configclient_getexclusion_getexclusionrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.GetExclusionRequest; import com.google.logging.v2.LogExclusion; @@ -41,4 +41,4 @@ public static void getExclusionGetExclusionRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getexclusion_getexclusionrequest] +// [END logging_v2_generated_configclient_getexclusion_getexclusionrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java index 978c50ad20..59af3c4859 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getexclusion_logexclusionname] +// [START logging_v2_generated_configclient_getexclusion_logexclusionname_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogExclusionName; @@ -36,4 +36,4 @@ public static void getExclusionLogExclusionName() throws Exception { } } } -// [END logging_v2_generated_configclient_getexclusion_logexclusionname] +// [END logging_v2_generated_configclient_getexclusion_logexclusionname_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java index 2bf7a3f262..0a3ac2b671 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getexclusion_string] +// [START logging_v2_generated_configclient_getexclusion_string_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogExclusionName; @@ -36,4 +36,4 @@ public static void getExclusionString() throws Exception { } } } -// [END logging_v2_generated_configclient_getexclusion_string] +// [END logging_v2_generated_configclient_getexclusion_string_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java index cbc4fa72fb..2183b3661c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest] +// [START logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.GetSinkRequest; @@ -43,4 +43,4 @@ public static void getSinkCallableFutureCallGetSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest] +// [END logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java index 43bcff3b1c..067b615b80 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getsink_getsinkrequest] +// [START logging_v2_generated_configclient_getsink_getsinkrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.LogSink; @@ -40,4 +40,4 @@ public static void getSinkGetSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getsink_getsinkrequest] +// [END logging_v2_generated_configclient_getsink_getsinkrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java index 61d8aa72e5..8efa76a62d 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getsink_logsinkname] +// [START logging_v2_generated_configclient_getsink_logsinkname_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogSinkName; @@ -36,4 +36,4 @@ public static void getSinkLogSinkName() throws Exception { } } } -// [END logging_v2_generated_configclient_getsink_logsinkname] +// [END logging_v2_generated_configclient_getsink_logsinkname_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java index 600b00b849..135035f4ff 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getsink_string] +// [START logging_v2_generated_configclient_getsink_string_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogSinkName; @@ -36,4 +36,4 @@ public static void getSinkString() throws Exception { } } } -// [END logging_v2_generated_configclient_getsink_string] +// [END logging_v2_generated_configclient_getsink_string_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java index 47c2d18fee..bcd0d5c962 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest] +// [START logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.GetViewRequest; @@ -46,4 +46,4 @@ public static void getViewCallableFutureCallGetViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest] +// [END logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java index f0ee1c9490..d5301ce217 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_getview_getviewrequest] +// [START logging_v2_generated_configclient_getview_getviewrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.LogView; @@ -43,4 +43,4 @@ public static void getViewGetViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_getview_getviewrequest] +// [END logging_v2_generated_configclient_getview_getviewrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java index 4551109a99..c64965a657 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall] +// [START logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.BillingAccountLocationName; import com.google.logging.v2.LogBucket; @@ -39,4 +39,4 @@ public static void listBucketsBillingAccountLocationNameIterateAll() throws Exce } } } -// [END logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall] +// [END logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java index 554ade7e1a..d6ee9e9982 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest] +// [START logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.common.base.Strings; import com.google.logging.v2.ListBucketsRequest; @@ -55,4 +55,4 @@ public static void listBucketsCallableCallListBucketsRequest() throws Exception } } } -// [END logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest] +// [END logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java index f7c8d39aa2..8b2fa1eb54 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall] +// [START logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.FolderLocationName; import com.google.logging.v2.LogBucket; @@ -38,4 +38,4 @@ public static void listBucketsFolderLocationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall] +// [END logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java index b94773f3ae..ebf5f247e7 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall] +// [START logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.ListBucketsRequest; import com.google.logging.v2.LocationName; @@ -44,4 +44,4 @@ public static void listBucketsListBucketsRequestIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall] +// [END logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java index fde0b7e660..0598ac959f 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listbuckets_locationnameiterateall] +// [START logging_v2_generated_configclient_listbuckets_locationnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LocationName; import com.google.logging.v2.LogBucket; @@ -38,4 +38,4 @@ public static void listBucketsLocationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listbuckets_locationnameiterateall] +// [END logging_v2_generated_configclient_listbuckets_locationnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java index 9fc134e214..57e991ac63 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall] +// [START logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogBucket; import com.google.logging.v2.OrganizationLocationName; @@ -38,4 +38,4 @@ public static void listBucketsOrganizationLocationNameIterateAll() throws Except } } } -// [END logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall] +// [END logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java index 22f7950640..a0ba537faa 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] +// [START logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.ListBucketsRequest; @@ -47,4 +47,4 @@ public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws } } } -// [END logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] +// [END logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java index 6dc98d6900..b560140718 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listbuckets_stringiterateall] +// [START logging_v2_generated_configclient_listbuckets_stringiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LocationName; import com.google.logging.v2.LogBucket; @@ -38,4 +38,4 @@ public static void listBucketsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listbuckets_stringiterateall] +// [END logging_v2_generated_configclient_listbuckets_stringiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java index bda88e1a38..c1bbb6055a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall] +// [START logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.BillingAccountName; import com.google.logging.v2.LogExclusion; @@ -38,4 +38,4 @@ public static void listExclusionsBillingAccountNameIterateAll() throws Exception } } } -// [END logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall] +// [END logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java index 89ad566cbd..b825a4e81a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest] +// [START logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.common.base.Strings; import com.google.logging.v2.ListExclusionsRequest; @@ -55,4 +55,4 @@ public static void listExclusionsCallableCallListExclusionsRequest() throws Exce } } } -// [END logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest] +// [END logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java index 1d65181907..960afad6c1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listexclusions_foldernameiterateall] +// [START logging_v2_generated_configclient_listexclusions_foldernameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.FolderName; import com.google.logging.v2.LogExclusion; @@ -38,4 +38,4 @@ public static void listExclusionsFolderNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listexclusions_foldernameiterateall] +// [END logging_v2_generated_configclient_listexclusions_foldernameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java index 45f44f06c6..0c6eaacd0e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall] +// [START logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.ListExclusionsRequest; import com.google.logging.v2.LogExclusion; @@ -44,4 +44,4 @@ public static void listExclusionsListExclusionsRequestIterateAll() throws Except } } } -// [END logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall] +// [END logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java index 0095814237..9905c83d10 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listexclusions_organizationnameiterateall] +// [START logging_v2_generated_configclient_listexclusions_organizationnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.OrganizationName; @@ -38,4 +38,4 @@ public static void listExclusionsOrganizationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listexclusions_organizationnameiterateall] +// [END logging_v2_generated_configclient_listexclusions_organizationnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java index 6ce3b5f9f1..7ada9546d1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest] +// [START logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.ListExclusionsRequest; @@ -48,4 +48,4 @@ public static void listExclusionsPagedCallableFutureCallListExclusionsRequest() } } } -// [END logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest] +// [END logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java index 24b81e2af7..0c06644620 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listexclusions_projectnameiterateall] +// [START logging_v2_generated_configclient_listexclusions_projectnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.ProjectName; @@ -38,4 +38,4 @@ public static void listExclusionsProjectNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listexclusions_projectnameiterateall] +// [END logging_v2_generated_configclient_listexclusions_projectnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java index b02d45d8df..9176ccf3c4 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listexclusions_stringiterateall] +// [START logging_v2_generated_configclient_listexclusions_stringiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.ProjectName; @@ -38,4 +38,4 @@ public static void listExclusionsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listexclusions_stringiterateall] +// [END logging_v2_generated_configclient_listexclusions_stringiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java index ba0119000d..dea4bfdf81 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listsinks_billingaccountnameiterateall] +// [START logging_v2_generated_configclient_listsinks_billingaccountnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.BillingAccountName; import com.google.logging.v2.LogSink; @@ -38,4 +38,4 @@ public static void listSinksBillingAccountNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_billingaccountnameiterateall] +// [END logging_v2_generated_configclient_listsinks_billingaccountnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java index 6619a1898f..c6b2ce44d6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest] +// [START logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.common.base.Strings; import com.google.logging.v2.ListSinksRequest; @@ -55,4 +55,4 @@ public static void listSinksCallableCallListSinksRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest] +// [END logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java index 06d59b2c96..ad4ad5f954 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listsinks_foldernameiterateall] +// [START logging_v2_generated_configclient_listsinks_foldernameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.FolderName; import com.google.logging.v2.LogSink; @@ -38,4 +38,4 @@ public static void listSinksFolderNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_foldernameiterateall] +// [END logging_v2_generated_configclient_listsinks_foldernameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java index 83f701fb39..f402f5acea 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listsinks_listsinksrequestiterateall] +// [START logging_v2_generated_configclient_listsinks_listsinksrequestiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.ListSinksRequest; import com.google.logging.v2.LogSink; @@ -44,4 +44,4 @@ public static void listSinksListSinksRequestIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_listsinksrequestiterateall] +// [END logging_v2_generated_configclient_listsinks_listsinksrequestiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java index 7e45aa8b45..8a4a652c09 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listsinks_organizationnameiterateall] +// [START logging_v2_generated_configclient_listsinks_organizationnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.OrganizationName; @@ -38,4 +38,4 @@ public static void listSinksOrganizationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_organizationnameiterateall] +// [END logging_v2_generated_configclient_listsinks_organizationnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java index a7d96ef8bd..4723bc1044 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest] +// [START logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.ListSinksRequest; @@ -47,4 +47,4 @@ public static void listSinksPagedCallableFutureCallListSinksRequest() throws Exc } } } -// [END logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest] +// [END logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java index c8d504b536..1d7823459a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listsinks_projectnameiterateall] +// [START logging_v2_generated_configclient_listsinks_projectnameiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.ProjectName; @@ -38,4 +38,4 @@ public static void listSinksProjectNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_projectnameiterateall] +// [END logging_v2_generated_configclient_listsinks_projectnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java index 034ff7ed1a..d3f231d0bf 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listsinks_stringiterateall] +// [START logging_v2_generated_configclient_listsinks_stringiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.ProjectName; @@ -38,4 +38,4 @@ public static void listSinksStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listsinks_stringiterateall] +// [END logging_v2_generated_configclient_listsinks_stringiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java index 043b800dfc..db0df68e53 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listviews_callablecalllistviewsrequest] +// [START logging_v2_generated_configclient_listviews_callablecalllistviewsrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.common.base.Strings; import com.google.logging.v2.ListViewsRequest; @@ -54,4 +54,4 @@ public static void listViewsCallableCallListViewsRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_listviews_callablecalllistviewsrequest] +// [END logging_v2_generated_configclient_listviews_callablecalllistviewsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java index 0fca1a9971..31ca88661b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listviews_listviewsrequestiterateall] +// [START logging_v2_generated_configclient_listviews_listviewsrequestiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.ListViewsRequest; import com.google.logging.v2.LogView; @@ -43,4 +43,4 @@ public static void listViewsListViewsRequestIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listviews_listviewsrequestiterateall] +// [END logging_v2_generated_configclient_listviews_listviewsrequestiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java index 30325ff369..d62e737a7e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest] +// [START logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.ListViewsRequest; @@ -46,4 +46,4 @@ public static void listViewsPagedCallableFutureCallListViewsRequest() throws Exc } } } -// [END logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest] +// [END logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java index 71071ba3d6..b1f45d5b61 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_listviews_stringiterateall] +// [START logging_v2_generated_configclient_listviews_stringiterateall_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogView; @@ -37,4 +37,4 @@ public static void listViewsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_configclient_listviews_stringiterateall] +// [END logging_v2_generated_configclient_listviews_stringiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java index 8debd24526..93dbb1da1e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest] +// [START logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogBucketName; @@ -45,4 +45,4 @@ public static void undeleteBucketCallableFutureCallUndeleteBucketRequest() throw } } } -// [END logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest] +// [END logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java index 25d9341102..9dbcb994a2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_undeletebucket_undeletebucketrequest] +// [START logging_v2_generated_configclient_undeletebucket_undeletebucketrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogBucketName; import com.google.logging.v2.UndeleteBucketRequest; @@ -42,4 +42,4 @@ public static void undeleteBucketUndeleteBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_undeletebucket_undeletebucketrequest] +// [END logging_v2_generated_configclient_undeletebucket_undeletebucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java index 37f0c05787..f4fcb0c3b1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest] +// [START logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogBucket; @@ -48,4 +48,4 @@ public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Ex } } } -// [END logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest] +// [END logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java index 62849a6bc1..d550647c22 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatebucket_updatebucketrequest] +// [START logging_v2_generated_configclient_updatebucket_updatebucketrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogBucket; import com.google.logging.v2.LogBucketName; @@ -45,4 +45,4 @@ public static void updateBucketUpdateBucketRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_updatebucket_updatebucketrequest] +// [END logging_v2_generated_configclient_updatebucket_updatebucketrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java index 4bca0debc8..e38785cdc7 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest] +// [START logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CmekSettings; @@ -47,4 +47,4 @@ public static void updateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest } } } -// [END logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest] +// [END logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java index a12efbbb66..aa7793f96a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest] +// [START logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.UpdateCmekSettingsRequest; @@ -42,4 +42,4 @@ public static void updateCmekSettingsUpdateCmekSettingsRequest() throws Exceptio } } } -// [END logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest] +// [END logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java index 8fc25840e2..596a8a0d06 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest] +// [START logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; @@ -47,4 +47,4 @@ public static void updateExclusionCallableFutureCallUpdateExclusionRequest() thr } } } -// [END logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest] +// [END logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java index ed4e1b23bb..189914f9e8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask] +// [START logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogExclusionName; @@ -39,4 +39,4 @@ public static void updateExclusionLogExclusionNameLogExclusionFieldMask() throws } } } -// [END logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask] +// [END logging_v2_generated_configclient_updateexclusion_logexclusionnamelogexclusionfieldmask_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java index 6229948b2c..51ebcc5489 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask] +// [START logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogExclusionName; @@ -39,4 +39,4 @@ public static void updateExclusionStringLogExclusionFieldMask() throws Exception } } } -// [END logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask] +// [END logging_v2_generated_configclient_updateexclusion_stringlogexclusionfieldmask_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java index 1d5ef943f3..d48c5218ac 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updateexclusion_updateexclusionrequest] +// [START logging_v2_generated_configclient_updateexclusion_updateexclusionrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogExclusionName; @@ -44,4 +44,4 @@ public static void updateExclusionUpdateExclusionRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_updateexclusion_updateexclusionrequest] +// [END logging_v2_generated_configclient_updateexclusion_updateexclusionrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java index 16d612b6e6..0786425ef6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest] +// [START logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; @@ -47,4 +47,4 @@ public static void updateSinkCallableFutureCallUpdateSinkRequest() throws Except } } } -// [END logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest] +// [END logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java index 22af62c3b3..0189cf32de 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatesink_logsinknamelogsink] +// [START logging_v2_generated_configclient_updatesink_logsinknamelogsink_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogSinkName; @@ -37,4 +37,4 @@ public static void updateSinkLogSinkNameLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_logsinknamelogsink] +// [END logging_v2_generated_configclient_updatesink_logsinknamelogsink_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java index 1136e1519c..909ba652d9 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask] +// [START logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogSinkName; @@ -39,4 +39,4 @@ public static void updateSinkLogSinkNameLogSinkFieldMask() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask] +// [END logging_v2_generated_configclient_updatesink_logsinknamelogsinkfieldmask_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java index c5e641a0a7..683becd11e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatesink_stringlogsink] +// [START logging_v2_generated_configclient_updatesink_stringlogsink_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogSinkName; @@ -37,4 +37,4 @@ public static void updateSinkStringLogSink() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_stringlogsink] +// [END logging_v2_generated_configclient_updatesink_stringlogsink_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java index f184b8f920..0020195166 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask] +// [START logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogSinkName; @@ -39,4 +39,4 @@ public static void updateSinkStringLogSinkFieldMask() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask] +// [END logging_v2_generated_configclient_updatesink_stringlogsinkfieldmask_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java index bfd1ddfe33..8232443092 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updatesink_updatesinkrequest] +// [START logging_v2_generated_configclient_updatesink_updatesinkrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogSinkName; @@ -44,4 +44,4 @@ public static void updateSinkUpdateSinkRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_updatesink_updatesinkrequest] +// [END logging_v2_generated_configclient_updatesink_updatesinkrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java index 456a13078d..3393c45d86 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest] +// [START logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogView; @@ -45,4 +45,4 @@ public static void updateViewCallableFutureCallUpdateViewRequest() throws Except } } } -// [END logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest] +// [END logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java index ac6afbe82d..792999d6ff 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configclient_updateview_updateviewrequest] +// [START logging_v2_generated_configclient_updateview_updateviewrequest_sync] import com.google.cloud.logging.v2.ConfigClient; import com.google.logging.v2.LogView; import com.google.logging.v2.UpdateViewRequest; @@ -42,4 +42,4 @@ public static void updateViewUpdateViewRequest() throws Exception { } } } -// [END logging_v2_generated_configclient_updateview_updateviewrequest] +// [END logging_v2_generated_configclient_updateview_updateviewrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java index 53a9e79247..c875f107a4 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings] +// [START logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings_sync] import com.google.cloud.logging.v2.ConfigSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void getBucketSettingsSetRetrySettingsConfigSettings() throws Exce ConfigSettings configSettings = configSettingsBuilder.build(); } } -// [END logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings] +// [END logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java index f1c0c7490a..745bf3fa77 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_create_loggingsettings1] +// [START logging_v2_generated_loggingclient_create_loggingsettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.logging.v2.LoggingClient; import com.google.cloud.logging.v2.LoggingSettings; @@ -38,4 +38,4 @@ public static void createLoggingSettings1() throws Exception { LoggingClient loggingClient = LoggingClient.create(loggingSettings); } } -// [END logging_v2_generated_loggingclient_create_loggingsettings1] +// [END logging_v2_generated_loggingclient_create_loggingsettings1_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java index b9d5f1264b..bdd6e00db5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_create_loggingsettings2] +// [START logging_v2_generated_loggingclient_create_loggingsettings2_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.cloud.logging.v2.LoggingSettings; import com.google.cloud.logging.v2.myEndpoint; @@ -34,4 +34,4 @@ public static void createLoggingSettings2() throws Exception { LoggingClient loggingClient = LoggingClient.create(loggingSettings); } } -// [END logging_v2_generated_loggingclient_create_loggingsettings2] +// [END logging_v2_generated_loggingclient_create_loggingsettings2_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java index 86ae4369b0..92b11c5dd0 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest] +// [START logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.DeleteLogRequest; @@ -43,4 +43,4 @@ public static void deleteLogCallableFutureCallDeleteLogRequest() throws Exceptio } } } -// [END logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest] +// [END logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java index 7aedc29ec7..e8af45a9d8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_deletelog_deletelogrequest] +// [START logging_v2_generated_loggingclient_deletelog_deletelogrequest_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.DeleteLogRequest; import com.google.logging.v2.LogName; @@ -40,4 +40,4 @@ public static void deleteLogDeleteLogRequest() throws Exception { } } } -// [END logging_v2_generated_loggingclient_deletelog_deletelogrequest] +// [END logging_v2_generated_loggingclient_deletelog_deletelogrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java index 329646b0d2..abd5314b58 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_deletelog_logname] +// [START logging_v2_generated_loggingclient_deletelog_logname_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.LogName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteLogLogName() throws Exception { } } } -// [END logging_v2_generated_loggingclient_deletelog_logname] +// [END logging_v2_generated_loggingclient_deletelog_logname_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java index 3bb56a7a6b..700f048f2a 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_deletelog_string] +// [START logging_v2_generated_loggingclient_deletelog_string_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.LogName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteLogString() throws Exception { } } } -// [END logging_v2_generated_loggingclient_deletelog_string] +// [END logging_v2_generated_loggingclient_deletelog_string_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java index c499c25eac..1019937a21 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest] +// [START logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.common.base.Strings; import com.google.logging.v2.ListLogEntriesRequest; @@ -57,4 +57,4 @@ public static void listLogEntriesCallableCallListLogEntriesRequest() throws Exce } } } -// [END logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest] +// [END logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java index 61e4d14109..6dc9c047eb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall] +// [START logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.ListLogEntriesRequest; import com.google.logging.v2.LogEntry; @@ -46,4 +46,4 @@ public static void listLogEntriesListLogEntriesRequestIterateAll() throws Except } } } -// [END logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall] +// [END logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java index 45d28afa96..acf2c830ef 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall] +// [START logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.LogEntry; import java.util.ArrayList; @@ -42,4 +42,4 @@ public static void listLogEntriesListStringStringStringIterateAll() throws Excep } } } -// [END logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall] +// [END logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java index ce4f76642a..841e525699 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest] +// [START logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.ListLogEntriesRequest; @@ -49,4 +49,4 @@ public static void listLogEntriesPagedCallableFutureCallListLogEntriesRequest() } } } -// [END logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest] +// [END logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java index ac496ac3e8..2b7c43340d 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall] +// [START logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.BillingAccountName; @@ -37,4 +37,4 @@ public static void listLogsBillingAccountNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall] +// [END logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java index 5fc22faae5..85c9e1a7e5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest] +// [START logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.common.base.Strings; import com.google.logging.v2.ListLogsRequest; @@ -56,4 +56,4 @@ public static void listLogsCallableCallListLogsRequest() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest] +// [END logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java index 3d8ffb8aef..e74c671296 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogs_foldernameiterateall] +// [START logging_v2_generated_loggingclient_listlogs_foldernameiterateall_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.FolderName; @@ -37,4 +37,4 @@ public static void listLogsFolderNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_foldernameiterateall] +// [END logging_v2_generated_loggingclient_listlogs_foldernameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java index a730fe7e50..7de2180acd 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall] +// [START logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.ListLogsRequest; import com.google.logging.v2.ProjectName; @@ -45,4 +45,4 @@ public static void listLogsListLogsRequestIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall] +// [END logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java index d7c9285384..c706876cc3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogs_organizationnameiterateall] +// [START logging_v2_generated_loggingclient_listlogs_organizationnameiterateall_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.OrganizationName; @@ -37,4 +37,4 @@ public static void listLogsOrganizationNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_organizationnameiterateall] +// [END logging_v2_generated_loggingclient_listlogs_organizationnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java index a0282bc7dc..0c61d5add3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest] +// [START logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.ListLogsRequest; @@ -48,4 +48,4 @@ public static void listLogsPagedCallableFutureCallListLogsRequest() throws Excep } } } -// [END logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest] +// [END logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java index c41d02a30e..7405f23e11 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogs_projectnameiterateall] +// [START logging_v2_generated_loggingclient_listlogs_projectnameiterateall_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.ProjectName; @@ -37,4 +37,4 @@ public static void listLogsProjectNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_projectnameiterateall] +// [END logging_v2_generated_loggingclient_listlogs_projectnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java index 8a1d5b13b0..d584e586a1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listlogs_stringiterateall] +// [START logging_v2_generated_loggingclient_listlogs_stringiterateall_sync] import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.ProjectName; @@ -37,4 +37,4 @@ public static void listLogsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_loggingclient_listlogs_stringiterateall] +// [END logging_v2_generated_loggingclient_listlogs_stringiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java index 33880cf6d3..d11441a3d2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest] +// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest_sync] import com.google.api.MonitoredResourceDescriptor; import com.google.cloud.logging.v2.LoggingClient; import com.google.common.base.Strings; @@ -56,4 +56,4 @@ public static void main(String[] args) throws Exception { } } } -// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest] +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java index 4f207837c6..9a429c20d2 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall] +// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall_sync] import com.google.api.MonitoredResourceDescriptor; import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; @@ -45,4 +45,4 @@ public static void main(String[] args) throws Exception { } } } -// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall] +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java index 3ba2b8391f..f0b24758e3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest] +// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest_sync] import com.google.api.MonitoredResourceDescriptor; import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.LoggingClient; @@ -49,4 +49,4 @@ public static void main(String[] args) throws Exception { } } } -// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest] +// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java index 73b835d4e3..a3490bf2be 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest] +// [START logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest_sync] import com.google.api.gax.rpc.BidiStream; import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.TailLogEntriesRequest; @@ -49,4 +49,4 @@ public static void tailLogEntriesCallableCallTailLogEntriesRequest() throws Exce } } } -// [END logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest] +// [END logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java index e319bdfbb8..6a94fd25b8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest] +// [START logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest_sync] import com.google.api.MonitoredResource; import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.LoggingClient; @@ -53,4 +53,4 @@ public static void writeLogEntriesCallableFutureCallWriteLogEntriesRequest() thr } } } -// [END logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest] +// [END logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java index 68e295d003..db2855cff6 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry] +// [START logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry_sync] import com.google.api.MonitoredResource; import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.LogEntry; @@ -47,4 +47,4 @@ public static void writeLogEntriesLogNameMonitoredResourceMapStringStringListLog } } } -// [END logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry] +// [END logging_v2_generated_loggingclient_writelogentries_lognamemonitoredresourcemapstringstringlistlogentry_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java index eaf120ce2b..64b549a580 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry] +// [START logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry_sync] import com.google.api.MonitoredResource; import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.LogEntry; @@ -47,4 +47,4 @@ public static void writeLogEntriesStringMonitoredResourceMapStringStringListLogE } } } -// [END logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry] +// [END logging_v2_generated_loggingclient_writelogentries_stringmonitoredresourcemapstringstringlistlogentry_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java index 3b9400d1ef..bceb1ed42b 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest] +// [START logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest_sync] import com.google.api.MonitoredResource; import com.google.cloud.logging.v2.LoggingClient; import com.google.logging.v2.LogEntry; @@ -49,4 +49,4 @@ public static void writeLogEntriesWriteLogEntriesRequest() throws Exception { } } } -// [END logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest] +// [END logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java index 0edf1edeb3..fe892cca10 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings] +// [START logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings_sync] import com.google.cloud.logging.v2.LoggingSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void deleteLogSettingsSetRetrySettingsLoggingSettings() throws Exc LoggingSettings loggingSettings = loggingSettingsBuilder.build(); } } -// [END logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings] +// [END logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java index 670a730647..73e7522196 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_create_metricssettings1] +// [START logging_v2_generated_metricsclient_create_metricssettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.logging.v2.MetricsClient; import com.google.cloud.logging.v2.MetricsSettings; @@ -38,4 +38,4 @@ public static void createMetricsSettings1() throws Exception { MetricsClient metricsClient = MetricsClient.create(metricsSettings); } } -// [END logging_v2_generated_metricsclient_create_metricssettings1] +// [END logging_v2_generated_metricsclient_create_metricssettings1_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java index f444528f9c..26f659dcf3 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_create_metricssettings2] +// [START logging_v2_generated_metricsclient_create_metricssettings2_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.cloud.logging.v2.MetricsSettings; import com.google.cloud.logging.v2.myEndpoint; @@ -34,4 +34,4 @@ public static void createMetricsSettings2() throws Exception { MetricsClient metricsClient = MetricsClient.create(metricsSettings); } } -// [END logging_v2_generated_metricsclient_create_metricssettings2] +// [END logging_v2_generated_metricsclient_create_metricssettings2_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java index 66acac6c56..f23328c814 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest] +// [START logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.CreateLogMetricRequest; @@ -44,4 +44,4 @@ public static void createLogMetricCallableFutureCallCreateLogMetricRequest() thr } } } -// [END logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest] +// [END logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java index dcf78223fa..8a81f94600 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest] +// [START logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.CreateLogMetricRequest; import com.google.logging.v2.LogMetric; @@ -41,4 +41,4 @@ public static void createLogMetricCreateLogMetricRequest() throws Exception { } } } -// [END logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest] +// [END logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java index b4c679f48d..1f4bce8e4d 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric] +// [START logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.ProjectName; @@ -37,4 +37,4 @@ public static void createLogMetricProjectNameLogMetric() throws Exception { } } } -// [END logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric] +// [END logging_v2_generated_metricsclient_createlogmetric_projectnamelogmetric_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java index c5cd09a26e..813a7dc9f8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_createlogmetric_stringlogmetric] +// [START logging_v2_generated_metricsclient_createlogmetric_stringlogmetric_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.ProjectName; @@ -37,4 +37,4 @@ public static void createLogMetricStringLogMetric() throws Exception { } } } -// [END logging_v2_generated_metricsclient_createlogmetric_stringlogmetric] +// [END logging_v2_generated_metricsclient_createlogmetric_stringlogmetric_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java index 3853da2da2..328d9ffa47 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest] +// [START logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.DeleteLogMetricRequest; @@ -43,4 +43,4 @@ public static void deleteLogMetricCallableFutureCallDeleteLogMetricRequest() thr } } } -// [END logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest] +// [END logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java index 9438b13f1f..82e5ead631 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest] +// [START logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.DeleteLogMetricRequest; import com.google.logging.v2.LogMetricName; @@ -40,4 +40,4 @@ public static void deleteLogMetricDeleteLogMetricRequest() throws Exception { } } } -// [END logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest] +// [END logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java index 717dcbac28..384f3a5a94 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_deletelogmetric_logmetricname] +// [START logging_v2_generated_metricsclient_deletelogmetric_logmetricname_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetricName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteLogMetricLogMetricName() throws Exception { } } } -// [END logging_v2_generated_metricsclient_deletelogmetric_logmetricname] +// [END logging_v2_generated_metricsclient_deletelogmetric_logmetricname_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java index cab825b684..3166d23c25 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_deletelogmetric_string] +// [START logging_v2_generated_metricsclient_deletelogmetric_string_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetricName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteLogMetricString() throws Exception { } } } -// [END logging_v2_generated_metricsclient_deletelogmetric_string] +// [END logging_v2_generated_metricsclient_deletelogmetric_string_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java index 0b00fe08ae..c3b8d6e376 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest] +// [START logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.GetLogMetricRequest; @@ -43,4 +43,4 @@ public static void getLogMetricCallableFutureCallGetLogMetricRequest() throws Ex } } } -// [END logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest] +// [END logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java index 68d72d5d3c..6d854fd3c8 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest] +// [START logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.GetLogMetricRequest; import com.google.logging.v2.LogMetric; @@ -40,4 +40,4 @@ public static void getLogMetricGetLogMetricRequest() throws Exception { } } } -// [END logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest] +// [END logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java index 19047fa92b..a88e058f35 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_getlogmetric_logmetricname] +// [START logging_v2_generated_metricsclient_getlogmetric_logmetricname_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.LogMetricName; @@ -36,4 +36,4 @@ public static void getLogMetricLogMetricName() throws Exception { } } } -// [END logging_v2_generated_metricsclient_getlogmetric_logmetricname] +// [END logging_v2_generated_metricsclient_getlogmetric_logmetricname_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java index de502d3088..973c12a415 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_getlogmetric_string] +// [START logging_v2_generated_metricsclient_getlogmetric_string_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.LogMetricName; @@ -36,4 +36,4 @@ public static void getLogMetricString() throws Exception { } } } -// [END logging_v2_generated_metricsclient_getlogmetric_string] +// [END logging_v2_generated_metricsclient_getlogmetric_string_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java index cdc9020aba..1b08ae30ae 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest] +// [START logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.common.base.Strings; import com.google.logging.v2.ListLogMetricsRequest; @@ -55,4 +55,4 @@ public static void listLogMetricsCallableCallListLogMetricsRequest() throws Exce } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest] +// [END logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java index 9b22af0444..c15cfed6f1 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall] +// [START logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.ListLogMetricsRequest; import com.google.logging.v2.LogMetric; @@ -44,4 +44,4 @@ public static void listLogMetricsListLogMetricsRequestIterateAll() throws Except } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall] +// [END logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java index ae137d194c..86d56e62ed 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest] +// [START logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.ListLogMetricsRequest; @@ -47,4 +47,4 @@ public static void listLogMetricsPagedCallableFutureCallListLogMetricsRequest() } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest] +// [END logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java index 103167f9dc..35ece8ab8e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall] +// [START logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.ProjectName; @@ -38,4 +38,4 @@ public static void listLogMetricsProjectNameIterateAll() throws Exception { } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall] +// [END logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java index be444dbfbb..7946529edc 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_listlogmetrics_stringiterateall] +// [START logging_v2_generated_metricsclient_listlogmetrics_stringiterateall_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.ProjectName; @@ -38,4 +38,4 @@ public static void listLogMetricsStringIterateAll() throws Exception { } } } -// [END logging_v2_generated_metricsclient_listlogmetrics_stringiterateall] +// [END logging_v2_generated_metricsclient_listlogmetrics_stringiterateall_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java index f68d85582a..c0a4b03103 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest] +// [START logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; @@ -44,4 +44,4 @@ public static void updateLogMetricCallableFutureCallUpdateLogMetricRequest() thr } } } -// [END logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest] +// [END logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java index b55164f906..fc0649d75e 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric] +// [START logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.LogMetricName; @@ -37,4 +37,4 @@ public static void updateLogMetricLogMetricNameLogMetric() throws Exception { } } } -// [END logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric] +// [END logging_v2_generated_metricsclient_updatelogmetric_logmetricnamelogmetric_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java index 4dc7d0150c..a7b3e35f30 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric] +// [START logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.LogMetricName; @@ -37,4 +37,4 @@ public static void updateLogMetricStringLogMetric() throws Exception { } } } -// [END logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric] +// [END logging_v2_generated_metricsclient_updatelogmetric_stringlogmetric_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java index 5c5d4c0123..b10355d9aa 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest] +// [START logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest_sync] import com.google.cloud.logging.v2.MetricsClient; import com.google.logging.v2.LogMetric; import com.google.logging.v2.LogMetricName; @@ -41,4 +41,4 @@ public static void updateLogMetricUpdateLogMetricRequest() throws Exception { } } } -// [END logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest] +// [END logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java index 1098ade31f..a2753f5bbb 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.samples; -// [START logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings] +// [START logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings_sync] import com.google.cloud.logging.v2.MetricsSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void getLogMetricSettingsSetRetrySettingsMetricsSettings() throws MetricsSettings metricsSettings = metricsSettingsBuilder.build(); } } -// [END logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings] +// [END logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java index c269d05ac2..e60d1f2fa5 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.stub.samples; -// [START logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings] +// [START logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings_sync] import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void getBucketSettingsSetRetrySettingsConfigServiceV2StubSettings( ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build(); } } -// [END logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings] +// [END logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java index 72f30607a9..0f4c6b8d8c 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.stub.samples; -// [START logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] +// [START logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings_sync] import com.google.cloud.logging.v2.stub.LoggingServiceV2StubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings LoggingServiceV2StubSettings loggingSettings = loggingSettingsBuilder.build(); } } -// [END logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings] +// [END logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings_sync] diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java index b44e31a55c..44be920f72 100644 --- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java +++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.logging.v2.stub.samples; -// [START logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings] +// [START logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings_sync] import com.google.cloud.logging.v2.stub.MetricsServiceV2StubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void getLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSetti MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build(); } } -// [END logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings] +// [END logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java index 4f0337c9f9..acf21341de 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1] +// [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.cloud.pubsub.v1.SchemaServiceSettings; @@ -38,4 +38,4 @@ public static void createSchemaServiceSettings1() throws Exception { SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); } } -// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1] +// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java index 36eb26be62..7ac05408c7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2] +// [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.cloud.pubsub.v1.SchemaServiceSettings; import com.google.cloud.pubsub.v1.myEndpoint; @@ -35,4 +35,4 @@ public static void createSchemaServiceSettings2() throws Exception { SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); } } -// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2] +// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java index 2314e32f2c..f3a838f08b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest] +// [START pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.CreateSchemaRequest; @@ -45,4 +45,4 @@ public static void createSchemaCallableFutureCallCreateSchemaRequest() throws Ex } } } -// [END pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest] +// [END pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java index 429a56ab4e..91069f2bd7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest] +// [START pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.ProjectName; @@ -42,4 +42,4 @@ public static void createSchemaCreateSchemaRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest] +// [END pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java index 50c51b5100..66d5750c00 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring] +// [START pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -38,4 +38,4 @@ public static void createSchemaProjectNameSchemaString() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring] +// [END pubsub_v1_generated_schemaserviceclient_createschema_projectnameschemastring_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java index 7decc94cbd..f0f511a75f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring] +// [START pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -38,4 +38,4 @@ public static void createSchemaStringSchemaString() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring] +// [END pubsub_v1_generated_schemaserviceclient_createschema_stringschemastring_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java index 6e64c2ebc3..e675a5f551 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest] +// [START pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.protobuf.Empty; @@ -43,4 +43,4 @@ public static void deleteSchemaCallableFutureCallDeleteSchemaRequest() throws Ex } } } -// [END pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest] +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java index ab4f5fd082..861b367ff2 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest] +// [START pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteSchemaRequest; @@ -40,4 +40,4 @@ public static void deleteSchemaDeleteSchemaRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest] +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java index 76d5d8221d..cf965e0636 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname] +// [START pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SchemaName; @@ -36,4 +36,4 @@ public static void deleteSchemaSchemaName() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname] +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_schemaname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java index 9de5030abf..5b2994b180 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_deleteschema_string] +// [START pubsub_v1_generated_schemaserviceclient_deleteschema_string_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SchemaName; @@ -36,4 +36,4 @@ public static void deleteSchemaString() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_deleteschema_string] +// [END pubsub_v1_generated_schemaserviceclient_deleteschema_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 136b81a22b..12b81cc566 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.iam.v1.GetIamPolicyRequest; @@ -45,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 949b88d5ce..565b881005 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest] +// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -42,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest] +// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java index 0bf52cba89..2463cd738c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest] +// [START pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.GetSchemaRequest; @@ -45,4 +45,4 @@ public static void getSchemaCallableFutureCallGetSchemaRequest() throws Exceptio } } } -// [END pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest] +// [END pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java index bcbcff54fa..de78945a30 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest] +// [START pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.GetSchemaRequest; import com.google.pubsub.v1.Schema; @@ -42,4 +42,4 @@ public static void getSchemaGetSchemaRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest] +// [END pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java index 02e9fec16f..e62cfea66b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_getschema_schemaname] +// [START pubsub_v1_generated_schemaserviceclient_getschema_schemaname_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.SchemaName; @@ -36,4 +36,4 @@ public static void getSchemaSchemaName() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_getschema_schemaname] +// [END pubsub_v1_generated_schemaserviceclient_getschema_schemaname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java index 7d5a4eae1c..8d6a6bd3a7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_getschema_string] +// [START pubsub_v1_generated_schemaserviceclient_getschema_string_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.SchemaName; @@ -36,4 +36,4 @@ public static void getSchemaString() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_getschema_string] +// [END pubsub_v1_generated_schemaserviceclient_getschema_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java index 7f3ab6de35..ca41c9764b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest] +// [START pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.common.base.Strings; import com.google.pubsub.v1.ListSchemasRequest; @@ -57,4 +57,4 @@ public static void listSchemasCallableCallListSchemasRequest() throws Exception } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest] +// [END pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java index 97f56a6ea8..892e583ec1 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall] +// [START pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ProjectName; @@ -46,4 +46,4 @@ public static void listSchemasListSchemasRequestIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall] +// [END pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java index da0d64d629..dda21c43cb 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest] +// [START pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ListSchemasRequest; @@ -49,4 +49,4 @@ public static void listSchemasPagedCallableFutureCallListSchemasRequest() throws } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest] +// [END pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java index 2126a357f1..133c8fe04c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall] +// [START pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -38,4 +38,4 @@ public static void listSchemasProjectNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall] +// [END pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java index a296ce0144..0675a87814 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall] +// [START pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -38,4 +38,4 @@ public static void listSchemasStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall] +// [END pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index 36a0ae54d5..f687b8f38e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.iam.v1.Policy; @@ -44,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index e7ea97052e..738c3ef7da 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest] +// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -41,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest] +// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index e9aa6fb0b8..129d330d04 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; @@ -47,4 +47,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index 6ada7c6f7f..a02cc2be56 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest] +// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -42,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest] +// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java index a992bc074e..5da8aac038 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest] +// [START pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.protobuf.ByteString; @@ -48,4 +48,4 @@ public static void validateMessageCallableFutureCallValidateMessageRequest() thr } } } -// [END pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest] +// [END pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java index 01677ec433..a90514c352 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest] +// [START pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.protobuf.ByteString; import com.google.pubsub.v1.Encoding; @@ -44,4 +44,4 @@ public static void validateMessageValidateMessageRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest] +// [END pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java index 9f882ddf8e..9a487c8973 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest] +// [START pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; @@ -46,4 +46,4 @@ public static void validateSchemaCallableFutureCallValidateSchemaRequest() throw } } } -// [END pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest] +// [END pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java index 2e22c31e7b..dbd22eeeda 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema] +// [START pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -38,4 +38,4 @@ public static void validateSchemaProjectNameSchema() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema] +// [END pubsub_v1_generated_schemaserviceclient_validateschema_projectnameschema_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java index 5071bddf54..182e70ecdb 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_validateschema_stringschema] +// [START pubsub_v1_generated_schemaserviceclient_validateschema_stringschema_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -38,4 +38,4 @@ public static void validateSchemaStringSchema() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_validateschema_stringschema] +// [END pubsub_v1_generated_schemaserviceclient_validateschema_stringschema_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java index 42eb8556c2..5d2326c880 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest] +// [START pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest_sync] import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -42,4 +42,4 @@ public static void validateSchemaValidateSchemaRequest() throws Exception { } } } -// [END pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest] +// [END pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java index 8022a6ad5a..5c87f6152d 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings] +// [START pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings_sync] import com.google.cloud.pubsub.v1.SchemaServiceSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void createSchemaSettingsSetRetrySettingsSchemaServiceSettings() t SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); } } -// [END pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings] +// [END pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java index 725ab36c19..76821fe18c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.stub.samples; -// [START pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] +// [START pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings_sync] import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void createTopicSettingsSetRetrySettingsPublisherStubSettings() th PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build(); } } -// [END pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings] +// [END pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java index 8ce090c43f..54e09426d9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.stub.samples; -// [START pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings] +// [START pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings_sync] import com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void createSchemaSettingsSetRetrySettingsSchemaServiceStubSettings SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); } } -// [END pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings] +// [END pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java index 55a7508c2e..1eeedc3a29 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.stub.samples; -// [START pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings] +// [START pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings_sync] import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void createSubscriptionSettingsSetRetrySettingsSubscriberStubSetti SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build(); } } -// [END pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings] +// [END pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java index 7c6f833142..3c074fa7ea 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest] +// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.AcknowledgeRequest; @@ -42,4 +42,4 @@ public static void acknowledgeAcknowledgeRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest] +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java index a1173afc5c..081cd6aa8c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest] +// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; @@ -45,4 +45,4 @@ public static void acknowledgeCallableFutureCallAcknowledgeRequest() throws Exce } } } -// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest] +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java index 516b23f913..b6f21dddd9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring] +// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SubscriptionName; @@ -39,4 +39,4 @@ public static void acknowledgeStringListString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring] +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_stringliststring_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java index 0db42f9abf..a5b59b11a0 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring] +// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SubscriptionName; @@ -39,4 +39,4 @@ public static void acknowledgeSubscriptionNameListString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring] +// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_subscriptionnameliststring_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java index a45b505bfd..827bfb79c7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1] +// [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.cloud.pubsub.v1.SubscriptionAdminSettings; @@ -39,4 +39,4 @@ public static void createSubscriptionAdminSettings1() throws Exception { SubscriptionAdminClient.create(subscriptionAdminSettings); } } -// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1] +// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java index 4fd53d34df..be344c3edd 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2] +// [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.cloud.pubsub.v1.SubscriptionAdminSettings; import com.google.cloud.pubsub.v1.myEndpoint; @@ -36,4 +36,4 @@ public static void createSubscriptionAdminSettings2() throws Exception { SubscriptionAdminClient.create(subscriptionAdminSettings); } } -// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2] +// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java index e598c7e556..af41f6ede6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest] +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.CreateSnapshotRequest; @@ -48,4 +48,4 @@ public static void createSnapshotCallableFutureCallCreateSnapshotRequest() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest] +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java index 324a0effb2..2914fbdfe4 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest] +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.Snapshot; @@ -44,4 +44,4 @@ public static void createSnapshotCreateSnapshotRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest] +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java index e293ba91fe..497e7d4411 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring] +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.Snapshot; import com.google.pubsub.v1.SnapshotName; @@ -38,4 +38,4 @@ public static void createSnapshotSnapshotNameString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring] +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamestring_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java index a082431240..13eeac7884 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname] +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.Snapshot; import com.google.pubsub.v1.SnapshotName; @@ -38,4 +38,4 @@ public static void createSnapshotSnapshotNameSubscriptionName() throws Exception } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname] +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_snapshotnamesubscriptionname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java index e3a63eb615..ae2093081e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring] +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.Snapshot; import com.google.pubsub.v1.SnapshotName; @@ -38,4 +38,4 @@ public static void createSnapshotStringString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring] +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringstring_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java index 6b825e681c..0a52e39292 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname] +// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.Snapshot; import com.google.pubsub.v1.SnapshotName; @@ -38,4 +38,4 @@ public static void createSnapshotStringSubscriptionName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname] +// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_stringsubscriptionname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java index 3d03aace79..cf4005589b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription] +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Duration; @@ -64,4 +64,4 @@ public static void createSubscriptionCallableFutureCallSubscription() throws Exc } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription] +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java index 211590b918..2347446086 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint] +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PushConfig; import com.google.pubsub.v1.Subscription; @@ -42,4 +42,4 @@ public static void createSubscriptionStringStringPushConfigInt() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint] +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringstringpushconfigint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java index 3498007aa7..d71ce57802 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint] +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PushConfig; import com.google.pubsub.v1.Subscription; @@ -42,4 +42,4 @@ public static void createSubscriptionStringTopicNamePushConfigInt() throws Excep } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint] +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_stringtopicnamepushconfigint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java index 60688e3984..0a5ab6a142 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription] +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Duration; import com.google.pubsub.v1.DeadLetterPolicy; @@ -60,4 +60,4 @@ public static void createSubscriptionSubscription() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription] +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java index 189ee73712..ddff254443 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint] +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PushConfig; import com.google.pubsub.v1.Subscription; @@ -42,4 +42,4 @@ public static void createSubscriptionSubscriptionNameStringPushConfigInt() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint] +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnamestringpushconfigint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java index 08e072dce7..529bedcbdf 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint] +// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PushConfig; import com.google.pubsub.v1.Subscription; @@ -42,4 +42,4 @@ public static void createSubscriptionSubscriptionNameTopicNamePushConfigInt() th } } } -// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint] +// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscriptionnametopicnamepushconfigint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java index 34a6fe9e35..23fe6ac7e9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest] +// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; @@ -44,4 +44,4 @@ public static void deleteSnapshotCallableFutureCallDeleteSnapshotRequest() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest] +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java index 0bc1bf92e9..cc5f39878b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest] +// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteSnapshotRequest; @@ -40,4 +40,4 @@ public static void deleteSnapshotDeleteSnapshotRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest] +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java index 838e7a6a22..0622e7b1f1 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname] +// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SnapshotName; @@ -36,4 +36,4 @@ public static void deleteSnapshotSnapshotName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname] +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_snapshotname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java index 1ea328dfc8..9ae96cabdf 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string] +// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SnapshotName; @@ -36,4 +36,4 @@ public static void deleteSnapshotString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string] +// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java index 47762d5ece..0c78b079ba 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest] +// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; @@ -45,4 +45,4 @@ public static void deleteSubscriptionCallableFutureCallDeleteSubscriptionRequest } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest] +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java index 564d9f2857..54424ffa84 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest] +// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteSubscriptionRequest; @@ -40,4 +40,4 @@ public static void deleteSubscriptionDeleteSubscriptionRequest() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest] +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java index f500e9c9d0..a9d67eff3c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_string] +// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_string_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SubscriptionName; @@ -36,4 +36,4 @@ public static void deleteSubscriptionString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_string] +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java index 38ee7ccdd6..b573672245 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname] +// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SubscriptionName; @@ -36,4 +36,4 @@ public static void deleteSubscriptionSubscriptionName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname] +// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_subscriptionname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 57963ae29f..cdef531cda 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.iam.v1.GetIamPolicyRequest; @@ -45,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 507c5076b4..008dc7b1ff 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest] +// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -42,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest] +// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java index 452f8c7904..f44ec4cc0b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest] +// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.GetSnapshotRequest; @@ -44,4 +44,4 @@ public static void getSnapshotCallableFutureCallGetSnapshotRequest() throws Exce } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest] +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java index 89e1a65dea..9a5ab80591 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest] +// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.Snapshot; @@ -40,4 +40,4 @@ public static void getSnapshotGetSnapshotRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest] +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java index 88949e99da..0e032459f3 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname] +// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.Snapshot; import com.google.pubsub.v1.SnapshotName; @@ -36,4 +36,4 @@ public static void getSnapshotSnapshotName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname] +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_snapshotname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java index 0d631d8f0f..3fe154061c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_string] +// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_string_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.Snapshot; import com.google.pubsub.v1.SnapshotName; @@ -36,4 +36,4 @@ public static void getSnapshotString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_string] +// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java index 7ce072a5c0..24a2cb7dd2 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest] +// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.GetSubscriptionRequest; @@ -44,4 +44,4 @@ public static void getSubscriptionCallableFutureCallGetSubscriptionRequest() thr } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest] +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java index 6dc258bab6..eaae3cec23 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest] +// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.Subscription; @@ -40,4 +40,4 @@ public static void getSubscriptionGetSubscriptionRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest] +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java index b368535d2b..4dbec002c4 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_string] +// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_string_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.Subscription; import com.google.pubsub.v1.SubscriptionName; @@ -36,4 +36,4 @@ public static void getSubscriptionString() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_string] +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java index 066e22ba2b..009c3d848f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname] +// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.Subscription; import com.google.pubsub.v1.SubscriptionName; @@ -36,4 +36,4 @@ public static void getSubscriptionSubscriptionName() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname] +// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_subscriptionname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java index 162491629e..e0505780b1 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest] +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.common.base.Strings; import com.google.pubsub.v1.ListSnapshotsRequest; @@ -56,4 +56,4 @@ public static void listSnapshotsCallableCallListSnapshotsRequest() throws Except } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest] +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java index 623c5c2524..7f2367e848 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall] +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.ListSnapshotsRequest; import com.google.pubsub.v1.ProjectName; @@ -44,4 +44,4 @@ public static void listSnapshotsListSnapshotsRequestIterateAll() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall] +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java index 1fb2a5d6f5..580371965e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest] +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.ListSnapshotsRequest; @@ -48,4 +48,4 @@ public static void listSnapshotsPagedCallableFutureCallListSnapshotsRequest() th } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest] +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java index c3f885703f..c6666b694d 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall] +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Snapshot; @@ -38,4 +38,4 @@ public static void listSnapshotsProjectNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall] +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java index ccd5fb48fa..4e8dc163c6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall] +// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Snapshot; @@ -38,4 +38,4 @@ public static void listSnapshotsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall] +// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java index 3085e8ceb9..11af8a0b47 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest] +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.common.base.Strings; import com.google.pubsub.v1.ListSubscriptionsRequest; @@ -56,4 +56,4 @@ public static void listSubscriptionsCallableCallListSubscriptionsRequest() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest] +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java index 1c0a8d3184..1badfcb4c9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall] +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.ListSubscriptionsRequest; import com.google.pubsub.v1.ProjectName; @@ -44,4 +44,4 @@ public static void listSubscriptionsListSubscriptionsRequestIterateAll() throws } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall] +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java index 776da81c42..0529d00d75 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest] +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.ListSubscriptionsRequest; @@ -49,4 +49,4 @@ public static void listSubscriptionsPagedCallableFutureCallListSubscriptionsRequ } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest] +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java index 6d33de622f..50494e86cd 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall] +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Subscription; @@ -38,4 +38,4 @@ public static void listSubscriptionsProjectNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall] +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java index df45750ffb..42b6900d44 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall] +// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Subscription; @@ -38,4 +38,4 @@ public static void listSubscriptionsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall] +// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java index 7ab8218a0c..f920b40e97 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest] +// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; @@ -48,4 +48,4 @@ public static void modifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest() } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest] +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java index 7fd47c0038..aa8c22cba0 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest] +// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.ModifyAckDeadlineRequest; @@ -43,4 +43,4 @@ public static void modifyAckDeadlineModifyAckDeadlineRequest() throws Exception } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest] +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java index 24c9406829..6d727d1301 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint] +// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SubscriptionName; @@ -40,4 +40,4 @@ public static void modifyAckDeadlineStringListStringInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint] +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_stringliststringint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java index 6cf53b1692..7539875fb8 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint] +// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.SubscriptionName; @@ -40,4 +40,4 @@ public static void modifyAckDeadlineSubscriptionNameListStringInt() throws Excep } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint] +// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_subscriptionnameliststringint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java index a425a93c64..fd012d3ad4 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest] +// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; @@ -46,4 +46,4 @@ public static void modifyPushConfigCallableFutureCallModifyPushConfigRequest() t } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest] +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java index f81b006790..271afc9b8f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest] +// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.ModifyPushConfigRequest; @@ -42,4 +42,4 @@ public static void modifyPushConfigModifyPushConfigRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest] +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java index baba9dfaa8..0af2d2f8b1 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig] +// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.PushConfig; @@ -38,4 +38,4 @@ public static void modifyPushConfigStringPushConfig() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig] +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_stringpushconfig_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java index 1d69c54902..9759c3e34a 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig] +// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.PushConfig; @@ -38,4 +38,4 @@ public static void modifyPushConfigSubscriptionNamePushConfig() throws Exception } } } -// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig] +// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_subscriptionnamepushconfig_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java index 565fbde781..59983df33b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest] +// [START pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PullRequest; @@ -45,4 +45,4 @@ public static void pullCallableFutureCallPullRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest] +// [END pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java index ec96a00b94..24350af912 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_pull_pullrequest] +// [START pubsub_v1_generated_subscriptionadminclient_pull_pullrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PullRequest; import com.google.pubsub.v1.PullResponse; @@ -42,4 +42,4 @@ public static void pullPullRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_pullrequest] +// [END pubsub_v1_generated_subscriptionadminclient_pull_pullrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java index 18db73877c..62c3d3f2dc 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint] +// [START pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.SubscriptionName; @@ -39,4 +39,4 @@ public static void pullStringBooleanInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint] +// [END pubsub_v1_generated_subscriptionadminclient_pull_stringbooleanint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java index c73f852a66..51f159b7ef 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_pull_stringint] +// [START pubsub_v1_generated_subscriptionadminclient_pull_stringint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.SubscriptionName; @@ -37,4 +37,4 @@ public static void pullStringInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_stringint] +// [END pubsub_v1_generated_subscriptionadminclient_pull_stringint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java index b83a2119a7..3e1c095950 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint] +// [START pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.SubscriptionName; @@ -39,4 +39,4 @@ public static void pullSubscriptionNameBooleanInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint] +// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnamebooleanint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java index 47f9d42aef..8266b30bca 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint] +// [START pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.SubscriptionName; @@ -37,4 +37,4 @@ public static void pullSubscriptionNameInt() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint] +// [END pubsub_v1_generated_subscriptionadminclient_pull_subscriptionnameint_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java index fd0cfecba8..38907dccf9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest] +// [START pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.SeekRequest; @@ -43,4 +43,4 @@ public static void seekCallableFutureCallSeekRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest] +// [END pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java index 3a9ebc1830..86bf6d1005 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_seek_seekrequest] +// [START pubsub_v1_generated_subscriptionadminclient_seek_seekrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.SeekRequest; import com.google.pubsub.v1.SeekResponse; @@ -40,4 +40,4 @@ public static void seekSeekRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_seek_seekrequest] +// [END pubsub_v1_generated_subscriptionadminclient_seek_seekrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index fba0b68a3c..f56da0abd1 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.iam.v1.Policy; @@ -44,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index d3dc22d507..3fe8369fe4 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest] +// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -41,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest] +// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java index cf951e0aa5..fe85e59fc7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest] +// [START pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest_sync] import com.google.api.gax.rpc.BidiStream; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.StreamingPullRequest; @@ -54,4 +54,4 @@ public static void streamingPullCallableCallStreamingPullRequest() throws Except } } } -// [END pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest] +// [END pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index b67d0708c9..eda2eb3751 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.iam.v1.TestIamPermissionsRequest; @@ -47,4 +47,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index b73ff0820a..4030b289c4 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest] +// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -42,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest] +// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java index d64346b7cc..27ad17b770 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest] +// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.FieldMask; @@ -45,4 +45,4 @@ public static void updateSnapshotCallableFutureCallUpdateSnapshotRequest() throw } } } -// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest] +// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java index edc943ba85..dac3dd024c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest] +// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.FieldMask; import com.google.pubsub.v1.Snapshot; @@ -41,4 +41,4 @@ public static void updateSnapshotUpdateSnapshotRequest() throws Exception { } } } -// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest] +// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java index 803e32d8f7..0fcf5d293e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest] +// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.FieldMask; @@ -46,4 +46,4 @@ public static void updateSubscriptionCallableFutureCallUpdateSubscriptionRequest } } } -// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest] +// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java index dcca3b3abd..b52f77f9ec 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest] +// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.protobuf.FieldMask; import com.google.pubsub.v1.Subscription; @@ -41,4 +41,4 @@ public static void updateSubscriptionUpdateSubscriptionRequest() throws Exceptio } } } -// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest] +// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java index ffcec0fa1b..d94c6a1f6c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings] +// [START pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings_sync] import com.google.cloud.pubsub.v1.SubscriptionAdminSettings; import java.time.Duration; @@ -44,4 +44,4 @@ public static void createSubscriptionSettingsSetRetrySettingsSubscriptionAdminSe SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build(); } } -// [END pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings] +// [END pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java index 482e545c4c..ff3140b612 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_create_topicadminsettings1] +// [START pubsub_v1_generated_topicadminclient_create_topicadminsettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.cloud.pubsub.v1.TopicAdminSettings; @@ -38,4 +38,4 @@ public static void createTopicAdminSettings1() throws Exception { TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); } } -// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings1] +// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings1_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java index 6390b7d45a..6418bdb2b7 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_create_topicadminsettings2] +// [START pubsub_v1_generated_topicadminclient_create_topicadminsettings2_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.cloud.pubsub.v1.TopicAdminSettings; import com.google.cloud.pubsub.v1.myEndpoint; @@ -35,4 +35,4 @@ public static void createTopicAdminSettings2() throws Exception { TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); } } -// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings2] +// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings2_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java index b2aec3f52c..d0c567aac5 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic] +// [START pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.protobuf.Duration; @@ -52,4 +52,4 @@ public static void createTopicCallableFutureCallTopic() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic] +// [END pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java index 7d7a3a53fa..48f1f57c50 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_createtopic_string] +// [START pubsub_v1_generated_topicadminclient_createtopic_string_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; @@ -36,4 +36,4 @@ public static void createTopicString() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_createtopic_string] +// [END pubsub_v1_generated_topicadminclient_createtopic_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java index a210933060..507cd9e032 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_createtopic_topic] +// [START pubsub_v1_generated_topicadminclient_createtopic_topic_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.protobuf.Duration; import com.google.pubsub.v1.MessageStoragePolicy; @@ -49,4 +49,4 @@ public static void createTopicTopic() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_createtopic_topic] +// [END pubsub_v1_generated_topicadminclient_createtopic_topic_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java index 97f97b14d4..c8cd15ced2 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_createtopic_topicname] +// [START pubsub_v1_generated_topicadminclient_createtopic_topicname_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; @@ -36,4 +36,4 @@ public static void createTopicTopicName() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_createtopic_topicname] +// [END pubsub_v1_generated_topicadminclient_createtopic_topicname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java index c95f68ac1d..c946546bf5 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest] +// [START pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.protobuf.Empty; @@ -43,4 +43,4 @@ public static void deleteTopicCallableFutureCallDeleteTopicRequest() throws Exce } } } -// [END pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest] +// [END pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java index 508a6d7316..c8a0514bd9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest] +// [START pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; @@ -40,4 +40,4 @@ public static void deleteTopicDeleteTopicRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest] +// [END pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java index eb822a2cb7..ba3cabff78 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_deletetopic_string] +// [START pubsub_v1_generated_topicadminclient_deletetopic_string_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.TopicName; @@ -36,4 +36,4 @@ public static void deleteTopicString() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_deletetopic_string] +// [END pubsub_v1_generated_topicadminclient_deletetopic_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java index 2302520f6c..1dde0e3d3a 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_deletetopic_topicname] +// [START pubsub_v1_generated_topicadminclient_deletetopic_topicname_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.protobuf.Empty; import com.google.pubsub.v1.TopicName; @@ -36,4 +36,4 @@ public static void deleteTopicTopicName() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_deletetopic_topicname] +// [END pubsub_v1_generated_topicadminclient_deletetopic_topicname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java index 13bda08de1..8fd3697460 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest] +// [START pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.DetachSubscriptionRequest; @@ -45,4 +45,4 @@ public static void detachSubscriptionCallableFutureCallDetachSubscriptionRequest } } } -// [END pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest] +// [END pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java index f4a35d0e06..4ca3689969 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest] +// [START pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; @@ -40,4 +40,4 @@ public static void detachSubscriptionDetachSubscriptionRequest() throws Exceptio } } } -// [END pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest] +// [END pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 605d9c633a..1b8dd96aa3 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [START pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.iam.v1.GetIamPolicyRequest; @@ -45,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [END pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index 77ef1dd3c9..5ed710a208 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest] +// [START pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -42,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest] +// [END pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java index 9cb3a172bc..cdc6141e94 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest] +// [START pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.GetTopicRequest; @@ -43,4 +43,4 @@ public static void getTopicCallableFutureCallGetTopicRequest() throws Exception } } } -// [END pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest] +// [END pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java index 3e825894f6..bec8102954 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest] +// [START pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.Topic; @@ -40,4 +40,4 @@ public static void getTopicGetTopicRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest] +// [END pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java index 8283fed27e..5ab51b9f47 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_gettopic_string] +// [START pubsub_v1_generated_topicadminclient_gettopic_string_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; @@ -36,4 +36,4 @@ public static void getTopicString() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_gettopic_string] +// [END pubsub_v1_generated_topicadminclient_gettopic_string_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java index 4df18cb61b..970754c21c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_gettopic_topicname] +// [START pubsub_v1_generated_topicadminclient_gettopic_topicname_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; @@ -36,4 +36,4 @@ public static void getTopicTopicName() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_gettopic_topicname] +// [END pubsub_v1_generated_topicadminclient_gettopic_topicname_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java index d0e579b941..602f014051 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest] +// [START pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.common.base.Strings; import com.google.pubsub.v1.ListTopicsRequest; @@ -55,4 +55,4 @@ public static void listTopicsCallableCallListTopicsRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest] +// [END pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java index a68e55df2f..f61e53a3a9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.ListTopicsRequest; import com.google.pubsub.v1.ProjectName; @@ -44,4 +44,4 @@ public static void listTopicsListTopicsRequestIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java index d74f640f56..9a9c6302bb 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest] +// [START pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.ListTopicsRequest; @@ -47,4 +47,4 @@ public static void listTopicsPagedCallableFutureCallListTopicsRequest() throws E } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest] +// [END pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java index dd62a1262b..94d983c1cf 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Topic; @@ -38,4 +38,4 @@ public static void listTopicsProjectNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java index f2212b7d41..45f160e20c 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopics_stringiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopics_stringiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Topic; @@ -38,4 +38,4 @@ public static void listTopicsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopics_stringiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopics_stringiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java index 72811f3286..04d60137d0 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest] +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.common.base.Strings; import com.google.pubsub.v1.ListTopicSnapshotsRequest; @@ -55,4 +55,4 @@ public static void listTopicSnapshotsCallableCallListTopicSnapshotsRequest() thr } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest] +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java index c0f9afeb48..d9b44c6e35 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.TopicName; @@ -43,4 +43,4 @@ public static void listTopicSnapshotsListTopicSnapshotsRequestIterateAll() throw } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java index 12d14acade..a728e93d67 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest] +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.ListTopicSnapshotsRequest; @@ -48,4 +48,4 @@ public static void listTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRe } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest] +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java index 4374008b85..ab6085d90b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.TopicName; @@ -37,4 +37,4 @@ public static void listTopicSnapshotsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java index aa6a72659b..d710cf121b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.TopicName; @@ -37,4 +37,4 @@ public static void listTopicSnapshotsTopicNameIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java index 7244916ba6..9c128e47ac 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest] +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.common.base.Strings; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; @@ -56,4 +56,4 @@ public static void listTopicSubscriptionsCallableCallListTopicSubscriptionsReque } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest] +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java index 3475e43e7c..0dad058052 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; import com.google.pubsub.v1.TopicName; @@ -44,4 +44,4 @@ public static void listTopicSubscriptionsListTopicSubscriptionsRequestIterateAll } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java index d9bfb2d629..6d4218fe9e 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest] +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; @@ -48,4 +48,4 @@ public static void listTopicSubscriptionsPagedCallableFutureCallListTopicSubscri } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest] +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java index 10044450a7..b3f33cbf3b 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.TopicName; @@ -37,4 +37,4 @@ public static void listTopicSubscriptionsStringIterateAll() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java index 79e7f1bdfe..8eb95659ba 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall] +// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.TopicName; @@ -37,4 +37,4 @@ public static void listTopicSubscriptionsTopicNameIterateAll() throws Exception } } } -// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall] +// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java index cfb45d6c7f..918bef15ae 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest] +// [START pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.PublishRequest; @@ -46,4 +46,4 @@ public static void publishCallableFutureCallPublishRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest] +// [END pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java index 54a101749f..1944487eb6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_publish_publishrequest] +// [START pubsub_v1_generated_topicadminclient_publish_publishrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; @@ -43,4 +43,4 @@ public static void publishPublishRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_publish_publishrequest] +// [END pubsub_v1_generated_topicadminclient_publish_publishrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java index a421ecc80c..3ffcfa7ec6 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage] +// [START pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; @@ -40,4 +40,4 @@ public static void publishStringListPubsubMessage() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage] +// [END pubsub_v1_generated_topicadminclient_publish_stringlistpubsubmessage_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java index 5b3b017162..2781bf26c8 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage] +// [START pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; @@ -40,4 +40,4 @@ public static void publishTopicNameListPubsubMessage() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage] +// [END pubsub_v1_generated_topicadminclient_publish_topicnamelistpubsubmessage_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index 600590d72c..9c8de3009a 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [START pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.iam.v1.Policy; @@ -44,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [END pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index 5944a91d10..9ee4cbadfb 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest] +// [START pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -41,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest] +// [END pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index 4a5ba85737..3592876f47 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [START pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.iam.v1.TestIamPermissionsRequest; @@ -47,4 +47,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [END pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index 19f54f8ff7..c7eac2cfe9 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest] +// [START pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -42,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest] +// [END pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java index 84002bd103..42c561735d 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest] +// [START pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.protobuf.FieldMask; @@ -44,4 +44,4 @@ public static void updateTopicCallableFutureCallUpdateTopicRequest() throws Exce } } } -// [END pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest] +// [END pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java index 9601f48339..4671203186 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest] +// [START pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest_sync] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.protobuf.FieldMask; import com.google.pubsub.v1.Topic; @@ -41,4 +41,4 @@ public static void updateTopicUpdateTopicRequest() throws Exception { } } } -// [END pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest] +// [END pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest_sync] diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java index 4dc41960e6..9e7112458f 100644 --- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java +++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.pubsub.v1.samples; -// [START pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings] +// [START pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings_sync] import com.google.cloud.pubsub.v1.TopicAdminSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void createTopicSettingsSetRetrySettingsTopicAdminSettings() throw TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build(); } } -// [END pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings] +// [END pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java index 7e7624144f..e981627dcd 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1] +// [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.CloudRedisSettings; @@ -38,4 +38,4 @@ public static void createCloudRedisSettings1() throws Exception { CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); } } -// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1] +// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java index f2be6a94eb..9dbd82682a 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2] +// [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.CloudRedisSettings; import com.google.cloud.redis.v1beta1.myEndpoint; @@ -35,4 +35,4 @@ public static void createCloudRedisSettings2() throws Exception { CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); } } -// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2] +// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java index e929fd8629..139d0d56cc 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget] +// [START redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.CreateInstanceRequest; import com.google.cloud.redis.v1beta1.Instance; @@ -42,4 +42,4 @@ public static void createInstanceAsyncCreateInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget] +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java index a4fdae9c15..66c30b6bc8 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget] +// [START redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.LocationName; @@ -38,4 +38,4 @@ public static void createInstanceAsyncLocationNameStringInstanceGet() throws Exc } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget] +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java index 623cca419e..5a2f78bff4 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget] +// [START redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.LocationName; @@ -38,4 +38,4 @@ public static void createInstanceAsyncStringStringInstanceGet() throws Exception } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget] +// [END redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java index 07d4d3ec65..9b4a6e648d 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.CreateInstanceRequest; @@ -46,4 +46,4 @@ public static void createInstanceCallableFutureCallCreateInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java index a1c0d6c502..dbcf6350ee 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.CreateInstanceRequest; @@ -48,4 +48,4 @@ public static void createInstanceOperationCallableFutureCallCreateInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java index 488833c6e5..1119062f79 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget] +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.DeleteInstanceRequest; import com.google.cloud.redis.v1beta1.InstanceName; @@ -40,4 +40,4 @@ public static void deleteInstanceAsyncDeleteInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget] +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java index e2297f9959..f16b0d2b3f 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget] +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.InstanceName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteInstanceAsyncInstanceNameGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget] +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java index bb32db4e7f..4b5916b104 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget] +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.InstanceName; import com.google.protobuf.Empty; @@ -36,4 +36,4 @@ public static void deleteInstanceAsyncStringGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget] +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java index a83cf69130..0da9b1fb7a 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.DeleteInstanceRequest; @@ -43,4 +43,4 @@ public static void deleteInstanceCallableFutureCallDeleteInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java index 53120a3d75..aef472e9e9 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.DeleteInstanceRequest; @@ -46,4 +46,4 @@ public static void deleteInstanceOperationCallableFutureCallDeleteInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java index bf83385029..9db2185f30 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget] +// [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.ExportInstanceRequest; import com.google.cloud.redis.v1beta1.Instance; @@ -41,4 +41,4 @@ public static void exportInstanceAsyncExportInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget] +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java index e984a80b15..f83cae133c 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget] +// [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.OutputConfig; @@ -37,4 +37,4 @@ public static void exportInstanceAsyncStringOutputConfigGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget] +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java index d660dfa031..fc45de2b5c 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.ExportInstanceRequest; @@ -44,4 +44,4 @@ public static void exportInstanceCallableFutureCallExportInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java index 2940b7a054..84c2380ee6 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.ExportInstanceRequest; @@ -47,4 +47,4 @@ public static void exportInstanceOperationCallableFutureCallExportInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java index d06b0edc2a..576df6e67d 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget] +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; import com.google.cloud.redis.v1beta1.Instance; @@ -40,4 +40,4 @@ public static void failoverInstanceAsyncFailoverInstanceRequestGet() throws Exce } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget] +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java index 6545013c76..1abdb9ea10 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget] +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; import com.google.cloud.redis.v1beta1.Instance; @@ -40,4 +40,4 @@ public static void failoverInstanceAsyncInstanceNameFailoverInstanceRequestDataP } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget] +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java index e78477764a..403b274c84 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget] +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; import com.google.cloud.redis.v1beta1.Instance; @@ -40,4 +40,4 @@ public static void failoverInstanceAsyncStringFailoverInstanceRequestDataProtect } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget] +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java index 9daebd5aa3..4dca72048d 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; @@ -43,4 +43,4 @@ public static void failoverInstanceCallableFutureCallFailoverInstanceRequest() t } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java index 9e8a81b442..cf697f1197 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.FailoverInstanceRequest; @@ -46,4 +46,4 @@ public static void failoverInstanceOperationCallableFutureCallFailoverInstanceRe } } } -// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java index b0d88b4d2a..ca4e5dd4ed 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.GetInstanceRequest; @@ -43,4 +43,4 @@ public static void getInstanceCallableFutureCallGetInstanceRequest() throws Exce } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java index abffe7d1d4..58458fb98b 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.GetInstanceRequest; import com.google.cloud.redis.v1beta1.Instance; @@ -40,4 +40,4 @@ public static void getInstanceGetInstanceRequest() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java index 2fa22f0e52..0ed87e3d44 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_getinstance_instancename] +// [START redis_v1beta1_generated_cloudredisclient_getinstance_instancename_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.InstanceName; @@ -36,4 +36,4 @@ public static void getInstanceInstanceName() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstance_instancename] +// [END redis_v1beta1_generated_cloudredisclient_getinstance_instancename_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java index 4423d3be06..fb16a408f7 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_getinstance_string] +// [START redis_v1beta1_generated_cloudredisclient_getinstance_string_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.InstanceName; @@ -36,4 +36,4 @@ public static void getInstanceString() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstance_string] +// [END redis_v1beta1_generated_cloudredisclient_getinstance_string_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java index 77d2bfc525..bf5cd08f1d 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest] +// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest; @@ -45,4 +45,4 @@ public static void getInstanceAuthStringCallableFutureCallGetInstanceAuthStringR } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest] +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java index 435c90bf69..07561ba960 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest] +// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest; import com.google.cloud.redis.v1beta1.InstanceAuthString; @@ -40,4 +40,4 @@ public static void getInstanceAuthStringGetInstanceAuthStringRequest() throws Ex } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest] +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java index ade4696711..1dd591ac75 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename] +// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.InstanceAuthString; import com.google.cloud.redis.v1beta1.InstanceName; @@ -36,4 +36,4 @@ public static void getInstanceAuthStringInstanceName() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename] +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_instancename_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java index 80197fe300..e821ea4f9d 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string] +// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.InstanceAuthString; import com.google.cloud.redis.v1beta1.InstanceName; @@ -36,4 +36,4 @@ public static void getInstanceAuthStringString() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string] +// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_string_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java index e88a2b023e..6c8d614e2c 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget] +// [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.ImportInstanceRequest; import com.google.cloud.redis.v1beta1.InputConfig; @@ -41,4 +41,4 @@ public static void importInstanceAsyncImportInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget] +// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java index 736bf101c2..44543267ce 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget] +// [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.InputConfig; import com.google.cloud.redis.v1beta1.Instance; @@ -37,4 +37,4 @@ public static void importInstanceAsyncStringInputConfigGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget] +// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java index 813ec005e1..1c51338b26 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.ImportInstanceRequest; @@ -44,4 +44,4 @@ public static void importInstanceCallableFutureCallImportInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java index 0c70605dee..68620ecc29 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.ImportInstanceRequest; @@ -47,4 +47,4 @@ public static void importInstanceOperationCallableFutureCallImportInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java index b4e793b07b..e46b7e3b69 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest] +// [START redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.ListInstancesRequest; @@ -55,4 +55,4 @@ public static void listInstancesCallableCallListInstancesRequest() throws Except } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest] +// [END redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java index 22762b2aa8..7ea68ff126 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall] +// [START redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.ListInstancesRequest; @@ -44,4 +44,4 @@ public static void listInstancesListInstancesRequestIterateAll() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall] +// [END redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java index c962b0a8d5..34963fa9f8 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall] +// [START redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.LocationName; @@ -38,4 +38,4 @@ public static void listInstancesLocationNameIterateAll() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall] +// [END redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java index 392e8fe540..e2494a6cc9 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest] +// [START redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; @@ -48,4 +48,4 @@ public static void listInstancesPagedCallableFutureCallListInstancesRequest() th } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest] +// [END redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java index 2c77c5f7cd..e595dd3c81 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall] +// [START redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.LocationName; @@ -38,4 +38,4 @@ public static void listInstancesStringIterateAll() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall] +// [END redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java index 13fc22bc14..2634f0d10e 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget] +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.InstanceName; @@ -45,4 +45,4 @@ public static void main(String[] args) throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget] +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java index 8e4fb75929..a23e989949 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget] +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.InstanceName; @@ -42,4 +42,4 @@ public static void rescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet() t } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget] +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java index 3893baf925..67ca1f540c 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget] +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.InstanceName; @@ -45,4 +45,4 @@ public static void main(String[] args) throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget] +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java index 066d6ddb8c..20e05d3419 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest] +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.InstanceName; @@ -47,4 +47,4 @@ public static void rescheduleMaintenanceCallableFutureCallRescheduleMaintenanceR } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest] +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java index 79d94071e2..b0cdced39a 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest] +// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; @@ -48,4 +48,4 @@ public static void rescheduleMaintenanceOperationCallableFutureCallRescheduleMai } } } -// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest] +// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java index ed3719b971..22ae881539 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget] +// [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.protobuf.FieldMask; @@ -37,4 +37,4 @@ public static void updateInstanceAsyncFieldMaskInstanceGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget] +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java index dedd733363..254ebc5d8a 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget] +// [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.UpdateInstanceRequest; @@ -41,4 +41,4 @@ public static void updateInstanceAsyncUpdateInstanceRequestGet() throws Exceptio } } } -// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget] +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java index b920d7631f..af12196f0d 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; @@ -45,4 +45,4 @@ public static void updateInstanceCallableFutureCallUpdateInstanceRequest() throw } } } -// [END redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java index acf8989d03..d100b8e74e 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; @@ -47,4 +47,4 @@ public static void updateInstanceOperationCallableFutureCallUpdateInstanceReques } } } -// [END redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java index 63c80c0bb8..2b640bc927 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget] +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.InstanceName; @@ -37,4 +37,4 @@ public static void upgradeInstanceAsyncInstanceNameStringGet() throws Exception } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget] +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java index c7af623806..0c41c14024 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget] +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.InstanceName; @@ -37,4 +37,4 @@ public static void upgradeInstanceAsyncStringStringGet() throws Exception { } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget] +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java index 7d89f633c6..0aaec38b4e 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget] +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget_sync] import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; import com.google.cloud.redis.v1beta1.InstanceName; @@ -41,4 +41,4 @@ public static void upgradeInstanceAsyncUpgradeInstanceRequestGet() throws Except } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget] +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java index 9c4d708fc0..4c7e301d7a 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest_sync] import com.google.api.core.ApiFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.InstanceName; @@ -44,4 +44,4 @@ public static void upgradeInstanceCallableFutureCallUpgradeInstanceRequest() thr } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java index 679d847334..fff1f5ce5b 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest] +// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest_sync] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.redis.v1beta1.CloudRedisClient; import com.google.cloud.redis.v1beta1.Instance; @@ -47,4 +47,4 @@ public static void upgradeInstanceOperationCallableFutureCallUpgradeInstanceRequ } } } -// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest] +// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java index 7da220b4ae..40f28c9c06 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.samples; -// [START redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings] +// [START redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings_sync] import com.google.cloud.redis.v1beta1.CloudRedisSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void getInstanceSettingsSetRetrySettingsCloudRedisSettings() throw CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); } } -// [END redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings] +// [END redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings_sync] diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java index 26929a7945..516728c056 100644 --- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java +++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.cloud.redis.v1beta1.stub.samples; -// [START redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings] +// [START redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings_sync] import com.google.cloud.redis.v1beta1.stub.CloudRedisStubSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void getInstanceSettingsSetRetrySettingsCloudRedisStubSettings() t CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); } } -// [END redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings] +// [END redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java index 43690bd61b..a889160b08 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest] +// [START storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; @@ -56,4 +56,4 @@ public static void composeObjectCallableFutureCallComposeObjectRequest() throws } } } -// [END storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest] +// [END storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java index 35bc8fd75c..dbf77e1a66 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_composeobject_composeobjectrequest] +// [START storage_v2_generated_storageclient_composeobject_composeobjectrequest_sync] import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.ComposeObjectRequest; @@ -53,4 +53,4 @@ public static void composeObjectComposeObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_composeobject_composeobjectrequest] +// [END storage_v2_generated_storageclient_composeobject_composeobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java index 1be74b9483..bccbb92eea 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_create_storagesettings1] +// [START storage_v2_generated_storageclient_create_storagesettings1_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.storage.v2.StorageClient; import com.google.storage.v2.StorageSettings; @@ -38,4 +38,4 @@ public static void createStorageSettings1() throws Exception { StorageClient storageClient = StorageClient.create(storageSettings); } } -// [END storage_v2_generated_storageclient_create_storagesettings1] +// [END storage_v2_generated_storageclient_create_storagesettings1_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java index 1bacd7f056..d65b4cf90a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_create_storagesettings2] +// [START storage_v2_generated_storageclient_create_storagesettings2_sync] import com.google.storage.v2.StorageClient; import com.google.storage.v2.StorageSettings; import com.google.storage.v2.myEndpoint; @@ -34,4 +34,4 @@ public static void createStorageSettings2() throws Exception { StorageClient storageClient = StorageClient.create(storageSettings); } } -// [END storage_v2_generated_storageclient_create_storagesettings2] +// [END storage_v2_generated_storageclient_create_storagesettings2_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java index cbd761d2ef..bae755a1f5 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest] +// [START storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.Bucket; import com.google.storage.v2.CreateBucketRequest; @@ -49,4 +49,4 @@ public static void createBucketCallableFutureCallCreateBucketRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest] +// [END storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java index bf1578f5cb..ed5f49969c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createbucket_createbucketrequest] +// [START storage_v2_generated_storageclient_createbucket_createbucketrequest_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.CreateBucketRequest; import com.google.storage.v2.PredefinedBucketAcl; @@ -46,4 +46,4 @@ public static void createBucketCreateBucketRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_createbucket_createbucketrequest] +// [END storage_v2_generated_storageclient_createbucket_createbucketrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java index 680bc039fd..cd5aabb34b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createbucket_projectnamebucketstring] +// [START storage_v2_generated_storageclient_createbucket_projectnamebucketstring_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void createBucketProjectNameBucketString() throws Exception { } } } -// [END storage_v2_generated_storageclient_createbucket_projectnamebucketstring] +// [END storage_v2_generated_storageclient_createbucket_projectnamebucketstring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java index 2ee8717ae6..dabaf6018f 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createbucket_stringbucketstring] +// [START storage_v2_generated_storageclient_createbucket_stringbucketstring_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void createBucketStringBucketString() throws Exception { } } } -// [END storage_v2_generated_storageclient_createbucket_stringbucketstring] +// [END storage_v2_generated_storageclient_createbucket_stringbucketstring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java index 9ac9bfa4b2..39259de200 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest] +// [START storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.CreateHmacKeyRequest; @@ -47,4 +47,4 @@ public static void createHmacKeyCallableFutureCallCreateHmacKeyRequest() throws } } } -// [END storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest] +// [END storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java index 9974de6081..09e672ce20 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createhmackey_createhmackeyrequest] +// [START storage_v2_generated_storageclient_createhmackey_createhmackeyrequest_sync] import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.CreateHmacKeyRequest; import com.google.storage.v2.CreateHmacKeyResponse; @@ -43,4 +43,4 @@ public static void createHmacKeyCreateHmacKeyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_createhmackey_createhmackeyrequest] +// [END storage_v2_generated_storageclient_createhmackey_createhmackeyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java index f05bcb55d5..ad30509dee 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createhmackey_projectnamestring] +// [START storage_v2_generated_storageclient_createhmackey_projectnamestring_sync] import com.google.storage.v2.CreateHmacKeyResponse; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void createHmacKeyProjectNameString() throws Exception { } } } -// [END storage_v2_generated_storageclient_createhmackey_projectnamestring] +// [END storage_v2_generated_storageclient_createhmackey_projectnamestring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java index b0a17df922..d333e96421 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createhmackey_stringstring] +// [START storage_v2_generated_storageclient_createhmackey_stringstring_sync] import com.google.storage.v2.CreateHmacKeyResponse; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void createHmacKeyStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_createhmackey_stringstring] +// [END storage_v2_generated_storageclient_createhmackey_stringstring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java index 9af28721c3..d5b50989a4 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest] +// [START storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.CreateNotificationRequest; import com.google.storage.v2.Notification; @@ -46,4 +46,4 @@ public static void createNotificationCallableFutureCallCreateNotificationRequest } } } -// [END storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest] +// [END storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java index 0db3d7821d..27199ed121 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createnotification_createnotificationrequest] +// [START storage_v2_generated_storageclient_createnotification_createnotificationrequest_sync] import com.google.storage.v2.CreateNotificationRequest; import com.google.storage.v2.Notification; import com.google.storage.v2.ProjectName; @@ -41,4 +41,4 @@ public static void createNotificationCreateNotificationRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_createnotification_createnotificationrequest] +// [END storage_v2_generated_storageclient_createnotification_createnotificationrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java index fbce0c4eeb..c2eb1535fc 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createnotification_projectnamenotification] +// [START storage_v2_generated_storageclient_createnotification_projectnamenotification_sync] import com.google.storage.v2.Notification; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void createNotificationProjectNameNotification() throws Exception } } } -// [END storage_v2_generated_storageclient_createnotification_projectnamenotification] +// [END storage_v2_generated_storageclient_createnotification_projectnamenotification_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java index fe4cbb53b7..81f739e7fe 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_createnotification_stringnotification] +// [START storage_v2_generated_storageclient_createnotification_stringnotification_sync] import com.google.storage.v2.Notification; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void createNotificationStringNotification() throws Exception { } } } -// [END storage_v2_generated_storageclient_createnotification_stringnotification] +// [END storage_v2_generated_storageclient_createnotification_stringnotification_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java index fed5fdd5da..3b74f167cd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletebucket_bucketname] +// [START storage_v2_generated_storageclient_deletebucket_bucketname_sync] import com.google.protobuf.Empty; import com.google.storage.v2.BucketName; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void deleteBucketBucketName() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletebucket_bucketname] +// [END storage_v2_generated_storageclient_deletebucket_bucketname_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java index db34bca2ae..8aa7bbe17e 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest] +// [START storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.storage.v2.BucketName; @@ -47,4 +47,4 @@ public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest] +// [END storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java index b71379f3e6..b4010abe92 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletebucket_deletebucketrequest] +// [START storage_v2_generated_storageclient_deletebucket_deletebucketrequest_sync] import com.google.protobuf.Empty; import com.google.storage.v2.BucketName; import com.google.storage.v2.CommonRequestParams; @@ -44,4 +44,4 @@ public static void deleteBucketDeleteBucketRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletebucket_deletebucketrequest] +// [END storage_v2_generated_storageclient_deletebucket_deletebucketrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java index 6eb166e42f..e5c3cdaf1e 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletebucket_string] +// [START storage_v2_generated_storageclient_deletebucket_string_sync] import com.google.protobuf.Empty; import com.google.storage.v2.BucketName; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void deleteBucketString() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletebucket_string] +// [END storage_v2_generated_storageclient_deletebucket_string_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java index ff71fee9d8..2f90ac2a20 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest] +// [START storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.storage.v2.CommonRequestParams; @@ -46,4 +46,4 @@ public static void deleteHmacKeyCallableFutureCallDeleteHmacKeyRequest() throws } } } -// [END storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest] +// [END storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java index 98964624ad..7f488bf9b4 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest] +// [START storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest_sync] import com.google.protobuf.Empty; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.DeleteHmacKeyRequest; @@ -43,4 +43,4 @@ public static void deleteHmacKeyDeleteHmacKeyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest] +// [END storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java index e6ffef06ec..63069197a1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletehmackey_stringprojectname] +// [START storage_v2_generated_storageclient_deletehmackey_stringprojectname_sync] import com.google.protobuf.Empty; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void deleteHmacKeyStringProjectName() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletehmackey_stringprojectname] +// [END storage_v2_generated_storageclient_deletehmackey_stringprojectname_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java index 6d9689124c..24bca87d7b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletehmackey_stringstring] +// [START storage_v2_generated_storageclient_deletehmackey_stringstring_sync] import com.google.protobuf.Empty; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void deleteHmacKeyStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletehmackey_stringstring] +// [END storage_v2_generated_storageclient_deletehmackey_stringstring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java index 3fbcf952c5..0a2921cba7 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest] +// [START storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.storage.v2.DeleteNotificationRequest; @@ -44,4 +44,4 @@ public static void deleteNotificationCallableFutureCallDeleteNotificationRequest } } } -// [END storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest] +// [END storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java index b6587a7fc1..918053acd9 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletenotification_deletenotificationrequest] +// [START storage_v2_generated_storageclient_deletenotification_deletenotificationrequest_sync] import com.google.protobuf.Empty; import com.google.storage.v2.DeleteNotificationRequest; import com.google.storage.v2.NotificationName; @@ -40,4 +40,4 @@ public static void deleteNotificationDeleteNotificationRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_deletenotification_deletenotificationrequest] +// [END storage_v2_generated_storageclient_deletenotification_deletenotificationrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java index db36f31e91..9bf9dc5654 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletenotification_notificationname] +// [START storage_v2_generated_storageclient_deletenotification_notificationname_sync] import com.google.protobuf.Empty; import com.google.storage.v2.NotificationName; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void deleteNotificationNotificationName() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletenotification_notificationname] +// [END storage_v2_generated_storageclient_deletenotification_notificationname_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java index 70a3b305eb..a5e5dc3748 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deletenotification_string] +// [START storage_v2_generated_storageclient_deletenotification_string_sync] import com.google.protobuf.Empty; import com.google.storage.v2.NotificationName; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void deleteNotificationString() throws Exception { } } } -// [END storage_v2_generated_storageclient_deletenotification_string] +// [END storage_v2_generated_storageclient_deletenotification_string_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java index fa896075d3..65c8b2182e 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest] +// [START storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; import com.google.storage.v2.CommonObjectRequestParams; @@ -53,4 +53,4 @@ public static void deleteObjectCallableFutureCallDeleteObjectRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest] +// [END storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java index 010f9eabf8..db2fe0727a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deleteobject_deleteobjectrequest] +// [START storage_v2_generated_storageclient_deleteobject_deleteobjectrequest_sync] import com.google.protobuf.Empty; import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; @@ -50,4 +50,4 @@ public static void deleteObjectDeleteObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_deleteobject_deleteobjectrequest] +// [END storage_v2_generated_storageclient_deleteobject_deleteobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java index 28755a3eeb..012ee94827 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deleteobject_stringstring] +// [START storage_v2_generated_storageclient_deleteobject_stringstring_sync] import com.google.protobuf.Empty; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void deleteObjectStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_deleteobject_stringstring] +// [END storage_v2_generated_storageclient_deleteobject_stringstring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java index f00459c239..c8f217ce41 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_deleteobject_stringstringlong] +// [START storage_v2_generated_storageclient_deleteobject_stringstringlong_sync] import com.google.protobuf.Empty; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void deleteObjectStringStringLong() throws Exception { } } } -// [END storage_v2_generated_storageclient_deleteobject_stringstringlong] +// [END storage_v2_generated_storageclient_deleteobject_stringstringlong_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java index 71f1b4e873..2997703948 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getbucket_bucketname] +// [START storage_v2_generated_storageclient_getbucket_bucketname_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.BucketName; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void getBucketBucketName() throws Exception { } } } -// [END storage_v2_generated_storageclient_getbucket_bucketname] +// [END storage_v2_generated_storageclient_getbucket_bucketname_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java index 130b95f5f1..0b8529fa4b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest] +// [START storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.FieldMask; import com.google.storage.v2.Bucket; @@ -49,4 +49,4 @@ public static void getBucketCallableFutureCallGetBucketRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest] +// [END storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java index 8d709a16c6..37daf7be41 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getbucket_getbucketrequest] +// [START storage_v2_generated_storageclient_getbucket_getbucketrequest_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.Bucket; import com.google.storage.v2.BucketName; @@ -46,4 +46,4 @@ public static void getBucketGetBucketRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_getbucket_getbucketrequest] +// [END storage_v2_generated_storageclient_getbucket_getbucketrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java index 574419ed34..a78a7aaff6 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getbucket_string] +// [START storage_v2_generated_storageclient_getbucket_string_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.BucketName; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void getBucketString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getbucket_string] +// [END storage_v2_generated_storageclient_getbucket_string_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java index 368837d591..342b9adb78 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest] +// [START storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.GetHmacKeyRequest; @@ -46,4 +46,4 @@ public static void getHmacKeyCallableFutureCallGetHmacKeyRequest() throws Except } } } -// [END storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest] +// [END storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java index af45ba3ae7..d9d75b6946 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_gethmackey_gethmackeyrequest] +// [START storage_v2_generated_storageclient_gethmackey_gethmackeyrequest_sync] import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.GetHmacKeyRequest; import com.google.storage.v2.HmacKeyMetadata; @@ -43,4 +43,4 @@ public static void getHmacKeyGetHmacKeyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_gethmackey_gethmackeyrequest] +// [END storage_v2_generated_storageclient_gethmackey_gethmackeyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java index 077e334f42..5170e912fd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_gethmackey_stringprojectname] +// [START storage_v2_generated_storageclient_gethmackey_stringprojectname_sync] import com.google.storage.v2.HmacKeyMetadata; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void getHmacKeyStringProjectName() throws Exception { } } } -// [END storage_v2_generated_storageclient_gethmackey_stringprojectname] +// [END storage_v2_generated_storageclient_gethmackey_stringprojectname_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java index bbf444d760..71e41b2e1a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_gethmackey_stringstring] +// [START storage_v2_generated_storageclient_gethmackey_stringstring_sync] import com.google.storage.v2.HmacKeyMetadata; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void getHmacKeyStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_gethmackey_stringstring] +// [END storage_v2_generated_storageclient_gethmackey_stringstring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java index 140f06b380..fb1c39cf4a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [START storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -47,4 +47,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest] +// [END storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java index b981971511..5eaf9b9019 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest] +// [START storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest_sync] import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; @@ -44,4 +44,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest] +// [END storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java index 4dbd70b806..88195e2290 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getiampolicy_resourcename] +// [START storage_v2_generated_storageclient_getiampolicy_resourcename_sync] import com.google.api.resourcenames.ResourceName; import com.google.iam.v1.Policy; import com.google.storage.v2.CryptoKeyName; @@ -38,4 +38,4 @@ public static void getIamPolicyResourceName() throws Exception { } } } -// [END storage_v2_generated_storageclient_getiampolicy_resourcename] +// [END storage_v2_generated_storageclient_getiampolicy_resourcename_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java index f03eaec3b0..d060630cc9 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getiampolicy_string] +// [START storage_v2_generated_storageclient_getiampolicy_string_sync] import com.google.iam.v1.Policy; import com.google.storage.v2.CryptoKeyName; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void getIamPolicyString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getiampolicy_string] +// [END storage_v2_generated_storageclient_getiampolicy_string_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java index fa4f045ce3..e3a6940f6b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getnotification_bucketname] +// [START storage_v2_generated_storageclient_getnotification_bucketname_sync] import com.google.storage.v2.BucketName; import com.google.storage.v2.Notification; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void getNotificationBucketName() throws Exception { } } } -// [END storage_v2_generated_storageclient_getnotification_bucketname] +// [END storage_v2_generated_storageclient_getnotification_bucketname_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java index b807c11ba5..6e8b08035a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest] +// [START storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.BucketName; import com.google.storage.v2.GetNotificationRequest; @@ -43,4 +43,4 @@ public static void getNotificationCallableFutureCallGetNotificationRequest() thr } } } -// [END storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest] +// [END storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java index de8397b380..28125d4ff4 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getnotification_getnotificationrequest] +// [START storage_v2_generated_storageclient_getnotification_getnotificationrequest_sync] import com.google.storage.v2.BucketName; import com.google.storage.v2.GetNotificationRequest; import com.google.storage.v2.Notification; @@ -40,4 +40,4 @@ public static void getNotificationGetNotificationRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_getnotification_getnotificationrequest] +// [END storage_v2_generated_storageclient_getnotification_getnotificationrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java index 641213ca3a..5e28766c52 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getnotification_string] +// [START storage_v2_generated_storageclient_getnotification_string_sync] import com.google.storage.v2.BucketName; import com.google.storage.v2.Notification; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void getNotificationString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getnotification_string] +// [END storage_v2_generated_storageclient_getnotification_string_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java index 89227e6f0d..1627789f15 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest] +// [START storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonObjectRequestParams; @@ -54,4 +54,4 @@ public static void getObjectCallableFutureCallGetObjectRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest] +// [END storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java index c296ba8eb4..d8683971dd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getobject_getobjectrequest] +// [START storage_v2_generated_storageclient_getobject_getobjectrequest_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; @@ -51,4 +51,4 @@ public static void getObjectGetObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_getobject_getobjectrequest] +// [END storage_v2_generated_storageclient_getobject_getobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java index 0cb90e21ab..ae509eba19 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getobject_stringstring] +// [START storage_v2_generated_storageclient_getobject_stringstring_sync] import com.google.storage.v2.Object; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void getObjectStringString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getobject_stringstring] +// [END storage_v2_generated_storageclient_getobject_stringstring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java index cd17ab2c9a..f667eadccc 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getobject_stringstringlong] +// [START storage_v2_generated_storageclient_getobject_stringstringlong_sync] import com.google.storage.v2.Object; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void getObjectStringStringLong() throws Exception { } } } -// [END storage_v2_generated_storageclient_getobject_stringstringlong] +// [END storage_v2_generated_storageclient_getobject_stringstringlong_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java index 6a3826eac3..c021321df6 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest] +// [START storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.GetServiceAccountRequest; @@ -47,4 +47,4 @@ public static void getServiceAccountCallableFutureCallGetServiceAccountRequest() } } } -// [END storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest] +// [END storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java index d2e3a2c158..4f81927603 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest] +// [START storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest_sync] import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.GetServiceAccountRequest; import com.google.storage.v2.ProjectName; @@ -42,4 +42,4 @@ public static void getServiceAccountGetServiceAccountRequest() throws Exception } } } -// [END storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest] +// [END storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java index 8558c89585..381496aafb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getserviceaccount_projectname] +// [START storage_v2_generated_storageclient_getserviceaccount_projectname_sync] import com.google.storage.v2.ProjectName; import com.google.storage.v2.ServiceAccount; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void getServiceAccountProjectName() throws Exception { } } } -// [END storage_v2_generated_storageclient_getserviceaccount_projectname] +// [END storage_v2_generated_storageclient_getserviceaccount_projectname_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java index 4dab59fbcd..69d6872d21 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_getserviceaccount_string] +// [START storage_v2_generated_storageclient_getserviceaccount_string_sync] import com.google.storage.v2.ProjectName; import com.google.storage.v2.ServiceAccount; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void getServiceAccountString() throws Exception { } } } -// [END storage_v2_generated_storageclient_getserviceaccount_string] +// [END storage_v2_generated_storageclient_getserviceaccount_string_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java index a9c77024d9..dfee05414e 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest] +// [START storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest_sync] import com.google.common.base.Strings; import com.google.protobuf.FieldMask; import com.google.storage.v2.Bucket; @@ -60,4 +60,4 @@ public static void listBucketsCallableCallListBucketsRequest() throws Exception } } } -// [END storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest] +// [END storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java index 6f7acd76dd..2470e7200f 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall] +// [START storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.Bucket; import com.google.storage.v2.CommonRequestParams; @@ -49,4 +49,4 @@ public static void listBucketsListBucketsRequestIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall] +// [END storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java index d690032729..ce07b1b7fa 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] +// [START storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.FieldMask; import com.google.storage.v2.Bucket; @@ -52,4 +52,4 @@ public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws } } } -// [END storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest] +// [END storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java index e59b195804..4e50e9ca26 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listbuckets_projectnameiterateall] +// [START storage_v2_generated_storageclient_listbuckets_projectnameiterateall_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void listBucketsProjectNameIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listbuckets_projectnameiterateall] +// [END storage_v2_generated_storageclient_listbuckets_projectnameiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java index 02e7495299..b12e704409 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listbuckets_stringiterateall] +// [START storage_v2_generated_storageclient_listbuckets_stringiterateall_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void listBucketsStringIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listbuckets_stringiterateall] +// [END storage_v2_generated_storageclient_listbuckets_stringiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java index 02ba97242c..8e5924263c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest] +// [START storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest_sync] import com.google.common.base.Strings; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.HmacKeyMetadata; @@ -59,4 +59,4 @@ public static void listHmacKeysCallableCallListHmacKeysRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest] +// [END storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java index aac1a5f354..56aacef9d1 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall] +// [START storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall_sync] import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.HmacKeyMetadata; import com.google.storage.v2.ListHmacKeysRequest; @@ -48,4 +48,4 @@ public static void listHmacKeysListHmacKeysRequestIterateAll() throws Exception } } } -// [END storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall] +// [END storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java index 84ffd87a3b..8a3db0d2be 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest] +// [START storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.HmacKeyMetadata; @@ -52,4 +52,4 @@ public static void listHmacKeysPagedCallableFutureCallListHmacKeysRequest() thro } } } -// [END storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest] +// [END storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java index 6f7a9de8a1..49c7b8af4f 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listhmackeys_projectnameiterateall] +// [START storage_v2_generated_storageclient_listhmackeys_projectnameiterateall_sync] import com.google.storage.v2.HmacKeyMetadata; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void listHmacKeysProjectNameIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listhmackeys_projectnameiterateall] +// [END storage_v2_generated_storageclient_listhmackeys_projectnameiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java index 0b69f4c9bd..d7e6df0768 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listhmackeys_stringiterateall] +// [START storage_v2_generated_storageclient_listhmackeys_stringiterateall_sync] import com.google.storage.v2.HmacKeyMetadata; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void listHmacKeysStringIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listhmackeys_stringiterateall] +// [END storage_v2_generated_storageclient_listhmackeys_stringiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java index 3f9d0d33cd..12dfb3ecb5 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest] +// [START storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest_sync] import com.google.common.base.Strings; import com.google.storage.v2.ListNotificationsRequest; import com.google.storage.v2.ListNotificationsResponse; @@ -56,4 +56,4 @@ public static void listNotificationsCallableCallListNotificationsRequest() throw } } } -// [END storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest] +// [END storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java index feb9e3ce8d..039e4ebb56 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall] +// [START storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall_sync] import com.google.storage.v2.ListNotificationsRequest; import com.google.storage.v2.Notification; import com.google.storage.v2.ProjectName; @@ -44,4 +44,4 @@ public static void listNotificationsListNotificationsRequestIterateAll() throws } } } -// [END storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall] +// [END storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java index 593abb0633..0a3ada6f7b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest] +// [START storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.ListNotificationsRequest; import com.google.storage.v2.Notification; @@ -49,4 +49,4 @@ public static void listNotificationsPagedCallableFutureCallListNotificationsRequ } } } -// [END storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest] +// [END storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java index 30aa687aec..3feb464b24 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listnotifications_projectnameiterateall] +// [START storage_v2_generated_storageclient_listnotifications_projectnameiterateall_sync] import com.google.storage.v2.Notification; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void listNotificationsProjectNameIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listnotifications_projectnameiterateall] +// [END storage_v2_generated_storageclient_listnotifications_projectnameiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java index 29bb23d88a..7a6485d8eb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listnotifications_stringiterateall] +// [START storage_v2_generated_storageclient_listnotifications_stringiterateall_sync] import com.google.storage.v2.Notification; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void listNotificationsStringIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listnotifications_stringiterateall] +// [END storage_v2_generated_storageclient_listnotifications_stringiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java index c9e7684a29..cee30992cf 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest] +// [START storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest_sync] import com.google.common.base.Strings; import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonRequestParams; @@ -65,4 +65,4 @@ public static void listObjectsCallableCallListObjectsRequest() throws Exception } } } -// [END storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest] +// [END storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java index 45c8bc2281..511fee9130 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall] +// [START storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.ListObjectsRequest; @@ -54,4 +54,4 @@ public static void listObjectsListObjectsRequestIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall] +// [END storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java index 9764e5f876..7e79a9fcb2 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest] +// [START storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonRequestParams; @@ -57,4 +57,4 @@ public static void listObjectsPagedCallableFutureCallListObjectsRequest() throws } } } -// [END storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest] +// [END storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java index d4f483a5fd..4dfb717dc0 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listobjects_projectnameiterateall] +// [START storage_v2_generated_storageclient_listobjects_projectnameiterateall_sync] import com.google.storage.v2.Object; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void listObjectsProjectNameIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listobjects_projectnameiterateall] +// [END storage_v2_generated_storageclient_listobjects_projectnameiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java index e588477374..d861d584ea 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_listobjects_stringiterateall] +// [START storage_v2_generated_storageclient_listobjects_stringiterateall_sync] import com.google.storage.v2.Object; import com.google.storage.v2.ProjectName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void listObjectsStringIterateAll() throws Exception { } } } -// [END storage_v2_generated_storageclient_listobjects_stringiterateall] +// [END storage_v2_generated_storageclient_listobjects_stringiterateall_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java index 6c9e1575c3..d0c3a07875 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname] +// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.BucketName; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void lockBucketRetentionPolicyBucketName() throws Exception { } } } -// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname] +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_bucketname_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java index 1047008e8b..fb72ae4755 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest] +// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.Bucket; import com.google.storage.v2.BucketName; @@ -48,4 +48,4 @@ public static void lockBucketRetentionPolicyCallableFutureCallLockBucketRetentio } } } -// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest] +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java index faf37bdaa0..891f2da2cb 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest] +// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.BucketName; import com.google.storage.v2.CommonRequestParams; @@ -43,4 +43,4 @@ public static void lockBucketRetentionPolicyLockBucketRetentionPolicyRequest() t } } } -// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest] +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java index f38daed1bb..c8b5c7c901 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_string] +// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_string_sync] import com.google.storage.v2.Bucket; import com.google.storage.v2.BucketName; import com.google.storage.v2.StorageClient; @@ -36,4 +36,4 @@ public static void lockBucketRetentionPolicyString() throws Exception { } } } -// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_string] +// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_string_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java index 83ae64a379..f5827ba358 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest] +// [START storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; @@ -47,4 +47,4 @@ public static void queryWriteStatusCallableFutureCallQueryWriteStatusRequest() t } } } -// [END storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest] +// [END storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java index 1ffa269d59..31a2b38b7d 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest] +// [START storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest_sync] import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.QueryWriteStatusRequest; @@ -43,4 +43,4 @@ public static void queryWriteStatusQueryWriteStatusRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest] +// [END storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java index ac429256a8..96f75aa350 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_querywritestatus_string] +// [START storage_v2_generated_storageclient_querywritestatus_string_sync] import com.google.storage.v2.QueryWriteStatusResponse; import com.google.storage.v2.StorageClient; @@ -35,4 +35,4 @@ public static void queryWriteStatusString() throws Exception { } } } -// [END storage_v2_generated_storageclient_querywritestatus_string] +// [END storage_v2_generated_storageclient_querywritestatus_string_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java index 1f81735525..f83712365c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest] +// [START storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest_sync] import com.google.api.gax.rpc.ServerStream; import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonObjectRequestParams; @@ -57,4 +57,4 @@ public static void readObjectCallableCallReadObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest] +// [END storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java index ab899e2326..c5efffccae 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest] +// [START storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.ByteString; import com.google.storage.v2.BucketName; @@ -73,4 +73,4 @@ public static void rewriteObjectCallableFutureCallRewriteObjectRequest() throws } } } -// [END storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest] +// [END storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java index 3c73af861a..d22069b526 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest] +// [START storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest_sync] import com.google.protobuf.ByteString; import com.google.storage.v2.BucketName; import com.google.storage.v2.CommonObjectRequestParams; @@ -70,4 +70,4 @@ public static void rewriteObjectRewriteObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest] +// [END storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java index 3495d29acb..af95756b1d 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [START storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] import com.google.api.core.ApiFuture; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -46,4 +46,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest] +// [END storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java index 88c4ad4afd..91cc75d1a3 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy] +// [START storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy_sync] import com.google.api.resourcenames.ResourceName; import com.google.iam.v1.Policy; import com.google.storage.v2.CryptoKeyName; @@ -39,4 +39,4 @@ public static void setIamPolicyResourceNamePolicy() throws Exception { } } } -// [END storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy] +// [END storage_v2_generated_storageclient_setiampolicy_resourcenamepolicy_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java index 6efcd8f83f..823993bebc 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest] +// [START storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest_sync] import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.storage.v2.CryptoKeyName; @@ -43,4 +43,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest] +// [END storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java index e08773018d..d87e25895f 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_setiampolicy_stringpolicy] +// [START storage_v2_generated_storageclient_setiampolicy_stringpolicy_sync] import com.google.iam.v1.Policy; import com.google.storage.v2.CryptoKeyName; import com.google.storage.v2.StorageClient; @@ -38,4 +38,4 @@ public static void setIamPolicyStringPolicy() throws Exception { } } } -// [END storage_v2_generated_storageclient_setiampolicy_stringpolicy] +// [END storage_v2_generated_storageclient_setiampolicy_stringpolicy_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java index a59fd356df..44e0575ddd 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest] +// [START storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest_sync] import com.google.api.core.ApiFuture; import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; @@ -49,4 +49,4 @@ public static void startResumableWriteCallableFutureCallStartResumableWriteReque } } } -// [END storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest] +// [END storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java index b6dd164040..ba6db4e037 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest] +// [START storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest_sync] import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.StartResumableWriteRequest; @@ -44,4 +44,4 @@ public static void startResumableWriteStartResumableWriteRequest() throws Except } } } -// [END storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest] +// [END storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java index e01cea4fe1..1af69074c9 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [START storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] import com.google.api.core.ApiFuture; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -49,4 +49,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest } } } -// [END storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest] +// [END storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java index 1b1660a42e..a819b1c39d 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_testiampermissions_resourcenameliststring] +// [START storage_v2_generated_storageclient_testiampermissions_resourcenameliststring_sync] import com.google.api.resourcenames.ResourceName; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.storage.v2.CryptoKeyName; @@ -41,4 +41,4 @@ public static void testIamPermissionsResourceNameListString() throws Exception { } } } -// [END storage_v2_generated_storageclient_testiampermissions_resourcenameliststring] +// [END storage_v2_generated_storageclient_testiampermissions_resourcenameliststring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java index f5ca4c268c..93324f38c9 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_testiampermissions_stringliststring] +// [START storage_v2_generated_storageclient_testiampermissions_stringliststring_sync] import com.google.iam.v1.TestIamPermissionsResponse; import com.google.storage.v2.CryptoKeyName; import com.google.storage.v2.StorageClient; @@ -40,4 +40,4 @@ public static void testIamPermissionsStringListString() throws Exception { } } } -// [END storage_v2_generated_storageclient_testiampermissions_stringliststring] +// [END storage_v2_generated_storageclient_testiampermissions_stringliststring_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java index ba14aec0f7..4cd1c9c4d7 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest] +// [START storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest_sync] import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.storage.v2.CryptoKeyName; @@ -44,4 +44,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio } } } -// [END storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest] +// [END storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java index 09f510723b..00d74052c0 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updatebucket_bucketfieldmask] +// [START storage_v2_generated_storageclient_updatebucket_bucketfieldmask_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.Bucket; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void updateBucketBucketFieldMask() throws Exception { } } } -// [END storage_v2_generated_storageclient_updatebucket_bucketfieldmask] +// [END storage_v2_generated_storageclient_updatebucket_bucketfieldmask_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java index e74f8d3bc1..a103fbe0db 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest] +// [START storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.FieldMask; import com.google.storage.v2.Bucket; @@ -52,4 +52,4 @@ public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest] +// [END storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java index 6a86cdc187..89436c2c9c 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updatebucket_updatebucketrequest] +// [START storage_v2_generated_storageclient_updatebucket_updatebucketrequest_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.Bucket; import com.google.storage.v2.CommonRequestParams; @@ -49,4 +49,4 @@ public static void updateBucketUpdateBucketRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_updatebucket_updatebucketrequest] +// [END storage_v2_generated_storageclient_updatebucket_updatebucketrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java index 5dca888c67..f1d0d2f4a0 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest] +// [START storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonRequestParams; @@ -46,4 +46,4 @@ public static void updateHmacKeyCallableFutureCallUpdateHmacKeyRequest() throws } } } -// [END storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest] +// [END storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java index 9addacb99d..d54ca614a4 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask] +// [START storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.HmacKeyMetadata; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void updateHmacKeyHmacKeyMetadataFieldMask() throws Exception { } } } -// [END storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask] +// [END storage_v2_generated_storageclient_updatehmackey_hmackeymetadatafieldmask_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java index bac8611fe1..a32bda5b83 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest] +// [START storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonRequestParams; import com.google.storage.v2.HmacKeyMetadata; @@ -43,4 +43,4 @@ public static void updateHmacKeyUpdateHmacKeyRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest] +// [END storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java index 38b46ac07a..636aaa368b 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest] +// [START storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest_sync] import com.google.api.core.ApiFuture; import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonObjectRequestParams; @@ -54,4 +54,4 @@ public static void updateObjectCallableFutureCallUpdateObjectRequest() throws Ex } } } -// [END storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest] +// [END storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java index bad10d7c23..742765edfe 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updateobject_objectfieldmask] +// [START storage_v2_generated_storageclient_updateobject_objectfieldmask_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.Object; import com.google.storage.v2.StorageClient; @@ -37,4 +37,4 @@ public static void updateObjectObjectFieldMask() throws Exception { } } } -// [END storage_v2_generated_storageclient_updateobject_objectfieldmask] +// [END storage_v2_generated_storageclient_updateobject_objectfieldmask_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java index 4d407ab7a1..cd6114ca49 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_updateobject_updateobjectrequest] +// [START storage_v2_generated_storageclient_updateobject_updateobjectrequest_sync] import com.google.protobuf.FieldMask; import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; @@ -51,4 +51,4 @@ public static void updateObjectUpdateObjectRequest() throws Exception { } } } -// [END storage_v2_generated_storageclient_updateobject_updateobjectrequest] +// [END storage_v2_generated_storageclient_updateobject_updateobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java index 4751db455c..dddeab8cc8 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest] +// [START storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest_sync] import com.google.api.gax.rpc.ApiStreamObserver; import com.google.storage.v2.CommonObjectRequestParams; import com.google.storage.v2.CommonRequestParams; @@ -66,4 +66,4 @@ public void onCompleted() { } } } -// [END storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest] +// [END storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java index ff422821e0..9d1c6c552f 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.samples; -// [START storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings] +// [START storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings_sync] import com.google.storage.v2.StorageSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void deleteBucketSettingsSetRetrySettingsStorageSettings() throws StorageSettings storageSettings = storageSettingsBuilder.build(); } } -// [END storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings] +// [END storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings_sync] diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java index ff1691abde..0c09ee6b9a 100644 --- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java +++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ package com.google.storage.v2.stub.samples; -// [START storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings] +// [START storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings_sync] import com.google.storage.v2.stub.StorageStubSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void deleteBucketSettingsSetRetrySettingsStorageStubSettings() thr StorageStubSettings storageSettings = storageSettingsBuilder.build(); } } -// [END storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings] +// [END storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings_sync] From a8a4211ad1d631d35935859413e3f07a49088633 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Mon, 7 Mar 2022 14:17:52 -0800 Subject: [PATCH 19/29] refactor: include sync/async region tag attribute --- .../api/generator/gapic/model/RegionTag.java | 12 +++++++++++- .../samplecode/SampleCodeWriterTest.java | 4 ++-- .../composer/samplecode/SampleComposerTest.java | 16 ++++++++-------- .../api/generator/gapic/model/RegionTagTest.java | 12 ++++++++---- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java index e7971d8fc0..39997dae82 100644 --- a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java +++ b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java @@ -32,11 +32,14 @@ public abstract class RegionTag { public abstract String overloadDisambiguation(); + public abstract Boolean isSynchronous(); + public static Builder builder() { return new AutoValue_RegionTag.Builder() .setApiVersion("") .setApiShortName("") - .setOverloadDisambiguation(""); + .setOverloadDisambiguation("") + .setIsSynchronous(true); } abstract RegionTag.Builder toBuilder(); @@ -65,6 +68,8 @@ public abstract static class Builder { public abstract Builder setOverloadDisambiguation(String overloadDisambiguation); + public abstract Builder setIsSynchronous(Boolean isSynchronous); + abstract String apiVersion(); abstract String apiShortName(); @@ -113,6 +118,11 @@ public String generate() { if (!overloadDisambiguation().isEmpty()) { rt = rt + "_" + overloadDisambiguation(); } + if (isSynchronous()) { + rt = rt + "_sync"; + } else { + rt = rt + "_async"; + } return rt.toLowerCase(); } diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java index 96287b82bd..7b5bdeaa5a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java @@ -129,7 +129,7 @@ public void writeExecutableSample() { "\n", "package com.google.samples;\n", "\n", - "// [START testing_v1_generated_samples_write_executablesample]\n", + "// [START testing_v1_generated_samples_write_executablesample_sync]\n", "import com.google.api.gax.rpc.ClientSettings;\n", "\n", "public class WriteExecutableSample {\n", @@ -147,7 +147,7 @@ public void writeExecutableSample() { " }\n", " }\n", "}\n", - "// [END testing_v1_generated_samples_write_executablesample]\n"); + "// [END testing_v1_generated_samples_write_executablesample_sync]\n"); Assert.assertEquals(expected, result); } diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java index 3aeb964da9..9a4cd72a98 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java @@ -71,7 +71,7 @@ public void createExecutableSampleEmptyStatementSample() { LineFormatter.lines( "package com.google.example;\n", "\n", - "// [START apiname_generated_echo_createexecutablesample_emptystatementsample]\n", + "// [START apiname_generated_echo_createexecutablesample_emptystatementsample_sync]\n", "public class CreateExecutableSampleEmptyStatementSample {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -83,7 +83,7 @@ public void createExecutableSampleEmptyStatementSample() { " // It may require modifications to work in your environment.\n", " }\n", "}\n", - "// [END apiname_generated_echo_createexecutablesample_emptystatementsample]\n"); + "// [END apiname_generated_echo_createexecutablesample_emptystatementsample_sync]\n"); assertEquals(expected, sampleResult); } @@ -107,7 +107,7 @@ public void createExecutableSampleMethodArgsNoVar() { LineFormatter.lines( "package com.google.example;\n", "\n", - "// [START apiname_generated_echo_createexecutablesample_methodargsnovar]\n", + "// [START apiname_generated_echo_createexecutablesample_methodargsnovar_sync]\n", "public class CreateExecutableSampleMethodArgsNoVar {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -120,7 +120,7 @@ public void createExecutableSampleMethodArgsNoVar() { " System.out.println(\"Testing CreateExecutableSampleMethodArgsNoVar\");\n", " }\n", "}\n", - "// [END apiname_generated_echo_createexecutablesample_methodargsnovar]\n"); + "// [END apiname_generated_echo_createexecutablesample_methodargsnovar_sync]\n"); assertEquals(expected, sampleResult); } @@ -152,7 +152,7 @@ public void createExecutableSampleMethod() { LineFormatter.lines( "package com.google.example;\n", "\n", - "// [START apiname_generated_echo_createexecutablesample]\n", + "// [START apiname_generated_echo_createexecutablesample_sync]\n", "public class CreateExecutableSample {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -166,7 +166,7 @@ public void createExecutableSampleMethod() { " System.out.println(content);\n", " }\n", "}\n", - "// [END apiname_generated_echo_createexecutablesample]\n"); + "// [END apiname_generated_echo_createexecutablesample_sync]\n"); assertEquals(expected, sampleResult); } @@ -235,7 +235,7 @@ public void createExecutableSampleMethodMultipleStatements() { LineFormatter.lines( "package com.google.example;\n", "\n", - "// [START apiname_generated_echo_createexecutablesample_methodmultiplestatements]\n", + "// [START apiname_generated_echo_createexecutablesample_methodmultiplestatements_sync]\n", "public class CreateExecutableSampleMethodMultipleStatements {\n", "\n", " public static void main(String[] args) throws Exception {\n", @@ -254,7 +254,7 @@ public void createExecutableSampleMethodMultipleStatements() { " System.out.println(thing.response());\n", " }\n", "}\n", - "// [END apiname_generated_echo_createexecutablesample_methodmultiplestatements]\n"); + "// [END apiname_generated_echo_createexecutablesample_methodmultiplestatements_sync]\n"); assertEquals(expected, sampleResult); } diff --git a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java index 1f7c8de56b..248905add4 100644 --- a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java +++ b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java @@ -37,6 +37,7 @@ public void regionTagNoRpcName() { .setApiShortName(apiShortName) .setServiceName(serviceName) .setOverloadDisambiguation(disambiguation) + .setIsSynchronous(true) .build()); } @@ -50,6 +51,7 @@ public void regionTagNoServiceName() { .setApiShortName(apiShortName) .setRpcName(rpcName) .setOverloadDisambiguation(disambiguation) + .setIsSynchronous(true) .build()); } @@ -61,6 +63,7 @@ public void regionTagValidMissingFields() { Assert.assertEquals("", regionTag.apiShortName()); Assert.assertEquals("", regionTag.apiVersion()); Assert.assertEquals("", regionTag.overloadDisambiguation()); + Assert.assertEquals(true, regionTag.isSynchronous()); } @Test @@ -101,7 +104,7 @@ public void generateRegionTagsValidMissingFields() { .build(); String result = regionTag.generate(); - String expected = "shortname_generated_servicename_rpcname"; + String expected = "shortname_generated_servicename_rpcname_sync"; Assert.assertEquals(expected, result); } @@ -114,10 +117,11 @@ public void generateRegionTagsAllFields() { .setServiceName(serviceName) .setRpcName(rpcName) .setOverloadDisambiguation(disambiguation) + .setIsSynchronous(false) .build(); String result = regionTag.generate(); - String expected = "shortname_v1_generated_servicename_rpcname_disambiguation"; + String expected = "shortname_v1_generated_servicename_rpcname_disambiguation_async"; Assert.assertEquals(expected, result); } @@ -139,8 +143,8 @@ public void generateRegionTagTag() { regionTag.generateTag(RegionTag.RegionTagRegion.END, regionTag.generate()))); String expected = LineFormatter.lines( - "// [START shortname_v1_generated_servicename_rpcname_disambiguation]\n", - "// [END shortname_v1_generated_servicename_rpcname_disambiguation]"); + "// [START shortname_v1_generated_servicename_rpcname_disambiguation_sync]\n", + "// [END shortname_v1_generated_servicename_rpcname_disambiguation_sync]"); Assert.assertEquals(expected, result); } } From 7cc67e5f4774317945c578451aaf0725dc6359ff Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Tue, 8 Mar 2022 15:08:41 -0800 Subject: [PATCH 20/29] refactor: breakup ServiceClientSampleCodeComposer and renaming for simplicity/clarity nothing functionally changing - just moving code around/renaming --- .../ClientLibraryPackageInfoComposer.java | 4 +- .../AbstractServiceClientClassComposer.java | 27 +- .../AbstractServiceSettingsClassComposer.java | 4 +- ...tractServiceStubSettingsClassComposer.java | 4 +- ...tter.java => SampleBodyJavaFormatter.java} | 4 +- .../composer/samplecode/SampleCodeWriter.java | 2 +- .../samplecode/SampleComposerUtil.java | 37 + ...ceClientCallableMethodSampleComposer.java} | 683 +---- .../ServiceClientHeaderSampleComposer.java | 329 ++ ...erviceClientUnaryMethodSampleComposer.java | 305 ++ ...poser.java => SettingsSampleComposer.java} | 4 +- ....java => SampleBodyJavaFormatterTest.java} | 12 +- ...lientCallableMethodSampleComposerTest.java | 956 ++++++ ...ServiceClientHeaderSampleComposerTest.java | 799 +++++ .../ServiceClientSampleCodeComposerTest.java | 2657 ----------------- ...ceClientUnaryMethodSampleComposerTest.java | 343 +++ ...t.java => SettingsSampleComposerTest.java} | 17 +- 17 files changed, 2834 insertions(+), 3353 deletions(-) rename src/main/java/com/google/api/generator/gapic/composer/samplecode/{SampleCodeBodyJavaFormatter.java => SampleBodyJavaFormatter.java} (96%) create mode 100644 src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerUtil.java rename src/main/java/com/google/api/generator/gapic/composer/samplecode/{ServiceClientSampleCodeComposer.java => ServiceClientCallableMethodSampleComposer.java} (60%) create mode 100644 src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposer.java create mode 100644 src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposer.java rename src/main/java/com/google/api/generator/gapic/composer/samplecode/{SettingsSampleCodeComposer.java => SettingsSampleComposer.java} (98%) rename src/test/java/com/google/api/generator/gapic/composer/samplecode/{SampleCodeBodyJavaFormatterTest.java => SampleBodyJavaFormatterTest.java} (88%) create mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java create mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java delete mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java create mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposerTest.java rename src/test/java/com/google/api/generator/gapic/composer/samplecode/{SettingsSampleCodeComposerTest.java => SettingsSampleComposerTest.java} (85%) diff --git a/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java b/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java index e48bc76428..d268a60299 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java @@ -22,7 +22,7 @@ import com.google.api.generator.engine.ast.TypeNode; import com.google.api.generator.engine.ast.VaporReference; import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; -import com.google.api.generator.gapic.composer.samplecode.ServiceClientSampleCodeComposer; +import com.google.api.generator.gapic.composer.samplecode.ServiceClientHeaderSampleComposer; import com.google.api.generator.gapic.composer.utils.ClassNames; import com.google.api.generator.gapic.model.GapicContext; import com.google.api.generator.gapic.model.GapicPackageInfo; @@ -122,7 +122,7 @@ private static CommentStatement createPackageInfoJavadoc(GapicContext context) { .setName(ClassNames.getServiceClientClassName(service)) .build()); Sample packageInfoSampleCode = - ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode( + ServiceClientHeaderSampleComposer.composeClassHeaderSample( service, clientType, context.resourceNames(), context.messages()); javaDocCommentBuilder.addSampleCode( SampleCodeWriter.writeInlineSample(packageInfoSampleCode.body())); diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java index 465e6e7472..7bcb598c6b 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java @@ -56,7 +56,9 @@ import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.gapic.composer.comment.ServiceClientCommentComposer; import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; -import com.google.api.generator.gapic.composer.samplecode.ServiceClientSampleCodeComposer; +import com.google.api.generator.gapic.composer.samplecode.ServiceClientCallableMethodSampleComposer; +import com.google.api.generator.gapic.composer.samplecode.ServiceClientHeaderSampleComposer; +import com.google.api.generator.gapic.composer.samplecode.ServiceClientUnaryMethodSampleComposer; import com.google.api.generator.gapic.composer.store.TypeStore; import com.google.api.generator.gapic.composer.utils.ClassNames; import com.google.api.generator.gapic.composer.utils.PackageChecker; @@ -194,14 +196,12 @@ private static List createClassHeaderComments( TypeNode clientType = typeStore.get(ClassNames.getServiceClientClassName(service)); TypeNode settingsType = typeStore.get(ClassNames.getServiceSettingsClassName(service)); Sample classMethodSampleCode = - ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode( + ServiceClientHeaderSampleComposer.composeClassHeaderSample( service, clientType, resourceNames, messageTypes); Sample credentialsSampleCode = - ServiceClientSampleCodeComposer.composeClassHeaderCredentialsSampleCode( - clientType, settingsType); + ServiceClientHeaderSampleComposer.composeSetCredentialsSample(clientType, settingsType); Sample endpointSampleCode = - ServiceClientSampleCodeComposer.composeClassHeaderEndpointSampleCode( - clientType, settingsType); + ServiceClientHeaderSampleComposer.composeSetEndpointSample(clientType, settingsType); samples.addAll(Arrays.asList(classMethodSampleCode, credentialsSampleCode, endpointSampleCode)); return ServiceClientCommentComposer.createClassHeaderComments( service, @@ -713,13 +713,12 @@ private static List createMethodVariants( Optional methodSample = Optional.of( - ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode( + ServiceClientHeaderSampleComposer.composeShowcaseMethodSample( method, typeStore.get(clientName), signature, resourceNames, messageTypes)); Optional methodDocSample = Optional.empty(); if (methodSample.isPresent()) { samples.add(methodSample.get()); - methodDocSample = - Optional.of(SampleCodeWriter.writeInlineSample(methodSample.get().body())); + methodDocSample = Optional.of(SampleCodeWriter.writeInlineSample(methodSample.get().body())); } MethodDefinition.Builder methodVariantBuilder = @@ -801,7 +800,7 @@ private static MethodDefinition createMethodDefaultMethod( Optional defaultMethodSample = Optional.of( - ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode( + ServiceClientUnaryMethodSampleComposer.composeDefaultSample( method, typeStore.get(clientName), resourceNames, messageTypes)); Optional defaultMethodDocSample = Optional.empty(); if (defaultMethodSample.isPresent()) { @@ -940,7 +939,7 @@ private static MethodDefinition createCallableMethod( if (callableMethodKind.equals(CallableMethodKind.LRO)) { sampleCode = Optional.of( - ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode( + ServiceClientCallableMethodSampleComposer.composeLroCallableMethod( method, typeStore.get(ClassNames.getServiceClientClassName(service)), resourceNames, @@ -948,7 +947,7 @@ private static MethodDefinition createCallableMethod( } else if (callableMethodKind.equals(CallableMethodKind.PAGED)) { sampleCode = Optional.of( - ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode( + ServiceClientCallableMethodSampleComposer.composePagedCallableMethod( method, typeStore.get(ClassNames.getServiceClientClassName(service)), resourceNames, @@ -957,7 +956,7 @@ private static MethodDefinition createCallableMethod( if (method.stream().equals(Stream.NONE)) { sampleCode = Optional.of( - ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode( + ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod( method, typeStore.get(ClassNames.getServiceClientClassName(service)), resourceNames, @@ -965,7 +964,7 @@ private static MethodDefinition createCallableMethod( } else { sampleCode = Optional.of( - ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode( + ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod( method, typeStore.get(ClassNames.getServiceClientClassName(service)), resourceNames, diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java index 2afa554f72..f5e34f9397 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java @@ -51,7 +51,7 @@ import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.gapic.composer.comment.SettingsCommentComposer; import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; -import com.google.api.generator.gapic.composer.samplecode.SettingsSampleCodeComposer; +import com.google.api.generator.gapic.composer.samplecode.SettingsSampleComposer; import com.google.api.generator.gapic.composer.store.TypeStore; import com.google.api.generator.gapic.composer.utils.ClassNames; import com.google.api.generator.gapic.composer.utils.PackageChecker; @@ -143,7 +143,7 @@ private static List createClassHeaderComments( Optional methodNameOpt = methodOpt.isPresent() ? Optional.of(methodOpt.get().name()) : Optional.empty(); Optional sampleCode = - SettingsSampleCodeComposer.composeSampleCode( + SettingsSampleComposer.composeSettingsSample( methodNameOpt, ClassNames.getServiceSettingsClassName(service), classType); Optional docSampleCode = Optional.empty(); diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java index fcfa7da969..82d8fd0e9e 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java @@ -80,7 +80,7 @@ import com.google.api.generator.engine.ast.VariableExpr; import com.google.api.generator.gapic.composer.comment.SettingsCommentComposer; import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter; -import com.google.api.generator.gapic.composer.samplecode.SettingsSampleCodeComposer; +import com.google.api.generator.gapic.composer.samplecode.SettingsSampleComposer; import com.google.api.generator.gapic.composer.store.TypeStore; import com.google.api.generator.gapic.composer.utils.ClassNames; import com.google.api.generator.gapic.composer.utils.PackageChecker; @@ -393,7 +393,7 @@ private static List createClassHeaderComments( Optional methodNameOpt = methodOpt.isPresent() ? Optional.of(methodOpt.get().name()) : Optional.empty(); Optional sampleCode = - SettingsSampleCodeComposer.composeSampleCode( + SettingsSampleComposer.composeSettingsSample( methodNameOpt, ClassNames.getServiceSettingsClassName(service), classType); Optional docSampleCode = Optional.empty(); diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatter.java similarity index 96% rename from src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java rename to src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatter.java index a788e849b4..826c041f32 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatter.java +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatter.java @@ -18,9 +18,9 @@ import com.google.googlejavaformat.java.Formatter; import com.google.googlejavaformat.java.FormatterException; -public final class SampleCodeBodyJavaFormatter { +public final class SampleBodyJavaFormatter { - private SampleCodeBodyJavaFormatter() {} + private SampleBodyJavaFormatter() {} private static final Formatter FORMATTER = new Formatter(); diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java index 742ad20191..38861a5769 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java @@ -37,7 +37,7 @@ public static String write(List statements) { for (Statement statement : statements) { statement.accept(visitor); } - String formattedSampleCode = SampleCodeBodyJavaFormatter.format(visitor.write()); + String formattedSampleCode = SampleBodyJavaFormatter.format(visitor.write()); // Escape character "@" in the markdown code block
{@code...} tags.
     return formattedSampleCode.replaceAll("@", "{@literal @}");
   }
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerUtil.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerUtil.java
new file mode 100644
index 0000000000..b95b05b3da
--- /dev/null
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerUtil.java
@@ -0,0 +1,37 @@
+package com.google.api.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.AssignmentExpr;
+import com.google.api.generator.engine.ast.MethodInvocationExpr;
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.VariableExpr;
+import com.google.api.generator.gapic.model.MethodArgument;
+import com.google.api.generator.gapic.model.ResourceName;
+import java.util.Map;
+
+public class SampleComposerUtil {
+  // Assign client variable expr with create client.
+  // e.g EchoClient echoClient = EchoClient.create()
+  static AssignmentExpr assignClientVariableWithCreateMethodExpr(VariableExpr clientVarExpr) {
+    return AssignmentExpr.builder()
+        .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
+        .setValueExpr(
+            MethodInvocationExpr.builder()
+                .setStaticReferenceType(clientVarExpr.variable().type())
+                .setReturnType(clientVarExpr.variable().type())
+                .setMethodName("create")
+                .build())
+        .build();
+  }
+
+  static boolean isStringTypedResourceName(
+      MethodArgument arg, Map resourceNames) {
+    return arg.type().equals(TypeNode.STRING)
+        && arg.field().hasResourceReference()
+        && resourceNames.containsKey(arg.field().resourceReference().resourceTypeString());
+  }
+
+  static boolean isProtoEmptyType(TypeNode type) {
+    return type.reference().pakkage().equals("com.google.protobuf")
+        && type.reference().name().equals("Empty");
+  }
+}
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java
similarity index 60%
rename from src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposer.java
rename to src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java
index 162573e413..cab1fd8f53 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java
@@ -1,21 +1,6 @@
-// Copyright 2020 Google LLC
-//
-// 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.generator.gapic.composer.samplecode;
 
 import com.google.api.core.ApiFuture;
-import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.rpc.ApiStreamObserver;
 import com.google.api.gax.rpc.BidiStream;
@@ -39,7 +24,6 @@
 import com.google.api.generator.engine.ast.TypeNode;
 import com.google.api.generator.engine.ast.UnaryOperationExpr;
 import com.google.api.generator.engine.ast.ValueExpr;
-import com.google.api.generator.engine.ast.VaporReference;
 import com.google.api.generator.engine.ast.Variable;
 import com.google.api.generator.engine.ast.VariableExpr;
 import com.google.api.generator.engine.ast.WhileStatement;
@@ -47,337 +31,22 @@
 import com.google.api.generator.gapic.model.Field;
 import com.google.api.generator.gapic.model.Message;
 import com.google.api.generator.gapic.model.Method;
-import com.google.api.generator.gapic.model.Method.Stream;
-import com.google.api.generator.gapic.model.MethodArgument;
 import com.google.api.generator.gapic.model.RegionTag;
 import com.google.api.generator.gapic.model.ResourceName;
 import com.google.api.generator.gapic.model.Sample;
-import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.common.base.Preconditions;
 import com.google.common.base.Strings;
 import com.google.longrunning.Operation;
 import java.util.ArrayList;
 import java.util.Arrays;
-import java.util.Collections;
 import java.util.List;
 import java.util.Map;
-import java.util.function.Function;
 import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-
-public class ServiceClientSampleCodeComposer {
-
-  public static Sample composeClassHeaderMethodSampleCode(
-      Service service,
-      TypeNode clientType,
-      Map resourceNames,
-      Map messageTypes) {
-    // Use the first pure unary RPC method's sample code as showcase, if no such method exists, use
-    // the first method in the service's methods list.
-    Method method =
-        service.methods().stream()
-            .filter(m -> m.stream() == Stream.NONE && !m.hasLro() && !m.isPaged())
-            .findFirst()
-            .orElse(service.methods().get(0));
-    if (method.stream() == Stream.NONE) {
-      if (method.methodSignatures().isEmpty()) {
-        return composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-      }
-      return composeRpcMethodHeaderSampleCode(
-          method, clientType, method.methodSignatures().get(0), resourceNames, messageTypes);
-    }
-    return composeStreamCallableMethodHeaderSampleCode(
-        method, clientType, resourceNames, messageTypes);
-  }
-
-  public static Sample composeClassHeaderCredentialsSampleCode(
-      TypeNode clientType, TypeNode settingsType) {
-    // Initialize clientSettings with builder() method.
-    // e.g. EchoSettings echoSettings =
-    // EchoSettings.newBuilder().setCredentialsProvider(FixedCredentialsProvider.create("myCredentials")).build();
-    String settingsName = JavaStyle.toLowerCamelCase(settingsType.reference().name());
-    String clientName = JavaStyle.toLowerCamelCase(clientType.reference().name());
-    TypeNode myCredentialsType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("myCredentials")
-                .setPakkage(clientType.reference().pakkage())
-                .build());
-    VariableExpr settingsVarExpr =
-        VariableExpr.withVariable(
-            Variable.builder().setName(settingsName).setType(settingsType).build());
-    MethodInvocationExpr newBuilderMethodExpr =
-        MethodInvocationExpr.builder()
-            .setStaticReferenceType(settingsType)
-            .setMethodName("newBuilder")
-            .build();
-    TypeNode fixedCredentialProvideType =
-        TypeNode.withReference(ConcreteReference.withClazz(FixedCredentialsProvider.class));
-    MethodInvocationExpr credentialArgExpr =
-        MethodInvocationExpr.builder()
-            .setStaticReferenceType(fixedCredentialProvideType)
-            .setArguments(
-                VariableExpr.withVariable(
-                    Variable.builder().setName("myCredentials").setType(myCredentialsType).build()))
-            .setMethodName("create")
-            .build();
-    MethodInvocationExpr credentialsMethodExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(newBuilderMethodExpr)
-            .setArguments(credentialArgExpr)
-            .setMethodName("setCredentialsProvider")
-            .build();
-    MethodInvocationExpr buildMethodExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(credentialsMethodExpr)
-            .setReturnType(settingsType)
-            .setMethodName("build")
-            .build();
-    Expr initSettingsVarExpr =
-        AssignmentExpr.builder()
-            .setVariableExpr(settingsVarExpr.toBuilder().setIsDecl(true).build())
-            .setValueExpr(buildMethodExpr)
-            .build();
-
-    // Initialized client with create() method.
-    // e.g. EchoClient echoClient = EchoClient.create(echoSettings);
-    VariableExpr clientVarExpr =
-        VariableExpr.withVariable(
-            Variable.builder().setName(clientName).setType(clientType).build());
-    MethodInvocationExpr createMethodExpr =
-        MethodInvocationExpr.builder()
-            .setStaticReferenceType(clientType)
-            .setArguments(settingsVarExpr)
-            .setMethodName("create")
-            .setReturnType(clientType)
-            .build();
-    String rpcName = createMethodExpr.methodIdentifier().name();
-    String disambiguation = settingsVarExpr.type().reference().name();
-    Expr initClientVarExpr =
-        AssignmentExpr.builder()
-            .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
-            .setValueExpr(createMethodExpr)
-            .build();
-
-    List sampleBody =
-        Arrays.asList(
-            ExprStatement.withExpr(initSettingsVarExpr), ExprStatement.withExpr(initClientVarExpr));
-    // e.g.  serviceName = echoClient
-    //      rpcName = create
-    //      disambiguation = echoSettings
-    RegionTag regionTag =
-        RegionTag.builder()
-            .setServiceName(clientName)
-            .setRpcName(rpcName)
-            .setOverloadDisambiguation(disambiguation)
-            .build();
-    return Sample.builder().setBody(sampleBody).setRegionTag(regionTag).build();
-  }
-
-  public static Sample composeClassHeaderEndpointSampleCode(
-      TypeNode clientType, TypeNode settingsType) {
-    // Initialize client settings with builder() method.
-    // e.g. EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint("myEndpoint").build();
-    String settingsName = JavaStyle.toLowerCamelCase(settingsType.reference().name());
-    String clientName = JavaStyle.toLowerCamelCase(clientType.reference().name());
-    TypeNode myEndpointType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("myEndpoint")
-                .setPakkage(clientType.reference().pakkage())
-                .build());
-    VariableExpr settingsVarExpr =
-        VariableExpr.withVariable(
-            Variable.builder().setName(settingsName).setType(settingsType).build());
-    MethodInvocationExpr newBuilderMethodExpr =
-        MethodInvocationExpr.builder()
-            .setStaticReferenceType(settingsType)
-            .setMethodName("newBuilder")
-            .build();
-    MethodInvocationExpr credentialsMethodExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(newBuilderMethodExpr)
-            .setArguments(
-                VariableExpr.withVariable(
-                    Variable.builder().setName("myEndpoint").setType(myEndpointType).build()))
-            .setMethodName("setEndpoint")
-            .build();
-    MethodInvocationExpr buildMethodExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(credentialsMethodExpr)
-            .setReturnType(settingsType)
-            .setMethodName("build")
-            .build();
-
-    Expr initSettingsVarExpr =
-        AssignmentExpr.builder()
-            .setVariableExpr(settingsVarExpr.toBuilder().setIsDecl(true).build())
-            .setValueExpr(buildMethodExpr)
-            .build();
-
-    // Initialize client with create() method.
-    // e.g. EchoClient echoClient = EchoClient.create(echoSettings);
-    VariableExpr clientVarExpr =
-        VariableExpr.withVariable(
-            Variable.builder().setName(clientName).setType(clientType).build());
-    MethodInvocationExpr createMethodExpr =
-        MethodInvocationExpr.builder()
-            .setStaticReferenceType(clientType)
-            .setArguments(settingsVarExpr)
-            .setMethodName("create")
-            .setReturnType(clientType)
-            .build();
-    String rpcName = createMethodExpr.methodIdentifier().name();
-    String disambiguation = settingsVarExpr.type().reference().name();
-    Expr initClientVarExpr =
-        AssignmentExpr.builder()
-            .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
-            .setValueExpr(createMethodExpr)
-            .build();
-    // e.g. serviceName = echoClient
-    //      rpcName = create
-    //      disambiguation = echoSettings
-    RegionTag regionTag =
-        RegionTag.builder()
-            .setServiceName(clientName)
-            .setRpcName(rpcName)
-            .setOverloadDisambiguation(disambiguation)
-            .build();
-    List sampleBody =
-        Arrays.asList(
-            ExprStatement.withExpr(initSettingsVarExpr), ExprStatement.withExpr(initClientVarExpr));
-    return Sample.builder().setBody(sampleBody).setRegionTag(regionTag).build();
-  }
-
-  public static Sample composeRpcMethodHeaderSampleCode(
-      Method method,
-      TypeNode clientType,
-      List arguments,
-      Map resourceNames,
-      Map messageTypes) {
-    VariableExpr clientVarExpr =
-        VariableExpr.withVariable(
-            Variable.builder()
-                .setName(JavaStyle.toLowerCamelCase(clientType.reference().name()))
-                .setType(clientType)
-                .build());
-
-    // Assign method's arguments variable with the default values.
-    List rpcMethodArgVarExprs = createRpcMethodArgumentVariableExprs(arguments);
-    List rpcMethodArgDefaultValueExprs =
-        createRpcMethodArgumentDefaultValueExprs(arguments, resourceNames);
-    List rpcMethodArgAssignmentExprs =
-        createAssignmentsForVarExprsWithValueExprs(
-            rpcMethodArgVarExprs, rpcMethodArgDefaultValueExprs);
-
-    List bodyExprs = new ArrayList<>();
-    bodyExprs.addAll(rpcMethodArgAssignmentExprs);
-
-    List bodyStatements = new ArrayList<>();
-    RegionTag regionTag;
-    if (method.isPaged()) {
-      Sample unaryPagedRpc =
-          composeUnaryPagedRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes);
-      bodyStatements.addAll(unaryPagedRpc.body());
-      regionTag = unaryPagedRpc.regionTag();
-    } else if (method.hasLro()) {
-      Sample unaryLroRpc =
-          composeUnaryLroRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
-      bodyStatements.addAll(unaryLroRpc.body());
-      regionTag = unaryLroRpc.regionTag();
-    } else {
-      //  e.g. echoClient.echo(), echoClient.echo(...)
-      Sample unaryRpc =
-          composeUnaryRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
-      bodyStatements.addAll(unaryRpc.body());
-      regionTag = unaryRpc.regionTag();
-    }
-
-    List body =
-        Arrays.asList(
-            TryCatchStatement.builder()
-                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
-                .setTryBody(bodyStatements)
-                .setIsSampleCode(true)
-                .build());
-    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
-  }
-
-  public static Sample composeRpcDefaultMethodHeaderSampleCode(
-      Method method,
-      TypeNode clientType,
-      Map resourceNames,
-      Map messageTypes) {
-    VariableExpr clientVarExpr =
-        VariableExpr.withVariable(
-            Variable.builder()
-                .setName(JavaStyle.toLowerCamelCase(clientType.reference().name()))
-                .setType(clientType)
-                .build());
-
-    // Create request variable expression and assign with its default value.
-    VariableExpr requestVarExpr =
-        VariableExpr.withVariable(
-            Variable.builder().setName("request").setType(method.inputType()).build());
-    List rpcMethodArgVarExprs = Arrays.asList(requestVarExpr);
-    Message requestMessage = messageTypes.get(method.inputType().reference().fullName());
-    Preconditions.checkNotNull(
-        requestMessage,
-        String.format(
-            "Could not find the message type %s.", method.inputType().reference().fullName()));
-    Expr requestBuilderExpr =
-        DefaultValueComposer.createSimpleMessageBuilderValue(
-            requestMessage, resourceNames, messageTypes);
-    AssignmentExpr requestAssignmentExpr =
-        AssignmentExpr.builder()
-            .setVariableExpr(requestVarExpr.toBuilder().setIsDecl(true).build())
-            .setValueExpr(requestBuilderExpr)
-            .build();
-
-    List bodyExprs = new ArrayList<>();
-    bodyExprs.add(requestAssignmentExpr);
-
-    List bodyStatements = new ArrayList<>();
-    RegionTag regionTag;
-    if (method.isPaged()) {
-      // e.g. echoClient.pagedExpand(request).iterateAll()
-      Sample unaryPagedRpc =
-          composeUnaryPagedRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes);
-      bodyStatements.addAll(unaryPagedRpc.body());
-      regionTag = unaryPagedRpc.regionTag();
-    } else if (method.hasLro()) {
-      Sample unaryLroRpc =
-          composeUnaryLroRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
-      bodyStatements.addAll(unaryLroRpc.body());
-      regionTag = unaryLroRpc.regionTag();
-    } else {
-      // e.g. echoClient.echo(request)
-      Sample unaryRpc =
-          composeUnaryRpcMethodBodyStatements(
-              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
-      bodyStatements.addAll(unaryRpc.body());
-      regionTag = unaryRpc.regionTag();
-    }
-
-    List body =
-        Arrays.asList(
-            TryCatchStatement.builder()
-                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
-                .setTryBody(bodyStatements)
-                .setIsSampleCode(true)
-                .build());
-    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
-  }
 
+public class ServiceClientCallableMethodSampleComposer {
   // Compose sample code for the method where it is CallableMethodKind.LRO.
-  public static Sample composeLroCallableMethodHeaderSampleCode(
+  public static Sample composeLroCallableMethod(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -464,7 +133,7 @@ public static Sample composeLroCallableMethodHeaderSampleCode(
             .setMethodName("get")
             .setReturnType(method.lro().responseType())
             .build();
-    boolean returnsVoid = isProtoEmptyType(method.lro().responseType());
+    boolean returnsVoid = SampleComposerUtil.isProtoEmptyType(method.lro().responseType());
     if (returnsVoid) {
       bodyExprs.add(futureGetMethodExpr);
     } else {
@@ -499,7 +168,8 @@ public static Sample composeLroCallableMethodHeaderSampleCode(
     List body =
         Arrays.asList(
             TryCatchStatement.builder()
-                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryResourceExpr(
+                    SampleComposerUtil.assignClientVariableWithCreateMethodExpr(clientVarExpr))
                 .setTryBody(bodyStatements)
                 .setIsSampleCode(true)
                 .build());
@@ -507,7 +177,7 @@ public static Sample composeLroCallableMethodHeaderSampleCode(
   }
 
   // Compose sample code for the method where it is CallableMethodKind.PAGED.
-  public static Sample composePagedCallableMethodHeaderSampleCode(
+  public static Sample composePagedCallableMethod(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -624,7 +294,8 @@ public static Sample composePagedCallableMethodHeaderSampleCode(
     List body =
         Arrays.asList(
             TryCatchStatement.builder()
-                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryResourceExpr(
+                    SampleComposerUtil.assignClientVariableWithCreateMethodExpr(clientVarExpr))
                 .setTryBody(bodyStatements)
                 .setIsSampleCode(true)
                 .build());
@@ -642,7 +313,7 @@ public static Sample composePagedCallableMethodHeaderSampleCode(
   }
 
   // Compose sample code for the method where it is CallableMethodKind.REGULAR.
-  public static Sample composeRegularCallableMethodHeaderSampleCode(
+  public static Sample composeRegularCallableMethod(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -678,13 +349,13 @@ public static Sample composeRegularCallableMethodHeaderSampleCode(
     RegionTag regionTag;
     if (method.isPaged()) {
       Sample pagedCallable =
-          composePagedCallableBodyStatements(method, clientVarExpr, requestVarExpr, messageTypes);
+          composePagedCallableSample(method, clientVarExpr, requestVarExpr, messageTypes);
       bodyStatements.addAll(pagedCallable.body());
       regionTag = pagedCallable.regionTag();
     } else {
       // e.g.  echoClient.echoCallable().futureCall(request)
       Sample unaryOrLroCallable =
-          composeUnaryOrLroCallableBodyStatements(method, clientVarExpr, requestVarExpr);
+          composeUnaryOrLroCallableSample(method, clientVarExpr, requestVarExpr);
       bodyStatements.addAll(unaryOrLroCallable.body());
       regionTag = unaryOrLroCallable.regionTag();
     }
@@ -692,14 +363,15 @@ public static Sample composeRegularCallableMethodHeaderSampleCode(
     List body =
         Arrays.asList(
             TryCatchStatement.builder()
-                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryResourceExpr(
+                    SampleComposerUtil.assignClientVariableWithCreateMethodExpr(clientVarExpr))
                 .setTryBody(bodyStatements)
                 .setIsSampleCode(true)
                 .build());
     return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
 
-  public static Sample composeStreamCallableMethodHeaderSampleCode(
+  public static Sample composeStreamCallableMethod(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -730,21 +402,18 @@ public static Sample composeStreamCallableMethodHeaderSampleCode(
 
     RegionTag regionTag = null;
     List bodyStatements = new ArrayList<>();
-    if (method.stream().equals(Stream.SERVER)) {
+    if (method.stream().equals(Method.Stream.SERVER)) {
       // e.g. ServerStream stream = echoClient.expandCallable().call(request);
-      Sample streamServer =
-          composeStreamServerBodyStatements(method, clientVarExpr, requestAssignmentExpr);
+      Sample streamServer = composeStreamServerSample(method, clientVarExpr, requestAssignmentExpr);
       bodyStatements.addAll(streamServer.body());
       regionTag = streamServer.regionTag();
-    } else if (method.stream().equals(Stream.BIDI)) {
+    } else if (method.stream().equals(Method.Stream.BIDI)) {
       // e.g. echoClient.collect().clientStreamingCall(responseObserver);
-      Sample streamBidi =
-          composeStreamBidiBodyStatements(method, clientVarExpr, requestAssignmentExpr);
+      Sample streamBidi = composeStreamBidiSample(method, clientVarExpr, requestAssignmentExpr);
       bodyStatements.addAll(streamBidi.body());
       regionTag = streamBidi.regionTag();
-    } else if (method.stream().equals(Stream.CLIENT)) {
-      Sample streamClient =
-          composeStreamClientBodyStatements(method, clientVarExpr, requestAssignmentExpr);
+    } else if (method.stream().equals(Method.Stream.CLIENT)) {
+      Sample streamClient = composeStreamClientSample(method, clientVarExpr, requestAssignmentExpr);
       bodyStatements.addAll(streamClient.body());
       regionTag = streamClient.regionTag();
     }
@@ -752,225 +421,15 @@ public static Sample composeStreamCallableMethodHeaderSampleCode(
     List body =
         Arrays.asList(
             TryCatchStatement.builder()
-                .setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryResourceExpr(
+                    SampleComposerUtil.assignClientVariableWithCreateMethodExpr(clientVarExpr))
                 .setTryBody(bodyStatements)
                 .setIsSampleCode(true)
                 .build());
     return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
 
-  private static Sample composeUnaryRpcMethodBodyStatements(
-      Method method,
-      VariableExpr clientVarExpr,
-      List rpcMethodArgVarExprs,
-      List bodyExprs) {
-
-    // Invoke current method based on return type.
-    // e.g. if return void, echoClient.echo(..); or,
-    // e.g. if return other type, EchoResponse response = echoClient.echo(...);
-    boolean returnsVoid = isProtoEmptyType(method.outputType());
-    MethodInvocationExpr clientRpcMethodInvocationExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(clientVarExpr)
-            .setMethodName(JavaStyle.toLowerCamelCase(method.name()))
-            .setArguments(
-                rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
-            .setReturnType(method.outputType())
-            .build();
-    String disambiguation =
-        rpcMethodArgVarExprs.stream()
-            .map(
-                e ->
-                    e.variable().type().reference() == null
-                        ? JavaStyle.toUpperCamelCase(
-                            e.variable().type().typeKind().name().toLowerCase())
-                        : JavaStyle.toUpperCamelCase(e.variable().type().reference().name()))
-            .collect(Collectors.joining());
-
-    if (returnsVoid) {
-      bodyExprs.add(clientRpcMethodInvocationExpr);
-    } else {
-      VariableExpr responseVarExpr =
-          VariableExpr.withVariable(
-              Variable.builder().setName("response").setType(method.outputType()).build());
-      bodyExprs.add(
-          AssignmentExpr.builder()
-              .setVariableExpr(responseVarExpr.toBuilder().setIsDecl(true).build())
-              .setValueExpr(clientRpcMethodInvocationExpr)
-              .build());
-    }
-
-    // e.g. serviceName = echoClient
-    //      rpcName =  echo
-    //      disambiguation = echoRequest
-    RegionTag regionTag =
-        RegionTag.builder()
-            .setServiceName(clientVarExpr.variable().identifier().name())
-            .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
-            .build();
-    return Sample.builder()
-        .setBody(
-            bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()))
-        .setRegionTag(regionTag)
-        .build();
-  }
-
-  private static Sample composeUnaryPagedRpcMethodBodyStatements(
-      Method method,
-      VariableExpr clientVarExpr,
-      List rpcMethodArgVarExprs,
-      List bodyExprs,
-      Map messageTypes) {
-
-    // Find the repeated field.
-    Message methodOutputMessage = messageTypes.get(method.outputType().reference().fullName());
-    Preconditions.checkNotNull(
-        methodOutputMessage,
-        "Output message %s not found, keys: ",
-        method.outputType().reference().fullName(),
-        messageTypes.keySet().toString());
-    Field repeatedPagedResultsField = methodOutputMessage.findAndUnwrapPaginatedRepeatedField();
-    Preconditions.checkNotNull(
-        repeatedPagedResultsField,
-        String.format(
-            "No repeated field found on message %s for method %s",
-            methodOutputMessage.name(), method.name()));
-    TypeNode repeatedResponseType = repeatedPagedResultsField.type();
-
-    // For loop paged response item on iterateAll method.
-    // e.g. for (LogEntry element : loggingServiceV2Client.ListLogs(parent).iterateAll()) {
-    //          //doThingsWith(element);
-    //      }
-    MethodInvocationExpr clientMethodIterateAllExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(clientVarExpr)
-            .setMethodName(JavaStyle.toLowerCamelCase(method.name()))
-            .setArguments(
-                rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
-            .build();
-    String disambiguation =
-        rpcMethodArgVarExprs.stream()
-            .map(
-                arg ->
-                    arg.variable().type().reference() == null
-                        ? JavaStyle.toUpperCamelCase(
-                            arg.variable().type().typeKind().name().toLowerCase())
-                        : JavaStyle.toUpperCamelCase(arg.variable().type().reference().name()))
-            .collect(Collectors.joining());
-
-    clientMethodIterateAllExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(clientMethodIterateAllExpr)
-            .setMethodName("iterateAll")
-            .setReturnType(repeatedResponseType)
-            .build();
-    disambiguation =
-        disambiguation.concat(
-            JavaStyle.toUpperCamelCase(clientMethodIterateAllExpr.methodIdentifier().name()));
-    ForStatement loopIteratorStatement =
-        ForStatement.builder()
-            .setLocalVariableExpr(
-                VariableExpr.builder()
-                    .setVariable(
-                        Variable.builder().setName("element").setType(repeatedResponseType).build())
-                    .setIsDecl(true)
-                    .build())
-            .setCollectionExpr(clientMethodIterateAllExpr)
-            .setBody(
-                Arrays.asList(
-                    CommentStatement.withComment(
-                        LineComment.withComment("doThingsWith(element);"))))
-            .build();
-
-    List bodyStatements =
-        bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
-    bodyExprs.clear();
-    bodyStatements.add(loopIteratorStatement);
-
-    // e.g. serviceName = echoClient
-    //      rpcName =  listContent
-    //      disambiguation = iterateAll
-    RegionTag regionTag =
-        RegionTag.builder()
-            .setServiceName(clientVarExpr.variable().identifier().name())
-            .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
-            .build();
-    return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
-  }
-
-  private static Sample composeUnaryLroRpcMethodBodyStatements(
-      Method method,
-      VariableExpr clientVarExpr,
-      List rpcMethodArgVarExprs,
-      List bodyExprs) {
-    // Assign response variable with invoking client's LRO method.
-    // e.g. if return void, echoClient.waitAsync(ttl).get(); or,
-    // e.g. if return other type, WaitResponse response = echoClient.waitAsync(ttl).get();
-    MethodInvocationExpr invokeLroGetMethodExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(clientVarExpr)
-            .setMethodName(String.format("%sAsync", JavaStyle.toLowerCamelCase(method.name())))
-            .setArguments(
-                rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
-            .build();
-    String disambiguation =
-        "Async"
-            + rpcMethodArgVarExprs.stream()
-                .map(
-                    e ->
-                        e.variable().type().reference() == null
-                            ? JavaStyle.toUpperCamelCase(
-                                e.variable().type().typeKind().name().toLowerCase())
-                            : JavaStyle.toUpperCamelCase(e.variable().type().reference().name()))
-                .collect(Collectors.joining());
-    invokeLroGetMethodExpr =
-        MethodInvocationExpr.builder()
-            .setExprReferenceExpr(invokeLroGetMethodExpr)
-            .setMethodName("get")
-            .setReturnType(method.lro().responseType())
-            .build();
-    disambiguation =
-        disambiguation.concat(
-            JavaStyle.toUpperCamelCase(invokeLroGetMethodExpr.methodIdentifier().name()));
-    boolean returnsVoid = isProtoEmptyType(method.lro().responseType());
-    if (returnsVoid) {
-      bodyExprs.add(invokeLroGetMethodExpr);
-    } else {
-      VariableExpr responseVarExpr =
-          VariableExpr.builder()
-              .setVariable(
-                  Variable.builder()
-                      .setName("response")
-                      .setType(method.lro().responseType())
-                      .build())
-              .setIsDecl(true)
-              .build();
-      bodyExprs.add(
-          AssignmentExpr.builder()
-              .setVariableExpr(responseVarExpr)
-              .setValueExpr(invokeLroGetMethodExpr)
-              .build());
-    }
-
-    // e.g. serviceName = echoClient
-    //      rpcName =  wait
-    //      disambiguation = durationGet
-    RegionTag regionTag =
-        RegionTag.builder()
-            .setServiceName(clientVarExpr.variable().identifier().name())
-            .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
-            .build();
-    return Sample.builder()
-        .setBody(
-            bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()))
-        .setRegionTag(regionTag)
-        .build();
-  }
-
-  private static Sample composeStreamServerBodyStatements(
+  private static Sample composeStreamServerSample(
       Method method, VariableExpr clientVarExpr, AssignmentExpr requestAssignmentExpr) {
     List bodyExprs = new ArrayList<>();
     bodyExprs.add(requestAssignmentExpr);
@@ -1064,7 +523,7 @@ private static Sample composeStreamServerBodyStatements(
     return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
 
-  private static Sample composeStreamBidiBodyStatements(
+  private static Sample composeStreamBidiSample(
       Method method, VariableExpr clientVarExpr, AssignmentExpr requestAssignmentExpr) {
     List bodyExprs = new ArrayList<>();
 
@@ -1164,7 +623,7 @@ private static Sample composeStreamBidiBodyStatements(
     return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
 
-  private static Sample composeStreamClientBodyStatements(
+  private static Sample composeStreamClientSample(
       Method method, VariableExpr clientVarExpr, AssignmentExpr requestAssignmentExpr) {
     List bodyExprs = new ArrayList<>();
 
@@ -1320,7 +779,7 @@ private static Sample composeStreamClientBodyStatements(
         .build();
   }
 
-  private static Sample composeUnaryOrLroCallableBodyStatements(
+  private static Sample composeUnaryOrLroCallableSample(
       Method method, VariableExpr clientVarExpr, VariableExpr requestVarExpr) {
     List bodyStatements = new ArrayList<>();
     // Create api future variable expression, and assign it with a value by invoking callable
@@ -1376,7 +835,7 @@ private static Sample composeUnaryOrLroCallableBodyStatements(
             .setReturnType(method.outputType())
             .build();
     TypeNode methodOutputType = method.hasLro() ? method.lro().responseType() : method.outputType();
-    boolean returnsVoid = isProtoEmptyType(methodOutputType);
+    boolean returnsVoid = SampleComposerUtil.isProtoEmptyType(methodOutputType);
     if (returnsVoid) {
       bodyStatements.add(ExprStatement.withExpr(getMethodInvocationExpr));
     } else {
@@ -1407,7 +866,7 @@ private static Sample composeUnaryOrLroCallableBodyStatements(
     return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
 
-  private static Sample composePagedCallableBodyStatements(
+  private static Sample composePagedCallableSample(
       Method method,
       VariableExpr clientVarExpr,
       VariableExpr requestVarExpr,
@@ -1569,90 +1028,4 @@ private static Sample composePagedCallableBodyStatements(
         .setRegionTag(regionTag)
         .build();
   }
-
-  // ==================================Helpers===================================================//
-
-  // Create a list of RPC method arguments' variable expressions.
-  private static List createRpcMethodArgumentVariableExprs(
-      List arguments) {
-    return arguments.stream()
-        .map(
-            arg ->
-                VariableExpr.withVariable(
-                    Variable.builder()
-                        .setName(JavaStyle.toLowerCamelCase(arg.name()))
-                        .setType(arg.type())
-                        .build()))
-        .collect(Collectors.toList());
-  }
-
-  // Create a list of RPC method arguments' default value expression.
-  private static List createRpcMethodArgumentDefaultValueExprs(
-      List arguments, Map resourceNames) {
-    List resourceNameList =
-        resourceNames.values().stream().collect(Collectors.toList());
-    Function stringResourceNameDefaultValueExpr =
-        arg ->
-            MethodInvocationExpr.builder()
-                .setExprReferenceExpr(
-                    DefaultValueComposer.createResourceHelperValue(
-                        resourceNames.get(arg.field().resourceReference().resourceTypeString()),
-                        arg.field().resourceReference().isChildType(),
-                        resourceNameList,
-                        arg.field().name()))
-                .setMethodName("toString")
-                .setReturnType(TypeNode.STRING)
-                .build();
-    return arguments.stream()
-        .map(
-            arg ->
-                !isStringTypedResourceName(arg, resourceNames)
-                    ? DefaultValueComposer.createMethodArgValue(
-                        arg, resourceNames, Collections.emptyMap(), Collections.emptyMap())
-                    : stringResourceNameDefaultValueExpr.apply(arg))
-        .collect(Collectors.toList());
-  }
-
-  // Create a list of assignment expressions for variable expr with value expr.
-  private static List createAssignmentsForVarExprsWithValueExprs(
-      List variableExprs, List valueExprs) {
-    Preconditions.checkState(
-        variableExprs.size() == valueExprs.size(),
-        "Expected the number of method arguments to match the number of default values.");
-    return IntStream.range(0, variableExprs.size())
-        .mapToObj(
-            i ->
-                AssignmentExpr.builder()
-                    .setVariableExpr(variableExprs.get(i).toBuilder().setIsDecl(true).build())
-                    .setValueExpr(valueExprs.get(i))
-                    .build())
-        .collect(Collectors.toList());
-  }
-
-  // Assign client variable expr with create client.
-  // e.g EchoClient echoClient = EchoClient.create()
-  private static AssignmentExpr assignClientVariableWithCreateMethodExpr(
-      VariableExpr clientVarExpr) {
-    return AssignmentExpr.builder()
-        .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
-        .setValueExpr(
-            MethodInvocationExpr.builder()
-                .setStaticReferenceType(clientVarExpr.variable().type())
-                .setReturnType(clientVarExpr.variable().type())
-                .setMethodName("create")
-                .build())
-        .build();
-  }
-
-  private static boolean isStringTypedResourceName(
-      MethodArgument arg, Map resourceNames) {
-    return arg.type().equals(TypeNode.STRING)
-        && arg.field().hasResourceReference()
-        && resourceNames.containsKey(arg.field().resourceReference().resourceTypeString());
-  }
-
-  private static boolean isProtoEmptyType(TypeNode type) {
-    return type.reference().pakkage().equals("com.google.protobuf")
-        && type.reference().name().equals("Empty");
-  }
 }
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposer.java
new file mode 100644
index 0000000000..3a5cfb8d88
--- /dev/null
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposer.java
@@ -0,0 +1,329 @@
+package com.google.api.generator.gapic.composer.samplecode;
+
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.api.generator.engine.ast.AssignmentExpr;
+import com.google.api.generator.engine.ast.ConcreteReference;
+import com.google.api.generator.engine.ast.Expr;
+import com.google.api.generator.engine.ast.ExprStatement;
+import com.google.api.generator.engine.ast.MethodInvocationExpr;
+import com.google.api.generator.engine.ast.Statement;
+import com.google.api.generator.engine.ast.TryCatchStatement;
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.engine.ast.Variable;
+import com.google.api.generator.engine.ast.VariableExpr;
+import com.google.api.generator.gapic.composer.defaultvalue.DefaultValueComposer;
+import com.google.api.generator.gapic.model.Message;
+import com.google.api.generator.gapic.model.Method;
+import com.google.api.generator.gapic.model.MethodArgument;
+import com.google.api.generator.gapic.model.RegionTag;
+import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.model.Service;
+import com.google.api.generator.gapic.utils.JavaStyle;
+import com.google.common.base.Preconditions;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+public class ServiceClientHeaderSampleComposer {
+  public static Sample composeClassHeaderSample(
+      Service service,
+      TypeNode clientType,
+      Map resourceNames,
+      Map messageTypes) {
+    // Use the first pure unary RPC method's sample code as showcase, if no such method exists, use
+    // the first method in the service's methods list.
+    Method method =
+        service.methods().stream()
+            .filter(m -> m.stream() == Method.Stream.NONE && !m.hasLro() && !m.isPaged())
+            .findFirst()
+            .orElse(service.methods().get(0));
+    if (method.stream() == Method.Stream.NONE) {
+      if (method.methodSignatures().isEmpty()) {
+        return ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+            method, clientType, resourceNames, messageTypes);
+      }
+      return composeShowcaseMethodSample(
+          method, clientType, method.methodSignatures().get(0), resourceNames, messageTypes);
+    }
+    return ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+        method, clientType, resourceNames, messageTypes);
+  }
+
+  public static Sample composeShowcaseMethodSample(
+      Method method,
+      TypeNode clientType,
+      List arguments,
+      Map resourceNames,
+      Map messageTypes) {
+    VariableExpr clientVarExpr =
+        VariableExpr.withVariable(
+            Variable.builder()
+                .setName(JavaStyle.toLowerCamelCase(clientType.reference().name()))
+                .setType(clientType)
+                .build());
+
+    // Assign method's arguments variable with the default values.
+    List rpcMethodArgVarExprs = createArgumentVariableExprs(arguments);
+    List rpcMethodArgDefaultValueExprs =
+        createArgumentDefaultValueExprs(arguments, resourceNames);
+    List rpcMethodArgAssignmentExprs =
+        createAssignmentsForVarExprsWithValueExprs(
+            rpcMethodArgVarExprs, rpcMethodArgDefaultValueExprs);
+
+    List bodyExprs = new ArrayList<>();
+    bodyExprs.addAll(rpcMethodArgAssignmentExprs);
+
+    List bodyStatements = new ArrayList<>();
+    RegionTag regionTag;
+    if (method.isPaged()) {
+      Sample unaryPagedRpc =
+          ServiceClientUnaryMethodSampleComposer.composePagedSample(
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes);
+      bodyStatements.addAll(unaryPagedRpc.body());
+      regionTag = unaryPagedRpc.regionTag();
+    } else if (method.hasLro()) {
+      Sample unaryLroRpc =
+          ServiceClientUnaryMethodSampleComposer.composeLroSample(
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
+      bodyStatements.addAll(unaryLroRpc.body());
+      regionTag = unaryLroRpc.regionTag();
+    } else {
+      //  e.g. echoClient.echo(), echoClient.echo(...)
+      Sample unaryRpc =
+          ServiceClientUnaryMethodSampleComposer.composeSample(
+              method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
+      bodyStatements.addAll(unaryRpc.body());
+      regionTag = unaryRpc.regionTag();
+    }
+
+    List body =
+        Arrays.asList(
+            TryCatchStatement.builder()
+                .setTryResourceExpr(
+                    SampleComposerUtil.assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryBody(bodyStatements)
+                .setIsSampleCode(true)
+                .build());
+    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
+  }
+
+  public static Sample composeSetCredentialsSample(TypeNode clientType, TypeNode settingsType) {
+    // Initialize clientSettings with builder() method.
+    // e.g. EchoSettings echoSettings =
+    // EchoSettings.newBuilder().setCredentialsProvider(FixedCredentialsProvider.create("myCredentials")).build();
+    String settingsName = JavaStyle.toLowerCamelCase(settingsType.reference().name());
+    String clientName = JavaStyle.toLowerCamelCase(clientType.reference().name());
+    TypeNode myCredentialsType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("myCredentials")
+                .setPakkage(clientType.reference().pakkage())
+                .build());
+    VariableExpr settingsVarExpr =
+        VariableExpr.withVariable(
+            Variable.builder().setName(settingsName).setType(settingsType).build());
+    MethodInvocationExpr newBuilderMethodExpr =
+        MethodInvocationExpr.builder()
+            .setStaticReferenceType(settingsType)
+            .setMethodName("newBuilder")
+            .build();
+    TypeNode fixedCredentialProvideType =
+        TypeNode.withReference(ConcreteReference.withClazz(FixedCredentialsProvider.class));
+    MethodInvocationExpr credentialArgExpr =
+        MethodInvocationExpr.builder()
+            .setStaticReferenceType(fixedCredentialProvideType)
+            .setArguments(
+                VariableExpr.withVariable(
+                    Variable.builder().setName("myCredentials").setType(myCredentialsType).build()))
+            .setMethodName("create")
+            .build();
+    MethodInvocationExpr credentialsMethodExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(newBuilderMethodExpr)
+            .setArguments(credentialArgExpr)
+            .setMethodName("setCredentialsProvider")
+            .build();
+    MethodInvocationExpr buildMethodExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(credentialsMethodExpr)
+            .setReturnType(settingsType)
+            .setMethodName("build")
+            .build();
+    Expr initSettingsVarExpr =
+        AssignmentExpr.builder()
+            .setVariableExpr(settingsVarExpr.toBuilder().setIsDecl(true).build())
+            .setValueExpr(buildMethodExpr)
+            .build();
+
+    // Initialized client with create() method.
+    // e.g. EchoClient echoClient = EchoClient.create(echoSettings);
+    VariableExpr clientVarExpr =
+        VariableExpr.withVariable(
+            Variable.builder().setName(clientName).setType(clientType).build());
+    MethodInvocationExpr createMethodExpr =
+        MethodInvocationExpr.builder()
+            .setStaticReferenceType(clientType)
+            .setArguments(settingsVarExpr)
+            .setMethodName("create")
+            .setReturnType(clientType)
+            .build();
+    String rpcName = createMethodExpr.methodIdentifier().name();
+    String disambiguation = settingsVarExpr.type().reference().name();
+    Expr initClientVarExpr =
+        AssignmentExpr.builder()
+            .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
+            .setValueExpr(createMethodExpr)
+            .build();
+
+    List sampleBody =
+        Arrays.asList(
+            ExprStatement.withExpr(initSettingsVarExpr), ExprStatement.withExpr(initClientVarExpr));
+    // e.g.  serviceName = echoClient
+    //      rpcName = create
+    //      disambiguation = echoSettings
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientName)
+            .setRpcName(rpcName)
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder().setBody(sampleBody).setRegionTag(regionTag).build();
+  }
+
+  public static Sample composeSetEndpointSample(TypeNode clientType, TypeNode settingsType) {
+    // Initialize client settings with builder() method.
+    // e.g. EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint("myEndpoint").build();
+    String settingsName = JavaStyle.toLowerCamelCase(settingsType.reference().name());
+    String clientName = JavaStyle.toLowerCamelCase(clientType.reference().name());
+    TypeNode myEndpointType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("myEndpoint")
+                .setPakkage(clientType.reference().pakkage())
+                .build());
+    VariableExpr settingsVarExpr =
+        VariableExpr.withVariable(
+            Variable.builder().setName(settingsName).setType(settingsType).build());
+    MethodInvocationExpr newBuilderMethodExpr =
+        MethodInvocationExpr.builder()
+            .setStaticReferenceType(settingsType)
+            .setMethodName("newBuilder")
+            .build();
+    MethodInvocationExpr credentialsMethodExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(newBuilderMethodExpr)
+            .setArguments(
+                VariableExpr.withVariable(
+                    Variable.builder().setName("myEndpoint").setType(myEndpointType).build()))
+            .setMethodName("setEndpoint")
+            .build();
+    MethodInvocationExpr buildMethodExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(credentialsMethodExpr)
+            .setReturnType(settingsType)
+            .setMethodName("build")
+            .build();
+
+    Expr initSettingsVarExpr =
+        AssignmentExpr.builder()
+            .setVariableExpr(settingsVarExpr.toBuilder().setIsDecl(true).build())
+            .setValueExpr(buildMethodExpr)
+            .build();
+
+    // Initialize client with create() method.
+    // e.g. EchoClient echoClient = EchoClient.create(echoSettings);
+    VariableExpr clientVarExpr =
+        VariableExpr.withVariable(
+            Variable.builder().setName(clientName).setType(clientType).build());
+    MethodInvocationExpr createMethodExpr =
+        MethodInvocationExpr.builder()
+            .setStaticReferenceType(clientType)
+            .setArguments(settingsVarExpr)
+            .setMethodName("create")
+            .setReturnType(clientType)
+            .build();
+    String rpcName = createMethodExpr.methodIdentifier().name();
+    String disambiguation = settingsVarExpr.type().reference().name();
+    Expr initClientVarExpr =
+        AssignmentExpr.builder()
+            .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
+            .setValueExpr(createMethodExpr)
+            .build();
+    // e.g. serviceName = echoClient
+    //      rpcName = create
+    //      disambiguation = echoSettings
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientName)
+            .setRpcName(rpcName)
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    List sampleBody =
+        Arrays.asList(
+            ExprStatement.withExpr(initSettingsVarExpr), ExprStatement.withExpr(initClientVarExpr));
+    return Sample.builder().setBody(sampleBody).setRegionTag(regionTag).build();
+  }
+
+  // Create a list of RPC method arguments' variable expressions.
+  private static List createArgumentVariableExprs(List arguments) {
+    return arguments.stream()
+        .map(
+            arg ->
+                VariableExpr.withVariable(
+                    Variable.builder()
+                        .setName(JavaStyle.toLowerCamelCase(arg.name()))
+                        .setType(arg.type())
+                        .build()))
+        .collect(Collectors.toList());
+  }
+
+  // Create a list of RPC method arguments' default value expression.
+  private static List createArgumentDefaultValueExprs(
+      List arguments, Map resourceNames) {
+    List resourceNameList =
+        resourceNames.values().stream().collect(Collectors.toList());
+    Function stringResourceNameDefaultValueExpr =
+        arg ->
+            MethodInvocationExpr.builder()
+                .setExprReferenceExpr(
+                    DefaultValueComposer.createResourceHelperValue(
+                        resourceNames.get(arg.field().resourceReference().resourceTypeString()),
+                        arg.field().resourceReference().isChildType(),
+                        resourceNameList,
+                        arg.field().name()))
+                .setMethodName("toString")
+                .setReturnType(TypeNode.STRING)
+                .build();
+    return arguments.stream()
+        .map(
+            arg ->
+                !SampleComposerUtil.isStringTypedResourceName(arg, resourceNames)
+                    ? DefaultValueComposer.createMethodArgValue(
+                        arg, resourceNames, Collections.emptyMap(), Collections.emptyMap())
+                    : stringResourceNameDefaultValueExpr.apply(arg))
+        .collect(Collectors.toList());
+  }
+
+  // Create a list of assignment expressions for variable expr with value expr.
+  private static List createAssignmentsForVarExprsWithValueExprs(
+      List variableExprs, List valueExprs) {
+    Preconditions.checkState(
+        variableExprs.size() == valueExprs.size(),
+        "Expected the number of method arguments to match the number of default values.");
+    return IntStream.range(0, variableExprs.size())
+        .mapToObj(
+            i ->
+                AssignmentExpr.builder()
+                    .setVariableExpr(variableExprs.get(i).toBuilder().setIsDecl(true).build())
+                    .setValueExpr(valueExprs.get(i))
+                    .build())
+        .collect(Collectors.toList());
+  }
+}
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposer.java
new file mode 100644
index 0000000000..3384fec18c
--- /dev/null
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposer.java
@@ -0,0 +1,305 @@
+package com.google.api.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.AssignmentExpr;
+import com.google.api.generator.engine.ast.CommentStatement;
+import com.google.api.generator.engine.ast.Expr;
+import com.google.api.generator.engine.ast.ExprStatement;
+import com.google.api.generator.engine.ast.ForStatement;
+import com.google.api.generator.engine.ast.LineComment;
+import com.google.api.generator.engine.ast.MethodInvocationExpr;
+import com.google.api.generator.engine.ast.Statement;
+import com.google.api.generator.engine.ast.TryCatchStatement;
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.Variable;
+import com.google.api.generator.engine.ast.VariableExpr;
+import com.google.api.generator.gapic.composer.defaultvalue.DefaultValueComposer;
+import com.google.api.generator.gapic.model.Field;
+import com.google.api.generator.gapic.model.Message;
+import com.google.api.generator.gapic.model.Method;
+import com.google.api.generator.gapic.model.RegionTag;
+import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.utils.JavaStyle;
+import com.google.common.base.Preconditions;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
+public class ServiceClientUnaryMethodSampleComposer {
+  public static Sample composeDefaultSample(
+      Method method,
+      TypeNode clientType,
+      Map resourceNames,
+      Map messageTypes) {
+    VariableExpr clientVarExpr =
+        VariableExpr.withVariable(
+            Variable.builder()
+                .setName(JavaStyle.toLowerCamelCase(clientType.reference().name()))
+                .setType(clientType)
+                .build());
+
+    // Create request variable expression and assign with its default value.
+    VariableExpr requestVarExpr =
+        VariableExpr.withVariable(
+            Variable.builder().setName("request").setType(method.inputType()).build());
+    List rpcMethodArgVarExprs = Arrays.asList(requestVarExpr);
+    Message requestMessage = messageTypes.get(method.inputType().reference().fullName());
+    Preconditions.checkNotNull(
+        requestMessage,
+        String.format(
+            "Could not find the message type %s.", method.inputType().reference().fullName()));
+    Expr requestBuilderExpr =
+        DefaultValueComposer.createSimpleMessageBuilderValue(
+            requestMessage, resourceNames, messageTypes);
+    AssignmentExpr requestAssignmentExpr =
+        AssignmentExpr.builder()
+            .setVariableExpr(requestVarExpr.toBuilder().setIsDecl(true).build())
+            .setValueExpr(requestBuilderExpr)
+            .build();
+
+    List bodyExprs = new ArrayList<>();
+    bodyExprs.add(requestAssignmentExpr);
+
+    List bodyStatements = new ArrayList<>();
+    RegionTag regionTag;
+    if (method.isPaged()) {
+      // e.g. echoClient.pagedExpand(request).iterateAll()
+      Sample unaryPagedRpc =
+          composePagedSample(method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes);
+      bodyStatements.addAll(unaryPagedRpc.body());
+      regionTag = unaryPagedRpc.regionTag();
+    } else if (method.hasLro()) {
+      Sample unaryLroRpc = composeLroSample(method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
+      bodyStatements.addAll(unaryLroRpc.body());
+      regionTag = unaryLroRpc.regionTag();
+    } else {
+      // e.g. echoClient.echo(request)
+      Sample unaryRpc = composeSample(method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
+      bodyStatements.addAll(unaryRpc.body());
+      regionTag = unaryRpc.regionTag();
+    }
+
+    List body =
+        Arrays.asList(
+            TryCatchStatement.builder()
+                .setTryResourceExpr(
+                    SampleComposerUtil.assignClientVariableWithCreateMethodExpr(clientVarExpr))
+                .setTryBody(bodyStatements)
+                .setIsSampleCode(true)
+                .build());
+    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
+  }
+
+  static Sample composeSample(
+      Method method,
+      VariableExpr clientVarExpr,
+      List rpcMethodArgVarExprs,
+      List bodyExprs) {
+
+    // Invoke current method based on return type.
+    // e.g. if return void, echoClient.echo(..); or,
+    // e.g. if return other type, EchoResponse response = echoClient.echo(...);
+    boolean returnsVoid = SampleComposerUtil.isProtoEmptyType(method.outputType());
+    MethodInvocationExpr clientRpcMethodInvocationExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(clientVarExpr)
+            .setMethodName(JavaStyle.toLowerCamelCase(method.name()))
+            .setArguments(
+                rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
+            .setReturnType(method.outputType())
+            .build();
+    String disambiguation =
+        rpcMethodArgVarExprs.stream()
+            .map(
+                e ->
+                    e.variable().type().reference() == null
+                        ? JavaStyle.toUpperCamelCase(
+                            e.variable().type().typeKind().name().toLowerCase())
+                        : JavaStyle.toUpperCamelCase(e.variable().type().reference().name()))
+            .collect(Collectors.joining());
+
+    if (returnsVoid) {
+      bodyExprs.add(clientRpcMethodInvocationExpr);
+    } else {
+      VariableExpr responseVarExpr =
+          VariableExpr.withVariable(
+              Variable.builder().setName("response").setType(method.outputType()).build());
+      bodyExprs.add(
+          AssignmentExpr.builder()
+              .setVariableExpr(responseVarExpr.toBuilder().setIsDecl(true).build())
+              .setValueExpr(clientRpcMethodInvocationExpr)
+              .build());
+    }
+
+    // e.g. serviceName = echoClient
+    //      rpcName =  echo
+    //      disambiguation = echoRequest
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder()
+        .setBody(
+            bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()))
+        .setRegionTag(regionTag)
+        .build();
+  }
+
+  static Sample composePagedSample(
+      Method method,
+      VariableExpr clientVarExpr,
+      List rpcMethodArgVarExprs,
+      List bodyExprs,
+      Map messageTypes) {
+
+    // Find the repeated field.
+    Message methodOutputMessage = messageTypes.get(method.outputType().reference().fullName());
+    Preconditions.checkNotNull(
+        methodOutputMessage,
+        "Output message %s not found, keys: ",
+        method.outputType().reference().fullName(),
+        messageTypes.keySet().toString());
+    Field repeatedPagedResultsField = methodOutputMessage.findAndUnwrapPaginatedRepeatedField();
+    Preconditions.checkNotNull(
+        repeatedPagedResultsField,
+        String.format(
+            "No repeated field found on message %s for method %s",
+            methodOutputMessage.name(), method.name()));
+    TypeNode repeatedResponseType = repeatedPagedResultsField.type();
+
+    // For loop paged response item on iterateAll method.
+    // e.g. for (LogEntry element : loggingServiceV2Client.ListLogs(parent).iterateAll()) {
+    //          //doThingsWith(element);
+    //      }
+    MethodInvocationExpr clientMethodIterateAllExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(clientVarExpr)
+            .setMethodName(JavaStyle.toLowerCamelCase(method.name()))
+            .setArguments(
+                rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
+            .build();
+    String disambiguation =
+        rpcMethodArgVarExprs.stream()
+            .map(
+                arg ->
+                    arg.variable().type().reference() == null
+                        ? JavaStyle.toUpperCamelCase(
+                            arg.variable().type().typeKind().name().toLowerCase())
+                        : JavaStyle.toUpperCamelCase(arg.variable().type().reference().name()))
+            .collect(Collectors.joining());
+
+    clientMethodIterateAllExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(clientMethodIterateAllExpr)
+            .setMethodName("iterateAll")
+            .setReturnType(repeatedResponseType)
+            .build();
+    disambiguation =
+        disambiguation.concat(
+            JavaStyle.toUpperCamelCase(clientMethodIterateAllExpr.methodIdentifier().name()));
+    ForStatement loopIteratorStatement =
+        ForStatement.builder()
+            .setLocalVariableExpr(
+                VariableExpr.builder()
+                    .setVariable(
+                        Variable.builder().setName("element").setType(repeatedResponseType).build())
+                    .setIsDecl(true)
+                    .build())
+            .setCollectionExpr(clientMethodIterateAllExpr)
+            .setBody(
+                Arrays.asList(
+                    CommentStatement.withComment(
+                        LineComment.withComment("doThingsWith(element);"))))
+            .build();
+
+    List bodyStatements =
+        bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
+    bodyExprs.clear();
+    bodyStatements.add(loopIteratorStatement);
+
+    // e.g. serviceName = echoClient
+    //      rpcName =  listContent
+    //      disambiguation = iterateAll
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
+  }
+
+  static Sample composeLroSample(
+      Method method,
+      VariableExpr clientVarExpr,
+      List rpcMethodArgVarExprs,
+      List bodyExprs) {
+    // Assign response variable with invoking client's LRO method.
+    // e.g. if return void, echoClient.waitAsync(ttl).get(); or,
+    // e.g. if return other type, WaitResponse response = echoClient.waitAsync(ttl).get();
+    MethodInvocationExpr invokeLroGetMethodExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(clientVarExpr)
+            .setMethodName(String.format("%sAsync", JavaStyle.toLowerCamelCase(method.name())))
+            .setArguments(
+                rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
+            .build();
+    String disambiguation =
+        "Async"
+            + rpcMethodArgVarExprs.stream()
+                .map(
+                    e ->
+                        e.variable().type().reference() == null
+                            ? JavaStyle.toUpperCamelCase(
+                                e.variable().type().typeKind().name().toLowerCase())
+                            : JavaStyle.toUpperCamelCase(e.variable().type().reference().name()))
+                .collect(Collectors.joining());
+    invokeLroGetMethodExpr =
+        MethodInvocationExpr.builder()
+            .setExprReferenceExpr(invokeLroGetMethodExpr)
+            .setMethodName("get")
+            .setReturnType(method.lro().responseType())
+            .build();
+    disambiguation =
+        disambiguation.concat(
+            JavaStyle.toUpperCamelCase(invokeLroGetMethodExpr.methodIdentifier().name()));
+    boolean returnsVoid = SampleComposerUtil.isProtoEmptyType(method.lro().responseType());
+    if (returnsVoid) {
+      bodyExprs.add(invokeLroGetMethodExpr);
+    } else {
+      VariableExpr responseVarExpr =
+          VariableExpr.builder()
+              .setVariable(
+                  Variable.builder()
+                      .setName("response")
+                      .setType(method.lro().responseType())
+                      .build())
+              .setIsDecl(true)
+              .build();
+      bodyExprs.add(
+          AssignmentExpr.builder()
+              .setVariableExpr(responseVarExpr)
+              .setValueExpr(invokeLroGetMethodExpr)
+              .build());
+    }
+
+    // e.g. serviceName = echoClient
+    //      rpcName =  wait
+    //      disambiguation = durationGet
+    RegionTag regionTag =
+        RegionTag.builder()
+            .setServiceName(clientVarExpr.variable().identifier().name())
+            .setRpcName(method.name())
+            .setOverloadDisambiguation(disambiguation)
+            .build();
+    return Sample.builder()
+        .setBody(
+            bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()))
+        .setRegionTag(regionTag)
+        .build();
+  }
+}
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposer.java
similarity index 98%
rename from src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposer.java
rename to src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposer.java
index 193c5501fd..72c5a6a1c7 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposer.java
@@ -34,9 +34,9 @@
 import java.util.Optional;
 import java.util.stream.Collectors;
 
-public final class SettingsSampleCodeComposer {
+public final class SettingsSampleComposer {
 
-  public static Optional composeSampleCode(
+  public static Optional composeSettingsSample(
       Optional methodNameOpt, String settingsClassName, TypeNode classType) {
     if (!methodNameOpt.isPresent()) {
       return Optional.empty();
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java
similarity index 88%
rename from src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatterTest.java
rename to src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java
index 4b93c8193e..9302679f85 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeBodyJavaFormatterTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java
@@ -17,16 +17,16 @@
 import static junit.framework.TestCase.assertEquals;
 import static org.junit.Assert.assertThrows;
 
-import com.google.api.generator.gapic.composer.samplecode.SampleCodeBodyJavaFormatter.FormatException;
+import com.google.api.generator.gapic.composer.samplecode.SampleBodyJavaFormatter.FormatException;
 import com.google.api.generator.testutils.LineFormatter;
 import org.junit.Test;
 
-public class SampleCodeBodyJavaFormatterTest {
+public class SampleBodyJavaFormatterTest {
 
   @Test
   public void validFormatSampleCode_tryCatchStatement() {
     String samplecode = LineFormatter.lines("try(boolean condition = false){", "int x = 3;", "}");
-    String result = SampleCodeBodyJavaFormatter.format(samplecode);
+    String result = SampleBodyJavaFormatter.format(samplecode);
     String expected =
         LineFormatter.lines("try (boolean condition = false) {\n", "  int x = 3;\n", "}");
     assertEquals(expected, result);
@@ -37,7 +37,7 @@ public void validFormatSampleCode_longLineStatement() {
     String sampleCode =
         "SubscriptionAdminSettings subscriptionAdminSettings = "
             + "SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();";
-    String result = SampleCodeBodyJavaFormatter.format(sampleCode);
+    String result = SampleBodyJavaFormatter.format(sampleCode);
     String expected =
         LineFormatter.lines(
             "SubscriptionAdminSettings subscriptionAdminSettings =\n",
@@ -51,7 +51,7 @@ public void validFormatSampleCode_longChainMethod() {
         "echoSettingsBuilder.echoSettings().setRetrySettings("
             + "echoSettingsBuilder.echoSettings().getRetrySettings().toBuilder()"
             + ".setTotalTimeout(Duration.ofSeconds(30)).build());";
-    String result = SampleCodeBodyJavaFormatter.format(sampleCode);
+    String result = SampleBodyJavaFormatter.format(sampleCode);
     String expected =
         LineFormatter.lines(
             "echoSettingsBuilder\n",
@@ -71,7 +71,7 @@ public void invalidFormatSampleCode_nonStatement() {
     assertThrows(
         FormatException.class,
         () -> {
-          SampleCodeBodyJavaFormatter.format("abc");
+          SampleBodyJavaFormatter.format("abc");
         });
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java
new file mode 100644
index 0000000000..0afd81e9ab
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java
@@ -0,0 +1,956 @@
+package com.google.api.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.model.Field;
+import com.google.api.generator.gapic.model.LongrunningOperation;
+import com.google.api.generator.gapic.model.Message;
+import com.google.api.generator.gapic.model.Method;
+import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.protoparser.Parser;
+import com.google.api.generator.testutils.LineFormatter;
+import com.google.protobuf.Descriptors;
+import com.google.showcase.v1beta1.EchoOuterClass;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Map;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ServiceClientCallableMethodSampleComposerTest {
+  private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
+  private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
+  private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
+  private static final String PAGINATED_FIELD_NAME = "page_size";
+
+  /*Testing composeLroCallableMethod*/
+  @Test
+  public void valid_composeLroCallableMethod_withReturnResponse() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeLroCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  OperationFuture future =\n",
+            "      echoClient.waitOperationCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  WaitResponse response = future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeLroCallableMethod_withReturnVoid() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeLroCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  OperationFuture future =\n",
+            "      echoClient.waitOperationCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  /*Testing composePagedCallableMethod*/
+  @Test
+  public void valid_composePagedCallableMethod() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  PagedExpandRequest request =\n",
+            "      PagedExpandRequest.newBuilder()\n",
+            "          .setContent(\"content951530617\")\n",
+            "          .setPageSize(883849137)\n",
+            "          .setPageToken(\"pageToken873572522\")\n",
+            "          .build();\n",
+            "  ApiFuture future ="
+                + " echoClient.pagedExpandPagedCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  for (EchoResponse element : future.get().iterateAll()) {\n",
+            "    // doThingsWith(element);\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composePagedCallableMethod_inputTypeNotExistInMessage() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composePagedCallableMethod_noExistMethodResponse() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoExistResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composePagedCallableMethod_noRepeatedResponse() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoRepeatedResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Field responseField = Field.builder().setName("response").setType(TypeNode.STRING).build();
+    Message noRepeatedResponseMessage =
+        Message.builder()
+            .setName("NoRepeatedResponse")
+            .setFullProtoName("google.showcase.v1beta1.NoRepeatedResponse")
+            .setType(
+                TypeNode.withReference(
+                    VaporReference.builder()
+                        .setName("NoRepeatedResponse")
+                        .setPakkage(SHOWCASE_PACKAGE_NAME)
+                        .build()))
+            .setFields(Arrays.asList(responseField))
+            .build();
+    messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage);
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  /*Testing composeStreamCallableMethod*/
+  @Test
+  public void valid_composeStreamCallableMethod_serverStream() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Expand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.SERVER)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  ExpandRequest request =\n",
+            "      ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n",
+            "  ServerStream stream = echoClient.expandCallable().call(request);\n",
+            "  for (EchoResponse response : stream) {\n",
+            "    // Do something when a response is received.\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeStreamCallableMethod_serverStreamNotExistRequest() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Expand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.SERVER)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void valid_composeStreamCallableMethod_bidiStream() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("chat")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.BIDI)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  BidiStream bidiStream ="
+                + " echoClient.chatCallable().call();\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  bidiStream.send(request);\n",
+            "  for (EchoResponse response : bidiStream) {\n",
+            "    // Do something when a response is received.\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeStreamCallableMethod_bidiStreamNotExistRequest() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("chat")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.BIDI)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void valid_composeStreamCallableMethod_clientStream() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Collect")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.CLIENT)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  ApiStreamObserver responseObserver =\n",
+            "      new ApiStreamObserver() {\n",
+            "        {@literal @}Override\n",
+            "        public void onNext(EchoResponse response) {\n",
+            "          // Do something when a response is received.\n",
+            "        }\n",
+            "\n",
+            "        {@literal @}Override\n",
+            "        public void onError(Throwable t) {\n",
+            "          // Add error-handling\n",
+            "        }\n",
+            "\n",
+            "        {@literal @}Override\n",
+            "        public void onCompleted() {\n",
+            "          // Do something when complete.\n",
+            "        }\n",
+            "      };\n",
+            "  ApiStreamObserver requestObserver =\n",
+            "      echoClient.collect().clientStreamingCall(responseObserver);\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  requestObserver.onNext(request);\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeStreamCallableMethod_clientStreamNotExistRequest() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Collect")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.CLIENT)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  /*Testing composeRegularCallableMethod*/
+  @Test
+  public void valid_composeRegularCallableMethod_unaryRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  ApiFuture future = echoClient.echoCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  EchoResponse response = future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeRegularCallableMethod_lroRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  Operation response = future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeRegularCallableMethod_lroRpcWithReturnVoid() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeRegularCallableMethod_pageRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  PagedExpandRequest request =\n",
+            "      PagedExpandRequest.newBuilder()\n",
+            "          .setContent(\"content951530617\")\n",
+            "          .setPageSize(883849137)\n",
+            "          .setPageToken(\"pageToken873572522\")\n",
+            "          .build();\n",
+            "  while (true) {\n",
+            "    PagedExpandResponse response = echoClient.pagedExpandCallable().call(request);\n",
+            "    for (EchoResponse element : response.getResponsesList()) {\n",
+            "      // doThingsWith(element);\n",
+            "    }\n",
+            "    String nextPageToken = response.getNextPageToken();\n",
+            "    if (!Strings.isNullOrEmpty(nextPageToken)) {\n",
+            "      request = request.toBuilder().setPageToken(nextPageToken).build();\n",
+            "    } else {\n",
+            "      break;\n",
+            "    }\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeRegularCallableMethod_noExistMethodRequest() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composeRegularCallableMethod_noExistMethodResponsePagedRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoExistResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composeRegularCallableMethod_noRepeatedResponsePagedRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoRepeatedResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Field responseField = Field.builder().setName("response").setType(TypeNode.STRING).build();
+    Message noRepeatedResponseMessage =
+        Message.builder()
+            .setName("NoRepeatedResponse")
+            .setFullProtoName("google.showcase.v1beta1.NoRepeatedResponse")
+            .setType(
+                TypeNode.withReference(
+                    VaporReference.builder()
+                        .setName("NoRepeatedResponse")
+                        .setPakkage(SHOWCASE_PACKAGE_NAME)
+                        .build()))
+            .setFields(Arrays.asList(responseField))
+            .build();
+    messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage);
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  private String writeStatements(Sample sample) {
+    return SampleCodeWriter.write(sample.body());
+  }
+}
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java
new file mode 100644
index 0000000000..f8bb51f956
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java
@@ -0,0 +1,799 @@
+package com.google.api.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.ConcreteReference;
+import com.google.api.generator.engine.ast.Reference;
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.model.Field;
+import com.google.api.generator.gapic.model.LongrunningOperation;
+import com.google.api.generator.gapic.model.Message;
+import com.google.api.generator.gapic.model.Method;
+import com.google.api.generator.gapic.model.MethodArgument;
+import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.model.Service;
+import com.google.api.generator.gapic.protoparser.Parser;
+import com.google.api.generator.testutils.LineFormatter;
+import com.google.protobuf.Descriptors;
+import com.google.showcase.v1beta1.EchoOuterClass;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ServiceClientHeaderSampleComposerTest {
+  private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
+  private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
+  private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
+  private static final String PAGINATED_FIELD_NAME = "page_size";
+
+  /*Testing composeClassHeaderSample*/
+  @Test
+  public void composeClassHeaderSample_unaryRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    Set outputResourceNames = new HashSet<>();
+    List services =
+        Parser.parseService(
+            echoFileDescriptor, messageTypes, resourceNames, Optional.empty(), outputResourceNames);
+    Service echoProtoService = services.get(0);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Sample sample =
+        ServiceClientHeaderSampleComposer.composeClassHeaderSample(
+            echoProtoService, clientType, resourceNames, messageTypes);
+    String results = writeStatements(sample);
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoResponse response = echoClient.echo();\n",
+            "}");
+    Assert.assertEquals(expected, results);
+  }
+
+  @Test
+  public void composeClassHeaderSample_firstMethodIsNotUnaryRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    TypeNode ttlTypeNode =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
+    MethodArgument ttl =
+        MethodArgument.builder()
+            .setName("ttl")
+            .setType(ttlTypeNode)
+            .setField(
+                Field.builder()
+                    .setName("ttl")
+                    .setType(ttlTypeNode)
+                    .setIsMessage(true)
+                    .setIsContainedInOneof(true)
+                    .build())
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .setMethodSignatures(Arrays.asList(Arrays.asList(ttl)))
+            .build();
+    Service service =
+        Service.builder()
+            .setName("Echo")
+            .setDefaultHost("localhost:7469")
+            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
+            .setPakkage(SHOWCASE_PACKAGE_NAME)
+            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
+            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
+            .setOverriddenName("Echo")
+            .setMethods(Arrays.asList(method))
+            .build();
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeClassHeaderSample(
+                service, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  Duration ttl = Duration.newBuilder().build();\n",
+            "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void composeClassHeaderSample_firstMethodHasNoSignatures() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Echo")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .build();
+    Service service =
+        Service.builder()
+            .setName("Echo")
+            .setDefaultHost("localhost:7469")
+            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
+            .setPakkage(SHOWCASE_PACKAGE_NAME)
+            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
+            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
+            .setOverriddenName("Echo")
+            .setMethods(Arrays.asList(method))
+            .build();
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeClassHeaderSample(
+                service, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  EchoResponse response = echoClient.echo(request);\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void composeClassHeaderSample_firstMethodIsStream() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Expand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.SERVER)
+            .build();
+    Service service =
+        Service.builder()
+            .setName("Echo")
+            .setDefaultHost("localhost:7469")
+            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
+            .setPakkage(SHOWCASE_PACKAGE_NAME)
+            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
+            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
+            .setOverriddenName("Echo")
+            .setMethods(Arrays.asList(method))
+            .build();
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeClassHeaderSample(
+                service, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  ExpandRequest request =\n",
+            "      ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n",
+            "  ServerStream stream = echoClient.expandCallable().call(request);\n",
+            "  for (EchoResponse response : stream) {\n",
+            "    // Do something when a response is received.\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  /*Testing composeSetCredentialsSample*/
+  @Test
+  public void composeSetCredentialsSample() {
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode settingsType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoSettings")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeSetCredentialsSample(
+                clientType, settingsType));
+    String expected =
+        LineFormatter.lines(
+            "EchoSettings echoSettings =\n",
+            "    EchoSettings.newBuilder()\n",
+            "        .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))\n",
+            "        .build();\n",
+            "EchoClient echoClient = EchoClient.create(echoSettings);");
+    Assert.assertEquals(expected, results);
+  }
+
+  /*Testing composeSetEndpointSample*/
+  @Test
+  public void composeSetEndpointSample() {
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode settingsType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoSettings")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeSetEndpointSample(clientType, settingsType));
+    String expected =
+        LineFormatter.lines(
+            "EchoSettings echoSettings ="
+                + " EchoSettings.newBuilder().setEndpoint(myEndpoint).build();\n",
+            "EchoClient echoClient = EchoClient.create(echoSettings);");
+    Assert.assertEquals(expected, results);
+  }
+
+  /*Testing composeShowcaseMethodSample*/
+  @Test
+  public void valid_composeShowcaseMethodSample_pagedRpcWithMultipleMethodArguments() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ListContentRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ListContentResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode resourceNameType =
+        TypeNode.withReference(
+            ConcreteReference.builder()
+                .setClazz(List.class)
+                .setGenerics(ConcreteReference.withClazz(String.class))
+                .build());
+    List arguments =
+        Arrays.asList(
+            MethodArgument.builder()
+                .setName("resourceName")
+                .setType(resourceNameType)
+                .setField(
+                    Field.builder()
+                        .setName("resourceName")
+                        .setType(resourceNameType)
+                        .setIsRepeated(true)
+                        .build())
+                .build(),
+            MethodArgument.builder()
+                .setName("filter")
+                .setType(TypeNode.STRING)
+                .setField(Field.builder().setName("filter").setType(TypeNode.STRING).build())
+                .build());
+    Method method =
+        Method.builder()
+            .setName("ListContent")
+            .setMethodSignatures(Arrays.asList(arguments))
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Reference repeatedResponseReference =
+        VaporReference.builder().setName("Content").setPakkage(SHOWCASE_PACKAGE_NAME).build();
+    Field repeatedField =
+        Field.builder()
+            .setName("responses")
+            .setType(
+                TypeNode.withReference(
+                    ConcreteReference.builder()
+                        .setClazz(List.class)
+                        .setGenerics(repeatedResponseReference)
+                        .build()))
+            .setIsMessage(true)
+            .setIsRepeated(true)
+            .build();
+    Field nextPagedTokenField =
+        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
+    Message listContentResponseMessage =
+        Message.builder()
+            .setName("ListContentResponse")
+            .setFullProtoName("google.showcase.v1beta1.ListContentResponse")
+            .setType(outputType)
+            .setFields(Arrays.asList(repeatedField, nextPagedTokenField))
+            .build();
+    messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, arguments, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  List resourceName = new ArrayList<>();\n",
+            "  String filter = \"filter-1274492040\";\n",
+            "  for (Content element : echoClient.listContent(resourceName, filter).iterateAll())"
+                + " {\n",
+            "    // doThingsWith(element);\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeShowcaseMethodSample_pagedRpcWithNoMethodArguments() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ListContentRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ListContentResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    List arguments = Collections.emptyList();
+    Method method =
+        Method.builder()
+            .setName("ListContent")
+            .setMethodSignatures(Arrays.asList(arguments))
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Reference repeatedResponseReference =
+        VaporReference.builder().setName("Content").setPakkage(SHOWCASE_PACKAGE_NAME).build();
+    Field repeatedField =
+        Field.builder()
+            .setName("responses")
+            .setType(
+                TypeNode.withReference(
+                    ConcreteReference.builder()
+                        .setClazz(List.class)
+                        .setGenerics(repeatedResponseReference)
+                        .build()))
+            .setIsMessage(true)
+            .setIsRepeated(true)
+            .build();
+    Field nextPagedTokenField =
+        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
+    Message listContentResponseMessage =
+        Message.builder()
+            .setName("ListContentResponse")
+            .setFullProtoName("google.showcase.v1beta1.ListContentResponse")
+            .setType(outputType)
+            .setFields(Arrays.asList(repeatedField, nextPagedTokenField))
+            .build();
+    messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, arguments, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  for (Content element : echoClient.listContent().iterateAll()) {\n",
+            "    // doThingsWith(element);\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeShowcaseMethodSample_noMatchedRepeatedResponseTypeInPagedMethod() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    List methodArguments = Collections.emptyList();
+    Method method =
+        Method.builder()
+            .setName("simplePagedMethod")
+            .setMethodSignatures(Arrays.asList(methodArguments))
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, methodArguments, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composeShowcaseMethodSample_noRepeatedResponseTypeInPagedMethod() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    List methodArguments = Collections.emptyList();
+    Method method =
+        Method.builder()
+            .setName("simplePagedMethod")
+            .setMethodSignatures(Arrays.asList(methodArguments))
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Field responseField =
+        Field.builder()
+            .setName("response")
+            .setType(
+                TypeNode.withReference(
+                    ConcreteReference.builder()
+                        .setClazz(List.class)
+                        .setGenerics(ConcreteReference.withClazz(String.class))
+                        .build()))
+            .setIsMessage(true)
+            .setIsRepeated(false)
+            .build();
+    Field nextPageToken =
+        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
+    Message noRepeatedFieldMessage =
+        Message.builder()
+            .setName("PagedResponse")
+            .setFullProtoName("google.showcase.v1beta1.PagedResponse")
+            .setType(outputType)
+            .setFields(Arrays.asList(responseField, nextPageToken))
+            .build();
+    messageTypes.put("PagedResponse", noRepeatedFieldMessage);
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, methodArguments, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void valid_composeShowcaseMethodSample_lroUnaryRpcWithNoMethodArgument() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .setMethodSignatures(Collections.emptyList())
+            .build();
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, Collections.emptyList(), resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitResponse response = echoClient.waitAsync().get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeShowcaseMethodSample_lroRpcWithReturnResponseType() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    TypeNode ttlTypeNode =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
+    MethodArgument ttl =
+        MethodArgument.builder()
+            .setName("ttl")
+            .setType(ttlTypeNode)
+            .setField(
+                Field.builder()
+                    .setName("ttl")
+                    .setType(ttlTypeNode)
+                    .setIsMessage(true)
+                    .setIsContainedInOneof(true)
+                    .build())
+            .build();
+    List arguments = Arrays.asList(ttl);
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .setMethodSignatures(Arrays.asList(arguments))
+            .build();
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, arguments, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  Duration ttl = Duration.newBuilder().build();\n",
+            "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeShowcaseMethodSample_lroRpcWithReturnVoid() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    TypeNode ttlTypeNode =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
+    MethodArgument ttl =
+        MethodArgument.builder()
+            .setName("ttl")
+            .setType(ttlTypeNode)
+            .setField(
+                Field.builder()
+                    .setName("ttl")
+                    .setType(ttlTypeNode)
+                    .setIsMessage(true)
+                    .setIsContainedInOneof(true)
+                    .build())
+            .build();
+    List arguments = Arrays.asList(ttl);
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .setMethodSignatures(Arrays.asList(arguments))
+            .build();
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, arguments, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  Duration ttl = Duration.newBuilder().build();\n",
+            "  echoClient.waitAsync(ttl).get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  private String writeStatements(Sample sample) {
+    return SampleCodeWriter.write(sample.body());
+  }
+}
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java
deleted file mode 100644
index e3404844e5..0000000000
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java
+++ /dev/null
@@ -1,2657 +0,0 @@
-// Copyright 2020 Google LLC
-//
-// 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.generator.gapic.composer.samplecode;
-
-import com.google.api.generator.engine.ast.ConcreteReference;
-import com.google.api.generator.engine.ast.Reference;
-import com.google.api.generator.engine.ast.TypeNode;
-import com.google.api.generator.engine.ast.VaporReference;
-import com.google.api.generator.gapic.model.Field;
-import com.google.api.generator.gapic.model.LongrunningOperation;
-import com.google.api.generator.gapic.model.Message;
-import com.google.api.generator.gapic.model.Method;
-import com.google.api.generator.gapic.model.Method.Stream;
-import com.google.api.generator.gapic.model.MethodArgument;
-import com.google.api.generator.gapic.model.ResourceName;
-import com.google.api.generator.gapic.model.Sample;
-import com.google.api.generator.gapic.model.Service;
-import com.google.api.generator.gapic.protoparser.Parser;
-import com.google.api.generator.testutils.LineFormatter;
-import com.google.protobuf.Descriptors.FileDescriptor;
-import com.google.showcase.v1beta1.EchoOuterClass;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import org.junit.Assert;
-import org.junit.Test;
-
-public class ServiceClientSampleCodeComposerTest {
-  private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
-  private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
-  private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
-  private static final String PAGINATED_FIELD_NAME = "page_size";
-
-  // =============================== Class Header Sample Code ===============================//
-  @Test
-  public void composeClassHeaderMethodSampleCode_unaryRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    Set outputResourceNames = new HashSet<>();
-    List services =
-        Parser.parseService(
-            echoFileDescriptor, messageTypes, resourceNames, Optional.empty(), outputResourceNames);
-    Service echoProtoService = services.get(0);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Sample sample =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-            echoProtoService, clientType, resourceNames, messageTypes);
-    String results = writeStatements(sample);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoResponse response = echoClient.echo();\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-
-  @Test
-  public void composeClassHeaderMethodSampleCode_firstMethodIsNotUnaryRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    TypeNode ttlTypeNode =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
-    MethodArgument ttl =
-        MethodArgument.builder()
-            .setName("ttl")
-            .setType(ttlTypeNode)
-            .setField(
-                Field.builder()
-                    .setName("ttl")
-                    .setType(ttlTypeNode)
-                    .setIsMessage(true)
-                    .setIsContainedInOneof(true)
-                    .build())
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .setMethodSignatures(Arrays.asList(Arrays.asList(ttl)))
-            .build();
-    Service service =
-        Service.builder()
-            .setName("Echo")
-            .setDefaultHost("localhost:7469")
-            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
-            .setPakkage(SHOWCASE_PACKAGE_NAME)
-            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
-            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
-            .setOverriddenName("Echo")
-            .setMethods(Arrays.asList(method))
-            .build();
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-                service, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  Duration ttl = Duration.newBuilder().build();\n",
-            "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void composeClassHeaderMethodSampleCode_firstMethodHasNoSignatures() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Echo")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .build();
-    Service service =
-        Service.builder()
-            .setName("Echo")
-            .setDefaultHost("localhost:7469")
-            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
-            .setPakkage(SHOWCASE_PACKAGE_NAME)
-            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
-            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
-            .setOverriddenName("Echo")
-            .setMethods(Arrays.asList(method))
-            .build();
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-                service, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  EchoResponse response = echoClient.echo(request);\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void composeClassHeaderMethodSampleCode_firstMethodIsStream() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Expand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.SERVER)
-            .build();
-    Service service =
-        Service.builder()
-            .setName("Echo")
-            .setDefaultHost("localhost:7469")
-            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
-            .setPakkage(SHOWCASE_PACKAGE_NAME)
-            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
-            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
-            .setOverriddenName("Echo")
-            .setMethods(Arrays.asList(method))
-            .build();
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-                service, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  ExpandRequest request =\n",
-            "      ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n",
-            "  ServerStream stream = echoClient.expandCallable().call(request);\n",
-            "  for (EchoResponse response : stream) {\n",
-            "    // Do something when a response is received.\n",
-            "  }\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void composeClassHeaderCredentialsSampleCode() {
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode settingsType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoSettings")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeClassHeaderCredentialsSampleCode(
-                clientType, settingsType));
-    String expected =
-        LineFormatter.lines(
-            "EchoSettings echoSettings =\n",
-            "    EchoSettings.newBuilder()\n",
-            "        .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))\n",
-            "        .build();\n",
-            "EchoClient echoClient = EchoClient.create(echoSettings);");
-    Assert.assertEquals(expected, results);
-  }
-
-  @Test
-  public void composeClassHeaderEndpointSampleCode() {
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode settingsType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoSettings")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeClassHeaderEndpointSampleCode(
-                clientType, settingsType));
-    String expected =
-        LineFormatter.lines(
-            "EchoSettings echoSettings ="
-                + " EchoSettings.newBuilder().setEndpoint(myEndpoint).build();\n",
-            "EchoClient echoClient = EchoClient.create(echoSettings);");
-    Assert.assertEquals(expected, results);
-  }
-
-  // =======================================Unary RPC Method Sample Code=======================//
-  /*
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List methodArguments = Collections.emptyList();
-    Method method =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(Arrays.asList(methodArguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, methodArguments, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoResponse response = echoClient.echo();\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode resourceNameType =
-        TypeNode.withReference(
-            ConcreteReference.withClazz(com.google.api.resourcenames.ResourceName.class));
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("parent")
-            .setType(resourceNameType)
-            .setField(
-                Field.builder()
-                    .setName("parent")
-                    .setType(TypeNode.STRING)
-                    .setResourceReference(
-                        ResourceReference.withType("showcase.googleapis.com/AnythingGoes"))
-                    .build())
-            .setIsResourceNameHelper(true)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method method =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  ResourceName parent = FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\");\n",
-            "  EchoResponse response = echoClient.echo(parent);\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithSuperReferenceIsResourceNameMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode methodArgType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("FoobarName")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .setSupertypeReference(
-                    ConcreteReference.withClazz(com.google.api.resourcenames.ResourceName.class))
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("name")
-            .setType(TypeNode.STRING)
-            .setResourceReference(ResourceReference.withType("showcase.googleapis.com/Foobar"))
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("name")
-            .setType(methodArgType)
-            .setField(methodArgField)
-            .setIsResourceNameHelper(true)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  FoobarName name = FoobarName.ofProjectFoobarName(\"[PROJECT]\", \"[FOOBAR]\");\n",
-            "  EchoResponse response = echoClient.echo(name);\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringWithResourceReferenceMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("name")
-            .setType(TypeNode.STRING)
-            .setResourceReference(ResourceReference.withType("showcase.googleapis.com/Foobar"))
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("name")
-            .setType(TypeNode.STRING)
-            .setField(methodArgField)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String name = FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString();\n",
-            "  EchoResponse response = echoClient.echo(name);\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringWithParentResourceReferenceMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("parent")
-            .setType(TypeNode.STRING)
-            .setResourceReference(
-                ResourceReference.withChildType("showcase.googleapis.com/AnythingGoes"))
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("parent")
-            .setType(TypeNode.STRING)
-            .setField(methodArgField)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String parent = FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString();\n",
-            "  EchoResponse response = echoClient.echo(parent);\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode methodArgType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Status").setPakkage("com.google.rpc").build());
-    Field methodArgField =
-        Field.builder()
-            .setName("error")
-            .setType(methodArgType)
-            .setIsMessage(true)
-            .setIsContainedInOneof(true)
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("error")
-            .setType(methodArgType)
-            .setField(methodArgField)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  Status error = Status.newBuilder().build();\n",
-            "  EchoResponse response = echoClient.echo(error);\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleWordNameMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("display_name")
-            .setType(TypeNode.STRING)
-            .setResourceReference(
-                ResourceReference.withChildType("showcase.googleapis.com/AnythingGoes"))
-            .build();
-    Reference userRef =
-        VaporReference.builder().setName("User").setPakkage(SHOWCASE_PACKAGE_NAME).build();
-    Field nestFiled =
-        Field.builder()
-            .setName("user")
-            .setType(TypeNode.withReference(userRef))
-            .setIsMessage(true)
-            .build();
-    MethodArgument argDisplayName =
-        MethodArgument.builder()
-            .setName("display_name")
-            .setType(TypeNode.STRING)
-            .setField(methodArgField)
-            .setNestedFields(Arrays.asList(nestFiled))
-            .build();
-    MethodArgument argOtherName =
-        MethodArgument.builder()
-            .setName("other_name")
-            .setType(TypeNode.STRING)
-            .setField(Field.builder().setName("other_name").setType(TypeNode.STRING).build())
-            .setNestedFields(Arrays.asList(nestFiled))
-            .build();
-    List> signatures =
-        Arrays.asList(Arrays.asList(argDisplayName, argOtherName));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String displayName = FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString();\n",
-            "  String otherName = \"otherName-1946065477\";\n",
-            "  EchoResponse response = echoClient.echo(displayName, otherName);\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringIsContainedInOneOfMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("content")
-            .setType(TypeNode.STRING)
-            .setIsContainedInOneof(true)
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("content")
-            .setType(TypeNode.STRING)
-            .setField(methodArgField)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String content = \"content951530617\";\n",
-            "  EchoResponse response = echoClient.echo(content);\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleMethodArguments() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    MethodArgument arg1 =
-        MethodArgument.builder()
-            .setName("content")
-            .setType(TypeNode.STRING)
-            .setField(Field.builder().setName("content").setType(TypeNode.STRING).build())
-            .build();
-    TypeNode severityType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Severity").setPakkage(SHOWCASE_PACKAGE_NAME).build());
-    MethodArgument arg2 =
-        MethodArgument.builder()
-            .setName("severity")
-            .setType(severityType)
-            .setField(
-                Field.builder().setName("severity").setType(severityType).setIsEnum(true).build())
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg1, arg2));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String content = \"content951530617\";\n",
-            "  Severity severity = Severity.forNumber(0);\n",
-            "  EchoResponse response = echoClient.echo(content, severity);\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithNoMethodArguments() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List> signatures = Arrays.asList(Collections.emptyList());
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoResponse response = echoClient.echo();\n",
-            "}");
-    Assert.assertEquals(expected, results);
-  }
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMethodReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("DeleteUserRequest")
-                .setPakkage("com.google.showcase.v1beta1")
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    List> methodSignatures =
-        Arrays.asList(
-            Arrays.asList(
-                MethodArgument.builder()
-                    .setName("name")
-                    .setType(TypeNode.STRING)
-                    .setField(Field.builder().setName("name").setType(TypeNode.STRING).build())
-                    .build()));
-    Method unaryMethod =
-        Method.builder()
-            .setName("delete")
-            .setMethodSignatures(methodSignatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, methodSignatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String name = \"name3373707\";\n",
-            "  echoClient.delete(name);\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-  */
-
-  // ===================================Unary Paged RPC Method Sample Code ======================//
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithMultipleMethodArguments() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ListContentRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ListContentResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode resourceNameType =
-        TypeNode.withReference(
-            ConcreteReference.builder()
-                .setClazz(List.class)
-                .setGenerics(ConcreteReference.withClazz(String.class))
-                .build());
-    List arguments =
-        Arrays.asList(
-            MethodArgument.builder()
-                .setName("resourceName")
-                .setType(resourceNameType)
-                .setField(
-                    Field.builder()
-                        .setName("resourceName")
-                        .setType(resourceNameType)
-                        .setIsRepeated(true)
-                        .build())
-                .build(),
-            MethodArgument.builder()
-                .setName("filter")
-                .setType(TypeNode.STRING)
-                .setField(Field.builder().setName("filter").setType(TypeNode.STRING).build())
-                .build());
-    Method method =
-        Method.builder()
-            .setName("ListContent")
-            .setMethodSignatures(Arrays.asList(arguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Reference repeatedResponseReference =
-        VaporReference.builder().setName("Content").setPakkage(SHOWCASE_PACKAGE_NAME).build();
-    Field repeatedField =
-        Field.builder()
-            .setName("responses")
-            .setType(
-                TypeNode.withReference(
-                    ConcreteReference.builder()
-                        .setClazz(List.class)
-                        .setGenerics(repeatedResponseReference)
-                        .build()))
-            .setIsMessage(true)
-            .setIsRepeated(true)
-            .build();
-    Field nextPagedTokenField =
-        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
-    Message listContentResponseMessage =
-        Message.builder()
-            .setName("ListContentResponse")
-            .setFullProtoName("google.showcase.v1beta1.ListContentResponse")
-            .setType(outputType)
-            .setFields(Arrays.asList(repeatedField, nextPagedTokenField))
-            .build();
-    messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
-
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, arguments, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  List resourceName = new ArrayList<>();\n",
-            "  String filter = \"filter-1274492040\";\n",
-            "  for (Content element : echoClient.listContent(resourceName, filter).iterateAll())"
-                + " {\n",
-            "    // doThingsWith(element);\n",
-            "  }\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithNoMethodArguments() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ListContentRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ListContentResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List arguments = Collections.emptyList();
-    Method method =
-        Method.builder()
-            .setName("ListContent")
-            .setMethodSignatures(Arrays.asList(arguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Reference repeatedResponseReference =
-        VaporReference.builder().setName("Content").setPakkage(SHOWCASE_PACKAGE_NAME).build();
-    Field repeatedField =
-        Field.builder()
-            .setName("responses")
-            .setType(
-                TypeNode.withReference(
-                    ConcreteReference.builder()
-                        .setClazz(List.class)
-                        .setGenerics(repeatedResponseReference)
-                        .build()))
-            .setIsMessage(true)
-            .setIsRepeated(true)
-            .build();
-    Field nextPagedTokenField =
-        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
-    Message listContentResponseMessage =
-        Message.builder()
-            .setName("ListContentResponse")
-            .setFullProtoName("google.showcase.v1beta1.ListContentResponse")
-            .setType(outputType)
-            .setFields(Arrays.asList(repeatedField, nextPagedTokenField))
-            .build();
-    messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
-
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, arguments, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  for (Content element : echoClient.listContent().iterateAll()) {\n",
-            "    // doThingsWith(element);\n",
-            "  }\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeRpcMethodHeaderSampleCode_noMatchedRepeatedResponseTypeInPagedMethod() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List methodArguments = Collections.emptyList();
-    Method method =
-        Method.builder()
-            .setName("simplePagedMethod")
-            .setMethodSignatures(Arrays.asList(methodArguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, methodArguments, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposeRpcMethodHeaderSampleCode_noRepeatedResponseTypeInPagedMethod() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List methodArguments = Collections.emptyList();
-    Method method =
-        Method.builder()
-            .setName("simplePagedMethod")
-            .setMethodSignatures(Arrays.asList(methodArguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Field responseField =
-        Field.builder()
-            .setName("response")
-            .setType(
-                TypeNode.withReference(
-                    ConcreteReference.builder()
-                        .setClazz(List.class)
-                        .setGenerics(ConcreteReference.withClazz(String.class))
-                        .build()))
-            .setIsMessage(true)
-            .setIsRepeated(false)
-            .build();
-    Field nextPageToken =
-        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
-    Message noRepeatedFieldMessage =
-        Message.builder()
-            .setName("PagedResponse")
-            .setFullProtoName("google.showcase.v1beta1.PagedResponse")
-            .setType(outputType)
-            .setFields(Arrays.asList(responseField, nextPageToken))
-            .build();
-    messageTypes.put("PagedResponse", noRepeatedFieldMessage);
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, methodArguments, resourceNames, messageTypes));
-  }
-
-  // ===================================Unary LRO RPC Method Sample Code ======================//
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_lroUnaryRpcWithNoMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .setMethodSignatures(Collections.emptyList())
-            .build();
-
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, Collections.emptyList(), resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitResponse response = echoClient.waitAsync().get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_lroRpcWithReturnResponseType() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    TypeNode ttlTypeNode =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
-    MethodArgument ttl =
-        MethodArgument.builder()
-            .setName("ttl")
-            .setType(ttlTypeNode)
-            .setField(
-                Field.builder()
-                    .setName("ttl")
-                    .setType(ttlTypeNode)
-                    .setIsMessage(true)
-                    .setIsContainedInOneof(true)
-                    .build())
-            .build();
-    List arguments = Arrays.asList(ttl);
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .setMethodSignatures(Arrays.asList(arguments))
-            .build();
-
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, arguments, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  Duration ttl = Duration.newBuilder().build();\n",
-            "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_lroRpcWithReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    TypeNode ttlTypeNode =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
-    MethodArgument ttl =
-        MethodArgument.builder()
-            .setName("ttl")
-            .setType(ttlTypeNode)
-            .setField(
-                Field.builder()
-                    .setName("ttl")
-                    .setType(ttlTypeNode)
-                    .setIsMessage(true)
-                    .setIsContainedInOneof(true)
-                    .build())
-            .build();
-    List arguments = Arrays.asList(ttl);
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .setMethodSignatures(Arrays.asList(arguments))
-            .build();
-
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, arguments, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  Duration ttl = Duration.newBuilder().build();\n",
-            "  echoClient.waitAsync(ttl).get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  // ================================Unary RPC Default Method Sample Code ====================//
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_isPagedMethod() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  PagedExpandRequest request =\n",
-            "      PagedExpandRequest.newBuilder()\n",
-            "          .setContent(\"content951530617\")\n",
-            "          .setPageSize(883849137)\n",
-            "          .setPageToken(\"pageToken873572522\")\n",
-            "          .build();\n",
-            "  for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {\n",
-            "    // doThingsWith(element);\n",
-            "  }\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeRpcDefaultMethodHeaderSampleCode_isPagedMethod() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_hasLroMethodWithReturnResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setLro(lro)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  echoClient.waitAsync(request).get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_hasLroMethodWithReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setLro(lro)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  WaitResponse response = echoClient.waitAsync(request).get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    Method method =
-        Method.builder()
-            .setName("Echo")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  echoClient.echo(request);\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Echo")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  EchoResponse response = echoClient.echo(request);\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  // ================================LRO Callable Method Sample Code ====================//
-  @Test
-  public void validComposeLroCallableMethodHeaderSampleCode_withReturnResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  OperationFuture future =\n",
-            "      echoClient.waitOperationCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  WaitResponse response = future.get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeLroCallableMethodHeaderSampleCode_withReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  OperationFuture future =\n",
-            "      echoClient.waitOperationCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  future.get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  // ================================Paged Callable Method Sample Code ====================//
-  @Test
-  public void validComposePagedCallableMethodHeaderSampleCode() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  PagedExpandRequest request =\n",
-            "      PagedExpandRequest.newBuilder()\n",
-            "          .setContent(\"content951530617\")\n",
-            "          .setPageSize(883849137)\n",
-            "          .setPageToken(\"pageToken873572522\")\n",
-            "          .build();\n",
-            "  ApiFuture future ="
-                + " echoClient.pagedExpandPagedCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  for (EchoResponse element : future.get().iterateAll()) {\n",
-            "    // doThingsWith(element);\n",
-            "  }\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposePagedCallableMethodHeaderSampleCode_inputTypeNotExistInMessage() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposePagedCallableMethodHeaderSampleCode_noExistMethodResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoExistResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposePagedCallableMethodHeaderSampleCode_noRepeatedResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoRepeatedResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Field responseField = Field.builder().setName("response").setType(TypeNode.STRING).build();
-    Message noRepeatedResponseMessage =
-        Message.builder()
-            .setName("NoRepeatedResponse")
-            .setFullProtoName("google.showcase.v1beta1.NoRepeatedResponse")
-            .setType(
-                TypeNode.withReference(
-                    VaporReference.builder()
-                        .setName("NoRepeatedResponse")
-                        .setPakkage(SHOWCASE_PACKAGE_NAME)
-                        .build()))
-            .setFields(Arrays.asList(responseField))
-            .build();
-    messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage);
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  // ==============================Stream Callable Method Sample Code ====================//
-  @Test
-  public void validComposeStreamCallableMethodHeaderSampleCode_serverStream() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Expand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.SERVER)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  ExpandRequest request =\n",
-            "      ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n",
-            "  ServerStream stream = echoClient.expandCallable().call(request);\n",
-            "  for (EchoResponse response : stream) {\n",
-            "    // Do something when a response is received.\n",
-            "  }\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeStreamCallableMethodHeaderSampleCode_serverStreamNotExistRequest() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Expand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.SERVER)
-            .build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void validComposeStreamCallableMethodHeaderSampleCode_bidiStream() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("chat")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.BIDI)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  BidiStream bidiStream ="
-                + " echoClient.chatCallable().call();\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  bidiStream.send(request);\n",
-            "  for (EchoResponse response : bidiStream) {\n",
-            "    // Do something when a response is received.\n",
-            "  }\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeStreamCallableMethodHeaderSampleCode_bidiStreamNotExistRequest() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("chat")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.BIDI)
-            .build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void validComposeStreamCallableMethodHeaderSampleCode_clientStream() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Collect")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.CLIENT)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  ApiStreamObserver responseObserver =\n",
-            "      new ApiStreamObserver() {\n",
-            "        {@literal @}Override\n",
-            "        public void onNext(EchoResponse response) {\n",
-            "          // Do something when a response is received.\n",
-            "        }\n",
-            "\n",
-            "        {@literal @}Override\n",
-            "        public void onError(Throwable t) {\n",
-            "          // Add error-handling\n",
-            "        }\n",
-            "\n",
-            "        {@literal @}Override\n",
-            "        public void onCompleted() {\n",
-            "          // Do something when complete.\n",
-            "        }\n",
-            "      };\n",
-            "  ApiStreamObserver requestObserver =\n",
-            "      echoClient.collect().clientStreamingCall(responseObserver);\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  requestObserver.onNext(request);\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeStreamCallableMethodHeaderSampleCode_clientStreamNotExistRequest() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Collect")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.CLIENT)
-            .build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  // ================================Regular Callable Method Sample Code ====================//
-  @Test
-  public void validComposeRegularCallableMethodHeaderSampleCode_unaryRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  ApiFuture future = echoClient.echoCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  EchoResponse response = future.get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRegularCallableMethodHeaderSampleCode_lroRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  Operation response = future.get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRegularCallableMethodHeaderSampleCode_lroRpcWithReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  future.get();\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRegularCallableMethodHeaderSampleCode_pageRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    String results =
-        writeStatements(
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  PagedExpandRequest request =\n",
-            "      PagedExpandRequest.newBuilder()\n",
-            "          .setContent(\"content951530617\")\n",
-            "          .setPageSize(883849137)\n",
-            "          .setPageToken(\"pageToken873572522\")\n",
-            "          .build();\n",
-            "  while (true) {\n",
-            "    PagedExpandResponse response = echoClient.pagedExpandCallable().call(request);\n",
-            "    for (EchoResponse element : response.getResponsesList()) {\n",
-            "      // doThingsWith(element);\n",
-            "    }\n",
-            "    String nextPageToken = response.getNextPageToken();\n",
-            "    if (!Strings.isNullOrEmpty(nextPageToken)) {\n",
-            "      request = request.toBuilder().setPageToken(nextPageToken).build();\n",
-            "    } else {\n",
-            "      break;\n",
-            "    }\n",
-            "  }\n",
-            "}");
-    Assert.assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeRegularCallableMethodHeaderSampleCode_noExistMethodRequest() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposeRegularCallableMethodHeaderSampleCode_noExistMethodResponsePagedRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoExistResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposeRegularCallableMethodHeaderSampleCode_noRepeatedResponsePagedRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoRepeatedResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Field responseField = Field.builder().setName("response").setType(TypeNode.STRING).build();
-    Message noRepeatedResponseMessage =
-        Message.builder()
-            .setName("NoRepeatedResponse")
-            .setFullProtoName("google.showcase.v1beta1.NoRepeatedResponse")
-            .setType(
-                TypeNode.withReference(
-                    VaporReference.builder()
-                        .setName("NoRepeatedResponse")
-                        .setPakkage(SHOWCASE_PACKAGE_NAME)
-                        .build()))
-            .setFields(Arrays.asList(responseField))
-            .build();
-    messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage);
-    Assert.assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  private String writeStatements(Sample sample) {
-    return SampleCodeWriter.write(sample.body());
-  }
-}
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposerTest.java
new file mode 100644
index 0000000000..c2c12b578b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposerTest.java
@@ -0,0 +1,343 @@
+// Copyright 2020 Google LLC
+//
+// 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.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.model.LongrunningOperation;
+import com.google.api.generator.gapic.model.Message;
+import com.google.api.generator.gapic.model.Method;
+import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.protoparser.Parser;
+import com.google.api.generator.testutils.LineFormatter;
+import com.google.protobuf.Descriptors.FileDescriptor;
+import com.google.showcase.v1beta1.EchoOuterClass;
+import java.util.Collections;
+import java.util.Map;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ServiceClientUnaryMethodSampleComposerTest {
+  private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
+  private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
+  private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
+  private static final String PAGINATED_FIELD_NAME = "page_size";
+
+  @Test
+  public void valid_composeDefaultSample_isPagedMethod() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  PagedExpandRequest request =\n",
+            "      PagedExpandRequest.newBuilder()\n",
+            "          .setContent(\"content951530617\")\n",
+            "          .setPageSize(883849137)\n",
+            "          .setPageToken(\"pageToken873572522\")\n",
+            "          .build();\n",
+            "  for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {\n",
+            "    // doThingsWith(element);\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeDefaultSample_isPagedMethod() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void valid_composeDefaultSample_hasLroMethodWithReturnResponse() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  echoClient.waitAsync(request).get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeDefaultSample_hasLroMethodWithReturnVoid() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  WaitResponse response = echoClient.waitAsync(request).get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeDefaultSample_pureUnaryReturnVoid() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    Method method =
+        Method.builder()
+            .setName("Echo")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  echoClient.echo(request);\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeDefaultSample_pureUnaryReturnResponse() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Echo")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  EchoResponse response = echoClient.echo(request);\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  private String writeStatements(Sample sample) {
+    return SampleCodeWriter.write(sample.body());
+  }
+}
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
similarity index 85%
rename from src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java
rename to src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
index 01dfccb106..0947e8ca3e 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
@@ -23,9 +23,9 @@
 import java.util.Optional;
 import org.junit.Test;
 
-public class SettingsSampleCodeComposerTest {
+public class SettingsSampleComposerTest {
   @Test
-  public void composeSettingsSampleCode_noMethods() {
+  public void composeSettingsSample_noMethods() {
     TypeNode classType =
         TypeNode.withReference(
             VaporReference.builder()
@@ -34,13 +34,12 @@ public void composeSettingsSampleCode_noMethods() {
                 .build());
     Optional results =
         writeSample(
-            SettingsSampleCodeComposer.composeSampleCode(
-                Optional.empty(), "EchoSettings", classType));
+            SettingsSampleComposer.composeSettingsSample(Optional.empty(), "EchoSettings", classType));
     assertEquals(results, Optional.empty());
   }
 
   @Test
-  public void composeSettingsSampleCode_serviceSettingsClass() {
+  public void composeSettingsSample_serviceSettingsClass() {
     TypeNode classType =
         TypeNode.withReference(
             VaporReference.builder()
@@ -49,8 +48,7 @@ public void composeSettingsSampleCode_serviceSettingsClass() {
                 .build());
     Optional results =
         writeSample(
-            SettingsSampleCodeComposer.composeSampleCode(
-                Optional.of("Echo"), "EchoSettings", classType));
+            SettingsSampleComposer.composeSettingsSample(Optional.of("Echo"), "EchoSettings", classType));
     String expected =
         LineFormatter.lines(
             "EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();\n",
@@ -68,7 +66,7 @@ public void composeSettingsSampleCode_serviceSettingsClass() {
   }
 
   @Test
-  public void composeSettingsSampleCode_serviceStubClass() {
+  public void composeSettingsSample_serviceStubClass() {
     TypeNode classType =
         TypeNode.withReference(
             VaporReference.builder()
@@ -77,8 +75,7 @@ public void composeSettingsSampleCode_serviceStubClass() {
                 .build());
     Optional results =
         writeSample(
-            SettingsSampleCodeComposer.composeSampleCode(
-                Optional.of("Echo"), "EchoSettings", classType));
+            SettingsSampleComposer.composeSettingsSample(Optional.of("Echo"), "EchoSettings", classType));
     String expected =
         LineFormatter.lines(
             "EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();\n",

From 72f5dbe39eda44e2efb876e207c96c6e89d32a1c Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 12:25:48 -0700
Subject: [PATCH 21/29] refactor: update sample naming, nit fixes

---
 .../generator/gapic/composer/Composer.java    |  10 --
 .../AbstractServiceClientClassComposer.java   |   7 +-
 .../composer/samplecode/SampleComposer.java   |   4 +-
 .../samplecode/SampleComposerUtil.java        |  14 ++
 ...iceClientCallableMethodSampleComposer.java | 133 ++----------------
 .../ServiceClientHeaderSampleComposer.java    |  20 +--
 ...=> ServiceClientMethodSampleComposer.java} |  64 ++-------
 .../samplecode/SettingsSampleComposer.java    |  12 --
 .../api/generator/gapic/model/GapicClass.java |  19 ++-
 .../api/generator/gapic/model/RegionTag.java  |  20 ++-
 .../api/generator/gapic/model/Sample.java     |  17 +--
 .../gapic/composer/ComposerTest.java          |   8 +-
 12 files changed, 84 insertions(+), 244 deletions(-)
 rename src/main/java/com/google/api/generator/gapic/composer/samplecode/{ServiceClientUnaryMethodSampleComposer.java => ServiceClientMethodSampleComposer.java} (82%)

diff --git a/src/main/java/com/google/api/generator/gapic/composer/Composer.java b/src/main/java/com/google/api/generator/gapic/composer/Composer.java
index 4fb72f02f2..c65fd3aff7 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/Composer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/Composer.java
@@ -245,14 +245,4 @@ private static GapicPackageInfo addApacheLicense(GapicPackageInfo gapicPackageIn
             .setFileHeader(CommentComposer.APACHE_LICENSE_COMMENT)
             .build());
   }
-
-  private static Sample addApacheLicense(Sample sample) {
-    return sample.withHeader(Arrays.asList(CommentComposer.APACHE_LICENSE_COMMENT));
-  }
-
-  private static Sample addRegionTagAttributes(
-      Sample sample, String apiVersion, String apiShortName) {
-    return sample.withRegionTag(
-        sample.regionTag().withApiVersion(apiVersion).withApiShortName(apiShortName));
-  }
 }
diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
index 7bcb598c6b..5be14c5f8e 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
@@ -58,7 +58,7 @@
 import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter;
 import com.google.api.generator.gapic.composer.samplecode.ServiceClientCallableMethodSampleComposer;
 import com.google.api.generator.gapic.composer.samplecode.ServiceClientHeaderSampleComposer;
-import com.google.api.generator.gapic.composer.samplecode.ServiceClientUnaryMethodSampleComposer;
+import com.google.api.generator.gapic.composer.samplecode.ServiceClientMethodSampleComposer;
 import com.google.api.generator.gapic.composer.store.TypeStore;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
 import com.google.api.generator.gapic.composer.utils.PackageChecker;
@@ -718,7 +718,8 @@ private static List createMethodVariants(
       Optional methodDocSample = Optional.empty();
       if (methodSample.isPresent()) {
         samples.add(methodSample.get());
-        methodDocSample = Optional.of(SampleCodeWriter.writeInlineSample(methodSample.get().body()));
+        methodDocSample =
+            Optional.of(SampleCodeWriter.writeInlineSample(methodSample.get().body()));
       }
 
       MethodDefinition.Builder methodVariantBuilder =
@@ -800,7 +801,7 @@ private static MethodDefinition createMethodDefaultMethod(
 
     Optional defaultMethodSample =
         Optional.of(
-            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
                 method, typeStore.get(clientName), resourceNames, messageTypes));
     Optional defaultMethodDocSample = Optional.empty();
     if (defaultMethodSample.isPresent()) {
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java
index 3bc22ef4bc..86eb187fd1 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java
@@ -63,12 +63,12 @@ private static List bodyWithComment(
   private static ClassDefinition createExecutableSample(
       List fileHeader,
       String packageName,
-      String sampleMethodName,
+      String sampleClassName,
       List sampleVariableAssignments,
       List sampleBody,
       RegionTag regionTag) {
 
-    String sampleClassName = JavaStyle.toUpperCamelCase(sampleMethodName);
+    String sampleMethodName = JavaStyle.toLowerCamelCase(sampleClassName);
     List sampleMethodArgs = composeSampleMethodArgs(sampleVariableAssignments);
     MethodDefinition mainMethod =
         composeMainMethod(
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerUtil.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerUtil.java
index b95b05b3da..ebf56cbbd2 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerUtil.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerUtil.java
@@ -6,7 +6,10 @@
 import com.google.api.generator.engine.ast.VariableExpr;
 import com.google.api.generator.gapic.model.MethodArgument;
 import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.utils.JavaStyle;
+import java.util.List;
 import java.util.Map;
+import java.util.stream.Collectors;
 
 public class SampleComposerUtil {
   // Assign client variable expr with create client.
@@ -34,4 +37,15 @@ static boolean isProtoEmptyType(TypeNode type) {
     return type.reference().pakkage().equals("com.google.protobuf")
         && type.reference().name().equals("Empty");
   }
+
+  static String createOverloadDisambiguation(List methodArgVarExprs) {
+    return methodArgVarExprs.stream()
+        .map(
+            arg ->
+                JavaStyle.toUpperCamelCase(
+                    arg.variable().type().reference() == null
+                        ? arg.variable().type().typeKind().name().toLowerCase()
+                        : arg.variable().type().reference().name().toLowerCase()))
+        .collect(Collectors.joining());
+  }
 }
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java
index cab1fd8f53..0b16c935b1 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java
@@ -98,7 +98,6 @@ public static Sample composeLroCallableMethod(
             .setMethodName(
                 String.format("%sOperationCallable", JavaStyle.toLowerCamelCase(method.name())))
             .build();
-    String disambiguation = "OperationCallable";
     rpcMethodInvocationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(rpcMethodInvocationExpr)
@@ -106,18 +105,11 @@ public static Sample composeLroCallableMethod(
             .setArguments(requestVarExpr)
             .setReturnType(operationFutureType)
             .build();
-    disambiguation =
-        disambiguation
-            + JavaStyle.toUpperCamelCase(rpcMethodInvocationExpr.methodIdentifier().name());
     bodyExprs.add(
         AssignmentExpr.builder()
             .setVariableExpr(operationFutureVarExpr.toBuilder().setIsDecl(true).build())
             .setValueExpr(rpcMethodInvocationExpr)
             .build());
-    disambiguation =
-        JavaStyle.toUpperCamelCase(
-            disambiguation + requestVarExpr.variable().type().reference().name());
-
     List bodyStatements =
         bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
     bodyExprs.clear();
@@ -156,14 +148,12 @@ public static Sample composeLroCallableMethod(
         bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()));
     bodyExprs.clear();
 
-    // e.g. serviceName = echoClient
-    //      rpcName = wait
-    //      disambiguation = futureCallWaitRequest
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientType.reference().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setIsAsynchronous(true)
+            .setOverloadDisambiguation("OperationCallable")
             .build();
     List body =
         Arrays.asList(
@@ -238,7 +228,6 @@ public static Sample composePagedCallableMethod(
             .setMethodName(
                 String.format("%sPagedCallable", JavaStyle.toLowerCamelCase(method.name())))
             .build();
-    String disambiguation = "PagedCallable";
     pagedCallableFutureMethodExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(pagedCallableFutureMethodExpr)
@@ -246,9 +235,6 @@ public static Sample composePagedCallableMethod(
             .setArguments(requestVarExpr)
             .setReturnType(apiFutureType)
             .build();
-    disambiguation =
-        disambiguation
-            + JavaStyle.toUpperCamelCase(pagedCallableFutureMethodExpr.methodIdentifier().name());
     AssignmentExpr apiFutureAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(apiFutureVarExpr.toBuilder().setIsDecl(true).build())
@@ -259,7 +245,6 @@ public static Sample composePagedCallableMethod(
     List bodyStatements =
         bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList());
     bodyExprs.clear();
-    disambiguation = disambiguation.concat(requestVarExpr.variable().type().reference().name());
 
     // Add line comment
     bodyStatements.add(CommentStatement.withComment(LineComment.withComment("Do something.")));
@@ -300,14 +285,12 @@ public static Sample composePagedCallableMethod(
                 .setIsSampleCode(true)
                 .build());
 
-    // e.g. serviceName = echoClient
-    //      rpcName = pagedExpand
-    //      disambiguation = futureCallExpandRequest
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientType.reference().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setIsAsynchronous(true)
+            .setOverloadDisambiguation("PagedCallable")
             .build();
     return Sample.builder().setBody(body).setRegionTag(regionTag).build();
   }
@@ -451,7 +434,6 @@ private static Sample composeStreamServerSample(
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(JavaStyle.toLowerCamelCase(String.format("%sCallable", method.name())))
             .build();
-    String disambiguation = "Callable";
     clientStreamCallMethodInvocationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(clientStreamCallMethodInvocationExpr)
@@ -459,27 +441,6 @@ private static Sample composeStreamServerSample(
             .setArguments(requestAssignmentExpr.variableExpr().toBuilder().setIsDecl(false).build())
             .setReturnType(serverStreamType)
             .build();
-    disambiguation =
-        disambiguation
-            + String.format(
-                "%s%s",
-                JavaStyle.toUpperCamelCase(
-                    clientStreamCallMethodInvocationExpr.methodIdentifier().name()),
-                JavaStyle.toUpperCamelCase(
-                    requestAssignmentExpr.variableExpr().variable().type().reference() == null
-                        ? requestAssignmentExpr
-                            .variableExpr()
-                            .variable()
-                            .type()
-                            .typeKind()
-                            .name()
-                            .toLowerCase()
-                        : requestAssignmentExpr
-                            .variableExpr()
-                            .variable()
-                            .type()
-                            .reference()
-                            .name()));
     AssignmentExpr streamAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(serverStreamVarExpr.toBuilder().setIsDecl(true).build())
@@ -511,14 +472,12 @@ private static Sample composeStreamServerSample(
             .build();
     bodyStatements.add(forStatement);
 
-    // e.g. serviceName = echoClient
-    //      rpcName = expand
-    //      disambiguation = callExpandRequest
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientVarExpr.variable().identifier().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setIsAsynchronous(true)
+            .setOverloadDisambiguation("StreamServer")
             .build();
     return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
@@ -544,30 +503,12 @@ private static Sample composeStreamBidiSample(
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(JavaStyle.toLowerCamelCase(String.format("%sCallable", method.name())))
             .build();
-    String disambiguation = "Callable";
     clientBidiStreamCallMethodInvoationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(clientBidiStreamCallMethodInvoationExpr)
             .setMethodName("call")
             .setReturnType(bidiStreamType)
             .build();
-    disambiguation =
-        disambiguation
-            + String.format(
-                "%s%s",
-                JavaStyle.toUpperCamelCase(
-                    clientBidiStreamCallMethodInvoationExpr.methodIdentifier().name()),
-                requestAssignmentExpr.variableExpr().variable().type().reference() == null
-                    ? JavaStyle.toUpperCamelCase(
-                        requestAssignmentExpr
-                            .variableExpr()
-                            .variable()
-                            .type()
-                            .typeKind()
-                            .name()
-                            .toLowerCase())
-                    : JavaStyle.toUpperCamelCase(
-                        requestAssignmentExpr.variableExpr().variable().type().reference().name()));
     AssignmentExpr bidiStreamAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(bidiStreamVarExpr.toBuilder().setIsDecl(true).build())
@@ -611,14 +552,12 @@ private static Sample composeStreamBidiSample(
             .build();
     bodyStatements.add(forStatement);
 
-    // e.g. serviceName = echoClient
-    //      rpcName = chat
-    //      disambiguation = callEchoRequest
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientVarExpr.variable().identifier().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setIsAsynchronous(true)
+            .setOverloadDisambiguation("StreamBidi")
             .build();
     return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
@@ -726,22 +665,6 @@ private static Sample composeStreamClientSample(
             .setMethodName("clientStreamingCall")
             .setReturnType(requestObserverType)
             .build();
-    String disambiguation =
-        String.format(
-            "%s%s",
-            JavaStyle.toUpperCamelCase(
-                clientStreamCallMethodInvocationExpr.methodIdentifier().name()),
-            JavaStyle.toUpperCamelCase(
-                requestAssignmentExpr.variableExpr().variable().type().reference() == null
-                    ? requestAssignmentExpr
-                        .variableExpr()
-                        .variable()
-                        .type()
-                        .typeKind()
-                        .name()
-                        .toLowerCase()
-                    : requestAssignmentExpr.variableExpr().variable().type().reference().name()));
-
     AssignmentExpr requestObserverAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(requestObserverVarExpr.toBuilder().setIsDecl(true).build())
@@ -762,16 +685,13 @@ private static Sample composeStreamClientSample(
             .build();
     bodyExprs.add(onNextMethodExpr);
 
-    // e.g. serviceName = echoClient
-    //      rpcName = collect
-    //      disambiguation = clientStreamingCallEchoRequest
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientVarExpr.variable().identifier().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setIsAsynchronous(true)
+            .setOverloadDisambiguation("StreamClient")
             .build();
-
     return Sample.builder()
         .setBody(
             bodyExprs.stream().map(e -> ExprStatement.withExpr(e)).collect(Collectors.toList()))
@@ -802,7 +722,6 @@ private static Sample composeUnaryOrLroCallableSample(
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(JavaStyle.toLowerCamelCase(String.format("%sCallable", method.name())))
             .build();
-    String disambiguation = "Callable";
     callableMethodInvocationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(callableMethodInvocationExpr)
@@ -810,16 +729,6 @@ private static Sample composeUnaryOrLroCallableSample(
             .setArguments(requestVarExpr)
             .setReturnType(apiFutureType)
             .build();
-    disambiguation =
-        disambiguation
-            + String.format(
-                "%s%s",
-                JavaStyle.toUpperCamelCase(callableMethodInvocationExpr.methodIdentifier().name()),
-                requestVarExpr.variable().type().reference().name() == null
-                    ? JavaStyle.toUpperCamelCase(
-                        requestVarExpr.variable().type().typeKind().name().toLowerCase())
-                    : JavaStyle.toUpperCamelCase(
-                        requestVarExpr.variable().type().reference().name()));
     AssignmentExpr futureAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(apiFutureVarExpr.toBuilder().setIsDecl(true).build())
@@ -853,16 +762,12 @@ private static Sample composeUnaryOrLroCallableSample(
       bodyStatements.add(ExprStatement.withExpr(responseAssignmentExpr));
     }
 
-    // e.g. serviceName = echoClient
-    //      rpcName = echo
-    //      disambiguation = futureCallEchoRequest
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientVarExpr.variable().identifier().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setIsAsynchronous(true)
             .build();
-
     return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
 
@@ -892,7 +797,6 @@ private static Sample composePagedCallableSample(
             .setExprReferenceExpr(clientVarExpr)
             .setMethodName(JavaStyle.toLowerCamelCase(String.format("%sCallable", method.name())))
             .build();
-    String disambiguation = "Callable";
     pagedCallableMethodInvocationExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(pagedCallableMethodInvocationExpr)
@@ -900,16 +804,6 @@ private static Sample composePagedCallableSample(
             .setArguments(requestVarExpr)
             .setReturnType(method.outputType())
             .build();
-    disambiguation =
-        disambiguation
-            + String.format(
-                "%s%s",
-                JavaStyle.toUpperCamelCase(
-                    pagedCallableMethodInvocationExpr.methodIdentifier().name()),
-                requestVarExpr.variable().type().reference() == null
-                    ? JavaStyle.toUpperCamelCase(requestVarExpr.variable().type().typeKind().name())
-                    : JavaStyle.toUpperCamelCase(
-                        requestVarExpr.variable().type().reference().name()));
     AssignmentExpr responseAssignmentExpr =
         AssignmentExpr.builder()
             .setVariableExpr(responseVarExpr.toBuilder().setIsDecl(true).build())
@@ -1014,14 +908,11 @@ private static Sample composePagedCallableSample(
             .setBody(whileBodyStatements)
             .build();
 
-    // e.g. serviceName = echoClient
-    //      rpcName =  pagedExpand
-    //      disambiguation = callPagedExpandRequest
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientVarExpr.variable().identifier().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setOverloadDisambiguation("Paged")
             .build();
     return Sample.builder()
         .setBody(Arrays.asList(pagedWhileStatement))
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposer.java
index 3a5cfb8d88..489ab337c7 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposer.java
@@ -46,7 +46,7 @@ public static Sample composeClassHeaderSample(
             .orElse(service.methods().get(0));
     if (method.stream() == Method.Stream.NONE) {
       if (method.methodSignatures().isEmpty()) {
-        return ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+        return ServiceClientMethodSampleComposer.composeCanonicalSample(
             method, clientType, resourceNames, messageTypes);
       }
       return composeShowcaseMethodSample(
@@ -84,20 +84,20 @@ public static Sample composeShowcaseMethodSample(
     RegionTag regionTag;
     if (method.isPaged()) {
       Sample unaryPagedRpc =
-          ServiceClientUnaryMethodSampleComposer.composePagedSample(
+          ServiceClientMethodSampleComposer.composePagedSample(
               method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs, messageTypes);
       bodyStatements.addAll(unaryPagedRpc.body());
       regionTag = unaryPagedRpc.regionTag();
     } else if (method.hasLro()) {
       Sample unaryLroRpc =
-          ServiceClientUnaryMethodSampleComposer.composeLroSample(
+          ServiceClientMethodSampleComposer.composeLroSample(
               method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
       bodyStatements.addAll(unaryLroRpc.body());
       regionTag = unaryLroRpc.regionTag();
     } else {
       //  e.g. echoClient.echo(), echoClient.echo(...)
       Sample unaryRpc =
-          ServiceClientUnaryMethodSampleComposer.composeSample(
+          ServiceClientMethodSampleComposer.composeSample(
               method, clientVarExpr, rpcMethodArgVarExprs, bodyExprs);
       bodyStatements.addAll(unaryRpc.body());
       regionTag = unaryRpc.regionTag();
@@ -175,7 +175,6 @@ public static Sample composeSetCredentialsSample(TypeNode clientType, TypeNode s
             .setReturnType(clientType)
             .build();
     String rpcName = createMethodExpr.methodIdentifier().name();
-    String disambiguation = settingsVarExpr.type().reference().name();
     Expr initClientVarExpr =
         AssignmentExpr.builder()
             .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
@@ -185,14 +184,11 @@ public static Sample composeSetCredentialsSample(TypeNode clientType, TypeNode s
     List sampleBody =
         Arrays.asList(
             ExprStatement.withExpr(initSettingsVarExpr), ExprStatement.withExpr(initClientVarExpr));
-    // e.g.  serviceName = echoClient
-    //      rpcName = create
-    //      disambiguation = echoSettings
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientName)
             .setRpcName(rpcName)
-            .setOverloadDisambiguation(disambiguation)
+            .setOverloadDisambiguation("setCredentialsProvider")
             .build();
     return Sample.builder().setBody(sampleBody).setRegionTag(regionTag).build();
   }
@@ -250,20 +246,16 @@ public static Sample composeSetEndpointSample(TypeNode clientType, TypeNode sett
             .setReturnType(clientType)
             .build();
     String rpcName = createMethodExpr.methodIdentifier().name();
-    String disambiguation = settingsVarExpr.type().reference().name();
     Expr initClientVarExpr =
         AssignmentExpr.builder()
             .setVariableExpr(clientVarExpr.toBuilder().setIsDecl(true).build())
             .setValueExpr(createMethodExpr)
             .build();
-    // e.g. serviceName = echoClient
-    //      rpcName = create
-    //      disambiguation = echoSettings
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientName)
             .setRpcName(rpcName)
-            .setOverloadDisambiguation(disambiguation)
+            .setOverloadDisambiguation("setEndpoint")
             .build();
     List sampleBody =
         Arrays.asList(
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposer.java
similarity index 82%
rename from src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposer.java
rename to src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposer.java
index 3384fec18c..d35069f5b9 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposer.java
@@ -27,8 +27,8 @@
 import java.util.Map;
 import java.util.stream.Collectors;
 
-public class ServiceClientUnaryMethodSampleComposer {
-  public static Sample composeDefaultSample(
+public class ServiceClientMethodSampleComposer {
+  public static Sample composeCanonicalSample(
       Method method,
       TypeNode clientType,
       Map resourceNames,
@@ -89,7 +89,11 @@ public static Sample composeDefaultSample(
                 .setTryBody(bodyStatements)
                 .setIsSampleCode(true)
                 .build());
-    return Sample.builder().setBody(body).setRegionTag(regionTag).build();
+    //  setting overloadDisambiguation to empty since this is the canonical snippet
+    return Sample.builder()
+        .setBody(body)
+        .setRegionTag(regionTag.withOverloadDisambiguation(""))
+        .build();
   }
 
   static Sample composeSample(
@@ -110,16 +114,6 @@ static Sample composeSample(
                 rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
             .setReturnType(method.outputType())
             .build();
-    String disambiguation =
-        rpcMethodArgVarExprs.stream()
-            .map(
-                e ->
-                    e.variable().type().reference() == null
-                        ? JavaStyle.toUpperCamelCase(
-                            e.variable().type().typeKind().name().toLowerCase())
-                        : JavaStyle.toUpperCamelCase(e.variable().type().reference().name()))
-            .collect(Collectors.joining());
-
     if (returnsVoid) {
       bodyExprs.add(clientRpcMethodInvocationExpr);
     } else {
@@ -133,14 +127,12 @@ static Sample composeSample(
               .build());
     }
 
-    // e.g. serviceName = echoClient
-    //      rpcName =  echo
-    //      disambiguation = echoRequest
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientVarExpr.variable().identifier().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setOverloadDisambiguation(
+                SampleComposerUtil.createOverloadDisambiguation(rpcMethodArgVarExprs))
             .build();
     return Sample.builder()
         .setBody(
@@ -182,15 +174,6 @@ static Sample composePagedSample(
             .setArguments(
                 rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
             .build();
-    String disambiguation =
-        rpcMethodArgVarExprs.stream()
-            .map(
-                arg ->
-                    arg.variable().type().reference() == null
-                        ? JavaStyle.toUpperCamelCase(
-                            arg.variable().type().typeKind().name().toLowerCase())
-                        : JavaStyle.toUpperCamelCase(arg.variable().type().reference().name()))
-            .collect(Collectors.joining());
 
     clientMethodIterateAllExpr =
         MethodInvocationExpr.builder()
@@ -198,9 +181,6 @@ static Sample composePagedSample(
             .setMethodName("iterateAll")
             .setReturnType(repeatedResponseType)
             .build();
-    disambiguation =
-        disambiguation.concat(
-            JavaStyle.toUpperCamelCase(clientMethodIterateAllExpr.methodIdentifier().name()));
     ForStatement loopIteratorStatement =
         ForStatement.builder()
             .setLocalVariableExpr(
@@ -221,14 +201,12 @@ static Sample composePagedSample(
     bodyExprs.clear();
     bodyStatements.add(loopIteratorStatement);
 
-    // e.g. serviceName = echoClient
-    //      rpcName =  listContent
-    //      disambiguation = iterateAll
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientVarExpr.variable().identifier().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setOverloadDisambiguation(
+                SampleComposerUtil.createOverloadDisambiguation(rpcMethodArgVarExprs))
             .build();
     return Sample.builder().setBody(bodyStatements).setRegionTag(regionTag).build();
   }
@@ -248,25 +226,12 @@ static Sample composeLroSample(
             .setArguments(
                 rpcMethodArgVarExprs.stream().map(e -> (Expr) e).collect(Collectors.toList()))
             .build();
-    String disambiguation =
-        "Async"
-            + rpcMethodArgVarExprs.stream()
-                .map(
-                    e ->
-                        e.variable().type().reference() == null
-                            ? JavaStyle.toUpperCamelCase(
-                                e.variable().type().typeKind().name().toLowerCase())
-                            : JavaStyle.toUpperCamelCase(e.variable().type().reference().name()))
-                .collect(Collectors.joining());
     invokeLroGetMethodExpr =
         MethodInvocationExpr.builder()
             .setExprReferenceExpr(invokeLroGetMethodExpr)
             .setMethodName("get")
             .setReturnType(method.lro().responseType())
             .build();
-    disambiguation =
-        disambiguation.concat(
-            JavaStyle.toUpperCamelCase(invokeLroGetMethodExpr.methodIdentifier().name()));
     boolean returnsVoid = SampleComposerUtil.isProtoEmptyType(method.lro().responseType());
     if (returnsVoid) {
       bodyExprs.add(invokeLroGetMethodExpr);
@@ -286,15 +251,12 @@ static Sample composeLroSample(
               .setValueExpr(invokeLroGetMethodExpr)
               .build());
     }
-
-    // e.g. serviceName = echoClient
-    //      rpcName =  wait
-    //      disambiguation = durationGet
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(clientVarExpr.variable().identifier().name())
             .setRpcName(method.name())
-            .setOverloadDisambiguation(disambiguation)
+            .setOverloadDisambiguation(
+                SampleComposerUtil.createOverloadDisambiguation(rpcMethodArgVarExprs))
             .build();
     return Sample.builder()
         .setBody(
diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposer.java
index 72c5a6a1c7..9027f50000 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposer.java
@@ -116,11 +116,6 @@ public static Optional composeSettingsSample(
             .setArguments(retrySettingsArgExpr)
             .build();
 
-    disambiguation =
-        disambiguation
-            + JavaStyle.toUpperCamelCase(
-                settingBuilderMethodInvocationExpr.methodIdentifier().name());
-
     // Initialize clientSetting with builder() method.
     // e.g: FoobarSettings foobarSettings = foobarSettingsBuilder.build();
     VariableExpr settingsVarExpr =
@@ -129,9 +124,6 @@ public static Optional composeSettingsSample(
                 .setType(classType)
                 .setName(JavaStyle.toLowerCamelCase(settingsClassName))
                 .build());
-    disambiguation =
-        disambiguation
-            + JavaStyle.toUpperCamelCase(settingsVarExpr.variable().type().reference().name());
 
     AssignmentExpr settingBuildAssignmentExpr =
         AssignmentExpr.builder()
@@ -153,14 +145,10 @@ public static Optional composeSettingsSample(
             .map(e -> ExprStatement.withExpr(e))
             .collect(Collectors.toList());
 
-    // e.g. serviceName = echoSettings
-    //      rpcName = echo
-    //      disambiguation = setRetrySettingsEchoSettings
     RegionTag regionTag =
         RegionTag.builder()
             .setServiceName(classType.reference().name())
             .setRpcName(methodNameOpt.get())
-            .setOverloadDisambiguation(disambiguation)
             .build();
     return Optional.of(Sample.builder().setBody(statements).setRegionTag(regionTag).build());
   }
diff --git a/src/main/java/com/google/api/generator/gapic/model/GapicClass.java b/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
index 046e4c19ca..bc2c8bb858 100644
--- a/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
+++ b/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
@@ -94,14 +94,19 @@ private static List handleDuplicateSamples(List samples) {
 
     // update similar samples regionTag/name so filesname/regiontag are unique
     for (Map.Entry> entry : duplicateDistinctSamples) {
-      int sampleNum = 1;
+      int sampleNum = 0;
       for (Sample sample : entry.getValue()) {
-        uniqueSamples.add(
-            sample.withRegionTag(
-                sample
-                    .regionTag()
-                    .withOverloadDisambiguation(
-                        sample.regionTag().overloadDisambiguation() + sampleNum)));
+        //  first sample will be canonical, not updating disambiguation
+        Sample uniqueSample = sample;
+        if (sampleNum != 0) {
+          uniqueSample =
+              sample.withRegionTag(
+                  sample
+                      .regionTag()
+                      .withOverloadDisambiguation(
+                          sample.regionTag().overloadDisambiguation() + sampleNum));
+        }
+        uniqueSamples.add(uniqueSample);
         sampleNum++;
       }
     }
diff --git a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java
index 39997dae82..cc740ec33e 100644
--- a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java
+++ b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java
@@ -32,14 +32,14 @@ public abstract class RegionTag {
 
   public abstract String overloadDisambiguation();
 
-  public abstract Boolean isSynchronous();
+  public abstract Boolean isAsynchronous();
 
   public static Builder builder() {
     return new AutoValue_RegionTag.Builder()
         .setApiVersion("")
         .setApiShortName("")
         .setOverloadDisambiguation("")
-        .setIsSynchronous(true);
+        .setIsAsynchronous(false);
   }
 
   abstract RegionTag.Builder toBuilder();
@@ -68,7 +68,7 @@ public abstract static class Builder {
 
     public abstract Builder setOverloadDisambiguation(String overloadDisambiguation);
 
-    public abstract Builder setIsSynchronous(Boolean isSynchronous);
+    public abstract Builder setIsAsynchronous(Boolean isAsynchronous);
 
     abstract String apiVersion();
 
@@ -83,7 +83,7 @@ public abstract static class Builder {
     abstract RegionTag autoBuild();
 
     public final RegionTag build() {
-      setApiVersion(sanitizeVersion(apiVersion()));
+      setApiVersion(sanitizeAttributes(apiVersion()));
       setApiShortName(sanitizeAttributes(apiShortName()));
       setServiceName(sanitizeAttributes(serviceName()));
       setRpcName(sanitizeAttributes(rpcName()));
@@ -92,11 +92,7 @@ public final RegionTag build() {
     }
 
     private final String sanitizeAttributes(String attribute) {
-      return JavaStyle.toLowerCamelCase(attribute.replaceAll("[^a-zA-Z0-9]", ""));
-    }
-
-    private final String sanitizeVersion(String version) {
-      return JavaStyle.toLowerCamelCase(version.replaceAll("[^a-zA-Z0-9.]", ""));
+      return JavaStyle.toUpperCamelCase(attribute.replaceAll("[^a-zA-Z0-9]", ""));
     }
   }
 
@@ -118,10 +114,10 @@ public String generate() {
     if (!overloadDisambiguation().isEmpty()) {
       rt = rt + "_" + overloadDisambiguation();
     }
-    if (isSynchronous()) {
-      rt = rt + "_sync";
-    } else {
+    if (isAsynchronous()) {
       rt = rt + "_async";
+    } else {
+      rt = rt + "_sync";
     }
 
     return rt.toLowerCase();
diff --git a/src/main/java/com/google/api/generator/gapic/model/Sample.java b/src/main/java/com/google/api/generator/gapic/model/Sample.java
index 53666ad0fc..5e5458a54d 100644
--- a/src/main/java/com/google/api/generator/gapic/model/Sample.java
+++ b/src/main/java/com/google/api/generator/gapic/model/Sample.java
@@ -17,7 +17,6 @@
 import com.google.api.generator.engine.ast.AssignmentExpr;
 import com.google.api.generator.engine.ast.CommentStatement;
 import com.google.api.generator.engine.ast.Statement;
-import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.auto.value.AutoValue;
 import com.google.common.collect.ImmutableList;
 import java.util.List;
@@ -48,7 +47,10 @@ public final Sample withHeader(List header) {
   }
 
   public final Sample withRegionTag(RegionTag regionTag) {
-    return toBuilder().setRegionTag(regionTag).build();
+    return toBuilder()
+        .setName(generateSampleClassName(regionTag()))
+        .setRegionTag(regionTag)
+        .build();
   }
 
   @AutoValue.Builder
@@ -68,15 +70,14 @@ public abstract static class Builder {
     abstract RegionTag regionTag();
 
     public final Sample build() {
-      setName(generateSampleName(regionTag()));
+      setName(generateSampleClassName(regionTag()));
       return autoBuild();
     }
   }
 
-  private static String generateSampleName(RegionTag regionTag) {
-    return String.format(
-        "%s%s",
-        JavaStyle.toLowerCamelCase(regionTag.rpcName()),
-        JavaStyle.toUpperCamelCase(regionTag.overloadDisambiguation()));
+  private static String generateSampleClassName(RegionTag regionTag) {
+    return (regionTag.isAsynchronous() ? "Async" : "Sync")
+        + regionTag.rpcName()
+        + regionTag.overloadDisambiguation();
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java
index 9d29b95792..6e8390b871 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/ComposerTest.java
@@ -21,7 +21,6 @@
 import com.google.api.generator.gapic.model.RegionTag;
 import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
 import java.util.Arrays;
 import java.util.List;
 import org.junit.Test;
@@ -43,7 +42,7 @@ public void gapicClass_addApacheLicense() {
                         .setApiShortName("apiShortName")
                         .setServiceName("service")
                         .setRpcName("addApacheLicense")
-                        .setOverloadDisambiguation("Sample")
+                        .setOverloadDisambiguation("sample")
                         .build())
                 .build());
     List gapicClassWithHeaderList =
@@ -52,8 +51,9 @@ public void gapicClass_addApacheLicense() {
     Assert.assertGoldenClass(
         this.getClass(), gapicClassWithHeaderList.get(0), "ComposerPostProcOnFooBar.golden");
     Assert.assertGoldenSamples(
-        gapicClassWithHeaderList.get(0).samples(),
+        this.getClass(),
+        "",
         gapicClassWithHeaderList.get(0).classDefinition().packageString(),
-        Utils.getGoldenDir(this.getClass()));
+        gapicClassWithHeaderList.get(0).samples());
   }
 }

From dec4d62e8196f78f7bd854e06e66d0e50719e4e2 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 12:27:07 -0700
Subject: [PATCH 22/29] refactor: integration goldens - sample naming

---
 ...olicyRequest.java => AsyncAnalyzeIamPolicy.java} | 10 +++++-----
 ...PolicyRequest.java => SyncAnalyzeIamPolicy.java} | 10 +++++-----
 ...t.java => AsyncAnalyzeIamPolicyLongrunning.java} | 12 +++++-------
 ...alyzeIamPolicyLongrunningOperationCallable.java} | 13 +++++--------
 ...et.java => SyncAnalyzeIamPolicyLongrunning.java} | 11 +++++------
 ...nalyzeMoveRequest.java => AsyncAnalyzeMove.java} | 10 +++++-----
 ...AnalyzeMoveRequest.java => SyncAnalyzeMove.java} | 10 +++++-----
 ...Request.java => AsyncBatchGetAssetsHistory.java} | 11 +++++------
 ...yRequest.java => SyncBatchGetAssetsHistory.java} | 10 +++++-----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...iceSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...lCreateFeedRequest.java => AsyncCreateFeed.java} | 10 +++++-----
 ...edCreateFeedRequest.java => SyncCreateFeed.java} | 10 +++++-----
 ...ateFeedString.java => SyncCreateFeedString.java} |  6 +++---
 ...lDeleteFeedRequest.java => AsyncDeleteFeed.java} | 10 +++++-----
 ...edDeleteFeedRequest.java => SyncDeleteFeed.java} | 10 +++++-----
 ...eedFeedName.java => SyncDeleteFeedFeedname.java} |  6 +++---
 ...eteFeedString.java => SyncDeleteFeedString.java} |  6 +++---
 ...ortAssetsRequest.java => AsyncExportAssets.java} | 10 +++++-----
 ...java => AsyncExportAssetsOperationCallable.java} | 10 +++++-----
 ...tAssetsRequestGet.java => SyncExportAssets.java} | 10 +++++-----
 ...ureCallGetFeedRequest.java => AsyncGetFeed.java} | 10 +++++-----
 ...{GetFeedGetFeedRequest.java => SyncGetFeed.java} | 10 +++++-----
 ...etFeedFeedName.java => SyncGetFeedFeedname.java} |  6 +++---
 .../{GetFeedString.java => SyncGetFeedString.java}  |  6 +++---
 ...quest.java => AsyncListAssetsPagedCallable.java} | 10 +++++-----
 ...tsRequestIterateAll.java => SyncListAssets.java} | 10 +++++-----
 ...tAssetsRequest.java => SyncListAssetsPaged.java} | 10 +++++-----
 ...rateAll.java => SyncListAssetsResourcename.java} | 10 +++++-----
 ...ingIterateAll.java => SyncListAssetsString.java} | 10 +++++-----
 ...allListFeedsRequest.java => AsyncListFeeds.java} | 10 +++++-----
 ...eedsListFeedsRequest.java => SyncListFeeds.java} | 10 +++++-----
 ...istFeedsString.java => SyncListFeedsString.java} |  6 +++---
 ... => AsyncSearchAllIamPoliciesPagedCallable.java} | 11 +++++------
 ...terateAll.java => SyncSearchAllIamPolicies.java} | 10 +++++-----
 ...uest.java => SyncSearchAllIamPoliciesPaged.java} | 11 +++++------
 ...va => SyncSearchAllIamPoliciesStringString.java} | 10 +++++-----
 ...va => AsyncSearchAllResourcesPagedCallable.java} | 11 +++++------
 ...tIterateAll.java => SyncSearchAllResources.java} | 10 +++++-----
 ...equest.java => SyncSearchAllResourcesPaged.java} | 10 +++++-----
 ...ncSearchAllResourcesStringStringListstring.java} | 10 +++++-----
 ...lUpdateFeedRequest.java => AsyncUpdateFeed.java} | 10 +++++-----
 ...edUpdateFeedRequest.java => SyncUpdateFeed.java} | 10 +++++-----
 ...{UpdateFeedFeed.java => SyncUpdateFeedFeed.java} |  6 +++---
 ...Settings.java => SyncBatchGetAssetsHistory.java} | 11 +++++------
 ...Settings.java => SyncBatchGetAssetsHistory.java} | 11 +++++------
 ...eRowRequest.java => AsyncCheckAndMutateRow.java} | 11 +++++------
 ...teRowRequest.java => SyncCheckAndMutateRow.java} | 10 +++++-----
 ...ytestringRowfilterListmutationListmutation.java} |  6 +++---
 ...ingRowfilterListmutationListmutationString.java} |  6 +++---
 ...ytestringRowfilterListmutationListmutation.java} |  6 +++---
 ...ingRowfilterListmutationListmutationString.java} |  9 +++++----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...ataSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...allMutateRowRequest.java => AsyncMutateRow.java} | 10 +++++-----
 ...eRowMutateRowRequest.java => SyncMutateRow.java} | 10 +++++-----
 ... SyncMutateRowStringBytestringListmutation.java} |  6 +++---
 ...utateRowStringBytestringListmutationString.java} |  6 +++---
 ...ncMutateRowTablenameBytestringListmutation.java} |  6 +++---
 ...teRowTablenameBytestringListmutationString.java} |  6 +++---
 ...equest.java => AsyncMutateRowsStreamServer.java} | 10 +++++-----
 ...RowRequest.java => AsyncReadModifyWriteRow.java} | 11 +++++------
 ...eRowRequest.java => SyncReadModifyWriteRow.java} | 10 +++++-----
 ...RowStringBytestringListreadmodifywriterule.java} |  7 ++++---
 ...ingBytestringListreadmodifywriteruleString.java} |  6 +++---
 ...TablenameBytestringListreadmodifywriterule.java} |  6 +++---
 ...ameBytestringListreadmodifywriteruleString.java} |  6 +++---
 ...sRequest.java => AsyncReadRowsStreamServer.java} | 10 +++++-----
 ...est.java => AsyncSampleRowKeysStreamServer.java} | 10 +++++-----
 ...BigtableDataSettings.java => SyncMutateRow.java} | 10 +++++-----
 ...BigtableStubSettings.java => SyncMutateRow.java} | 10 +++++-----
 ...t.java => AsyncAggregatedListPagedCallable.java} | 11 +++++------
 ...questIterateAll.java => SyncAggregatedList.java} | 10 +++++-----
 ...sesRequest.java => SyncAggregatedListPaged.java} | 10 +++++-----
 ...terateAll.java => SyncAggregatedListString.java} | 10 +++++-----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...sesSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...llDeleteAddressRequest.java => AsyncDelete.java} | 10 +++++-----
 ...quest.java => AsyncDeleteOperationCallable.java} | 10 +++++-----
 ...DeleteAddressRequestGet.java => SyncDelete.java} | 10 +++++-----
 ...ngGet.java => SyncDeleteStringStringString.java} | 10 +++++-----
 ...llInsertAddressRequest.java => AsyncInsert.java} | 10 +++++-----
 ...quest.java => AsyncInsertOperationCallable.java} | 10 +++++-----
 ...InsertAddressRequestGet.java => SyncInsert.java} | 10 +++++-----
 ...sGet.java => SyncInsertStringStringAddress.java} | 10 +++++-----
 ...ssesRequest.java => AsyncListPagedCallable.java} | 10 +++++-----
 ...ddressesRequestIterateAll.java => SyncList.java} | 10 +++++-----
 ...ListAddressesRequest.java => SyncListPaged.java} | 10 +++++-----
 ...rateAll.java => SyncListStringStringString.java} | 10 +++++-----
 ...dressesSettings.java => SyncAggregatedList.java} | 10 +++++-----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...onsSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...GetRegionOperationRequest.java => AsyncGet.java} | 10 +++++-----
 ...tGetRegionOperationRequest.java => SyncGet.java} | 10 +++++-----
 ...ngString.java => SyncGetStringStringString.java} |  6 +++---
 ...itRegionOperationRequest.java => AsyncWait.java} | 10 +++++-----
 ...aitRegionOperationRequest.java => SyncWait.java} | 10 +++++-----
 ...gString.java => SyncWaitStringStringString.java} |  6 +++---
 ...gsRegionOperationsSettings.java => SyncGet.java} | 10 +++++-----
 ...sesStubSettings.java => SyncAggregatedList.java} | 11 +++++------
 ...gionOperationsStubSettings.java => SyncGet.java} | 10 +++++-----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...alsSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...enRequest.java => AsyncGenerateAccessToken.java} | 11 +++++------
 ...kenRequest.java => SyncGenerateAccessToken.java} | 10 +++++-----
 ...iceaccountnameListstringListstringDuration.java} |  6 +++---
 ...essTokenStringListstringListstringDuration.java} |  6 +++---
 ...dTokenRequest.java => AsyncGenerateIdToken.java} | 10 +++++-----
 ...IdTokenRequest.java => SyncGenerateIdToken.java} | 10 +++++-----
 ...nServiceaccountnameListstringStringBoolean.java} |  7 ++++---
 ...nerateIdTokenStringListstringStringBoolean.java} |  6 +++---
 ...eCallSignBlobRequest.java => AsyncSignBlob.java} | 10 +++++-----
 ...gnBlobSignBlobRequest.java => SyncSignBlob.java} | 10 +++++-----
 ...BlobServiceaccountnameListstringBytestring.java} |  6 +++---
 ... => SyncSignBlobStringListstringBytestring.java} |  6 +++---
 ...ureCallSignJwtRequest.java => AsyncSignJwt.java} | 10 +++++-----
 ...{SignJwtSignJwtRequest.java => SyncSignJwt.java} | 10 +++++-----
 ...cSignJwtServiceaccountnameListstringString.java} |  6 +++---
 ....java => SyncSignJwtStringListstringString.java} |  6 +++---
 ...lsSettings.java => SyncGenerateAccessToken.java} | 11 +++++------
 ...ubSettings.java => SyncGenerateAccessToken.java} | 11 +++++------
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...icySettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...IamPolicyRequest.java => AsyncGetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncGetIamPolicy.java} | 10 +++++-----
 ...IamPolicyRequest.java => AsyncSetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncSetIamPolicy.java} | 10 +++++-----
 ...onsRequest.java => AsyncTestIamPermissions.java} | 11 +++++------
 ...ionsRequest.java => SyncTestIamPermissions.java} | 10 +++++-----
 ...IAMPolicySettings.java => SyncSetIamPolicy.java} | 10 +++++-----
 ...olicyStubSettings.java => SyncSetIamPolicy.java} | 10 +++++-----
 ...ryptRequest.java => AsyncAsymmetricDecrypt.java} | 11 +++++------
 ...cryptRequest.java => SyncAsymmetricDecrypt.java} | 10 +++++-----
 ...etricDecryptCryptokeyversionnameBytestring.java} |  6 +++---
 ...a => SyncAsymmetricDecryptStringBytestring.java} |  6 +++---
 ...ricSignRequest.java => AsyncAsymmetricSign.java} | 10 +++++-----
 ...tricSignRequest.java => SyncAsymmetricSign.java} | 10 +++++-----
 ...ncAsymmetricSignCryptokeyversionnameDigest.java} |  6 +++---
 ...est.java => SyncAsymmetricSignStringDigest.java} |  6 +++---
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...iceSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...ptoKeyRequest.java => AsyncCreateCryptoKey.java} | 10 +++++-----
 ...yptoKeyRequest.java => SyncCreateCryptoKey.java} | 10 +++++-----
 ...cCreateCryptoKeyKeyringnameStringCryptokey.java} |  6 +++---
 ...> SyncCreateCryptoKeyStringStringCryptokey.java} |  6 +++---
 ...equest.java => AsyncCreateCryptoKeyVersion.java} | 11 +++++------
 ...Request.java => SyncCreateCryptoKeyVersion.java} | 10 +++++-----
 ...ptoKeyVersionCryptokeynameCryptokeyversion.java} |  6 +++---
 ...eateCryptoKeyVersionStringCryptokeyversion.java} |  6 +++---
 ...ortJobRequest.java => AsyncCreateImportJob.java} | 10 +++++-----
 ...portJobRequest.java => SyncCreateImportJob.java} | 10 +++++-----
 ...cCreateImportJobKeyringnameStringImportjob.java} |  6 +++---
 ...> SyncCreateImportJobStringStringImportjob.java} |  6 +++---
 ...eKeyRingRequest.java => AsyncCreateKeyRing.java} | 10 +++++-----
 ...teKeyRingRequest.java => SyncCreateKeyRing.java} | 10 +++++-----
 ...SyncCreateKeyRingLocationnameStringKeyring.java} |  6 +++---
 ...va => SyncCreateKeyRingStringStringKeyring.java} |  6 +++---
 ...ureCallDecryptRequest.java => AsyncDecrypt.java} | 10 +++++-----
 ...{DecryptDecryptRequest.java => SyncDecrypt.java} | 10 +++++-----
 ...java => SyncDecryptCryptokeynameBytestring.java} |  6 +++---
 ...String.java => SyncDecryptStringBytestring.java} |  6 +++---
 ...quest.java => AsyncDestroyCryptoKeyVersion.java} | 11 +++++------
 ...equest.java => SyncDestroyCryptoKeyVersion.java} | 10 +++++-----
 ...estroyCryptoKeyVersionCryptokeyversionname.java} |  6 +++---
 ....java => SyncDestroyCryptoKeyVersionString.java} |  6 +++---
 ...ureCallEncryptRequest.java => AsyncEncrypt.java} | 10 +++++-----
 ...{EncryptEncryptRequest.java => SyncEncrypt.java} | 10 +++++-----
 ....java => SyncEncryptResourcenameBytestring.java} |  6 +++---
 ...String.java => SyncEncryptStringBytestring.java} |  6 +++---
 ...CryptoKeyRequest.java => AsyncGetCryptoKey.java} | 10 +++++-----
 ...tCryptoKeyRequest.java => SyncGetCryptoKey.java} | 10 +++++-----
 ...Name.java => SyncGetCryptoKeyCryptokeyname.java} |  6 +++---
 ...toKeyString.java => SyncGetCryptoKeyString.java} |  6 +++---
 ...onRequest.java => AsyncGetCryptoKeyVersion.java} | 11 +++++------
 ...ionRequest.java => SyncGetCryptoKeyVersion.java} | 10 +++++-----
 ...yncGetCryptoKeyVersionCryptokeyversionname.java} |  6 +++---
 ...ring.java => SyncGetCryptoKeyVersionString.java} |  6 +++---
 ...IamPolicyRequest.java => AsyncGetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncGetIamPolicy.java} | 10 +++++-----
 ...ImportJobRequest.java => AsyncGetImportJob.java} | 10 +++++-----
 ...tImportJobRequest.java => SyncGetImportJob.java} | 10 +++++-----
 ...Name.java => SyncGetImportJobImportjobname.java} |  6 +++---
 ...rtJobString.java => SyncGetImportJobString.java} |  6 +++---
 ...lGetKeyRingRequest.java => AsyncGetKeyRing.java} | 10 +++++-----
 ...ngGetKeyRingRequest.java => SyncGetKeyRing.java} | 10 +++++-----
 ...RingName.java => SyncGetKeyRingKeyringname.java} |  6 +++---
 ...KeyRingString.java => SyncGetKeyRingString.java} |  6 +++---
 ...etLocationRequest.java => AsyncGetLocation.java} | 10 +++++-----
 ...GetLocationRequest.java => SyncGetLocation.java} | 10 +++++-----
 ...PublicKeyRequest.java => AsyncGetPublicKey.java} | 10 +++++-----
 ...tPublicKeyRequest.java => SyncGetPublicKey.java} | 10 +++++-----
 ...va => SyncGetPublicKeyCryptokeyversionname.java} |  6 +++---
 ...icKeyString.java => SyncGetPublicKeyString.java} |  6 +++---
 ...equest.java => AsyncImportCryptoKeyVersion.java} | 11 +++++------
 ...Request.java => SyncImportCryptoKeyVersion.java} | 10 +++++-----
 ...t.java => AsyncListCryptoKeysPagedCallable.java} | 10 +++++-----
 ...questIterateAll.java => SyncListCryptoKeys.java} | 10 +++++-----
 ...eAll.java => SyncListCryptoKeysKeyringname.java} | 10 +++++-----
 ...eysRequest.java => SyncListCryptoKeysPaged.java} | 10 +++++-----
 ...terateAll.java => SyncListCryptoKeysString.java} | 10 +++++-----
 ...=> AsyncListCryptoKeyVersionsPagedCallable.java} | 11 +++++------
 ...erateAll.java => SyncListCryptoKeyVersions.java} | 11 +++++------
 ... => SyncListCryptoKeyVersionsCryptokeyname.java} | 10 +++++-----
 ...est.java => SyncListCryptoKeyVersionsPaged.java} | 11 +++++------
 ...ll.java => SyncListCryptoKeyVersionsString.java} | 10 +++++-----
 ...t.java => AsyncListImportJobsPagedCallable.java} | 10 +++++-----
 ...questIterateAll.java => SyncListImportJobs.java} | 10 +++++-----
 ...eAll.java => SyncListImportJobsKeyringname.java} | 10 +++++-----
 ...obsRequest.java => SyncListImportJobsPaged.java} | 10 +++++-----
 ...terateAll.java => SyncListImportJobsString.java} | 10 +++++-----
 ...est.java => AsyncListKeyRingsPagedCallable.java} | 10 +++++-----
 ...RequestIterateAll.java => SyncListKeyRings.java} | 10 +++++-----
 ...teAll.java => SyncListKeyRingsLocationname.java} | 10 +++++-----
 ...RingsRequest.java => SyncListKeyRingsPaged.java} | 10 +++++-----
 ...gIterateAll.java => SyncListKeyRingsString.java} | 10 +++++-----
 ...st.java => AsyncListLocationsPagedCallable.java} | 10 +++++-----
 ...equestIterateAll.java => SyncListLocations.java} | 10 +++++-----
 ...ionsRequest.java => SyncListLocationsPaged.java} | 10 +++++-----
 ...quest.java => AsyncRestoreCryptoKeyVersion.java} | 11 +++++------
 ...equest.java => SyncRestoreCryptoKeyVersion.java} | 10 +++++-----
 ...estoreCryptoKeyVersionCryptokeyversionname.java} |  6 +++---
 ....java => SyncRestoreCryptoKeyVersionString.java} |  6 +++---
 ...onsRequest.java => AsyncTestIamPermissions.java} | 11 +++++------
 ...ionsRequest.java => SyncTestIamPermissions.java} | 10 +++++-----
 ...ptoKeyRequest.java => AsyncUpdateCryptoKey.java} | 10 +++++-----
 ...yptoKeyRequest.java => SyncUpdateCryptoKey.java} | 10 +++++-----
 ...a => SyncUpdateCryptoKeyCryptokeyFieldmask.java} |  6 +++---
 ...java => AsyncUpdateCryptoKeyPrimaryVersion.java} | 12 +++++-------
 ....java => SyncUpdateCryptoKeyPrimaryVersion.java} | 11 +++++------
 ...CryptoKeyPrimaryVersionCryptokeynameString.java} |  6 +++---
 ...cUpdateCryptoKeyPrimaryVersionStringString.java} |  6 +++---
 ...equest.java => AsyncUpdateCryptoKeyVersion.java} | 11 +++++------
 ...Request.java => SyncUpdateCryptoKeyVersion.java} | 10 +++++-----
 ...eCryptoKeyVersionCryptokeyversionFieldmask.java} |  6 +++---
 ...mentServiceSettings.java => SyncGetKeyRing.java} | 11 +++++------
 ...ServiceStubSettings.java => SyncGetKeyRing.java} | 11 +++++------
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...iceSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...lCreateBookRequest.java => AsyncCreateBook.java} | 10 +++++-----
 ...okCreateBookRequest.java => SyncCreateBook.java} | 10 +++++-----
 ...meBook.java => SyncCreateBookShelfnameBook.java} |  6 +++---
 ...tringBook.java => SyncCreateBookStringBook.java} |  6 +++---
 ...reateShelfRequest.java => AsyncCreateShelf.java} | 10 +++++-----
 ...CreateShelfRequest.java => SyncCreateShelf.java} | 10 +++++-----
 ...ateShelfShelf.java => SyncCreateShelfShelf.java} |  6 +++---
 ...lDeleteBookRequest.java => AsyncDeleteBook.java} | 10 +++++-----
 ...okDeleteBookRequest.java => SyncDeleteBook.java} | 10 +++++-----
 ...ookBookName.java => SyncDeleteBookBookname.java} |  6 +++---
 ...eteBookString.java => SyncDeleteBookString.java} |  6 +++---
 ...eleteShelfRequest.java => AsyncDeleteShelf.java} | 10 +++++-----
 ...DeleteShelfRequest.java => SyncDeleteShelf.java} | 10 +++++-----
 ...ShelfName.java => SyncDeleteShelfShelfname.java} |  6 +++---
 ...eShelfString.java => SyncDeleteShelfString.java} |  6 +++---
 ...ureCallGetBookRequest.java => AsyncGetBook.java} | 10 +++++-----
 ...{GetBookGetBookRequest.java => SyncGetBook.java} | 10 +++++-----
 ...etBookBookName.java => SyncGetBookBookname.java} |  6 +++---
 .../{GetBookString.java => SyncGetBookString.java}  |  6 +++---
 ...eCallGetShelfRequest.java => AsyncGetShelf.java} | 10 +++++-----
 ...tShelfGetShelfRequest.java => SyncGetShelf.java} | 10 +++++-----
 ...elfShelfName.java => SyncGetShelfShelfname.java} |  6 +++---
 ...{GetShelfString.java => SyncGetShelfString.java} |  6 +++---
 ...equest.java => AsyncListBooksPagedCallable.java} | 10 +++++-----
 ...oksRequestIterateAll.java => SyncListBooks.java} | 10 +++++-----
 ...istBooksRequest.java => SyncListBooksPaged.java} | 10 +++++-----
 ...eIterateAll.java => SyncListBooksShelfname.java} | 10 +++++-----
 ...ringIterateAll.java => SyncListBooksString.java} | 10 +++++-----
 ...uest.java => AsyncListShelvesPagedCallable.java} | 10 +++++-----
 ...sRequestIterateAll.java => SyncListShelves.java} | 10 +++++-----
 ...helvesRequest.java => SyncListShelvesPaged.java} | 10 +++++-----
 ...geShelvesRequest.java => AsyncMergeShelves.java} | 10 +++++-----
 ...rgeShelvesRequest.java => SyncMergeShelves.java} | 10 +++++-----
 ...java => SyncMergeShelvesShelfnameShelfname.java} |  6 +++---
 ...ng.java => SyncMergeShelvesShelfnameString.java} |  6 +++---
 ...me.java => SyncMergeShelvesStringShelfname.java} |  6 +++---
 ...tring.java => SyncMergeShelvesStringString.java} |  6 +++---
 ...eCallMoveBookRequest.java => AsyncMoveBook.java} | 10 +++++-----
 ...veBookMoveBookRequest.java => SyncMoveBook.java} | 10 +++++-----
 ...Name.java => SyncMoveBookBooknameShelfname.java} |  6 +++---
 ...eString.java => SyncMoveBookBooknameString.java} |  6 +++---
 ...lfName.java => SyncMoveBookStringShelfname.java} |  6 +++---
 ...ingString.java => SyncMoveBookStringString.java} |  6 +++---
 ...lUpdateBookRequest.java => AsyncUpdateBook.java} | 10 +++++-----
 ...okUpdateBookRequest.java => SyncUpdateBook.java} | 10 +++++-----
 ...ldMask.java => SyncUpdateBookBookFieldmask.java} |  6 +++---
 ...aryServiceSettings.java => SyncCreateShelf.java} | 10 +++++-----
 ...erviceStubSettings.java => SyncCreateShelf.java} | 11 +++++------
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...figSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...ateBucketRequest.java => AsyncCreateBucket.java} | 10 +++++-----
 ...eateBucketRequest.java => SyncCreateBucket.java} | 10 +++++-----
 ...lusionRequest.java => AsyncCreateExclusion.java} | 10 +++++-----
 ...clusionRequest.java => SyncCreateExclusion.java} | 10 +++++-----
 ...ateExclusionBillingaccountnameLogexclusion.java} |  6 +++---
 ... SyncCreateExclusionFoldernameLogexclusion.java} |  6 +++---
 ...reateExclusionOrganizationnameLogexclusion.java} |  6 +++---
 ...SyncCreateExclusionProjectnameLogexclusion.java} |  6 +++---
 ...a => SyncCreateExclusionStringLogexclusion.java} |  6 +++---
 ...lCreateSinkRequest.java => AsyncCreateSink.java} | 10 +++++-----
 ...nkCreateSinkRequest.java => SyncCreateSink.java} | 10 +++++-----
 ...=> SyncCreateSinkBillingaccountnameLogsink.java} |  6 +++---
 ...nk.java => SyncCreateSinkFoldernameLogsink.java} |  6 +++---
 ...a => SyncCreateSinkOrganizationnameLogsink.java} |  6 +++---
 ...k.java => SyncCreateSinkProjectnameLogsink.java} |  6 +++---
 ...ogSink.java => SyncCreateSinkStringLogsink.java} |  6 +++---
 ...lCreateViewRequest.java => AsyncCreateView.java} | 10 +++++-----
 ...ewCreateViewRequest.java => SyncCreateView.java} | 10 +++++-----
 ...eteBucketRequest.java => AsyncDeleteBucket.java} | 10 +++++-----
 ...leteBucketRequest.java => SyncDeleteBucket.java} | 10 +++++-----
 ...lusionRequest.java => AsyncDeleteExclusion.java} | 10 +++++-----
 ...clusionRequest.java => SyncDeleteExclusion.java} | 10 +++++-----
 ...ava => SyncDeleteExclusionLogexclusionname.java} |  6 +++---
 ...onString.java => SyncDeleteExclusionString.java} |  6 +++---
 ...lDeleteSinkRequest.java => AsyncDeleteSink.java} | 10 +++++-----
 ...nkDeleteSinkRequest.java => SyncDeleteSink.java} | 10 +++++-----
 ...SinkName.java => SyncDeleteSinkLogsinkname.java} |  6 +++---
 ...eteSinkString.java => SyncDeleteSinkString.java} |  6 +++---
 ...lDeleteViewRequest.java => AsyncDeleteView.java} | 10 +++++-----
 ...ewDeleteViewRequest.java => SyncDeleteView.java} | 10 +++++-----
 ...allGetBucketRequest.java => AsyncGetBucket.java} | 10 +++++-----
 ...cketGetBucketRequest.java => SyncGetBucket.java} | 10 +++++-----
 ...ttingsRequest.java => AsyncGetCmekSettings.java} | 10 +++++-----
 ...ettingsRequest.java => SyncGetCmekSettings.java} | 10 +++++-----
 ...ExclusionRequest.java => AsyncGetExclusion.java} | 10 +++++-----
 ...tExclusionRequest.java => SyncGetExclusion.java} | 10 +++++-----
 ...e.java => SyncGetExclusionLogexclusionname.java} |  6 +++---
 ...usionString.java => SyncGetExclusionString.java} |  6 +++---
 ...ureCallGetSinkRequest.java => AsyncGetSink.java} | 10 +++++-----
 ...{GetSinkGetSinkRequest.java => SyncGetSink.java} | 10 +++++-----
 ...LogSinkName.java => SyncGetSinkLogsinkname.java} |  6 +++---
 .../{GetSinkString.java => SyncGetSinkString.java}  |  6 +++---
 ...ureCallGetViewRequest.java => AsyncGetView.java} | 10 +++++-----
 ...{GetViewGetViewRequest.java => SyncGetView.java} | 10 +++++-----
 ...uest.java => AsyncListBucketsPagedCallable.java} | 10 +++++-----
 ...sRequestIterateAll.java => SyncListBuckets.java} | 10 +++++-----
 ... SyncListBucketsBillingaccountlocationname.java} | 10 +++++-----
 ....java => SyncListBucketsFolderlocationname.java} | 10 +++++-----
 ...ateAll.java => SyncListBucketsLocationname.java} | 10 +++++-----
 ...=> SyncListBucketsOrganizationlocationname.java} | 10 +++++-----
 ...ucketsRequest.java => SyncListBucketsPaged.java} | 10 +++++-----
 ...ngIterateAll.java => SyncListBucketsString.java} | 10 +++++-----
 ...t.java => AsyncListExclusionsPagedCallable.java} | 10 +++++-----
 ...questIterateAll.java => SyncListExclusions.java} | 10 +++++-----
 ...va => SyncListExclusionsBillingaccountname.java} | 10 +++++-----
 ...teAll.java => SyncListExclusionsFoldername.java} | 10 +++++-----
 ...java => SyncListExclusionsOrganizationname.java} | 10 +++++-----
 ...onsRequest.java => SyncListExclusionsPaged.java} | 10 +++++-----
 ...eAll.java => SyncListExclusionsProjectname.java} | 10 +++++-----
 ...terateAll.java => SyncListExclusionsString.java} | 10 +++++-----
 ...equest.java => AsyncListSinksPagedCallable.java} | 10 +++++-----
 ...nksRequestIterateAll.java => SyncListSinks.java} | 10 +++++-----
 ...ll.java => SyncListSinksBillingaccountname.java} | 10 +++++-----
 ...IterateAll.java => SyncListSinksFoldername.java} | 10 +++++-----
 ...eAll.java => SyncListSinksOrganizationname.java} | 10 +++++-----
 ...istSinksRequest.java => SyncListSinksPaged.java} | 10 +++++-----
 ...terateAll.java => SyncListSinksProjectname.java} | 10 +++++-----
 ...ringIterateAll.java => SyncListSinksString.java} | 10 +++++-----
 ...equest.java => AsyncListViewsPagedCallable.java} | 10 +++++-----
 ...ewsRequestIterateAll.java => SyncListViews.java} | 10 +++++-----
 ...istViewsRequest.java => SyncListViewsPaged.java} | 10 +++++-----
 ...ringIterateAll.java => SyncListViewsString.java} | 10 +++++-----
 ...eBucketRequest.java => AsyncUndeleteBucket.java} | 10 +++++-----
 ...teBucketRequest.java => SyncUndeleteBucket.java} | 10 +++++-----
 ...ateBucketRequest.java => AsyncUpdateBucket.java} | 10 +++++-----
 ...dateBucketRequest.java => SyncUpdateBucket.java} | 10 +++++-----
 ...ngsRequest.java => AsyncUpdateCmekSettings.java} | 11 +++++------
 ...ingsRequest.java => SyncUpdateCmekSettings.java} | 10 +++++-----
 ...lusionRequest.java => AsyncUpdateExclusion.java} | 10 +++++-----
 ...clusionRequest.java => SyncUpdateExclusion.java} | 10 +++++-----
 ...usionLogexclusionnameLogexclusionFieldmask.java} |  6 +++---
 ...UpdateExclusionStringLogexclusionFieldmask.java} |  6 +++---
 ...lUpdateSinkRequest.java => AsyncUpdateSink.java} | 10 +++++-----
 ...nkUpdateSinkRequest.java => SyncUpdateSink.java} | 10 +++++-----
 ...k.java => SyncUpdateSinkLogsinknameLogsink.java} |  6 +++---
 ... SyncUpdateSinkLogsinknameLogsinkFieldmask.java} |  6 +++---
 ...ogSink.java => SyncUpdateSinkStringLogsink.java} |  6 +++---
 ...va => SyncUpdateSinkStringLogsinkFieldmask.java} |  6 +++---
 ...lUpdateViewRequest.java => AsyncUpdateView.java} | 10 +++++-----
 ...ewUpdateViewRequest.java => SyncUpdateView.java} | 10 +++++-----
 ...ttingsConfigSettings.java => SyncGetBucket.java} | 10 +++++-----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...ingSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...allDeleteLogRequest.java => AsyncDeleteLog.java} | 10 +++++-----
 ...eLogDeleteLogRequest.java => SyncDeleteLog.java} | 10 +++++-----
 ...eteLogLogName.java => SyncDeleteLogLogname.java} |  6 +++---
 ...eleteLogString.java => SyncDeleteLogString.java} |  6 +++---
 ...t.java => AsyncListLogEntriesPagedCallable.java} | 10 +++++-----
 ...questIterateAll.java => SyncListLogEntries.java} | 10 +++++-----
 ...> SyncListLogEntriesListstringStringString.java} | 10 +++++-----
 ...iesRequest.java => SyncListLogEntriesPaged.java} | 10 +++++-----
 ...Request.java => AsyncListLogsPagedCallable.java} | 10 +++++-----
 ...LogsRequestIterateAll.java => SyncListLogs.java} | 10 +++++-----
 ...All.java => SyncListLogsBillingaccountname.java} | 10 +++++-----
 ...eIterateAll.java => SyncListLogsFoldername.java} | 10 +++++-----
 ...teAll.java => SyncListLogsOrganizationname.java} | 10 +++++-----
 ...lListLogsRequest.java => SyncListLogsPaged.java} | 10 +++++-----
 ...IterateAll.java => SyncListLogsProjectname.java} | 10 +++++-----
 ...tringIterateAll.java => SyncListLogsString.java} | 10 +++++-----
 ...tMonitoredResourceDescriptorsPagedCallable.java} | 13 +++++--------
 ...va => SyncListMonitoredResourceDescriptors.java} | 12 +++++-------
 ... SyncListMonitoredResourceDescriptorsPaged.java} | 12 +++++-------
 ...uest.java => AsyncTailLogEntriesStreamBidi.java} | 10 +++++-----
 ...ntriesRequest.java => AsyncWriteLogEntries.java} | 10 +++++-----
 ...EntriesRequest.java => SyncWriteLogEntries.java} | 10 +++++-----
 ...nitoredresourceMapstringstringListlogentry.java} |  6 +++---
 ...nitoredresourceMapstringstringListlogentry.java} |  6 +++---
 ...tingsLoggingSettings.java => SyncDeleteLog.java} | 10 +++++-----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...icsSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...MetricRequest.java => AsyncCreateLogMetric.java} | 10 +++++-----
 ...gMetricRequest.java => SyncCreateLogMetric.java} | 10 +++++-----
 ...=> SyncCreateLogMetricProjectnameLogmetric.java} |  6 +++---
 ...java => SyncCreateLogMetricStringLogmetric.java} |  6 +++---
 ...MetricRequest.java => AsyncDeleteLogMetric.java} | 10 +++++-----
 ...gMetricRequest.java => SyncDeleteLogMetric.java} | 10 +++++-----
 ...e.java => SyncDeleteLogMetricLogmetricname.java} |  6 +++---
 ...icString.java => SyncDeleteLogMetricString.java} |  6 +++---
 ...LogMetricRequest.java => AsyncGetLogMetric.java} | 10 +++++-----
 ...tLogMetricRequest.java => SyncGetLogMetric.java} | 10 +++++-----
 ...Name.java => SyncGetLogMetricLogmetricname.java} |  6 +++---
 ...etricString.java => SyncGetLogMetricString.java} |  6 +++---
 ...t.java => AsyncListLogMetricsPagedCallable.java} | 10 +++++-----
 ...questIterateAll.java => SyncListLogMetrics.java} | 10 +++++-----
 ...icsRequest.java => SyncListLogMetricsPaged.java} | 10 +++++-----
 ...eAll.java => SyncListLogMetricsProjectname.java} | 10 +++++-----
 ...terateAll.java => SyncListLogMetricsString.java} | 10 +++++-----
 ...MetricRequest.java => AsyncUpdateLogMetric.java} | 10 +++++-----
 ...gMetricRequest.java => SyncUpdateLogMetric.java} | 10 +++++-----
 ... SyncUpdateLogMetricLogmetricnameLogmetric.java} |  6 +++---
 ...java => SyncUpdateLogMetricStringLogmetric.java} |  6 +++---
 ...gsMetricsSettings.java => SyncGetLogMetric.java} | 10 +++++-----
 ...erviceV2StubSettings.java => SyncGetBucket.java} | 11 +++++------
 ...erviceV2StubSettings.java => SyncDeleteLog.java} | 11 +++++------
 ...iceV2StubSettings.java => SyncGetLogMetric.java} | 11 +++++------
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...iceSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...ateSchemaRequest.java => AsyncCreateSchema.java} | 10 +++++-----
 ...eateSchemaRequest.java => SyncCreateSchema.java} | 10 +++++-----
 ...=> SyncCreateSchemaProjectnameSchemaString.java} |  6 +++---
 ...java => SyncCreateSchemaStringSchemaString.java} |  6 +++---
 ...eteSchemaRequest.java => AsyncDeleteSchema.java} | 10 +++++-----
 ...leteSchemaRequest.java => SyncDeleteSchema.java} | 10 +++++-----
 ...emaName.java => SyncDeleteSchemaSchemaname.java} |  6 +++---
 ...chemaString.java => SyncDeleteSchemaString.java} |  6 +++---
 ...IamPolicyRequest.java => AsyncGetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncGetIamPolicy.java} | 10 +++++-----
 ...allGetSchemaRequest.java => AsyncGetSchema.java} | 10 +++++-----
 ...hemaGetSchemaRequest.java => SyncGetSchema.java} | 10 +++++-----
 ...SchemaName.java => SyncGetSchemaSchemaname.java} |  6 +++---
 ...etSchemaString.java => SyncGetSchemaString.java} |  6 +++---
 ...uest.java => AsyncListSchemasPagedCallable.java} | 10 +++++-----
 ...sRequestIterateAll.java => SyncListSchemas.java} | 10 +++++-----
 ...chemasRequest.java => SyncListSchemasPaged.java} | 10 +++++-----
 ...rateAll.java => SyncListSchemasProjectname.java} | 10 +++++-----
 ...ngIterateAll.java => SyncListSchemasString.java} | 10 +++++-----
 ...IamPolicyRequest.java => AsyncSetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncSetIamPolicy.java} | 10 +++++-----
 ...onsRequest.java => AsyncTestIamPermissions.java} | 11 +++++------
 ...ionsRequest.java => SyncTestIamPermissions.java} | 10 +++++-----
 ...essageRequest.java => AsyncValidateMessage.java} | 10 +++++-----
 ...MessageRequest.java => SyncValidateMessage.java} | 10 +++++-----
 ...eSchemaRequest.java => AsyncValidateSchema.java} | 10 +++++-----
 ...teSchemaRequest.java => SyncValidateSchema.java} | 10 +++++-----
 ...ava => SyncValidateSchemaProjectnameSchema.java} |  6 +++---
 ...ema.java => SyncValidateSchemaStringSchema.java} |  6 +++---
 ...maServiceSettings.java => SyncCreateSchema.java} | 10 +++++-----
 ...lisherStubSettings.java => SyncCreateTopic.java} | 10 +++++-----
 ...rviceStubSettings.java => SyncCreateSchema.java} | 11 +++++------
 ...tubSettings.java => SyncCreateSubscription.java} | 11 +++++------
 ...cknowledgeRequest.java => AsyncAcknowledge.java} | 10 +++++-----
 ...AcknowledgeRequest.java => SyncAcknowledge.java} | 10 +++++-----
 ...ng.java => SyncAcknowledgeStringListstring.java} |  6 +++---
 ... SyncAcknowledgeSubscriptionnameListstring.java} |  6 +++---
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...minSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...napshotRequest.java => AsyncCreateSnapshot.java} | 10 +++++-----
 ...SnapshotRequest.java => SyncCreateSnapshot.java} | 10 +++++-----
 ...va => SyncCreateSnapshotSnapshotnameString.java} |  6 +++---
 ...CreateSnapshotSnapshotnameSubscriptionname.java} |  6 +++---
 ...ing.java => SyncCreateSnapshotStringString.java} |  6 +++---
 ...> SyncCreateSnapshotStringSubscriptionname.java} |  6 +++---
 ...bscription.java => AsyncCreateSubscription.java} | 10 +++++-----
 ...ubscription.java => SyncCreateSubscription.java} | 10 +++++-----
 ...reateSubscriptionStringStringPushconfigInt.java} |  6 +++---
 ...teSubscriptionStringTopicnamePushconfigInt.java} |  6 +++---
 ...riptionSubscriptionnameStringPushconfigInt.java} |  6 +++---
 ...tionSubscriptionnameTopicnamePushconfigInt.java} |  7 ++++---
 ...napshotRequest.java => AsyncDeleteSnapshot.java} | 10 +++++-----
 ...SnapshotRequest.java => SyncDeleteSnapshot.java} | 10 +++++-----
 ...ame.java => SyncDeleteSnapshotSnapshotname.java} |  6 +++---
 ...hotString.java => SyncDeleteSnapshotString.java} |  6 +++---
 ...ionRequest.java => AsyncDeleteSubscription.java} | 11 +++++------
 ...tionRequest.java => SyncDeleteSubscription.java} | 10 +++++-----
 ...tring.java => SyncDeleteSubscriptionString.java} |  6 +++---
 ... => SyncDeleteSubscriptionSubscriptionname.java} |  6 +++---
 ...IamPolicyRequest.java => AsyncGetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncGetIamPolicy.java} | 10 +++++-----
 ...etSnapshotRequest.java => AsyncGetSnapshot.java} | 10 +++++-----
 ...GetSnapshotRequest.java => SyncGetSnapshot.java} | 10 +++++-----
 ...otName.java => SyncGetSnapshotSnapshotname.java} |  6 +++---
 ...apshotString.java => SyncGetSnapshotString.java} |  6 +++---
 ...iptionRequest.java => AsyncGetSubscription.java} | 10 +++++-----
 ...riptionRequest.java => SyncGetSubscription.java} | 10 +++++-----
 ...onString.java => SyncGetSubscriptionString.java} |  6 +++---
 ...ava => SyncGetSubscriptionSubscriptionname.java} |  6 +++---
 ...st.java => AsyncListSnapshotsPagedCallable.java} | 10 +++++-----
 ...equestIterateAll.java => SyncListSnapshots.java} | 10 +++++-----
 ...hotsRequest.java => SyncListSnapshotsPaged.java} | 10 +++++-----
 ...teAll.java => SyncListSnapshotsProjectname.java} | 10 +++++-----
 ...IterateAll.java => SyncListSnapshotsString.java} | 10 +++++-----
 ...ava => AsyncListSubscriptionsPagedCallable.java} | 11 +++++------
 ...stIterateAll.java => SyncListSubscriptions.java} | 10 +++++-----
 ...Request.java => SyncListSubscriptionsPaged.java} | 10 +++++-----
 ...l.java => SyncListSubscriptionsProjectname.java} | 10 +++++-----
 ...ateAll.java => SyncListSubscriptionsString.java} | 10 +++++-----
 ...lineRequest.java => AsyncModifyAckDeadline.java} | 11 +++++------
 ...dlineRequest.java => SyncModifyAckDeadline.java} | 10 +++++-----
 ...> SyncModifyAckDeadlineStringListstringInt.java} |  6 +++---
 ...fyAckDeadlineSubscriptionnameListstringInt.java} |  6 +++---
 ...onfigRequest.java => AsyncModifyPushConfig.java} | 10 +++++-----
 ...ConfigRequest.java => SyncModifyPushConfig.java} | 10 +++++-----
 ...va => SyncModifyPushConfigStringPushconfig.java} |  6 +++---
 ...ModifyPushConfigSubscriptionnamePushconfig.java} |  6 +++---
 ...bleFutureCallPullRequest.java => AsyncPull.java} | 10 +++++-----
 .../pull/{PullPullRequest.java => SyncPull.java}    | 10 +++++-----
 ...ooleanInt.java => SyncPullStringBooleanInt.java} |  6 +++---
 .../{PullStringInt.java => SyncPullStringInt.java}  |  6 +++---
 ...java => SyncPullSubscriptionnameBooleanInt.java} |  6 +++---
 ...ameInt.java => SyncPullSubscriptionnameInt.java} |  6 +++---
 ...bleFutureCallSeekRequest.java => AsyncSeek.java} | 10 +++++-----
 .../seek/{SeekSeekRequest.java => SyncSeek.java}    | 10 +++++-----
 ...IamPolicyRequest.java => AsyncSetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncSetIamPolicy.java} | 10 +++++-----
 ...quest.java => AsyncStreamingPullStreamBidi.java} | 10 +++++-----
 ...onsRequest.java => AsyncTestIamPermissions.java} | 11 +++++------
 ...ionsRequest.java => SyncTestIamPermissions.java} | 10 +++++-----
 ...napshotRequest.java => AsyncUpdateSnapshot.java} | 10 +++++-----
 ...SnapshotRequest.java => SyncUpdateSnapshot.java} | 10 +++++-----
 ...ionRequest.java => AsyncUpdateSubscription.java} | 11 +++++------
 ...tionRequest.java => SyncUpdateSubscription.java} | 10 +++++-----
 ...minSettings.java => SyncCreateSubscription.java} | 11 +++++------
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...minSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...leFutureCallTopic.java => AsyncCreateTopic.java} | 10 +++++-----
 .../{CreateTopicTopic.java => SyncCreateTopic.java} | 10 +++++-----
 ...eTopicString.java => SyncCreateTopicString.java} |  6 +++---
 ...TopicName.java => SyncCreateTopicTopicname.java} |  6 +++---
 ...eleteTopicRequest.java => AsyncDeleteTopic.java} | 10 +++++-----
 ...DeleteTopicRequest.java => SyncDeleteTopic.java} | 10 +++++-----
 ...eTopicString.java => SyncDeleteTopicString.java} |  6 +++---
 ...TopicName.java => SyncDeleteTopicTopicname.java} |  6 +++---
 ...ionRequest.java => AsyncDetachSubscription.java} | 11 +++++------
 ...tionRequest.java => SyncDetachSubscription.java} | 10 +++++-----
 ...IamPolicyRequest.java => AsyncGetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncGetIamPolicy.java} | 10 +++++-----
 ...eCallGetTopicRequest.java => AsyncGetTopic.java} | 10 +++++-----
 ...tTopicGetTopicRequest.java => SyncGetTopic.java} | 10 +++++-----
 ...{GetTopicString.java => SyncGetTopicString.java} |  6 +++---
 ...picTopicName.java => SyncGetTopicTopicname.java} |  6 +++---
 ...quest.java => AsyncListTopicsPagedCallable.java} | 10 +++++-----
 ...csRequestIterateAll.java => SyncListTopics.java} | 10 +++++-----
 ...tTopicsRequest.java => SyncListTopicsPaged.java} | 10 +++++-----
 ...erateAll.java => SyncListTopicsProjectname.java} | 10 +++++-----
 ...ingIterateAll.java => SyncListTopicsString.java} | 10 +++++-----
 ...va => AsyncListTopicSnapshotsPagedCallable.java} | 11 +++++------
 ...tIterateAll.java => SyncListTopicSnapshots.java} | 10 +++++-----
 ...equest.java => SyncListTopicSnapshotsPaged.java} | 10 +++++-----
 ...teAll.java => SyncListTopicSnapshotsString.java} | 10 +++++-----
 ...ll.java => SyncListTopicSnapshotsTopicname.java} | 10 +++++-----
 ...> AsyncListTopicSubscriptionsPagedCallable.java} | 11 +++++------
 ...rateAll.java => SyncListTopicSubscriptions.java} | 11 +++++------
 ...st.java => SyncListTopicSubscriptionsPaged.java} | 11 +++++------
 ...l.java => SyncListTopicSubscriptionsString.java} | 10 +++++-----
 ...ava => SyncListTopicSubscriptionsTopicname.java} | 10 +++++-----
 ...ureCallPublishRequest.java => AsyncPublish.java} | 10 +++++-----
 ...{PublishPublishRequest.java => SyncPublish.java} | 10 +++++-----
 ...java => SyncPublishStringListpubsubmessage.java} |  6 +++---
 ...a => SyncPublishTopicnameListpubsubmessage.java} |  6 +++---
 ...IamPolicyRequest.java => AsyncSetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncSetIamPolicy.java} | 10 +++++-----
 ...onsRequest.java => AsyncTestIamPermissions.java} | 11 +++++------
 ...ionsRequest.java => SyncTestIamPermissions.java} | 10 +++++-----
 ...pdateTopicRequest.java => AsyncUpdateTopic.java} | 10 +++++-----
 ...UpdateTopicRequest.java => SyncUpdateTopic.java} | 10 +++++-----
 ...TopicAdminSettings.java => SyncCreateTopic.java} | 10 +++++-----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...disSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...nstanceRequest.java => AsyncCreateInstance.java} | 10 +++++-----
 ...va => AsyncCreateInstanceOperationCallable.java} | 11 +++++------
 ...tanceRequestGet.java => SyncCreateInstance.java} | 10 +++++-----
 ...ncCreateInstanceLocationnameStringInstance.java} | 10 +++++-----
 ... => SyncCreateInstanceStringStringInstance.java} | 10 +++++-----
 ...nstanceRequest.java => AsyncDeleteInstance.java} | 10 +++++-----
 ...va => AsyncDeleteInstanceOperationCallable.java} | 11 +++++------
 ...tanceRequestGet.java => SyncDeleteInstance.java} | 10 +++++-----
 ...Get.java => SyncDeleteInstanceInstancename.java} | 10 +++++-----
 ...StringGet.java => SyncDeleteInstanceString.java} | 10 +++++-----
 ...nstanceRequest.java => AsyncExportInstance.java} | 10 +++++-----
 ...va => AsyncExportInstanceOperationCallable.java} | 11 +++++------
 ...tanceRequestGet.java => SyncExportInstance.java} | 10 +++++-----
 ...va => SyncExportInstanceStringOutputconfig.java} | 10 +++++-----
 ...tanceRequest.java => AsyncFailoverInstance.java} | 10 +++++-----
 ... => AsyncFailoverInstanceOperationCallable.java} | 11 +++++------
 ...nceRequestGet.java => SyncFailoverInstance.java} | 10 +++++-----
 ...eFailoverinstancerequestdataprotectionmode.java} | 10 +++++-----
 ...gFailoverinstancerequestdataprotectionmode.java} | 10 +++++-----
 ...etInstanceRequest.java => AsyncGetInstance.java} | 10 +++++-----
 ...GetInstanceRequest.java => SyncGetInstance.java} | 10 +++++-----
 ...ceName.java => SyncGetInstanceInstancename.java} |  6 +++---
 ...stanceString.java => SyncGetInstanceString.java} |  6 +++---
 ...Request.java => AsyncGetInstanceAuthString.java} | 11 +++++------
 ...gRequest.java => SyncGetInstanceAuthString.java} | 10 +++++-----
 ...a => SyncGetInstanceAuthStringInstancename.java} |  6 +++---
 ...ng.java => SyncGetInstanceAuthStringString.java} |  6 +++---
 ...nstanceRequest.java => AsyncImportInstance.java} | 10 +++++-----
 ...va => AsyncImportInstanceOperationCallable.java} | 11 +++++------
 ...tanceRequestGet.java => SyncImportInstance.java} | 10 +++++-----
 ...ava => SyncImportInstanceStringInputconfig.java} | 10 +++++-----
 ...st.java => AsyncListInstancesPagedCallable.java} | 10 +++++-----
 ...equestIterateAll.java => SyncListInstances.java} | 10 +++++-----
 ...eAll.java => SyncListInstancesLocationname.java} | 10 +++++-----
 ...ncesRequest.java => SyncListInstancesPaged.java} | 10 +++++-----
 ...IterateAll.java => SyncListInstancesString.java} | 10 +++++-----
 ...Request.java => AsyncRescheduleMaintenance.java} | 11 +++++------
 ...syncRescheduleMaintenanceOperationCallable.java} | 11 +++++------
 ...questGet.java => SyncRescheduleMaintenance.java} | 10 +++++-----
 ...emaintenancerequestrescheduletypeTimestamp.java} | 10 +++++-----
 ...emaintenancerequestrescheduletypeTimestamp.java} | 11 +++++------
 ...nstanceRequest.java => AsyncUpdateInstance.java} | 10 +++++-----
 ...va => AsyncUpdateInstanceOperationCallable.java} | 11 +++++------
 ...tanceRequestGet.java => SyncUpdateInstance.java} | 10 +++++-----
 ...ava => SyncUpdateInstanceFieldmaskInstance.java} | 10 +++++-----
 ...stanceRequest.java => AsyncUpgradeInstance.java} | 10 +++++-----
 ...a => AsyncUpgradeInstanceOperationCallable.java} | 11 +++++------
 ...anceRequestGet.java => SyncUpgradeInstance.java} | 10 +++++-----
 ...a => SyncUpgradeInstanceInstancenameString.java} | 10 +++++-----
 ...et.java => SyncUpgradeInstanceStringString.java} | 10 +++++-----
 ...CloudRedisSettings.java => SyncGetInstance.java} | 10 +++++-----
 ...dRedisStubSettings.java => SyncGetInstance.java} | 10 +++++-----
 ...seObjectRequest.java => AsyncComposeObject.java} | 10 +++++-----
 ...oseObjectRequest.java => SyncComposeObject.java} | 10 +++++-----
 ...1.java => SyncCreateSetCredentialsProvider.java} | 10 +++++-----
 ...ageSettings2.java => SyncCreateSetEndpoint.java} | 10 +++++-----
 ...ateBucketRequest.java => AsyncCreateBucket.java} | 10 +++++-----
 ...eateBucketRequest.java => SyncCreateBucket.java} | 10 +++++-----
 ...=> SyncCreateBucketProjectnameBucketString.java} |  6 +++---
 ...java => SyncCreateBucketStringBucketString.java} |  6 +++---
 ...eHmacKeyRequest.java => AsyncCreateHmacKey.java} | 10 +++++-----
 ...teHmacKeyRequest.java => SyncCreateHmacKey.java} | 10 +++++-----
 ...java => SyncCreateHmacKeyProjectnameString.java} |  6 +++---
 ...ring.java => SyncCreateHmacKeyStringString.java} |  6 +++---
 ...ionRequest.java => AsyncCreateNotification.java} | 11 +++++------
 ...tionRequest.java => SyncCreateNotification.java} | 10 +++++-----
 ...cCreateNotificationProjectnameNotification.java} |  6 +++---
 ...> SyncCreateNotificationStringNotification.java} |  6 +++---
 ...eteBucketRequest.java => AsyncDeleteBucket.java} | 10 +++++-----
 ...leteBucketRequest.java => SyncDeleteBucket.java} | 10 +++++-----
 ...ketName.java => SyncDeleteBucketBucketname.java} |  6 +++---
 ...ucketString.java => SyncDeleteBucketString.java} |  6 +++---
 ...eHmacKeyRequest.java => AsyncDeleteHmacKey.java} | 10 +++++-----
 ...teHmacKeyRequest.java => SyncDeleteHmacKey.java} | 10 +++++-----
 ...java => SyncDeleteHmacKeyStringProjectname.java} |  6 +++---
 ...ring.java => SyncDeleteHmacKeyStringString.java} |  6 +++---
 ...ionRequest.java => AsyncDeleteNotification.java} | 11 +++++------
 ...tionRequest.java => SyncDeleteNotification.java} | 10 +++++-----
 ... => SyncDeleteNotificationNotificationname.java} |  6 +++---
 ...tring.java => SyncDeleteNotificationString.java} |  6 +++---
 ...eteObjectRequest.java => AsyncDeleteObject.java} | 10 +++++-----
 ...leteObjectRequest.java => SyncDeleteObject.java} | 10 +++++-----
 ...tring.java => SyncDeleteObjectStringString.java} |  6 +++---
 ...g.java => SyncDeleteObjectStringStringLong.java} |  6 +++---
 ...allGetBucketRequest.java => AsyncGetBucket.java} | 10 +++++-----
 ...cketGetBucketRequest.java => SyncGetBucket.java} | 10 +++++-----
 ...BucketName.java => SyncGetBucketBucketname.java} |  6 +++---
 ...etBucketString.java => SyncGetBucketString.java} |  6 +++---
 ...lGetHmacKeyRequest.java => AsyncGetHmacKey.java} | 10 +++++-----
 ...eyGetHmacKeyRequest.java => SyncGetHmacKey.java} | 10 +++++-----
 ...me.java => SyncGetHmacKeyStringProjectname.java} |  6 +++---
 ...gString.java => SyncGetHmacKeyStringString.java} |  6 +++---
 ...IamPolicyRequest.java => AsyncGetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncGetIamPolicy.java} | 10 +++++-----
 ...eName.java => SyncGetIamPolicyResourcename.java} |  6 +++---
 ...olicyString.java => SyncGetIamPolicyString.java} |  6 +++---
 ...cationRequest.java => AsyncGetNotification.java} | 10 +++++-----
 ...icationRequest.java => SyncGetNotification.java} | 10 +++++-----
 ...Name.java => SyncGetNotificationBucketname.java} |  6 +++---
 ...onString.java => SyncGetNotificationString.java} |  6 +++---
 ...allGetObjectRequest.java => AsyncGetObject.java} | 10 +++++-----
 ...jectGetObjectRequest.java => SyncGetObject.java} | 10 +++++-----
 ...ngString.java => SyncGetObjectStringString.java} |  6 +++---
 ...Long.java => SyncGetObjectStringStringLong.java} |  6 +++---
 ...ountRequest.java => AsyncGetServiceAccount.java} | 11 +++++------
 ...countRequest.java => SyncGetServiceAccount.java} | 10 +++++-----
 ...e.java => SyncGetServiceAccountProjectname.java} |  6 +++---
 ...String.java => SyncGetServiceAccountString.java} |  6 +++---
 ...uest.java => AsyncListBucketsPagedCallable.java} | 10 +++++-----
 ...sRequestIterateAll.java => SyncListBuckets.java} | 10 +++++-----
 ...ucketsRequest.java => SyncListBucketsPaged.java} | 10 +++++-----
 ...rateAll.java => SyncListBucketsProjectname.java} | 10 +++++-----
 ...ngIterateAll.java => SyncListBucketsString.java} | 10 +++++-----
 ...est.java => AsyncListHmacKeysPagedCallable.java} | 10 +++++-----
 ...RequestIterateAll.java => SyncListHmacKeys.java} | 10 +++++-----
 ...cKeysRequest.java => SyncListHmacKeysPaged.java} | 10 +++++-----
 ...ateAll.java => SyncListHmacKeysProjectname.java} | 10 +++++-----
 ...gIterateAll.java => SyncListHmacKeysString.java} | 10 +++++-----
 ...ava => AsyncListNotificationsPagedCallable.java} | 11 +++++------
 ...stIterateAll.java => SyncListNotifications.java} | 10 +++++-----
 ...Request.java => SyncListNotificationsPaged.java} | 10 +++++-----
 ...l.java => SyncListNotificationsProjectname.java} | 10 +++++-----
 ...ateAll.java => SyncListNotificationsString.java} | 10 +++++-----
 ...uest.java => AsyncListObjectsPagedCallable.java} | 10 +++++-----
 ...sRequestIterateAll.java => SyncListObjects.java} | 10 +++++-----
 ...bjectsRequest.java => SyncListObjectsPaged.java} | 10 +++++-----
 ...rateAll.java => SyncListObjectsProjectname.java} | 10 +++++-----
 ...ngIterateAll.java => SyncListObjectsString.java} | 10 +++++-----
 ...est.java => AsyncLockBucketRetentionPolicy.java} | 11 +++++------
 ...uest.java => SyncLockBucketRetentionPolicy.java} | 10 +++++-----
 ...=> SyncLockBucketRetentionPolicyBucketname.java} |  6 +++---
 ...ava => SyncLockBucketRetentionPolicyString.java} |  6 +++---
 ...tatusRequest.java => AsyncQueryWriteStatus.java} | 10 +++++-----
 ...StatusRequest.java => SyncQueryWriteStatus.java} | 10 +++++-----
 ...sString.java => SyncQueryWriteStatusString.java} |  6 +++---
 ...equest.java => AsyncReadObjectStreamServer.java} | 10 +++++-----
 ...teObjectRequest.java => AsyncRewriteObject.java} | 10 +++++-----
 ...iteObjectRequest.java => SyncRewriteObject.java} | 10 +++++-----
 ...IamPolicyRequest.java => AsyncSetIamPolicy.java} | 10 +++++-----
 ...tIamPolicyRequest.java => SyncSetIamPolicy.java} | 10 +++++-----
 ...java => SyncSetIamPolicyResourcenamePolicy.java} |  6 +++---
 ...olicy.java => SyncSetIamPolicyStringPolicy.java} |  6 +++---
 ...teRequest.java => AsyncStartResumableWrite.java} | 11 +++++------
 ...iteRequest.java => SyncStartResumableWrite.java} | 10 +++++-----
 ...onsRequest.java => AsyncTestIamPermissions.java} | 11 +++++------
 ...ionsRequest.java => SyncTestIamPermissions.java} | 10 +++++-----
 ...ncTestIamPermissionsResourcenameListstring.java} |  6 +++---
 ... => SyncTestIamPermissionsStringListstring.java} |  6 +++---
 ...ateBucketRequest.java => AsyncUpdateBucket.java} | 10 +++++-----
 ...dateBucketRequest.java => SyncUpdateBucket.java} | 10 +++++-----
 ...sk.java => SyncUpdateBucketBucketFieldmask.java} |  6 +++---
 ...eHmacKeyRequest.java => AsyncUpdateHmacKey.java} | 10 +++++-----
 ...teHmacKeyRequest.java => SyncUpdateHmacKey.java} | 10 +++++-----
 ... SyncUpdateHmacKeyHmackeymetadataFieldmask.java} |  6 +++---
 ...ateObjectRequest.java => AsyncUpdateObject.java} | 10 +++++-----
 ...dateObjectRequest.java => SyncUpdateObject.java} | 10 +++++-----
 ...sk.java => SyncUpdateObjectObjectFieldmask.java} |  6 +++---
 ...quest.java => AsyncWriteObjectStreamClient.java} | 10 +++++-----
 ...gsStorageSettings.java => SyncDeleteBucket.java} | 10 +++++-----
 ...orageStubSettings.java => SyncDeleteBucket.java} | 10 +++++-----
 746 files changed, 3333 insertions(+), 3410 deletions(-)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/{AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java => AsyncAnalyzeIamPolicy.java} (81%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/{AnalyzeIamPolicyAnalyzeIamPolicyRequest.java => SyncAnalyzeIamPolicy.java} (84%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/{AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java => AsyncAnalyzeIamPolicyLongrunning.java} (80%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/{AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java => AsyncAnalyzeIamPolicyLongrunningOperationCallable.java} (80%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/{AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java => SyncAnalyzeIamPolicyLongrunning.java} (81%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/{AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java => AsyncAnalyzeMove.java} (79%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/{AnalyzeMoveAnalyzeMoveRequest.java => SyncAnalyzeMove.java} (81%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/{BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java => AsyncBatchGetAssetsHistory.java} (84%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/{BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java => SyncBatchGetAssetsHistory.java} (87%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/{CreateAssetServiceSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/{CreateAssetServiceSettings2.java => SyncCreateSetEndpoint.java} (79%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/{CreateFeedCallableFutureCallCreateFeedRequest.java => AsyncCreateFeed.java} (79%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/{CreateFeedCreateFeedRequest.java => SyncCreateFeed.java} (81%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/{CreateFeedString.java => SyncCreateFeedString.java} (91%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/{DeleteFeedCallableFutureCallDeleteFeedRequest.java => AsyncDeleteFeed.java} (78%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/{DeleteFeedDeleteFeedRequest.java => SyncDeleteFeed.java} (81%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/{DeleteFeedFeedName.java => SyncDeleteFeedFeedname.java} (90%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/{DeleteFeedString.java => SyncDeleteFeedString.java} (91%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/{ExportAssetsCallableFutureCallExportAssetsRequest.java => AsyncExportAssets.java} (82%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/{ExportAssetsOperationCallableFutureCallExportAssetsRequest.java => AsyncExportAssetsOperationCallable.java} (86%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/{ExportAssetsAsyncExportAssetsRequestGet.java => SyncExportAssets.java} (83%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/{GetFeedCallableFutureCallGetFeedRequest.java => AsyncGetFeed.java} (80%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/{GetFeedGetFeedRequest.java => SyncGetFeed.java} (82%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/{GetFeedFeedName.java => SyncGetFeedFeedname.java} (91%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/{GetFeedString.java => SyncGetFeedString.java} (92%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/{ListAssetsPagedCallableFutureCallListAssetsRequest.java => AsyncListAssetsPagedCallable.java} (87%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/{ListAssetsListAssetsRequestIterateAll.java => SyncListAssets.java} (83%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/{ListAssetsCallableCallListAssetsRequest.java => SyncListAssetsPaged.java} (86%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/{ListAssetsResourceNameIterateAll.java => SyncListAssetsResourcename.java} (87%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/{ListAssetsStringIterateAll.java => SyncListAssetsString.java} (84%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/{ListFeedsCallableFutureCallListFeedsRequest.java => AsyncListFeeds.java} (78%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/{ListFeedsListFeedsRequest.java => SyncListFeeds.java} (81%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/{ListFeedsString.java => SyncListFeedsString.java} (91%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/{SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java => AsyncSearchAllIamPoliciesPagedCallable.java} (83%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/{SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java => SyncSearchAllIamPolicies.java} (84%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/{SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java => SyncSearchAllIamPoliciesPaged.java} (86%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/{SearchAllIamPoliciesStringStringIterateAll.java => SyncSearchAllIamPoliciesStringString.java} (84%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/{SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java => AsyncSearchAllResourcesPagedCallable.java} (84%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/{SearchAllResourcesSearchAllResourcesRequestIterateAll.java => SyncSearchAllResources.java} (85%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/{SearchAllResourcesCallableCallSearchAllResourcesRequest.java => SyncSearchAllResourcesPaged.java} (87%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/{SearchAllResourcesStringStringListStringIterateAll.java => SyncSearchAllResourcesStringStringListstring.java} (83%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/{UpdateFeedCallableFutureCallUpdateFeedRequest.java => AsyncUpdateFeed.java} (79%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/{UpdateFeedUpdateFeedRequest.java => SyncUpdateFeed.java} (81%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/{UpdateFeedFeed.java => SyncUpdateFeedFeed.java} (91%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/{BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java => SyncBatchGetAssetsHistory.java} (80%)
 rename test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/{BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java => SyncBatchGetAssetsHistory.java} (79%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/{CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java => AsyncCheckAndMutateRow.java} (85%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/{CheckAndMutateRowCheckAndMutateRowRequest.java => SyncCheckAndMutateRow.java} (88%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/{CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java => SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation.java} (88%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/{CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java => SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString.java} (88%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/{CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java => SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation.java} (88%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/{CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java => SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString.java} (86%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/{CreateBaseBigtableDataSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/{CreateBaseBigtableDataSettings2.java => SyncCreateSetEndpoint.java} (79%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/{MutateRowCallableFutureCallMutateRowRequest.java => AsyncMutateRow.java} (84%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/{MutateRowMutateRowRequest.java => SyncMutateRow.java} (87%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/{MutateRowStringByteStringListMutation.java => SyncMutateRowStringBytestringListmutation.java} (90%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/{MutateRowStringByteStringListMutationString.java => SyncMutateRowStringBytestringListmutationString.java} (89%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/{MutateRowTableNameByteStringListMutation.java => SyncMutateRowTablenameBytestringListmutation.java} (89%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/{MutateRowTableNameByteStringListMutationString.java => SyncMutateRowTablenameBytestringListmutationString.java} (89%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/{MutateRowsCallableCallMutateRowsRequest.java => AsyncMutateRowsStreamServer.java} (88%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/{ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java => AsyncReadModifyWriteRow.java} (84%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/{ReadModifyWriteRowReadModifyWriteRowRequest.java => SyncReadModifyWriteRow.java} (87%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/{ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java => SyncReadModifyWriteRowStringBytestringListreadmodifywriterule.java} (87%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/{ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java => SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString.java} (88%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/{ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java => SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule.java} (88%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/{ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java => SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString.java} (88%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/{ReadRowsCallableCallReadRowsRequest.java => AsyncReadRowsStreamServer.java} (86%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/{SampleRowKeysCallableCallSampleRowKeysRequest.java => AsyncSampleRowKeysStreamServer.java} (86%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/{MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java => SyncMutateRow.java} (82%)
 rename test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/{MutateRowSettingsSetRetrySettingsBigtableStubSettings.java => SyncMutateRow.java} (80%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/{AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java => AsyncAggregatedListPagedCallable.java} (83%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/{AggregatedListAggregatedListAddressesRequestIterateAll.java => SyncAggregatedList.java} (85%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/{AggregatedListCallableCallAggregatedListAddressesRequest.java => SyncAggregatedListPaged.java} (87%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/{AggregatedListStringIterateAll.java => SyncAggregatedListString.java} (87%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/{CreateAddressesSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/{CreateAddressesSettings2.java => SyncCreateSetEndpoint.java} (80%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/{DeleteCallableFutureCallDeleteAddressRequest.java => AsyncDelete.java} (80%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/{DeleteOperationCallableFutureCallDeleteAddressRequest.java => AsyncDeleteOperationCallable.java} (84%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/{DeleteAsyncDeleteAddressRequestGet.java => SyncDelete.java} (80%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/{DeleteAsyncStringStringStringGet.java => SyncDeleteStringStringString.java} (78%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/{InsertCallableFutureCallInsertAddressRequest.java => AsyncInsert.java} (80%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/{InsertOperationCallableFutureCallInsertAddressRequest.java => AsyncInsertOperationCallable.java} (85%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/{InsertAsyncInsertAddressRequestGet.java => SyncInsert.java} (81%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/{InsertAsyncStringStringAddressGet.java => SyncInsertStringStringAddress.java} (79%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/{ListPagedCallableFutureCallListAddressesRequest.java => AsyncListPagedCallable.java} (86%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/{ListListAddressesRequestIterateAll.java => SyncList.java} (81%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/{ListCallableCallListAddressesRequest.java => SyncListPaged.java} (84%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/{ListStringStringStringIterateAll.java => SyncListStringStringString.java} (86%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/{AggregatedListSettingsSetRetrySettingsAddressesSettings.java => SyncAggregatedList.java} (82%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/{CreateRegionOperationsSettings1.java => SyncCreateSetCredentialsProvider.java} (87%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/{CreateRegionOperationsSettings2.java => SyncCreateSetEndpoint.java} (86%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/{GetCallableFutureCallGetRegionOperationRequest.java => AsyncGet.java} (78%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/{GetGetRegionOperationRequest.java => SyncGet.java} (81%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/{GetStringStringString.java => SyncGetStringStringString.java} (91%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/{WaitCallableFutureCallWaitRegionOperationRequest.java => AsyncWait.java} (81%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/{WaitWaitRegionOperationRequest.java => SyncWait.java} (84%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/{WaitStringStringString.java => SyncWaitStringStringString.java} (91%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/{GetSettingsSetRetrySettingsRegionOperationsSettings.java => SyncGet.java} (83%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/{AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java => SyncAggregatedList.java} (81%)
 rename test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/{GetSettingsSetRetrySettingsRegionOperationsStubSettings.java => SyncGet.java} (82%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/{CreateIamCredentialsSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/{CreateIamCredentialsSettings2.java => SyncCreateSetEndpoint.java} (79%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/{GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java => AsyncGenerateAccessToken.java} (84%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/{GenerateAccessTokenGenerateAccessTokenRequest.java => SyncGenerateAccessToken.java} (86%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/{GenerateAccessTokenServiceAccountNameListStringListStringDuration.java => SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration.java} (88%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/{GenerateAccessTokenStringListStringListStringDuration.java => SyncGenerateAccessTokenStringListstringListstringDuration.java} (88%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/{GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java => AsyncGenerateIdToken.java} (85%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/{GenerateIdTokenGenerateIdTokenRequest.java => SyncGenerateIdToken.java} (87%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/{GenerateIdTokenServiceAccountNameListStringStringBoolean.java => SyncGenerateIdTokenServiceaccountnameListstringStringBoolean.java} (87%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/{GenerateIdTokenStringListStringStringBoolean.java => SyncGenerateIdTokenStringListstringStringBoolean.java} (89%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/{SignBlobCallableFutureCallSignBlobRequest.java => AsyncSignBlob.java} (84%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/{SignBlobSignBlobRequest.java => SyncSignBlob.java} (90%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/{SignBlobServiceAccountNameListStringByteString.java => SyncSignBlobServiceaccountnameListstringBytestring.java} (88%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/{SignBlobStringListStringByteString.java => SyncSignBlobStringListstringBytestring.java} (90%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/{SignJwtCallableFutureCallSignJwtRequest.java => AsyncSignJwt.java} (84%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/{SignJwtSignJwtRequest.java => SyncSignJwt.java} (87%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/{SignJwtServiceAccountNameListStringString.java => SyncSignJwtServiceaccountnameListstringString.java} (89%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/{SignJwtStringListStringString.java => SyncSignJwtStringListstringString.java} (90%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/{GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java => SyncGenerateAccessToken.java} (80%)
 rename test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/{GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java => SyncGenerateAccessToken.java} (79%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/{CreateIAMPolicySettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/{CreateIAMPolicySettings2.java => SyncCreateSetEndpoint.java} (80%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/{GetIamPolicyCallableFutureCallGetIamPolicyRequest.java => AsyncGetIamPolicy.java} (78%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/{GetIamPolicyGetIamPolicyRequest.java => SyncGetIamPolicy.java} (81%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/{SetIamPolicyCallableFutureCallSetIamPolicyRequest.java => AsyncSetIamPolicy.java} (78%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/{SetIamPolicySetIamPolicyRequest.java => SyncSetIamPolicy.java} (80%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/{TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java => AsyncTestIamPermissions.java} (77%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/{TestIamPermissionsTestIamPermissionsRequest.java => SyncTestIamPermissions.java} (79%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/{SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java => SyncSetIamPolicy.java} (76%)
 rename test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/{SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java => SyncSetIamPolicy.java} (75%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/{AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java => AsyncAsymmetricDecrypt.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/{AsymmetricDecryptAsymmetricDecryptRequest.java => SyncAsymmetricDecrypt.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/{AsymmetricDecryptCryptoKeyVersionNameByteString.java => SyncAsymmetricDecryptCryptokeyversionnameBytestring.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/{AsymmetricDecryptStringByteString.java => SyncAsymmetricDecryptStringBytestring.java} (90%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/{AsymmetricSignCallableFutureCallAsymmetricSignRequest.java => AsyncAsymmetricSign.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/{AsymmetricSignAsymmetricSignRequest.java => SyncAsymmetricSign.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/{AsymmetricSignCryptoKeyVersionNameDigest.java => SyncAsymmetricSignCryptokeyversionnameDigest.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/{AsymmetricSignStringDigest.java => SyncAsymmetricSignStringDigest.java} (91%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/{CreateKeyManagementServiceSettings1.java => SyncCreateSetCredentialsProvider.java} (79%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/{CreateKeyManagementServiceSettings2.java => SyncCreateSetEndpoint.java} (78%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/{CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java => AsyncCreateCryptoKey.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/{CreateCryptoKeyCreateCryptoKeyRequest.java => SyncCreateCryptoKey.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/{CreateCryptoKeyKeyRingNameStringCryptoKey.java => SyncCreateCryptoKeyKeyringnameStringCryptokey.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/{CreateCryptoKeyStringStringCryptoKey.java => SyncCreateCryptoKeyStringStringCryptokey.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/{CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java => AsyncCreateCryptoKeyVersion.java} (82%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/{CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java => SyncCreateCryptoKeyVersion.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/{CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java => SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/{CreateCryptoKeyVersionStringCryptoKeyVersion.java => SyncCreateCryptoKeyVersionStringCryptokeyversion.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/{CreateImportJobCallableFutureCallCreateImportJobRequest.java => AsyncCreateImportJob.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/{CreateImportJobCreateImportJobRequest.java => SyncCreateImportJob.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/{CreateImportJobKeyRingNameStringImportJob.java => SyncCreateImportJobKeyringnameStringImportjob.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/{CreateImportJobStringStringImportJob.java => SyncCreateImportJobStringStringImportjob.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/{CreateKeyRingCallableFutureCallCreateKeyRingRequest.java => AsyncCreateKeyRing.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/{CreateKeyRingCreateKeyRingRequest.java => SyncCreateKeyRing.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/{CreateKeyRingLocationNameStringKeyRing.java => SyncCreateKeyRingLocationnameStringKeyring.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/{CreateKeyRingStringStringKeyRing.java => SyncCreateKeyRingStringStringKeyring.java} (90%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/{DecryptCallableFutureCallDecryptRequest.java => AsyncDecrypt.java} (83%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/{DecryptDecryptRequest.java => SyncDecrypt.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/{DecryptCryptoKeyNameByteString.java => SyncDecryptCryptokeynameBytestring.java} (90%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/{DecryptStringByteString.java => SyncDecryptStringBytestring.java} (91%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/{DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java => AsyncDestroyCryptoKeyVersion.java} (82%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/{DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java => SyncDestroyCryptoKeyVersion.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/{DestroyCryptoKeyVersionCryptoKeyVersionName.java => SyncDestroyCryptoKeyVersionCryptokeyversionname.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/{DestroyCryptoKeyVersionString.java => SyncDestroyCryptoKeyVersionString.java} (90%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/{EncryptCallableFutureCallEncryptRequest.java => AsyncEncrypt.java} (83%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/{EncryptEncryptRequest.java => SyncEncrypt.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/{EncryptResourceNameByteString.java => SyncEncryptResourcenameBytestring.java} (90%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/{EncryptStringByteString.java => SyncEncryptStringBytestring.java} (91%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/{GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java => AsyncGetCryptoKey.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/{GetCryptoKeyGetCryptoKeyRequest.java => SyncGetCryptoKey.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/{GetCryptoKeyCryptoKeyName.java => SyncGetCryptoKeyCryptokeyname.java} (90%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/{GetCryptoKeyString.java => SyncGetCryptoKeyString.java} (91%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/{GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java => AsyncGetCryptoKeyVersion.java} (83%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/{GetCryptoKeyVersionGetCryptoKeyVersionRequest.java => SyncGetCryptoKeyVersion.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/{GetCryptoKeyVersionCryptoKeyVersionName.java => SyncGetCryptoKeyVersionCryptokeyversionname.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/{GetCryptoKeyVersionString.java => SyncGetCryptoKeyVersionString.java} (91%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/{GetIamPolicyCallableFutureCallGetIamPolicyRequest.java => AsyncGetIamPolicy.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/{GetIamPolicyGetIamPolicyRequest.java => SyncGetIamPolicy.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/{GetImportJobCallableFutureCallGetImportJobRequest.java => AsyncGetImportJob.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/{GetImportJobGetImportJobRequest.java => SyncGetImportJob.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/{GetImportJobImportJobName.java => SyncGetImportJobImportjobname.java} (90%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/{GetImportJobString.java => SyncGetImportJobString.java} (91%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/{GetKeyRingCallableFutureCallGetKeyRingRequest.java => AsyncGetKeyRing.java} (82%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/{GetKeyRingGetKeyRingRequest.java => SyncGetKeyRing.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/{GetKeyRingKeyRingName.java => SyncGetKeyRingKeyringname.java} (91%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/{GetKeyRingString.java => SyncGetKeyRingString.java} (91%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/{GetLocationCallableFutureCallGetLocationRequest.java => AsyncGetLocation.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/{GetLocationGetLocationRequest.java => SyncGetLocation.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/{GetPublicKeyCallableFutureCallGetPublicKeyRequest.java => AsyncGetPublicKey.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/{GetPublicKeyGetPublicKeyRequest.java => SyncGetPublicKey.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/{GetPublicKeyCryptoKeyVersionName.java => SyncGetPublicKeyCryptokeyversionname.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/{GetPublicKeyString.java => SyncGetPublicKeyString.java} (92%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/{ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java => AsyncImportCryptoKeyVersion.java} (82%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/{ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java => SyncImportCryptoKeyVersion.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/{ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java => AsyncListCryptoKeysPagedCallable.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/{ListCryptoKeysListCryptoKeysRequestIterateAll.java => SyncListCryptoKeys.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/{ListCryptoKeysKeyRingNameIterateAll.java => SyncListCryptoKeysKeyringname.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/{ListCryptoKeysCallableCallListCryptoKeysRequest.java => SyncListCryptoKeysPaged.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/{ListCryptoKeysStringIterateAll.java => SyncListCryptoKeysString.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/{ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java => AsyncListCryptoKeyVersionsPagedCallable.java} (83%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/{ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java => SyncListCryptoKeyVersions.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/{ListCryptoKeyVersionsCryptoKeyNameIterateAll.java => SyncListCryptoKeyVersionsCryptokeyname.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/{ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java => SyncListCryptoKeyVersionsPaged.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/{ListCryptoKeyVersionsStringIterateAll.java => SyncListCryptoKeyVersionsString.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/{ListImportJobsPagedCallableFutureCallListImportJobsRequest.java => AsyncListImportJobsPagedCallable.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/{ListImportJobsListImportJobsRequestIterateAll.java => SyncListImportJobs.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/{ListImportJobsKeyRingNameIterateAll.java => SyncListImportJobsKeyringname.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/{ListImportJobsCallableCallListImportJobsRequest.java => SyncListImportJobsPaged.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/{ListImportJobsStringIterateAll.java => SyncListImportJobsString.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/{ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java => AsyncListKeyRingsPagedCallable.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/{ListKeyRingsListKeyRingsRequestIterateAll.java => SyncListKeyRings.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/{ListKeyRingsLocationNameIterateAll.java => SyncListKeyRingsLocationname.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/{ListKeyRingsCallableCallListKeyRingsRequest.java => SyncListKeyRingsPaged.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/{ListKeyRingsStringIterateAll.java => SyncListKeyRingsString.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/{ListLocationsPagedCallableFutureCallListLocationsRequest.java => AsyncListLocationsPagedCallable.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/{ListLocationsListLocationsRequestIterateAll.java => SyncListLocations.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/{ListLocationsCallableCallListLocationsRequest.java => SyncListLocationsPaged.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/{RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java => AsyncRestoreCryptoKeyVersion.java} (82%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/{RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java => SyncRestoreCryptoKeyVersion.java} (85%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/{RestoreCryptoKeyVersionCryptoKeyVersionName.java => SyncRestoreCryptoKeyVersionCryptokeyversionname.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/{RestoreCryptoKeyVersionString.java => SyncRestoreCryptoKeyVersionString.java} (90%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/{TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java => AsyncTestIamPermissions.java} (83%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/{TestIamPermissionsTestIamPermissionsRequest.java => SyncTestIamPermissions.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/{UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java => AsyncUpdateCryptoKey.java} (83%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/{UpdateCryptoKeyUpdateCryptoKeyRequest.java => SyncUpdateCryptoKey.java} (86%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/{UpdateCryptoKeyCryptoKeyFieldMask.java => SyncUpdateCryptoKeyCryptokeyFieldmask.java} (89%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/{UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java => AsyncUpdateCryptoKeyPrimaryVersion.java} (79%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/{UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java => SyncUpdateCryptoKeyPrimaryVersion.java} (81%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/{UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java => SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/{UpdateCryptoKeyPrimaryVersionStringString.java => SyncUpdateCryptoKeyPrimaryVersionStringString.java} (88%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/{UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java => AsyncUpdateCryptoKeyVersion.java} (81%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/{UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java => SyncUpdateCryptoKeyVersion.java} (84%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/{UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java => SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java} (87%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/{GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java => SyncGetKeyRing.java} (81%)
 rename test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/{GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java => SyncGetKeyRing.java} (80%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/{CreateLibraryServiceSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/{CreateLibraryServiceSettings2.java => SyncCreateSetEndpoint.java} (79%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/{CreateBookCallableFutureCallCreateBookRequest.java => AsyncCreateBook.java} (79%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/{CreateBookCreateBookRequest.java => SyncCreateBook.java} (81%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/{CreateBookShelfNameBook.java => SyncCreateBookShelfnameBook.java} (90%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/{CreateBookStringBook.java => SyncCreateBookStringBook.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/{CreateShelfCallableFutureCallCreateShelfRequest.java => AsyncCreateShelf.java} (80%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/{CreateShelfCreateShelfRequest.java => SyncCreateShelf.java} (83%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/{CreateShelfShelf.java => SyncCreateShelfShelf.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/{DeleteBookCallableFutureCallDeleteBookRequest.java => AsyncDeleteBook.java} (78%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/{DeleteBookDeleteBookRequest.java => SyncDeleteBook.java} (81%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/{DeleteBookBookName.java => SyncDeleteBookBookname.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/{DeleteBookString.java => SyncDeleteBookString.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/{DeleteShelfCallableFutureCallDeleteShelfRequest.java => AsyncDeleteShelf.java} (81%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/{DeleteShelfDeleteShelfRequest.java => SyncDeleteShelf.java} (84%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/{DeleteShelfShelfName.java => SyncDeleteShelfShelfname.java} (90%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/{DeleteShelfString.java => SyncDeleteShelfString.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/{GetBookCallableFutureCallGetBookRequest.java => AsyncGetBook.java} (79%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/{GetBookGetBookRequest.java => SyncGetBook.java} (82%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/{GetBookBookName.java => SyncGetBookBookname.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/{GetBookString.java => SyncGetBookString.java} (92%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/{GetShelfCallableFutureCallGetShelfRequest.java => AsyncGetShelf.java} (79%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/{GetShelfGetShelfRequest.java => SyncGetShelf.java} (82%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/{GetShelfShelfName.java => SyncGetShelfShelfname.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/{GetShelfString.java => SyncGetShelfString.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/{ListBooksPagedCallableFutureCallListBooksRequest.java => AsyncListBooksPagedCallable.java} (85%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/{ListBooksListBooksRequestIterateAll.java => SyncListBooks.java} (81%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/{ListBooksCallableCallListBooksRequest.java => SyncListBooksPaged.java} (84%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/{ListBooksShelfNameIterateAll.java => SyncListBooksShelfname.java} (87%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/{ListBooksStringIterateAll.java => SyncListBooksString.java} (88%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/{ListShelvesPagedCallableFutureCallListShelvesRequest.java => AsyncListShelvesPagedCallable.java} (84%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/{ListShelvesListShelvesRequestIterateAll.java => SyncListShelves.java} (82%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/{ListShelvesCallableCallListShelvesRequest.java => SyncListShelvesPaged.java} (85%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/{MergeShelvesCallableFutureCallMergeShelvesRequest.java => AsyncMergeShelves.java} (82%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/{MergeShelvesMergeShelvesRequest.java => SyncMergeShelves.java} (84%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/{MergeShelvesShelfNameShelfName.java => SyncMergeShelvesShelfnameShelfname.java} (89%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/{MergeShelvesShelfNameString.java => SyncMergeShelvesShelfnameString.java} (90%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/{MergeShelvesStringShelfName.java => SyncMergeShelvesStringShelfname.java} (90%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/{MergeShelvesStringString.java => SyncMergeShelvesStringString.java} (90%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/{MoveBookCallableFutureCallMoveBookRequest.java => AsyncMoveBook.java} (80%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/{MoveBookMoveBookRequest.java => SyncMoveBook.java} (83%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/{MoveBookBookNameShelfName.java => SyncMoveBookBooknameShelfname.java} (90%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/{MoveBookBookNameString.java => SyncMoveBookBooknameString.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/{MoveBookStringShelfName.java => SyncMoveBookStringShelfname.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/{MoveBookStringString.java => SyncMoveBookStringString.java} (91%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/{UpdateBookCallableFutureCallUpdateBookRequest.java => AsyncUpdateBook.java} (79%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/{UpdateBookUpdateBookRequest.java => SyncUpdateBook.java} (81%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/{UpdateBookBookFieldMask.java => SyncUpdateBookBookFieldmask.java} (90%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/{CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java => SyncCreateShelf.java} (82%)
 rename test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/{CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java => SyncCreateShelf.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/{CreateConfigSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/{CreateConfigSettings2.java => SyncCreateSetEndpoint.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/{CreateBucketCallableFutureCallCreateBucketRequest.java => AsyncCreateBucket.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/{CreateBucketCreateBucketRequest.java => SyncCreateBucket.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/{CreateExclusionCallableFutureCallCreateExclusionRequest.java => AsyncCreateExclusion.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/{CreateExclusionCreateExclusionRequest.java => SyncCreateExclusion.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/{CreateExclusionBillingAccountNameLogExclusion.java => SyncCreateExclusionBillingaccountnameLogexclusion.java} (87%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/{CreateExclusionFolderNameLogExclusion.java => SyncCreateExclusionFoldernameLogexclusion.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/{CreateExclusionOrganizationNameLogExclusion.java => SyncCreateExclusionOrganizationnameLogexclusion.java} (87%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/{CreateExclusionProjectNameLogExclusion.java => SyncCreateExclusionProjectnameLogexclusion.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/{CreateExclusionStringLogExclusion.java => SyncCreateExclusionStringLogexclusion.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/{CreateSinkCallableFutureCallCreateSinkRequest.java => AsyncCreateSink.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/{CreateSinkCreateSinkRequest.java => SyncCreateSink.java} (82%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/{CreateSinkBillingAccountNameLogSink.java => SyncCreateSinkBillingaccountnameLogsink.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/{CreateSinkFolderNameLogSink.java => SyncCreateSinkFoldernameLogsink.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/{CreateSinkOrganizationNameLogSink.java => SyncCreateSinkOrganizationnameLogsink.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/{CreateSinkProjectNameLogSink.java => SyncCreateSinkProjectnameLogsink.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/{CreateSinkStringLogSink.java => SyncCreateSinkStringLogsink.java} (90%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/{CreateViewCallableFutureCallCreateViewRequest.java => AsyncCreateView.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/{CreateViewCreateViewRequest.java => SyncCreateView.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/{DeleteBucketCallableFutureCallDeleteBucketRequest.java => AsyncDeleteBucket.java} (78%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/{DeleteBucketDeleteBucketRequest.java => SyncDeleteBucket.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/{DeleteExclusionCallableFutureCallDeleteExclusionRequest.java => AsyncDeleteExclusion.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/{DeleteExclusionDeleteExclusionRequest.java => SyncDeleteExclusion.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/{DeleteExclusionLogExclusionName.java => SyncDeleteExclusionLogexclusionname.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/{DeleteExclusionString.java => SyncDeleteExclusionString.java} (90%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/{DeleteSinkCallableFutureCallDeleteSinkRequest.java => AsyncDeleteSink.java} (78%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/{DeleteSinkDeleteSinkRequest.java => SyncDeleteSink.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/{DeleteSinkLogSinkName.java => SyncDeleteSinkLogsinkname.java} (90%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/{DeleteSinkString.java => SyncDeleteSinkString.java} (91%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/{DeleteViewCallableFutureCallDeleteViewRequest.java => AsyncDeleteView.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/{DeleteViewDeleteViewRequest.java => SyncDeleteView.java} (82%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/{GetBucketCallableFutureCallGetBucketRequest.java => AsyncGetBucket.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/{GetBucketGetBucketRequest.java => SyncGetBucket.java} (82%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/{GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java => AsyncGetCmekSettings.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/{GetCmekSettingsGetCmekSettingsRequest.java => SyncGetCmekSettings.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/{GetExclusionCallableFutureCallGetExclusionRequest.java => AsyncGetExclusion.java} (78%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/{GetExclusionGetExclusionRequest.java => SyncGetExclusion.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/{GetExclusionLogExclusionName.java => SyncGetExclusionLogexclusionname.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/{GetExclusionString.java => SyncGetExclusionString.java} (91%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/{GetSinkCallableFutureCallGetSinkRequest.java => AsyncGetSink.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/{GetSinkGetSinkRequest.java => SyncGetSink.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/{GetSinkLogSinkName.java => SyncGetSinkLogsinkname.java} (90%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/{GetSinkString.java => SyncGetSinkString.java} (91%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/{GetViewCallableFutureCallGetViewRequest.java => AsyncGetView.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/{GetViewGetViewRequest.java => SyncGetView.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/{ListBucketsPagedCallableFutureCallListBucketsRequest.java => AsyncListBucketsPagedCallable.java} (85%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/{ListBucketsListBucketsRequestIterateAll.java => SyncListBuckets.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/{ListBucketsBillingAccountLocationNameIterateAll.java => SyncListBucketsBillingaccountlocationname.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/{ListBucketsFolderLocationNameIterateAll.java => SyncListBucketsFolderlocationname.java} (85%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/{ListBucketsLocationNameIterateAll.java => SyncListBucketsLocationname.java} (87%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/{ListBucketsOrganizationLocationNameIterateAll.java => SyncListBucketsOrganizationlocationname.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/{ListBucketsCallableCallListBucketsRequest.java => SyncListBucketsPaged.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/{ListBucketsStringIterateAll.java => SyncListBucketsString.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/{ListExclusionsPagedCallableFutureCallListExclusionsRequest.java => AsyncListExclusionsPagedCallable.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/{ListExclusionsListExclusionsRequestIterateAll.java => SyncListExclusions.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/{ListExclusionsBillingAccountNameIterateAll.java => SyncListExclusionsBillingaccountname.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/{ListExclusionsFolderNameIterateAll.java => SyncListExclusionsFoldername.java} (86%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/{ListExclusionsOrganizationNameIterateAll.java => SyncListExclusionsOrganizationname.java} (85%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/{ListExclusionsCallableCallListExclusionsRequest.java => SyncListExclusionsPaged.java} (82%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/{ListExclusionsProjectNameIterateAll.java => SyncListExclusionsProjectname.java} (86%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/{ListExclusionsStringIterateAll.java => SyncListExclusionsString.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/{ListSinksPagedCallableFutureCallListSinksRequest.java => AsyncListSinksPagedCallable.java} (86%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/{ListSinksListSinksRequestIterateAll.java => SyncListSinks.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/{ListSinksBillingAccountNameIterateAll.java => SyncListSinksBillingaccountname.java} (86%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/{ListSinksFolderNameIterateAll.java => SyncListSinksFoldername.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/{ListSinksOrganizationNameIterateAll.java => SyncListSinksOrganizationname.java} (86%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/{ListSinksCallableCallListSinksRequest.java => SyncListSinksPaged.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/{ListSinksProjectNameIterateAll.java => SyncListSinksProjectname.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/{ListSinksStringIterateAll.java => SyncListSinksString.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/{ListViewsPagedCallableFutureCallListViewsRequest.java => AsyncListViewsPagedCallable.java} (85%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/{ListViewsListViewsRequestIterateAll.java => SyncListViews.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/{ListViewsCallableCallListViewsRequest.java => SyncListViewsPaged.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/{ListViewsStringIterateAll.java => SyncListViewsString.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/{UndeleteBucketCallableFutureCallUndeleteBucketRequest.java => AsyncUndeleteBucket.java} (78%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/{UndeleteBucketUndeleteBucketRequest.java => SyncUndeleteBucket.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/{UpdateBucketCallableFutureCallUpdateBucketRequest.java => AsyncUpdateBucket.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/{UpdateBucketUpdateBucketRequest.java => SyncUpdateBucket.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/{UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java => AsyncUpdateCmekSettings.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/{UpdateCmekSettingsUpdateCmekSettingsRequest.java => SyncUpdateCmekSettings.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/{UpdateExclusionCallableFutureCallUpdateExclusionRequest.java => AsyncUpdateExclusion.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/{UpdateExclusionUpdateExclusionRequest.java => SyncUpdateExclusion.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/{UpdateExclusionLogExclusionNameLogExclusionFieldMask.java => SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask.java} (87%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/{UpdateExclusionStringLogExclusionFieldMask.java => SyncUpdateExclusionStringLogexclusionFieldmask.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/{UpdateSinkCallableFutureCallUpdateSinkRequest.java => AsyncUpdateSink.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/{UpdateSinkUpdateSinkRequest.java => SyncUpdateSink.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/{UpdateSinkLogSinkNameLogSink.java => SyncUpdateSinkLogsinknameLogsink.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/{UpdateSinkLogSinkNameLogSinkFieldMask.java => SyncUpdateSinkLogsinknameLogsinkFieldmask.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/{UpdateSinkStringLogSink.java => SyncUpdateSinkStringLogsink.java} (90%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/{UpdateSinkStringLogSinkFieldMask.java => SyncUpdateSinkStringLogsinkFieldmask.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/{UpdateViewCallableFutureCallUpdateViewRequest.java => AsyncUpdateView.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/{UpdateViewUpdateViewRequest.java => SyncUpdateView.java} (82%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/{GetBucketSettingsSetRetrySettingsConfigSettings.java => SyncGetBucket.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/{CreateLoggingSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/{CreateLoggingSettings2.java => SyncCreateSetEndpoint.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/{DeleteLogCallableFutureCallDeleteLogRequest.java => AsyncDeleteLog.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/{DeleteLogDeleteLogRequest.java => SyncDeleteLog.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/{DeleteLogLogName.java => SyncDeleteLogLogname.java} (91%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/{DeleteLogString.java => SyncDeleteLogString.java} (91%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/{ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java => AsyncListLogEntriesPagedCallable.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/{ListLogEntriesListLogEntriesRequestIterateAll.java => SyncListLogEntries.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/{ListLogEntriesListStringStringStringIterateAll.java => SyncListLogEntriesListstringStringString.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/{ListLogEntriesCallableCallListLogEntriesRequest.java => SyncListLogEntriesPaged.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/{ListLogsPagedCallableFutureCallListLogsRequest.java => AsyncListLogsPagedCallable.java} (86%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/{ListLogsListLogsRequestIterateAll.java => SyncListLogs.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/{ListLogsBillingAccountNameIterateAll.java => SyncListLogsBillingaccountname.java} (85%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/{ListLogsFolderNameIterateAll.java => SyncListLogsFoldername.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/{ListLogsOrganizationNameIterateAll.java => SyncListLogsOrganizationname.java} (86%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/{ListLogsCallableCallListLogsRequest.java => SyncListLogsPaged.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/{ListLogsProjectNameIterateAll.java => SyncListLogsProjectname.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/{ListLogsStringIterateAll.java => SyncListLogsString.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/{ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java => AsyncListMonitoredResourceDescriptorsPagedCallable.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/{ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java => SyncListMonitoredResourceDescriptors.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/{ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java => SyncListMonitoredResourceDescriptorsPaged.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/{TailLogEntriesCallableCallTailLogEntriesRequest.java => AsyncTailLogEntriesStreamBidi.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/{WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java => AsyncWriteLogEntries.java} (81%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/{WriteLogEntriesWriteLogEntriesRequest.java => SyncWriteLogEntries.java} (83%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/{WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java => SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry.java} (87%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/{WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java => SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/{DeleteLogSettingsSetRetrySettingsLoggingSettings.java => SyncDeleteLog.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/{CreateMetricsSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/{CreateMetricsSettings2.java => SyncCreateSetEndpoint.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/{CreateLogMetricCallableFutureCallCreateLogMetricRequest.java => AsyncCreateLogMetric.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/{CreateLogMetricCreateLogMetricRequest.java => SyncCreateLogMetric.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/{CreateLogMetricProjectNameLogMetric.java => SyncCreateLogMetricProjectnameLogmetric.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/{CreateLogMetricStringLogMetric.java => SyncCreateLogMetricStringLogmetric.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/{DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java => AsyncDeleteLogMetric.java} (76%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/{DeleteLogMetricDeleteLogMetricRequest.java => SyncDeleteLogMetric.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/{DeleteLogMetricLogMetricName.java => SyncDeleteLogMetricLogmetricname.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/{DeleteLogMetricString.java => SyncDeleteLogMetricString.java} (90%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/{GetLogMetricCallableFutureCallGetLogMetricRequest.java => AsyncGetLogMetric.java} (78%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/{GetLogMetricGetLogMetricRequest.java => SyncGetLogMetric.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/{GetLogMetricLogMetricName.java => SyncGetLogMetricLogmetricname.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/{GetLogMetricString.java => SyncGetLogMetricString.java} (91%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/{ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java => AsyncListLogMetricsPagedCallable.java} (84%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/{ListLogMetricsListLogMetricsRequestIterateAll.java => SyncListLogMetrics.java} (79%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/{ListLogMetricsCallableCallListLogMetricsRequest.java => SyncListLogMetricsPaged.java} (82%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/{ListLogMetricsProjectNameIterateAll.java => SyncListLogMetricsProjectname.java} (86%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/{ListLogMetricsStringIterateAll.java => SyncListLogMetricsString.java} (87%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/{UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java => AsyncUpdateLogMetric.java} (77%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/{UpdateLogMetricUpdateLogMetricRequest.java => SyncUpdateLogMetric.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/{UpdateLogMetricLogMetricNameLogMetric.java => SyncUpdateLogMetricLogmetricnameLogmetric.java} (88%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/{UpdateLogMetricStringLogMetric.java => SyncUpdateLogMetricStringLogmetric.java} (89%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/{GetLogMetricSettingsSetRetrySettingsMetricsSettings.java => SyncGetLogMetric.java} (76%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/{GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java => SyncGetBucket.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/{DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java => SyncDeleteLog.java} (80%)
 rename test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/{GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java => SyncGetLogMetric.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/{CreateSchemaServiceSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/{CreateSchemaServiceSettings2.java => SyncCreateSetEndpoint.java} (79%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/{CreateSchemaCallableFutureCallCreateSchemaRequest.java => AsyncCreateSchema.java} (78%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/{CreateSchemaCreateSchemaRequest.java => SyncCreateSchema.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/{CreateSchemaProjectNameSchemaString.java => SyncCreateSchemaProjectnameSchemaString.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/{CreateSchemaStringSchemaString.java => SyncCreateSchemaStringSchemaString.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/{DeleteSchemaCallableFutureCallDeleteSchemaRequest.java => AsyncDeleteSchema.java} (77%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/{DeleteSchemaDeleteSchemaRequest.java => SyncDeleteSchema.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/{DeleteSchemaSchemaName.java => SyncDeleteSchemaSchemaname.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/{DeleteSchemaString.java => SyncDeleteSchemaString.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/{GetIamPolicyCallableFutureCallGetIamPolicyRequest.java => AsyncGetIamPolicy.java} (79%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/{GetIamPolicyGetIamPolicyRequest.java => SyncGetIamPolicy.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/{GetSchemaCallableFutureCallGetSchemaRequest.java => AsyncGetSchema.java} (79%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/{GetSchemaGetSchemaRequest.java => SyncGetSchema.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/{GetSchemaSchemaName.java => SyncGetSchemaSchemaname.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/{GetSchemaString.java => SyncGetSchemaString.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/{ListSchemasPagedCallableFutureCallListSchemasRequest.java => AsyncListSchemasPagedCallable.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/{ListSchemasListSchemasRequestIterateAll.java => SyncListSchemas.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/{ListSchemasCallableCallListSchemasRequest.java => SyncListSchemasPaged.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/{ListSchemasProjectNameIterateAll.java => SyncListSchemasProjectname.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/{ListSchemasStringIterateAll.java => SyncListSchemasString.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/{SetIamPolicyCallableFutureCallSetIamPolicyRequest.java => AsyncSetIamPolicy.java} (78%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/{SetIamPolicySetIamPolicyRequest.java => SyncSetIamPolicy.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/{TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java => AsyncTestIamPermissions.java} (83%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/{TestIamPermissionsTestIamPermissionsRequest.java => SyncTestIamPermissions.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/{ValidateMessageCallableFutureCallValidateMessageRequest.java => AsyncValidateMessage.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/{ValidateMessageValidateMessageRequest.java => SyncValidateMessage.java} (87%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/{ValidateSchemaCallableFutureCallValidateSchemaRequest.java => AsyncValidateSchema.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/{ValidateSchemaValidateSchemaRequest.java => SyncValidateSchema.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/{ValidateSchemaProjectNameSchema.java => SyncValidateSchemaProjectnameSchema.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/{ValidateSchemaStringSchema.java => SyncValidateSchemaStringSchema.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/{CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java => SyncCreateSchema.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/{CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java => SyncCreateTopic.java} (79%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/{CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java => SyncCreateSchema.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/{CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java => SyncCreateSubscription.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/{AcknowledgeCallableFutureCallAcknowledgeRequest.java => AsyncAcknowledge.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/{AcknowledgeAcknowledgeRequest.java => SyncAcknowledge.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/{AcknowledgeStringListString.java => SyncAcknowledgeStringListstring.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/{AcknowledgeSubscriptionNameListString.java => SyncAcknowledgeSubscriptionnameListstring.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/{CreateSubscriptionAdminSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/{CreateSubscriptionAdminSettings2.java => SyncCreateSetEndpoint.java} (78%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/{CreateSnapshotCallableFutureCallCreateSnapshotRequest.java => AsyncCreateSnapshot.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/{CreateSnapshotCreateSnapshotRequest.java => SyncCreateSnapshot.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/{CreateSnapshotSnapshotNameString.java => SyncCreateSnapshotSnapshotnameString.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/{CreateSnapshotSnapshotNameSubscriptionName.java => SyncCreateSnapshotSnapshotnameSubscriptionname.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/{CreateSnapshotStringString.java => SyncCreateSnapshotStringString.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/{CreateSnapshotStringSubscriptionName.java => SyncCreateSnapshotStringSubscriptionname.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/{CreateSubscriptionCallableFutureCallSubscription.java => AsyncCreateSubscription.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/{CreateSubscriptionSubscription.java => SyncCreateSubscription.java} (92%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/{CreateSubscriptionStringStringPushConfigInt.java => SyncCreateSubscriptionStringStringPushconfigInt.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/{CreateSubscriptionStringTopicNamePushConfigInt.java => SyncCreateSubscriptionStringTopicnamePushconfigInt.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/{CreateSubscriptionSubscriptionNameStringPushConfigInt.java => SyncCreateSubscriptionSubscriptionnameStringPushconfigInt.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/{CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java => SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt.java} (87%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/{DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java => AsyncDeleteSnapshot.java} (83%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/{DeleteSnapshotDeleteSnapshotRequest.java => SyncDeleteSnapshot.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/{DeleteSnapshotSnapshotName.java => SyncDeleteSnapshotSnapshotname.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/{DeleteSnapshotString.java => SyncDeleteSnapshotString.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/{DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java => AsyncDeleteSubscription.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/{DeleteSubscriptionDeleteSubscriptionRequest.java => SyncDeleteSubscription.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/{DeleteSubscriptionString.java => SyncDeleteSubscriptionString.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/{DeleteSubscriptionSubscriptionName.java => SyncDeleteSubscriptionSubscriptionname.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/{GetIamPolicyCallableFutureCallGetIamPolicyRequest.java => AsyncGetIamPolicy.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/{GetIamPolicyGetIamPolicyRequest.java => SyncGetIamPolicy.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/{GetSnapshotCallableFutureCallGetSnapshotRequest.java => AsyncGetSnapshot.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/{GetSnapshotGetSnapshotRequest.java => SyncGetSnapshot.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/{GetSnapshotSnapshotName.java => SyncGetSnapshotSnapshotname.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/{GetSnapshotString.java => SyncGetSnapshotString.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/{GetSubscriptionCallableFutureCallGetSubscriptionRequest.java => AsyncGetSubscription.java} (83%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/{GetSubscriptionGetSubscriptionRequest.java => SyncGetSubscription.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/{GetSubscriptionString.java => SyncGetSubscriptionString.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/{GetSubscriptionSubscriptionName.java => SyncGetSubscriptionSubscriptionname.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/{ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java => AsyncListSnapshotsPagedCallable.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/{ListSnapshotsListSnapshotsRequestIterateAll.java => SyncListSnapshots.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/{ListSnapshotsCallableCallListSnapshotsRequest.java => SyncListSnapshotsPaged.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/{ListSnapshotsProjectNameIterateAll.java => SyncListSnapshotsProjectname.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/{ListSnapshotsStringIterateAll.java => SyncListSnapshotsString.java} (87%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/{ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java => AsyncListSubscriptionsPagedCallable.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/{ListSubscriptionsListSubscriptionsRequestIterateAll.java => SyncListSubscriptions.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/{ListSubscriptionsCallableCallListSubscriptionsRequest.java => SyncListSubscriptionsPaged.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/{ListSubscriptionsProjectNameIterateAll.java => SyncListSubscriptionsProjectname.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/{ListSubscriptionsStringIterateAll.java => SyncListSubscriptionsString.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/{ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java => AsyncModifyAckDeadline.java} (83%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/{ModifyAckDeadlineModifyAckDeadlineRequest.java => SyncModifyAckDeadline.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/{ModifyAckDeadlineStringListStringInt.java => SyncModifyAckDeadlineStringListstringInt.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/{ModifyAckDeadlineSubscriptionNameListStringInt.java => SyncModifyAckDeadlineSubscriptionnameListstringInt.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/{ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java => AsyncModifyPushConfig.java} (83%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/{ModifyPushConfigModifyPushConfigRequest.java => SyncModifyPushConfig.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/{ModifyPushConfigStringPushConfig.java => SyncModifyPushConfigStringPushconfig.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/{ModifyPushConfigSubscriptionNamePushConfig.java => SyncModifyPushConfigSubscriptionnamePushconfig.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/{PullCallableFutureCallPullRequest.java => AsyncPull.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/{PullPullRequest.java => SyncPull.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/{PullStringBooleanInt.java => SyncPullStringBooleanInt.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/{PullStringInt.java => SyncPullStringInt.java} (92%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/{PullSubscriptionNameBooleanInt.java => SyncPullSubscriptionnameBooleanInt.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/{PullSubscriptionNameInt.java => SyncPullSubscriptionnameInt.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/{SeekCallableFutureCallSeekRequest.java => AsyncSeek.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/{SeekSeekRequest.java => SyncSeek.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/{SetIamPolicyCallableFutureCallSetIamPolicyRequest.java => AsyncSetIamPolicy.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/{SetIamPolicySetIamPolicyRequest.java => SyncSetIamPolicy.java} (87%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/{StreamingPullCallableCallStreamingPullRequest.java => AsyncStreamingPullStreamBidi.java} (88%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/{TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java => AsyncTestIamPermissions.java} (83%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/{TestIamPermissionsTestIamPermissionsRequest.java => SyncTestIamPermissions.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/{UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java => AsyncUpdateSnapshot.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/{UpdateSnapshotUpdateSnapshotRequest.java => SyncUpdateSnapshot.java} (87%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/{UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java => AsyncUpdateSubscription.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/{UpdateSubscriptionUpdateSubscriptionRequest.java => SyncUpdateSubscription.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/{CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java => SyncCreateSubscription.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/{CreateTopicAdminSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/{CreateTopicAdminSettings2.java => SyncCreateSetEndpoint.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/{CreateTopicCallableFutureCallTopic.java => AsyncCreateTopic.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/{CreateTopicTopic.java => SyncCreateTopic.java} (87%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/{CreateTopicString.java => SyncCreateTopicString.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/{CreateTopicTopicName.java => SyncCreateTopicTopicname.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/{DeleteTopicCallableFutureCallDeleteTopicRequest.java => AsyncDeleteTopic.java} (78%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/{DeleteTopicDeleteTopicRequest.java => SyncDeleteTopic.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/{DeleteTopicString.java => SyncDeleteTopicString.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/{DeleteTopicTopicName.java => SyncDeleteTopicTopicname.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/{DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java => AsyncDetachSubscription.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/{DetachSubscriptionDetachSubscriptionRequest.java => SyncDetachSubscription.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/{GetIamPolicyCallableFutureCallGetIamPolicyRequest.java => AsyncGetIamPolicy.java} (79%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/{GetIamPolicyGetIamPolicyRequest.java => SyncGetIamPolicy.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/{GetTopicCallableFutureCallGetTopicRequest.java => AsyncGetTopic.java} (79%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/{GetTopicGetTopicRequest.java => SyncGetTopic.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/{GetTopicString.java => SyncGetTopicString.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/{GetTopicTopicName.java => SyncGetTopicTopicname.java} (91%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/{ListTopicsPagedCallableFutureCallListTopicsRequest.java => AsyncListTopicsPagedCallable.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/{ListTopicsListTopicsRequestIterateAll.java => SyncListTopics.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/{ListTopicsCallableCallListTopicsRequest.java => SyncListTopicsPaged.java} (83%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/{ListTopicsProjectNameIterateAll.java => SyncListTopicsProjectname.java} (87%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/{ListTopicsStringIterateAll.java => SyncListTopicsString.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/{ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java => AsyncListTopicSnapshotsPagedCallable.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/{ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java => SyncListTopicSnapshots.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/{ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java => SyncListTopicSnapshotsPaged.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/{ListTopicSnapshotsStringIterateAll.java => SyncListTopicSnapshotsString.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/{ListTopicSnapshotsTopicNameIterateAll.java => SyncListTopicSnapshotsTopicname.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/{ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java => AsyncListTopicSubscriptionsPagedCallable.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/{ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java => SyncListTopicSubscriptions.java} (82%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/{ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java => SyncListTopicSubscriptionsPaged.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/{ListTopicSubscriptionsStringIterateAll.java => SyncListTopicSubscriptionsString.java} (85%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/{ListTopicSubscriptionsTopicNameIterateAll.java => SyncListTopicSubscriptionsTopicname.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/{PublishCallableFutureCallPublishRequest.java => AsyncPublish.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/{PublishPublishRequest.java => SyncPublish.java} (84%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/{PublishStringListPubsubMessage.java => SyncPublishStringListpubsubmessage.java} (90%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/{PublishTopicNameListPubsubMessage.java => SyncPublishTopicnameListpubsubmessage.java} (89%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/{SetIamPolicyCallableFutureCallSetIamPolicyRequest.java => AsyncSetIamPolicy.java} (78%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/{SetIamPolicySetIamPolicyRequest.java => SyncSetIamPolicy.java} (80%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/{TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java => AsyncTestIamPermissions.java} (83%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/{TestIamPermissionsTestIamPermissionsRequest.java => SyncTestIamPermissions.java} (86%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/{UpdateTopicCallableFutureCallUpdateTopicRequest.java => AsyncUpdateTopic.java} (78%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/{UpdateTopicUpdateTopicRequest.java => SyncUpdateTopic.java} (81%)
 rename test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/{CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java => SyncCreateTopic.java} (76%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/{CreateCloudRedisSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/{CreateCloudRedisSettings2.java => SyncCreateSetEndpoint.java} (80%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/{CreateInstanceCallableFutureCallCreateInstanceRequest.java => AsyncCreateInstance.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/{CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java => AsyncCreateInstanceOperationCallable.java} (83%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/{CreateInstanceAsyncCreateInstanceRequestGet.java => SyncCreateInstance.java} (86%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/{CreateInstanceAsyncLocationNameStringInstanceGet.java => SyncCreateInstanceLocationnameStringInstance.java} (83%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/{CreateInstanceAsyncStringStringInstanceGet.java => SyncCreateInstanceStringStringInstance.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/{DeleteInstanceCallableFutureCallDeleteInstanceRequest.java => AsyncDeleteInstance.java} (83%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/{DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java => AsyncDeleteInstanceOperationCallable.java} (82%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/{DeleteInstanceAsyncDeleteInstanceRequestGet.java => SyncDeleteInstance.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/{DeleteInstanceAsyncInstanceNameGet.java => SyncDeleteInstanceInstancename.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/{DeleteInstanceAsyncStringGet.java => SyncDeleteInstanceString.java} (87%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/{ExportInstanceCallableFutureCallExportInstanceRequest.java => AsyncExportInstance.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/{ExportInstanceOperationCallableFutureCallExportInstanceRequest.java => AsyncExportInstanceOperationCallable.java} (82%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/{ExportInstanceAsyncExportInstanceRequestGet.java => SyncExportInstance.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/{ExportInstanceAsyncStringOutputConfigGet.java => SyncExportInstanceStringOutputconfig.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/{FailoverInstanceCallableFutureCallFailoverInstanceRequest.java => AsyncFailoverInstance.java} (83%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/{FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java => AsyncFailoverInstanceOperationCallable.java} (81%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/{FailoverInstanceAsyncFailoverInstanceRequestGet.java => SyncFailoverInstance.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/{FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java => SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java} (79%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/{FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java => SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java} (80%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/{GetInstanceCallableFutureCallGetInstanceRequest.java => AsyncGetInstance.java} (78%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/{GetInstanceGetInstanceRequest.java => SyncGetInstance.java} (81%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/{GetInstanceInstanceName.java => SyncGetInstanceInstancename.java} (90%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/{GetInstanceString.java => SyncGetInstanceString.java} (91%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/{GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java => AsyncGetInstanceAuthString.java} (81%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/{GetInstanceAuthStringGetInstanceAuthStringRequest.java => SyncGetInstanceAuthString.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/{GetInstanceAuthStringInstanceName.java => SyncGetInstanceAuthStringInstancename.java} (89%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/{GetInstanceAuthStringString.java => SyncGetInstanceAuthStringString.java} (90%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/{ImportInstanceCallableFutureCallImportInstanceRequest.java => AsyncImportInstance.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/{ImportInstanceOperationCallableFutureCallImportInstanceRequest.java => AsyncImportInstanceOperationCallable.java} (82%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/{ImportInstanceAsyncImportInstanceRequestGet.java => SyncImportInstance.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/{ImportInstanceAsyncStringInputConfigGet.java => SyncImportInstanceStringInputconfig.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/{ListInstancesPagedCallableFutureCallListInstancesRequest.java => AsyncListInstancesPagedCallable.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/{ListInstancesListInstancesRequestIterateAll.java => SyncListInstances.java} (82%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/{ListInstancesLocationNameIterateAll.java => SyncListInstancesLocationname.java} (86%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/{ListInstancesCallableCallListInstancesRequest.java => SyncListInstancesPaged.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/{ListInstancesStringIterateAll.java => SyncListInstancesString.java} (87%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/{RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java => AsyncRescheduleMaintenance.java} (82%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/{RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java => AsyncRescheduleMaintenanceOperationCallable.java} (81%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/{RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java => SyncRescheduleMaintenance.java} (83%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/{RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java => SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java} (79%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/{RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java => SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java} (79%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/{UpdateInstanceCallableFutureCallUpdateInstanceRequest.java => AsyncUpdateInstance.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/{UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java => AsyncUpdateInstanceOperationCallable.java} (82%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/{UpdateInstanceAsyncUpdateInstanceRequestGet.java => SyncUpdateInstance.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/{UpdateInstanceAsyncFieldMaskInstanceGet.java => SyncUpdateInstanceFieldmaskInstance.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/{UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java => AsyncUpgradeInstance.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/{UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java => AsyncUpgradeInstanceOperationCallable.java} (82%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/{UpgradeInstanceAsyncUpgradeInstanceRequestGet.java => SyncUpgradeInstance.java} (85%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/{UpgradeInstanceAsyncInstanceNameStringGet.java => SyncUpgradeInstanceInstancenameString.java} (84%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/{UpgradeInstanceAsyncStringStringGet.java => SyncUpgradeInstanceStringString.java} (86%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/{GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java => SyncGetInstance.java} (82%)
 rename test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/{GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java => SyncGetInstance.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/{ComposeObjectCallableFutureCallComposeObjectRequest.java => AsyncComposeObject.java} (83%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/{ComposeObjectComposeObjectRequest.java => SyncComposeObject.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/{CreateStorageSettings1.java => SyncCreateSetCredentialsProvider.java} (80%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/{CreateStorageSettings2.java => SyncCreateSetEndpoint.java} (80%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/{CreateBucketCallableFutureCallCreateBucketRequest.java => AsyncCreateBucket.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/{CreateBucketCreateBucketRequest.java => SyncCreateBucket.java} (83%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/{CreateBucketProjectNameBucketString.java => SyncCreateBucketProjectnameBucketString.java} (88%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/{CreateBucketStringBucketString.java => SyncCreateBucketStringBucketString.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/{CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java => AsyncCreateHmacKey.java} (80%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/{CreateHmacKeyCreateHmacKeyRequest.java => SyncCreateHmacKey.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/{CreateHmacKeyProjectNameString.java => SyncCreateHmacKeyProjectnameString.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/{CreateHmacKeyStringString.java => SyncCreateHmacKeyStringString.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/{CreateNotificationCallableFutureCallCreateNotificationRequest.java => AsyncCreateNotification.java} (79%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/{CreateNotificationCreateNotificationRequest.java => SyncCreateNotification.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/{CreateNotificationProjectNameNotification.java => SyncCreateNotificationProjectnameNotification.java} (87%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/{CreateNotificationStringNotification.java => SyncCreateNotificationStringNotification.java} (88%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/{DeleteBucketCallableFutureCallDeleteBucketRequest.java => AsyncDeleteBucket.java} (80%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/{DeleteBucketDeleteBucketRequest.java => SyncDeleteBucket.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/{DeleteBucketBucketName.java => SyncDeleteBucketBucketname.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/{DeleteBucketString.java => SyncDeleteBucketString.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/{DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java => AsyncDeleteHmacKey.java} (79%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/{DeleteHmacKeyDeleteHmacKeyRequest.java => SyncDeleteHmacKey.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/{DeleteHmacKeyStringProjectName.java => SyncDeleteHmacKeyStringProjectname.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/{DeleteHmacKeyStringString.java => SyncDeleteHmacKeyStringString.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/{DeleteNotificationCallableFutureCallDeleteNotificationRequest.java => AsyncDeleteNotification.java} (78%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/{DeleteNotificationDeleteNotificationRequest.java => SyncDeleteNotification.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/{DeleteNotificationNotificationName.java => SyncDeleteNotificationNotificationname.java} (88%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/{DeleteNotificationString.java => SyncDeleteNotificationString.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/{DeleteObjectCallableFutureCallDeleteObjectRequest.java => AsyncDeleteObject.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/{DeleteObjectDeleteObjectRequest.java => SyncDeleteObject.java} (85%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/{DeleteObjectStringString.java => SyncDeleteObjectStringString.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/{DeleteObjectStringStringLong.java => SyncDeleteObjectStringStringLong.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/{GetBucketCallableFutureCallGetBucketRequest.java => AsyncGetBucket.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/{GetBucketGetBucketRequest.java => SyncGetBucket.java} (84%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/{GetBucketBucketName.java => SyncGetBucketBucketname.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/{GetBucketString.java => SyncGetBucketString.java} (91%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/{GetHmacKeyCallableFutureCallGetHmacKeyRequest.java => AsyncGetHmacKey.java} (80%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/{GetHmacKeyGetHmacKeyRequest.java => SyncGetHmacKey.java} (83%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/{GetHmacKeyStringProjectName.java => SyncGetHmacKeyStringProjectname.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/{GetHmacKeyStringString.java => SyncGetHmacKeyStringString.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/{GetIamPolicyCallableFutureCallGetIamPolicyRequest.java => AsyncGetIamPolicy.java} (79%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/{GetIamPolicyGetIamPolicyRequest.java => SyncGetIamPolicy.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/{GetIamPolicyResourceName.java => SyncGetIamPolicyResourcename.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/{GetIamPolicyString.java => SyncGetIamPolicyString.java} (91%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/{GetNotificationCallableFutureCallGetNotificationRequest.java => AsyncGetNotification.java} (77%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/{GetNotificationGetNotificationRequest.java => SyncGetNotification.java} (79%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/{GetNotificationBucketName.java => SyncGetNotificationBucketname.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/{GetNotificationString.java => SyncGetNotificationString.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/{GetObjectCallableFutureCallGetObjectRequest.java => AsyncGetObject.java} (84%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/{GetObjectGetObjectRequest.java => SyncGetObject.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/{GetObjectStringString.java => SyncGetObjectStringString.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/{GetObjectStringStringLong.java => SyncGetObjectStringStringLong.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/{GetServiceAccountCallableFutureCallGetServiceAccountRequest.java => AsyncGetServiceAccount.java} (77%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/{GetServiceAccountGetServiceAccountRequest.java => SyncGetServiceAccount.java} (79%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/{GetServiceAccountProjectName.java => SyncGetServiceAccountProjectname.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/{GetServiceAccountString.java => SyncGetServiceAccountString.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/{ListBucketsPagedCallableFutureCallListBucketsRequest.java => AsyncListBucketsPagedCallable.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/{ListBucketsListBucketsRequestIterateAll.java => SyncListBuckets.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/{ListBucketsCallableCallListBucketsRequest.java => SyncListBucketsPaged.java} (85%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/{ListBucketsProjectNameIterateAll.java => SyncListBucketsProjectname.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/{ListBucketsStringIterateAll.java => SyncListBucketsString.java} (80%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/{ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java => AsyncListHmacKeysPagedCallable.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/{ListHmacKeysListHmacKeysRequestIterateAll.java => SyncListHmacKeys.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/{ListHmacKeysCallableCallListHmacKeysRequest.java => SyncListHmacKeysPaged.java} (84%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/{ListHmacKeysProjectNameIterateAll.java => SyncListHmacKeysProjectname.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/{ListHmacKeysStringIterateAll.java => SyncListHmacKeysString.java} (84%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/{ListNotificationsPagedCallableFutureCallListNotificationsRequest.java => AsyncListNotificationsPagedCallable.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/{ListNotificationsListNotificationsRequestIterateAll.java => SyncListNotifications.java} (78%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/{ListNotificationsCallableCallListNotificationsRequest.java => SyncListNotificationsPaged.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/{ListNotificationsProjectNameIterateAll.java => SyncListNotificationsProjectname.java} (85%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/{ListNotificationsStringIterateAll.java => SyncListNotificationsString.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/{ListObjectsPagedCallableFutureCallListObjectsRequest.java => AsyncListObjectsPagedCallable.java} (88%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/{ListObjectsListObjectsRequestIterateAll.java => SyncListObjects.java} (84%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/{ListObjectsCallableCallListObjectsRequest.java => SyncListObjectsPaged.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/{ListObjectsProjectNameIterateAll.java => SyncListObjectsProjectname.java} (86%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/{ListObjectsStringIterateAll.java => SyncListObjectsString.java} (80%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/{LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java => AsyncLockBucketRetentionPolicy.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/{LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java => SyncLockBucketRetentionPolicy.java} (83%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/{LockBucketRetentionPolicyBucketName.java => SyncLockBucketRetentionPolicyBucketname.java} (88%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/{LockBucketRetentionPolicyString.java => SyncLockBucketRetentionPolicyString.java} (88%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/{QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java => AsyncQueryWriteStatus.java} (79%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/{QueryWriteStatusQueryWriteStatusRequest.java => SyncQueryWriteStatus.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/{QueryWriteStatusString.java => SyncQueryWriteStatusString.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/{ReadObjectCallableCallReadObjectRequest.java => AsyncReadObjectStreamServer.java} (85%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/{RewriteObjectCallableFutureCallRewriteObjectRequest.java => AsyncRewriteObject.java} (88%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/{RewriteObjectRewriteObjectRequest.java => SyncRewriteObject.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/{SetIamPolicyCallableFutureCallSetIamPolicyRequest.java => AsyncSetIamPolicy.java} (79%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/{SetIamPolicySetIamPolicyRequest.java => SyncSetIamPolicy.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/{SetIamPolicyResourceNamePolicy.java => SyncSetIamPolicyResourcenamePolicy.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/{SetIamPolicyStringPolicy.java => SyncSetIamPolicyStringPolicy.java} (90%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/{StartResumableWriteCallableFutureCallStartResumableWriteRequest.java => AsyncStartResumableWrite.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/{StartResumableWriteStartResumableWriteRequest.java => SyncStartResumableWrite.java} (87%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/{TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java => AsyncTestIamPermissions.java} (81%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/{TestIamPermissionsTestIamPermissionsRequest.java => SyncTestIamPermissions.java} (83%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/{TestIamPermissionsResourceNameListString.java => SyncTestIamPermissionsResourcenameListstring.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/{TestIamPermissionsStringListString.java => SyncTestIamPermissionsStringListstring.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/{UpdateBucketCallableFutureCallUpdateBucketRequest.java => AsyncUpdateBucket.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/{UpdateBucketUpdateBucketRequest.java => SyncUpdateBucket.java} (85%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/{UpdateBucketBucketFieldMask.java => SyncUpdateBucketBucketFieldmask.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/{UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java => AsyncUpdateHmacKey.java} (79%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/{UpdateHmacKeyUpdateHmacKeyRequest.java => SyncUpdateHmacKey.java} (82%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/{UpdateHmacKeyHmacKeyMetadataFieldMask.java => SyncUpdateHmacKeyHmackeymetadataFieldmask.java} (88%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/{UpdateObjectCallableFutureCallUpdateObjectRequest.java => AsyncUpdateObject.java} (83%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/{UpdateObjectUpdateObjectRequest.java => SyncUpdateObject.java} (85%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/{UpdateObjectObjectFieldMask.java => SyncUpdateObjectObjectFieldmask.java} (89%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/{WriteObjectClientStreamingCallWriteObjectRequest.java => AsyncWriteObjectStreamClient.java} (85%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/{DeleteBucketSettingsSetRetrySettingsStorageSettings.java => SyncDeleteBucket.java} (76%)
 rename test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/{DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java => SyncDeleteBucket.java} (79%)

diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
similarity index 81%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
index d1a408b562..7fb350edfb 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest_sync]
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AnalyzeIamPolicyRequest;
 import com.google.cloud.asset.v1.AnalyzeIamPolicyResponse;
@@ -24,13 +24,13 @@
 import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
 import com.google.protobuf.Duration;
 
-public class AnalyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest {
+public class AsyncAnalyzeIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    analyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest();
+    asyncAnalyzeIamPolicy();
   }
 
-  public static void analyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest() throws Exception {
+  public static void asyncAnalyzeIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -46,4 +46,4 @@ public static void analyzeIamPolicyCallableFutureCallAnalyzeIamPolicyRequest() t
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_callablefuturecallanalyzeiampolicyrequest_sync]
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java
similarity index 84%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java
index 3e35bf09be..a157a49163 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AnalyzeIamPolicyAnalyzeIamPolicyRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest_sync]
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicy_sync]
 import com.google.cloud.asset.v1.AnalyzeIamPolicyRequest;
 import com.google.cloud.asset.v1.AnalyzeIamPolicyResponse;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
 import com.google.protobuf.Duration;
 
-public class AnalyzeIamPolicyAnalyzeIamPolicyRequest {
+public class SyncAnalyzeIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    analyzeIamPolicyAnalyzeIamPolicyRequest();
+    syncAnalyzeIamPolicy();
   }
 
-  public static void analyzeIamPolicyAnalyzeIamPolicyRequest() throws Exception {
+  public static void syncAnalyzeIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void analyzeIamPolicyAnalyzeIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_analyzeiampolicyrequest_sync]
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicy_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
similarity index 80%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
index 8faabcb889..d3b7143ebc 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest_sync]
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest;
 import com.google.cloud.asset.v1.AssetServiceClient;
@@ -24,15 +24,13 @@
 import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
 import com.google.longrunning.Operation;
 
-public class AnalyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest {
+public class AsyncAnalyzeIamPolicyLongrunning {
 
   public static void main(String[] args) throws Exception {
-    analyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest();
+    asyncAnalyzeIamPolicyLongrunning();
   }
 
-  public static void
-      analyzeIamPolicyLongrunningCallableFutureCallAnalyzeIamPolicyLongrunningRequest()
-          throws Exception {
+  public static void asyncAnalyzeIamPolicyLongrunning() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -48,4 +46,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_callablefuturecallanalyzeiampolicylongrunningrequest_sync]
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningOperationCallable.java
similarity index 80%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningOperationCallable.java
index fc1239944a..9d90c7c6b3 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest_sync]
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata;
 import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest;
@@ -25,16 +25,13 @@
 import com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig;
 import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
 
-public
-class AnalyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest {
+public class AsyncAnalyzeIamPolicyLongrunningOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    analyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest();
+    asyncAnalyzeIamPolicyLongrunningOperationCallable();
   }
 
-  public static void
-      analyzeIamPolicyLongrunningOperationCallableFutureCallAnalyzeIamPolicyLongrunningRequest()
-          throws Exception {
+  public static void asyncAnalyzeIamPolicyLongrunningOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -51,4 +48,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallablefuturecallanalyzeiampolicylongrunningrequest_sync]
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_operationcallable_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
similarity index 81%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
index 5a2cef2a9a..7b0aa38840 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget_sync]
+// [START asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_sync]
 import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest;
 import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig;
 import com.google.cloud.asset.v1.IamPolicyAnalysisQuery;
 
-public class AnalyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet {
+public class SyncAnalyzeIamPolicyLongrunning {
 
   public static void main(String[] args) throws Exception {
-    analyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet();
+    syncAnalyzeIamPolicyLongrunning();
   }
 
-  public static void analyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRequestGet()
-      throws Exception {
+  public static void syncAnalyzeIamPolicyLongrunning() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -44,4 +43,4 @@ public static void analyzeIamPolicyLongrunningAsyncAnalyzeIamPolicyLongrunningRe
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_asyncanalyzeiampolicylongrunningrequestget_sync]
+// [END asset_v1_generated_assetserviceclient_analyzeiampolicylongrunning_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java
similarity index 79%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java
index 178787c5e9..5ff6e4af46 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveCallableFutureCallAnalyzeMoveRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest_sync]
+// [START asset_v1_generated_assetserviceclient_analyzemove_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AnalyzeMoveRequest;
 import com.google.cloud.asset.v1.AnalyzeMoveResponse;
 import com.google.cloud.asset.v1.AssetServiceClient;
 
-public class AnalyzeMoveCallableFutureCallAnalyzeMoveRequest {
+public class AsyncAnalyzeMove {
 
   public static void main(String[] args) throws Exception {
-    analyzeMoveCallableFutureCallAnalyzeMoveRequest();
+    asyncAnalyzeMove();
   }
 
-  public static void analyzeMoveCallableFutureCallAnalyzeMoveRequest() throws Exception {
+  public static void asyncAnalyzeMove() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void analyzeMoveCallableFutureCallAnalyzeMoveRequest() throws Exce
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_analyzemove_callablefuturecallanalyzemoverequest_sync]
+// [END asset_v1_generated_assetserviceclient_analyzemove_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java
similarity index 81%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java
index e9f378f14d..ee4c6de6a3 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AnalyzeMoveAnalyzeMoveRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest_sync]
+// [START asset_v1_generated_assetserviceclient_analyzemove_sync]
 import com.google.cloud.asset.v1.AnalyzeMoveRequest;
 import com.google.cloud.asset.v1.AnalyzeMoveResponse;
 import com.google.cloud.asset.v1.AssetServiceClient;
 
-public class AnalyzeMoveAnalyzeMoveRequest {
+public class SyncAnalyzeMove {
 
   public static void main(String[] args) throws Exception {
-    analyzeMoveAnalyzeMoveRequest();
+    syncAnalyzeMove();
   }
 
-  public static void analyzeMoveAnalyzeMoveRequest() throws Exception {
+  public static void syncAnalyzeMove() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -40,4 +40,4 @@ public static void analyzeMoveAnalyzeMoveRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_analyzemove_analyzemoverequest_sync]
+// [END asset_v1_generated_assetserviceclient_analyzemove_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
similarity index 84%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
index 802f1df0dc..2686566215 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest_sync]
+// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest;
@@ -26,14 +26,13 @@
 import com.google.cloud.asset.v1.TimeWindow;
 import java.util.ArrayList;
 
-public class BatchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest {
+public class AsyncBatchGetAssetsHistory {
 
   public static void main(String[] args) throws Exception {
-    batchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest();
+    asyncBatchGetAssetsHistory();
   }
 
-  public static void batchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryRequest()
-      throws Exception {
+  public static void asyncBatchGetAssetsHistory() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -52,4 +51,4 @@ public static void batchGetAssetsHistoryCallableFutureCallBatchGetAssetsHistoryR
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_callablefuturecallbatchgetassetshistoryrequest_sync]
+// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java
similarity index 87%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java
index d5146bd151..95939b8ef9 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/BatchGetAssetsHistoryBatchGetAssetsHistoryRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest_sync]
+// [START asset_v1_generated_assetserviceclient_batchgetassetshistory_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest;
 import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse;
@@ -25,13 +25,13 @@
 import com.google.cloud.asset.v1.TimeWindow;
 import java.util.ArrayList;
 
-public class BatchGetAssetsHistoryBatchGetAssetsHistoryRequest {
+public class SyncBatchGetAssetsHistory {
 
   public static void main(String[] args) throws Exception {
-    batchGetAssetsHistoryBatchGetAssetsHistoryRequest();
+    syncBatchGetAssetsHistory();
   }
 
-  public static void batchGetAssetsHistoryBatchGetAssetsHistoryRequest() throws Exception {
+  public static void syncBatchGetAssetsHistory() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -47,4 +47,4 @@ public static void batchGetAssetsHistoryBatchGetAssetsHistoryRequest() throws Ex
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_batchgetassetshistoryrequest_sync]
+// [END asset_v1_generated_assetserviceclient_batchgetassetshistory_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
index 0e4e2edae5..70b2503fb4 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings1.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_create_assetservicesettings1_sync]
+// [START asset_v1_generated_assetserviceclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.AssetServiceSettings;
 import com.google.cloud.asset.v1.myCredentials;
 
-public class CreateAssetServiceSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createAssetServiceSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createAssetServiceSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     AssetServiceSettings assetServiceSettings =
@@ -38,4 +38,4 @@ public static void createAssetServiceSettings1() throws Exception {
     AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings);
   }
 }
-// [END asset_v1_generated_assetserviceclient_create_assetservicesettings1_sync]
+// [END asset_v1_generated_assetserviceclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java
similarity index 79%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java
index e129dc7bab..73e93fda06 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/CreateAssetServiceSettings2.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_create_assetservicesettings2_sync]
+// [START asset_v1_generated_assetserviceclient_create_setendpoint_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.AssetServiceSettings;
 import com.google.cloud.asset.v1.myEndpoint;
 
-public class CreateAssetServiceSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createAssetServiceSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createAssetServiceSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     AssetServiceSettings assetServiceSettings =
@@ -35,4 +35,4 @@ public static void createAssetServiceSettings2() throws Exception {
     AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings);
   }
 }
-// [END asset_v1_generated_assetserviceclient_create_assetservicesettings2_sync]
+// [END asset_v1_generated_assetserviceclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java
similarity index 79%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java
index a19b63ecf8..d9c447036d 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCallableFutureCallCreateFeedRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest_sync]
+// [START asset_v1_generated_assetserviceclient_createfeed_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.CreateFeedRequest;
 import com.google.cloud.asset.v1.Feed;
 
-public class CreateFeedCallableFutureCallCreateFeedRequest {
+public class AsyncCreateFeed {
 
   public static void main(String[] args) throws Exception {
-    createFeedCallableFutureCallCreateFeedRequest();
+    asyncCreateFeed();
   }
 
-  public static void createFeedCallableFutureCallCreateFeedRequest() throws Exception {
+  public static void asyncCreateFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void createFeedCallableFutureCallCreateFeedRequest() throws Except
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_createfeed_callablefuturecallcreatefeedrequest_sync]
+// [END asset_v1_generated_assetserviceclient_createfeed_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java
similarity index 81%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java
index 2273e9a53e..1325bacda8 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedCreateFeedRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_createfeed_createfeedrequest_sync]
+// [START asset_v1_generated_assetserviceclient_createfeed_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.CreateFeedRequest;
 import com.google.cloud.asset.v1.Feed;
 
-public class CreateFeedCreateFeedRequest {
+public class SyncCreateFeed {
 
   public static void main(String[] args) throws Exception {
-    createFeedCreateFeedRequest();
+    syncCreateFeed();
   }
 
-  public static void createFeedCreateFeedRequest() throws Exception {
+  public static void syncCreateFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void createFeedCreateFeedRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_createfeed_createfeedrequest_sync]
+// [END asset_v1_generated_assetserviceclient_createfeed_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java
similarity index 91%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java
index 750a50274a..e02c8fa458 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/CreateFeedString.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java
@@ -20,13 +20,13 @@
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.Feed;
 
-public class CreateFeedString {
+public class SyncCreateFeedString {
 
   public static void main(String[] args) throws Exception {
-    createFeedString();
+    syncCreateFeedString();
   }
 
-  public static void createFeedString() throws Exception {
+  public static void syncCreateFeedString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java
similarity index 78%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java
index 073a210227..e279683025 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedCallableFutureCallDeleteFeedRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest_sync]
+// [START asset_v1_generated_assetserviceclient_deletefeed_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.DeleteFeedRequest;
 import com.google.cloud.asset.v1.FeedName;
 import com.google.protobuf.Empty;
 
-public class DeleteFeedCallableFutureCallDeleteFeedRequest {
+public class AsyncDeleteFeed {
 
   public static void main(String[] args) throws Exception {
-    deleteFeedCallableFutureCallDeleteFeedRequest();
+    asyncDeleteFeed();
   }
 
-  public static void deleteFeedCallableFutureCallDeleteFeedRequest() throws Exception {
+  public static void asyncDeleteFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteFeedCallableFutureCallDeleteFeedRequest() throws Except
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_deletefeed_callablefuturecalldeletefeedrequest_sync]
+// [END asset_v1_generated_assetserviceclient_deletefeed_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java
similarity index 81%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java
index 3502f7d312..a9ec6bfe46 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedDeleteFeedRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest_sync]
+// [START asset_v1_generated_assetserviceclient_deletefeed_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.DeleteFeedRequest;
 import com.google.cloud.asset.v1.FeedName;
 import com.google.protobuf.Empty;
 
-public class DeleteFeedDeleteFeedRequest {
+public class SyncDeleteFeed {
 
   public static void main(String[] args) throws Exception {
-    deleteFeedDeleteFeedRequest();
+    syncDeleteFeed();
   }
 
-  public static void deleteFeedDeleteFeedRequest() throws Exception {
+  public static void syncDeleteFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteFeedDeleteFeedRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_deletefeed_deletefeedrequest_sync]
+// [END asset_v1_generated_assetserviceclient_deletefeed_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java
similarity index 90%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java
index 9841da1ae3..11d453448e 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedFeedName.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.asset.v1.FeedName;
 import com.google.protobuf.Empty;
 
-public class DeleteFeedFeedName {
+public class SyncDeleteFeedFeedname {
 
   public static void main(String[] args) throws Exception {
-    deleteFeedFeedName();
+    syncDeleteFeedFeedname();
   }
 
-  public static void deleteFeedFeedName() throws Exception {
+  public static void syncDeleteFeedFeedname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java
similarity index 91%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java
index d84e82586c..2477cd5548 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/DeleteFeedString.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.asset.v1.FeedName;
 import com.google.protobuf.Empty;
 
-public class DeleteFeedString {
+public class SyncDeleteFeedString {
 
   public static void main(String[] args) throws Exception {
-    deleteFeedString();
+    syncDeleteFeedString();
   }
 
-  public static void deleteFeedString() throws Exception {
+  public static void syncDeleteFeedString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java
similarity index 82%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java
index 8df0de4440..1e360ad76e 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsCallableFutureCallExportAssetsRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest_sync]
+// [START asset_v1_generated_assetserviceclient_exportassets_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ContentType;
@@ -27,13 +27,13 @@
 import com.google.protobuf.Timestamp;
 import java.util.ArrayList;
 
-public class ExportAssetsCallableFutureCallExportAssetsRequest {
+public class AsyncExportAssets {
 
   public static void main(String[] args) throws Exception {
-    exportAssetsCallableFutureCallExportAssetsRequest();
+    asyncExportAssets();
   }
 
-  public static void exportAssetsCallableFutureCallExportAssetsRequest() throws Exception {
+  public static void asyncExportAssets() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -52,4 +52,4 @@ public static void exportAssetsCallableFutureCallExportAssetsRequest() throws Ex
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_exportassets_callablefuturecallexportassetsrequest_sync]
+// [END asset_v1_generated_assetserviceclient_exportassets_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsOperationCallable.java
similarity index 86%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsOperationCallable.java
index c4382d86f8..9c9e33a729 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsOperationCallableFutureCallExportAssetsRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest_sync]
+// [START asset_v1_generated_assetserviceclient_exportassets_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ContentType;
@@ -27,13 +27,13 @@
 import com.google.protobuf.Timestamp;
 import java.util.ArrayList;
 
-public class ExportAssetsOperationCallableFutureCallExportAssetsRequest {
+public class AsyncExportAssetsOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    exportAssetsOperationCallableFutureCallExportAssetsRequest();
+    asyncExportAssetsOperationCallable();
   }
 
-  public static void exportAssetsOperationCallableFutureCallExportAssetsRequest() throws Exception {
+  public static void asyncExportAssetsOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -53,4 +53,4 @@ public static void exportAssetsOperationCallableFutureCallExportAssetsRequest()
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_exportassets_operationcallablefuturecallexportassetsrequest_sync]
+// [END asset_v1_generated_assetserviceclient_exportassets_operationcallable_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java
similarity index 83%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java
index 9ac99b4822..9e6a761656 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/ExportAssetsAsyncExportAssetsRequestGet.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget_sync]
+// [START asset_v1_generated_assetserviceclient_exportassets_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ContentType;
 import com.google.cloud.asset.v1.ExportAssetsRequest;
@@ -26,13 +26,13 @@
 import com.google.protobuf.Timestamp;
 import java.util.ArrayList;
 
-public class ExportAssetsAsyncExportAssetsRequestGet {
+public class SyncExportAssets {
 
   public static void main(String[] args) throws Exception {
-    exportAssetsAsyncExportAssetsRequestGet();
+    syncExportAssets();
   }
 
-  public static void exportAssetsAsyncExportAssetsRequestGet() throws Exception {
+  public static void syncExportAssets() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -49,4 +49,4 @@ public static void exportAssetsAsyncExportAssetsRequestGet() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_exportassets_asyncexportassetsrequestget_sync]
+// [END asset_v1_generated_assetserviceclient_exportassets_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java
similarity index 80%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java
index 4dcbbd696b..d4599664a9 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedCallableFutureCallGetFeedRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest_sync]
+// [START asset_v1_generated_assetserviceclient_getfeed_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.Feed;
 import com.google.cloud.asset.v1.FeedName;
 import com.google.cloud.asset.v1.GetFeedRequest;
 
-public class GetFeedCallableFutureCallGetFeedRequest {
+public class AsyncGetFeed {
 
   public static void main(String[] args) throws Exception {
-    getFeedCallableFutureCallGetFeedRequest();
+    asyncGetFeed();
   }
 
-  public static void getFeedCallableFutureCallGetFeedRequest() throws Exception {
+  public static void asyncGetFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -43,4 +43,4 @@ public static void getFeedCallableFutureCallGetFeedRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_getfeed_callablefuturecallgetfeedrequest_sync]
+// [END asset_v1_generated_assetserviceclient_getfeed_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java
similarity index 82%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java
index 21089e49b8..528af4aecb 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedGetFeedRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_getfeed_getfeedrequest_sync]
+// [START asset_v1_generated_assetserviceclient_getfeed_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.Feed;
 import com.google.cloud.asset.v1.FeedName;
 import com.google.cloud.asset.v1.GetFeedRequest;
 
-public class GetFeedGetFeedRequest {
+public class SyncGetFeed {
 
   public static void main(String[] args) throws Exception {
-    getFeedGetFeedRequest();
+    syncGetFeed();
   }
 
-  public static void getFeedGetFeedRequest() throws Exception {
+  public static void syncGetFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -40,4 +40,4 @@ public static void getFeedGetFeedRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_getfeed_getfeedrequest_sync]
+// [END asset_v1_generated_assetserviceclient_getfeed_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java
similarity index 91%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java
index 8d94b4915c..1a690bf442 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedFeedName.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.asset.v1.Feed;
 import com.google.cloud.asset.v1.FeedName;
 
-public class GetFeedFeedName {
+public class SyncGetFeedFeedname {
 
   public static void main(String[] args) throws Exception {
-    getFeedFeedName();
+    syncGetFeedFeedname();
   }
 
-  public static void getFeedFeedName() throws Exception {
+  public static void syncGetFeedFeedname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java
similarity index 92%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java
index 1c96b97c10..5a9974201f 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/GetFeedString.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.asset.v1.Feed;
 import com.google.cloud.asset.v1.FeedName;
 
-public class GetFeedString {
+public class SyncGetFeedString {
 
   public static void main(String[] args) throws Exception {
-    getFeedString();
+    syncGetFeedString();
   }
 
-  public static void getFeedString() throws Exception {
+  public static void syncGetFeedString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPagedCallable.java
similarity index 87%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPagedCallable.java
index 1b066c9519..8850b5215c 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsPagedCallableFutureCallListAssetsRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPagedCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest_sync]
+// [START asset_v1_generated_assetserviceclient_listassets_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.Asset;
 import com.google.cloud.asset.v1.AssetServiceClient;
@@ -26,13 +26,13 @@
 import com.google.protobuf.Timestamp;
 import java.util.ArrayList;
 
-public class ListAssetsPagedCallableFutureCallListAssetsRequest {
+public class AsyncListAssetsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listAssetsPagedCallableFutureCallListAssetsRequest();
+    asyncListAssetsPagedCallable();
   }
 
-  public static void listAssetsPagedCallableFutureCallListAssetsRequest() throws Exception {
+  public static void asyncListAssetsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -54,4 +54,4 @@ public static void listAssetsPagedCallableFutureCallListAssetsRequest() throws E
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_listassets_pagedcallablefuturecalllistassetsrequest_sync]
+// [END asset_v1_generated_assetserviceclient_listassets_pagedcallable_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java
similarity index 83%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java
index fe7cba8626..32b5dbbe32 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsListAssetsRequestIterateAll.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall_sync]
+// [START asset_v1_generated_assetserviceclient_listassets_sync]
 import com.google.cloud.asset.v1.Asset;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ContentType;
@@ -25,13 +25,13 @@
 import com.google.protobuf.Timestamp;
 import java.util.ArrayList;
 
-public class ListAssetsListAssetsRequestIterateAll {
+public class SyncListAssets {
 
   public static void main(String[] args) throws Exception {
-    listAssetsListAssetsRequestIterateAll();
+    syncListAssets();
   }
 
-  public static void listAssetsListAssetsRequestIterateAll() throws Exception {
+  public static void syncListAssets() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -51,4 +51,4 @@ public static void listAssetsListAssetsRequestIterateAll() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_listassets_listassetsrequestiterateall_sync]
+// [END asset_v1_generated_assetserviceclient_listassets_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsPaged.java
similarity index 86%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsPaged.java
index 762d16284b..bd15084780 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsCallableCallListAssetsRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest_sync]
+// [START asset_v1_generated_assetserviceclient_listassets_paged_sync]
 import com.google.cloud.asset.v1.Asset;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ContentType;
@@ -27,13 +27,13 @@
 import com.google.protobuf.Timestamp;
 import java.util.ArrayList;
 
-public class ListAssetsCallableCallListAssetsRequest {
+public class SyncListAssetsPaged {
 
   public static void main(String[] args) throws Exception {
-    listAssetsCallableCallListAssetsRequest();
+    syncListAssetsPaged();
   }
 
-  public static void listAssetsCallableCallListAssetsRequest() throws Exception {
+  public static void syncListAssetsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -62,4 +62,4 @@ public static void listAssetsCallableCallListAssetsRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_listassets_callablecalllistassetsrequest_sync]
+// [END asset_v1_generated_assetserviceclient_listassets_paged_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java
similarity index 87%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java
index 6284b20e4a..49a04678a1 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsResourceNameIterateAll.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall_sync]
+// [START asset_v1_generated_assetserviceclient_listassets_resourcename_sync]
 import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.asset.v1.Asset;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.FeedName;
 
-public class ListAssetsResourceNameIterateAll {
+public class SyncListAssetsResourcename {
 
   public static void main(String[] args) throws Exception {
-    listAssetsResourceNameIterateAll();
+    syncListAssetsResourcename();
   }
 
-  public static void listAssetsResourceNameIterateAll() throws Exception {
+  public static void syncListAssetsResourcename() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -39,4 +39,4 @@ public static void listAssetsResourceNameIterateAll() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_listassets_resourcenameiterateall_sync]
+// [END asset_v1_generated_assetserviceclient_listassets_resourcename_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java
similarity index 84%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java
index 752305f480..b8ef3a25f7 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/ListAssetsStringIterateAll.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_listassets_stringiterateall_sync]
+// [START asset_v1_generated_assetserviceclient_listassets_string_sync]
 import com.google.cloud.asset.v1.Asset;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.FeedName;
 
-public class ListAssetsStringIterateAll {
+public class SyncListAssetsString {
 
   public static void main(String[] args) throws Exception {
-    listAssetsStringIterateAll();
+    syncListAssetsString();
   }
 
-  public static void listAssetsStringIterateAll() throws Exception {
+  public static void syncListAssetsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -38,4 +38,4 @@ public static void listAssetsStringIterateAll() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_listassets_stringiterateall_sync]
+// [END asset_v1_generated_assetserviceclient_listassets_string_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java
similarity index 78%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java
index 23a40e9657..572fd6c164 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsCallableFutureCallListFeedsRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest_sync]
+// [START asset_v1_generated_assetserviceclient_listfeeds_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ListFeedsRequest;
 import com.google.cloud.asset.v1.ListFeedsResponse;
 
-public class ListFeedsCallableFutureCallListFeedsRequest {
+public class AsyncListFeeds {
 
   public static void main(String[] args) throws Exception {
-    listFeedsCallableFutureCallListFeedsRequest();
+    asyncListFeeds();
   }
 
-  public static void listFeedsCallableFutureCallListFeedsRequest() throws Exception {
+  public static void asyncListFeeds() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void listFeedsCallableFutureCallListFeedsRequest() throws Exceptio
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_listfeeds_callablefuturecalllistfeedsrequest_sync]
+// [END asset_v1_generated_assetserviceclient_listfeeds_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java
similarity index 81%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java
index 2c6652e59a..a53be62fe1 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsListFeedsRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest_sync]
+// [START asset_v1_generated_assetserviceclient_listfeeds_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ListFeedsRequest;
 import com.google.cloud.asset.v1.ListFeedsResponse;
 
-public class ListFeedsListFeedsRequest {
+public class SyncListFeeds {
 
   public static void main(String[] args) throws Exception {
-    listFeedsListFeedsRequest();
+    syncListFeeds();
   }
 
-  public static void listFeedsListFeedsRequest() throws Exception {
+  public static void syncListFeeds() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -37,4 +37,4 @@ public static void listFeedsListFeedsRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_listfeeds_listfeedsrequest_sync]
+// [END asset_v1_generated_assetserviceclient_listfeeds_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java
similarity index 91%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java
index 10107107dd..a5f1a7afd0 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/ListFeedsString.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java
@@ -20,13 +20,13 @@
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ListFeedsResponse;
 
-public class ListFeedsString {
+public class SyncListFeedsString {
 
   public static void main(String[] args) throws Exception {
-    listFeedsString();
+    syncListFeedsString();
   }
 
-  public static void listFeedsString() throws Exception {
+  public static void syncListFeedsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPagedCallable.java
similarity index 83%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPagedCallable.java
index f8c88451b1..b74bc43279 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPagedCallable.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest_sync]
+// [START asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.IamPolicySearchResult;
 import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest;
 import java.util.ArrayList;
 
-public class SearchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest {
+public class AsyncSearchAllIamPoliciesPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    searchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest();
+    asyncSearchAllIamPoliciesPagedCallable();
   }
 
-  public static void searchAllIamPoliciesPagedCallableFutureCallSearchAllIamPoliciesRequest()
-      throws Exception {
+  public static void asyncSearchAllIamPoliciesPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -52,4 +51,4 @@ public static void searchAllIamPoliciesPagedCallableFutureCallSearchAllIamPolici
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallablefuturecallsearchalliampoliciesrequest_sync]
+// [END asset_v1_generated_assetserviceclient_searchalliampolicies_pagedcallable_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java
similarity index 84%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java
index 2bac86e8aa..e2435d6d3a 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall_sync]
+// [START asset_v1_generated_assetserviceclient_searchalliampolicies_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.IamPolicySearchResult;
 import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest;
 import java.util.ArrayList;
 
-public class SearchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll {
+public class SyncSearchAllIamPolicies {
 
   public static void main(String[] args) throws Exception {
-    searchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll();
+    syncSearchAllIamPolicies();
   }
 
-  public static void searchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll() throws Exception {
+  public static void syncSearchAllIamPolicies() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -48,4 +48,4 @@ public static void searchAllIamPoliciesSearchAllIamPoliciesRequestIterateAll() t
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_searchalliampolicies_searchalliampoliciesrequestiterateall_sync]
+// [END asset_v1_generated_assetserviceclient_searchalliampolicies_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesPaged.java
similarity index 86%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesPaged.java
index bf4d8648e4..634cf50c23 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest_sync]
+// [START asset_v1_generated_assetserviceclient_searchalliampolicies_paged_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.IamPolicySearchResult;
 import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest;
@@ -24,14 +24,13 @@
 import com.google.common.base.Strings;
 import java.util.ArrayList;
 
-public class SearchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest {
+public class SyncSearchAllIamPoliciesPaged {
 
   public static void main(String[] args) throws Exception {
-    searchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest();
+    syncSearchAllIamPoliciesPaged();
   }
 
-  public static void searchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest()
-      throws Exception {
+  public static void syncSearchAllIamPoliciesPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -60,4 +59,4 @@ public static void searchAllIamPoliciesCallableCallSearchAllIamPoliciesRequest()
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_searchalliampolicies_callablecallsearchalliampoliciesrequest_sync]
+// [END asset_v1_generated_assetserviceclient_searchalliampolicies_paged_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
similarity index 84%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
index 2b12386eb6..0cccfb6e15 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SearchAllIamPoliciesStringStringIterateAll.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall_sync]
+// [START asset_v1_generated_assetserviceclient_searchalliampolicies_stringstring_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.IamPolicySearchResult;
 
-public class SearchAllIamPoliciesStringStringIterateAll {
+public class SyncSearchAllIamPoliciesStringString {
 
   public static void main(String[] args) throws Exception {
-    searchAllIamPoliciesStringStringIterateAll();
+    syncSearchAllIamPoliciesStringString();
   }
 
-  public static void searchAllIamPoliciesStringStringIterateAll() throws Exception {
+  public static void syncSearchAllIamPoliciesStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -39,4 +39,4 @@ public static void searchAllIamPoliciesStringStringIterateAll() throws Exception
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_searchalliampolicies_stringstringiterateall_sync]
+// [END asset_v1_generated_assetserviceclient_searchalliampolicies_stringstring_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPagedCallable.java
similarity index 84%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPagedCallable.java
index 919199a800..be86b824d2 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPagedCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest_sync]
+// [START asset_v1_generated_assetserviceclient_searchallresources_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ResourceSearchResult;
@@ -24,14 +24,13 @@
 import com.google.protobuf.FieldMask;
 import java.util.ArrayList;
 
-public class SearchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest {
+public class AsyncSearchAllResourcesPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    searchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest();
+    asyncSearchAllResourcesPagedCallable();
   }
 
-  public static void searchAllResourcesPagedCallableFutureCallSearchAllResourcesRequest()
-      throws Exception {
+  public static void asyncSearchAllResourcesPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -54,4 +53,4 @@ public static void searchAllResourcesPagedCallableFutureCallSearchAllResourcesRe
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_searchallresources_pagedcallablefuturecallsearchallresourcesrequest_sync]
+// [END asset_v1_generated_assetserviceclient_searchallresources_pagedcallable_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java
similarity index 85%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java
index 01f7b6e99d..cff5d56c66 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesSearchAllResourcesRequestIterateAll.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall_sync]
+// [START asset_v1_generated_assetserviceclient_searchallresources_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ResourceSearchResult;
 import com.google.cloud.asset.v1.SearchAllResourcesRequest;
 import com.google.protobuf.FieldMask;
 import java.util.ArrayList;
 
-public class SearchAllResourcesSearchAllResourcesRequestIterateAll {
+public class SyncSearchAllResources {
 
   public static void main(String[] args) throws Exception {
-    searchAllResourcesSearchAllResourcesRequestIterateAll();
+    syncSearchAllResources();
   }
 
-  public static void searchAllResourcesSearchAllResourcesRequestIterateAll() throws Exception {
+  public static void syncSearchAllResources() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -50,4 +50,4 @@ public static void searchAllResourcesSearchAllResourcesRequestIterateAll() throw
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_searchallresources_searchallresourcesrequestiterateall_sync]
+// [END asset_v1_generated_assetserviceclient_searchallresources_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesPaged.java
similarity index 87%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesPaged.java
index 65531e219e..20bebf3d41 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesCallableCallSearchAllResourcesRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest_sync]
+// [START asset_v1_generated_assetserviceclient_searchallresources_paged_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ResourceSearchResult;
 import com.google.cloud.asset.v1.SearchAllResourcesRequest;
@@ -25,13 +25,13 @@
 import com.google.protobuf.FieldMask;
 import java.util.ArrayList;
 
-public class SearchAllResourcesCallableCallSearchAllResourcesRequest {
+public class SyncSearchAllResourcesPaged {
 
   public static void main(String[] args) throws Exception {
-    searchAllResourcesCallableCallSearchAllResourcesRequest();
+    syncSearchAllResourcesPaged();
   }
 
-  public static void searchAllResourcesCallableCallSearchAllResourcesRequest() throws Exception {
+  public static void syncSearchAllResourcesPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -61,4 +61,4 @@ public static void searchAllResourcesCallableCallSearchAllResourcesRequest() thr
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_searchallresources_callablecallsearchallresourcesrequest_sync]
+// [END asset_v1_generated_assetserviceclient_searchallresources_paged_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java
similarity index 83%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java
index 0b2d288071..aa23171f38 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SearchAllResourcesStringStringListStringIterateAll.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall_sync]
+// [START asset_v1_generated_assetserviceclient_searchallresources_stringstringliststring_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.ResourceSearchResult;
 import java.util.ArrayList;
 import java.util.List;
 
-public class SearchAllResourcesStringStringListStringIterateAll {
+public class SyncSearchAllResourcesStringStringListstring {
 
   public static void main(String[] args) throws Exception {
-    searchAllResourcesStringStringListStringIterateAll();
+    syncSearchAllResourcesStringStringListstring();
   }
 
-  public static void searchAllResourcesStringStringListStringIterateAll() throws Exception {
+  public static void syncSearchAllResourcesStringStringListstring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void searchAllResourcesStringStringListStringIterateAll() throws E
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_searchallresources_stringstringliststringiterateall_sync]
+// [END asset_v1_generated_assetserviceclient_searchallresources_stringstringliststring_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java
similarity index 79%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java
index 28c1f9c9cf..b114d7831b 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedCallableFutureCallUpdateFeedRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest_sync]
+// [START asset_v1_generated_assetserviceclient_updatefeed_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.Feed;
 import com.google.cloud.asset.v1.UpdateFeedRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateFeedCallableFutureCallUpdateFeedRequest {
+public class AsyncUpdateFeed {
 
   public static void main(String[] args) throws Exception {
-    updateFeedCallableFutureCallUpdateFeedRequest();
+    asyncUpdateFeed();
   }
 
-  public static void updateFeedCallableFutureCallUpdateFeedRequest() throws Exception {
+  public static void asyncUpdateFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void updateFeedCallableFutureCallUpdateFeedRequest() throws Except
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_updatefeed_callablefuturecallupdatefeedrequest_sync]
+// [END asset_v1_generated_assetserviceclient_updatefeed_async]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java
similarity index 81%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java
index ff07c720d9..76211f58e9 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedUpdateFeedRequest.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest_sync]
+// [START asset_v1_generated_assetserviceclient_updatefeed_sync]
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.Feed;
 import com.google.cloud.asset.v1.UpdateFeedRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateFeedUpdateFeedRequest {
+public class SyncUpdateFeed {
 
   public static void main(String[] args) throws Exception {
-    updateFeedUpdateFeedRequest();
+    syncUpdateFeed();
   }
 
-  public static void updateFeedUpdateFeedRequest() throws Exception {
+  public static void syncUpdateFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void updateFeedUpdateFeedRequest() throws Exception {
     }
   }
 }
-// [END asset_v1_generated_assetserviceclient_updatefeed_updatefeedrequest_sync]
+// [END asset_v1_generated_assetserviceclient_updatefeed_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java
similarity index 91%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java
index 500beb663e..a3b8464116 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/UpdateFeedFeed.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java
@@ -20,13 +20,13 @@
 import com.google.cloud.asset.v1.AssetServiceClient;
 import com.google.cloud.asset.v1.Feed;
 
-public class UpdateFeedFeed {
+public class SyncUpdateFeedFeed {
 
   public static void main(String[] args) throws Exception {
-    updateFeedFeed();
+    syncUpdateFeedFeed();
   }
 
-  public static void updateFeedFeed() throws Exception {
+  public static void syncUpdateFeedFeed() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
similarity index 80%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
index c490576dca..b405d726e7 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.asset.v1.samples;
 
-// [START asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings_sync]
+// [START asset_v1_generated_assetservicesettings_batchgetassetshistory_sync]
 import com.google.cloud.asset.v1.AssetServiceSettings;
 import java.time.Duration;
 
-public class BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings {
+public class SyncBatchGetAssetsHistory {
 
   public static void main(String[] args) throws Exception {
-    batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings();
+    syncBatchGetAssetsHistory();
   }
 
-  public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSettings()
-      throws Exception {
+  public static void syncBatchGetAssetsHistory() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder();
@@ -43,4 +42,4 @@ public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceSett
     AssetServiceSettings assetServiceSettings = assetServiceSettingsBuilder.build();
   }
 }
-// [END asset_v1_generated_assetservicesettings_batchgetassetshistory_settingssetretrysettingsassetservicesettings_sync]
+// [END asset_v1_generated_assetservicesettings_batchgetassetshistory_sync]
diff --git a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
similarity index 79%
rename from test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java
rename to test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
index 636dd0c73d..f6e4d0f476 100644
--- a/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings.java
+++ b/test/integration/goldens/asset/samples/generated/src/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.asset.v1.stub.samples;
 
-// [START asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings_sync]
+// [START asset_v1_generated_assetservicestubsettings_batchgetassetshistory_sync]
 import com.google.cloud.asset.v1.stub.AssetServiceStubSettings;
 import java.time.Duration;
 
-public class BatchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings {
+public class SyncBatchGetAssetsHistory {
 
   public static void main(String[] args) throws Exception {
-    batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings();
+    syncBatchGetAssetsHistory();
   }
 
-  public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStubSettings()
-      throws Exception {
+  public static void syncBatchGetAssetsHistory() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     AssetServiceStubSettings.Builder assetServiceSettingsBuilder =
@@ -44,4 +43,4 @@ public static void batchGetAssetsHistorySettingsSetRetrySettingsAssetServiceStub
     AssetServiceStubSettings assetServiceSettings = assetServiceSettingsBuilder.build();
   }
 }
-// [END asset_v1_generated_assetservicestubsettings_batchgetassetshistory_settingssetretrysettingsassetservicestubsettings_sync]
+// [END asset_v1_generated_assetservicestubsettings_batchgetassetshistory_sync]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/AsyncCheckAndMutateRow.java
similarity index 85%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/AsyncCheckAndMutateRow.java
index 644278cecf..bd73f4cd89 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/AsyncCheckAndMutateRow.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_async]
 import com.google.api.core.ApiFuture;
 import com.google.bigtable.v2.CheckAndMutateRowRequest;
 import com.google.bigtable.v2.CheckAndMutateRowResponse;
@@ -27,14 +27,13 @@
 import com.google.protobuf.ByteString;
 import java.util.ArrayList;
 
-public class CheckAndMutateRowCallableFutureCallCheckAndMutateRowRequest {
+public class AsyncCheckAndMutateRow {
 
   public static void main(String[] args) throws Exception {
-    checkAndMutateRowCallableFutureCallCheckAndMutateRowRequest();
+    asyncCheckAndMutateRow();
   }
 
-  public static void checkAndMutateRowCallableFutureCallCheckAndMutateRowRequest()
-      throws Exception {
+  public static void asyncCheckAndMutateRow() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -54,4 +53,4 @@ public static void checkAndMutateRowCallableFutureCallCheckAndMutateRowRequest()
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_callablefuturecallcheckandmutaterowrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_async]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRow.java
similarity index 88%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRow.java
index 1d32a966e4..0033ec5489 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowCheckAndMutateRowRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRow.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_sync]
 import com.google.bigtable.v2.CheckAndMutateRowRequest;
 import com.google.bigtable.v2.CheckAndMutateRowResponse;
 import com.google.bigtable.v2.Mutation;
@@ -26,13 +26,13 @@
 import com.google.protobuf.ByteString;
 import java.util.ArrayList;
 
-public class CheckAndMutateRowCheckAndMutateRowRequest {
+public class SyncCheckAndMutateRow {
 
   public static void main(String[] args) throws Exception {
-    checkAndMutateRowCheckAndMutateRowRequest();
+    syncCheckAndMutateRow();
   }
 
-  public static void checkAndMutateRowCheckAndMutateRowRequest() throws Exception {
+  public static void syncCheckAndMutateRow() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -49,4 +49,4 @@ public static void checkAndMutateRowCheckAndMutateRowRequest() throws Exception
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_checkandmutaterowrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_checkandmutaterow_sync]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation.java
similarity index 88%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation.java
index 150745a06f..3a2de693b6 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutation.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation.java
@@ -26,13 +26,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class CheckAndMutateRowStringByteStringRowFilterListMutationListMutation {
+public class SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation {
 
   public static void main(String[] args) throws Exception {
-    checkAndMutateRowStringByteStringRowFilterListMutationListMutation();
+    syncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation();
   }
 
-  public static void checkAndMutateRowStringByteStringRowFilterListMutationListMutation()
+  public static void syncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString.java
similarity index 88%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString.java
index 7301259531..c1990c3ce7 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString.java
@@ -26,13 +26,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class CheckAndMutateRowStringByteStringRowFilterListMutationListMutationString {
+public class SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString {
 
   public static void main(String[] args) throws Exception {
-    checkAndMutateRowStringByteStringRowFilterListMutationListMutationString();
+    syncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString();
   }
 
-  public static void checkAndMutateRowStringByteStringRowFilterListMutationListMutationString()
+  public static void syncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation.java
similarity index 88%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation.java
index a87686da31..bc744a3d4a 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation.java
@@ -26,13 +26,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutation {
+public class SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation {
 
   public static void main(String[] args) throws Exception {
-    checkAndMutateRowTableNameByteStringRowFilterListMutationListMutation();
+    syncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation();
   }
 
-  public static void checkAndMutateRowTableNameByteStringRowFilterListMutationListMutation()
+  public static void syncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString.java
similarity index 86%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString.java
index 9a44a21b27..b2566676db 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString.java
@@ -26,14 +26,15 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class CheckAndMutateRowTableNameByteStringRowFilterListMutationListMutationString {
+public class SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString {
 
   public static void main(String[] args) throws Exception {
-    checkAndMutateRowTableNameByteStringRowFilterListMutationListMutationString();
+    syncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString();
   }
 
-  public static void checkAndMutateRowTableNameByteStringRowFilterListMutationListMutationString()
-      throws Exception {
+  public static void
+      syncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString()
+          throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/SyncCreateSetCredentialsProvider.java
index ba73379d50..c33d76d8c9 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings1.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
 import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings;
 import com.google.cloud.bigtable.data.v2.myCredentials;
 
-public class CreateBaseBigtableDataSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createBaseBigtableDataSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createBaseBigtableDataSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     BaseBigtableDataSettings baseBigtableDataSettings =
@@ -39,4 +39,4 @@ public static void createBaseBigtableDataSettings1() throws Exception {
         BaseBigtableDataClient.create(baseBigtableDataSettings);
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings1_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/SyncCreateSetEndpoint.java
similarity index 79%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/SyncCreateSetEndpoint.java
index 48025a0e28..63377caba5 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/CreateBaseBigtableDataSettings2.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_create_setendpoint_sync]
 import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
 import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings;
 import com.google.cloud.bigtable.data.v2.myEndpoint;
 
-public class CreateBaseBigtableDataSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createBaseBigtableDataSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createBaseBigtableDataSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     BaseBigtableDataSettings baseBigtableDataSettings =
@@ -36,4 +36,4 @@ public static void createBaseBigtableDataSettings2() throws Exception {
         BaseBigtableDataClient.create(baseBigtableDataSettings);
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_create_basebigtabledatasettings2_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/AsyncMutateRow.java
similarity index 84%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/AsyncMutateRow.java
index 3c6d1b5686..3b28ceabdc 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowCallableFutureCallMutateRowRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/AsyncMutateRow.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_async]
 import com.google.api.core.ApiFuture;
 import com.google.bigtable.v2.MutateRowRequest;
 import com.google.bigtable.v2.MutateRowResponse;
@@ -26,13 +26,13 @@
 import com.google.protobuf.ByteString;
 import java.util.ArrayList;
 
-public class MutateRowCallableFutureCallMutateRowRequest {
+public class AsyncMutateRow {
 
   public static void main(String[] args) throws Exception {
-    mutateRowCallableFutureCallMutateRowRequest();
+    asyncMutateRow();
   }
 
-  public static void mutateRowCallableFutureCallMutateRowRequest() throws Exception {
+  public static void asyncMutateRow() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -50,4 +50,4 @@ public static void mutateRowCallableFutureCallMutateRowRequest() throws Exceptio
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_callablefuturecallmutaterowrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_async]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRow.java
similarity index 87%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRow.java
index 58a91bfa2f..2fd3a4aa7a 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowMutateRowRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRow.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterow_sync]
 import com.google.bigtable.v2.MutateRowRequest;
 import com.google.bigtable.v2.MutateRowResponse;
 import com.google.bigtable.v2.Mutation;
@@ -25,13 +25,13 @@
 import com.google.protobuf.ByteString;
 import java.util.ArrayList;
 
-public class MutateRowMutateRowRequest {
+public class SyncMutateRow {
 
   public static void main(String[] args) throws Exception {
-    mutateRowMutateRowRequest();
+    syncMutateRow();
   }
 
-  public static void mutateRowMutateRowRequest() throws Exception {
+  public static void syncMutateRow() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -46,4 +46,4 @@ public static void mutateRowMutateRowRequest() throws Exception {
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_mutaterowrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterow_sync]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowStringBytestringListmutation.java
similarity index 90%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowStringBytestringListmutation.java
index 47e7f49678..3c620270ef 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutation.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowStringBytestringListmutation.java
@@ -25,13 +25,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class MutateRowStringByteStringListMutation {
+public class SyncMutateRowStringBytestringListmutation {
 
   public static void main(String[] args) throws Exception {
-    mutateRowStringByteStringListMutation();
+    syncMutateRowStringBytestringListmutation();
   }
 
-  public static void mutateRowStringByteStringListMutation() throws Exception {
+  public static void syncMutateRowStringBytestringListmutation() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowStringBytestringListmutationString.java
similarity index 89%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowStringBytestringListmutationString.java
index 358c656404..2af6ce2f6a 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowStringByteStringListMutationString.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowStringBytestringListmutationString.java
@@ -25,13 +25,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class MutateRowStringByteStringListMutationString {
+public class SyncMutateRowStringBytestringListmutationString {
 
   public static void main(String[] args) throws Exception {
-    mutateRowStringByteStringListMutationString();
+    syncMutateRowStringBytestringListmutationString();
   }
 
-  public static void mutateRowStringByteStringListMutationString() throws Exception {
+  public static void syncMutateRowStringBytestringListmutationString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowTablenameBytestringListmutation.java
similarity index 89%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowTablenameBytestringListmutation.java
index 1b2169416e..3aa593d98e 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutation.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowTablenameBytestringListmutation.java
@@ -25,13 +25,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class MutateRowTableNameByteStringListMutation {
+public class SyncMutateRowTablenameBytestringListmutation {
 
   public static void main(String[] args) throws Exception {
-    mutateRowTableNameByteStringListMutation();
+    syncMutateRowTablenameBytestringListmutation();
   }
 
-  public static void mutateRowTableNameByteStringListMutation() throws Exception {
+  public static void syncMutateRowTablenameBytestringListmutation() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowTablenameBytestringListmutationString.java
similarity index 89%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowTablenameBytestringListmutationString.java
index 6ebf96a0e7..e3e2cce304 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/MutateRowTableNameByteStringListMutationString.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterow/SyncMutateRowTablenameBytestringListmutationString.java
@@ -25,13 +25,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class MutateRowTableNameByteStringListMutationString {
+public class SyncMutateRowTablenameBytestringListmutationString {
 
   public static void main(String[] args) throws Exception {
-    mutateRowTableNameByteStringListMutationString();
+    syncMutateRowTablenameBytestringListmutationString();
   }
 
-  public static void mutateRowTableNameByteStringListMutationString() throws Exception {
+  public static void syncMutateRowTablenameBytestringListmutationString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/AsyncMutateRowsStreamServer.java
similarity index 88%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/AsyncMutateRowsStreamServer.java
index bd040c330c..6361682e03 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/MutateRowsCallableCallMutateRowsRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/mutaterows/AsyncMutateRowsStreamServer.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_mutaterows_streamserver_async]
 import com.google.api.gax.rpc.ServerStream;
 import com.google.bigtable.v2.MutateRowsRequest;
 import com.google.bigtable.v2.MutateRowsResponse;
@@ -24,13 +24,13 @@
 import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
 import java.util.ArrayList;
 
-public class MutateRowsCallableCallMutateRowsRequest {
+public class AsyncMutateRowsStreamServer {
 
   public static void main(String[] args) throws Exception {
-    mutateRowsCallableCallMutateRowsRequest();
+    asyncMutateRowsStreamServer();
   }
 
-  public static void mutateRowsCallableCallMutateRowsRequest() throws Exception {
+  public static void asyncMutateRowsStreamServer() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -48,4 +48,4 @@ public static void mutateRowsCallableCallMutateRowsRequest() throws Exception {
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_mutaterows_callablecallmutaterowsrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_mutaterows_streamserver_async]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/AsyncReadModifyWriteRow.java
similarity index 84%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/AsyncReadModifyWriteRow.java
index 46dfdc0234..8355d646e3 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/AsyncReadModifyWriteRow.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_async]
 import com.google.api.core.ApiFuture;
 import com.google.bigtable.v2.ReadModifyWriteRowRequest;
 import com.google.bigtable.v2.ReadModifyWriteRowResponse;
@@ -26,14 +26,13 @@
 import com.google.protobuf.ByteString;
 import java.util.ArrayList;
 
-public class ReadModifyWriteRowCallableFutureCallReadModifyWriteRowRequest {
+public class AsyncReadModifyWriteRow {
 
   public static void main(String[] args) throws Exception {
-    readModifyWriteRowCallableFutureCallReadModifyWriteRowRequest();
+    asyncReadModifyWriteRow();
   }
 
-  public static void readModifyWriteRowCallableFutureCallReadModifyWriteRowRequest()
-      throws Exception {
+  public static void asyncReadModifyWriteRow() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -51,4 +50,4 @@ public static void readModifyWriteRowCallableFutureCallReadModifyWriteRowRequest
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_callablefuturecallreadmodifywriterowrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_async]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRow.java
similarity index 87%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRow.java
index 1afae99560..fe5e913e45 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowReadModifyWriteRowRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRow.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_sync]
 import com.google.bigtable.v2.ReadModifyWriteRowRequest;
 import com.google.bigtable.v2.ReadModifyWriteRowResponse;
 import com.google.bigtable.v2.ReadModifyWriteRule;
@@ -25,13 +25,13 @@
 import com.google.protobuf.ByteString;
 import java.util.ArrayList;
 
-public class ReadModifyWriteRowReadModifyWriteRowRequest {
+public class SyncReadModifyWriteRow {
 
   public static void main(String[] args) throws Exception {
-    readModifyWriteRowReadModifyWriteRowRequest();
+    syncReadModifyWriteRow();
   }
 
-  public static void readModifyWriteRowReadModifyWriteRowRequest() throws Exception {
+  public static void syncReadModifyWriteRow() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -46,4 +46,4 @@ public static void readModifyWriteRowReadModifyWriteRowRequest() throws Exceptio
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_readmodifywriterowrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_readmodifywriterow_sync]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriterule.java
similarity index 87%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriterule.java
index 3004052bc2..95adbd24bd 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRule.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriterule.java
@@ -25,13 +25,14 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class ReadModifyWriteRowStringByteStringListReadModifyWriteRule {
+public class SyncReadModifyWriteRowStringBytestringListreadmodifywriterule {
 
   public static void main(String[] args) throws Exception {
-    readModifyWriteRowStringByteStringListReadModifyWriteRule();
+    syncReadModifyWriteRowStringBytestringListreadmodifywriterule();
   }
 
-  public static void readModifyWriteRowStringByteStringListReadModifyWriteRule() throws Exception {
+  public static void syncReadModifyWriteRowStringBytestringListreadmodifywriterule()
+      throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString.java
similarity index 88%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString.java
index 733a4a525e..c485ef5dbe 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString.java
@@ -25,13 +25,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class ReadModifyWriteRowStringByteStringListReadModifyWriteRuleString {
+public class SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString {
 
   public static void main(String[] args) throws Exception {
-    readModifyWriteRowStringByteStringListReadModifyWriteRuleString();
+    syncReadModifyWriteRowStringBytestringListreadmodifywriteruleString();
   }
 
-  public static void readModifyWriteRowStringByteStringListReadModifyWriteRuleString()
+  public static void syncReadModifyWriteRowStringBytestringListreadmodifywriteruleString()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule.java
similarity index 88%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule.java
index d76c3f09c5..50134a685c 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule.java
@@ -25,13 +25,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class ReadModifyWriteRowTableNameByteStringListReadModifyWriteRule {
+public class SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule {
 
   public static void main(String[] args) throws Exception {
-    readModifyWriteRowTableNameByteStringListReadModifyWriteRule();
+    syncReadModifyWriteRowTablenameBytestringListreadmodifywriterule();
   }
 
-  public static void readModifyWriteRowTableNameByteStringListReadModifyWriteRule()
+  public static void syncReadModifyWriteRowTablenameBytestringListreadmodifywriterule()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString.java
similarity index 88%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString.java
index e958a23c80..76bfc82d37 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString.java
@@ -25,13 +25,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class ReadModifyWriteRowTableNameByteStringListReadModifyWriteRuleString {
+public class SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString {
 
   public static void main(String[] args) throws Exception {
-    readModifyWriteRowTableNameByteStringListReadModifyWriteRuleString();
+    syncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString();
   }
 
-  public static void readModifyWriteRowTableNameByteStringListReadModifyWriteRuleString()
+  public static void syncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/AsyncReadRowsStreamServer.java
similarity index 86%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/AsyncReadRowsStreamServer.java
index 21fd0cb739..54e4ed8b50 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/ReadRowsCallableCallReadRowsRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/readrows/AsyncReadRowsStreamServer.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_readrows_streamserver_async]
 import com.google.api.gax.rpc.ServerStream;
 import com.google.bigtable.v2.ReadRowsRequest;
 import com.google.bigtable.v2.ReadRowsResponse;
@@ -25,13 +25,13 @@
 import com.google.bigtable.v2.TableName;
 import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
 
-public class ReadRowsCallableCallReadRowsRequest {
+public class AsyncReadRowsStreamServer {
 
   public static void main(String[] args) throws Exception {
-    readRowsCallableCallReadRowsRequest();
+    asyncReadRowsStreamServer();
   }
 
-  public static void readRowsCallableCallReadRowsRequest() throws Exception {
+  public static void asyncReadRowsStreamServer() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -51,4 +51,4 @@ public static void readRowsCallableCallReadRowsRequest() throws Exception {
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_readrows_callablecallreadrowsrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_readrows_streamserver_async]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/AsyncSampleRowKeysStreamServer.java
similarity index 86%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/AsyncSampleRowKeysStreamServer.java
index 2973c1e113..de0c6e7876 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/SampleRowKeysCallableCallSampleRowKeysRequest.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledataclient/samplerowkeys/AsyncSampleRowKeysStreamServer.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest_sync]
+// [START bigtable_v2_generated_basebigtabledataclient_samplerowkeys_streamserver_async]
 import com.google.api.gax.rpc.ServerStream;
 import com.google.bigtable.v2.SampleRowKeysRequest;
 import com.google.bigtable.v2.SampleRowKeysResponse;
 import com.google.bigtable.v2.TableName;
 import com.google.cloud.bigtable.data.v2.BaseBigtableDataClient;
 
-public class SampleRowKeysCallableCallSampleRowKeysRequest {
+public class AsyncSampleRowKeysStreamServer {
 
   public static void main(String[] args) throws Exception {
-    sampleRowKeysCallableCallSampleRowKeysRequest();
+    asyncSampleRowKeysStreamServer();
   }
 
-  public static void sampleRowKeysCallableCallSampleRowKeysRequest() throws Exception {
+  public static void asyncSampleRowKeysStreamServer() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
@@ -46,4 +46,4 @@ public static void sampleRowKeysCallableCallSampleRowKeysRequest() throws Except
     }
   }
 }
-// [END bigtable_v2_generated_basebigtabledataclient_samplerowkeys_callablecallsamplerowkeysrequest_sync]
+// [END bigtable_v2_generated_basebigtabledataclient_samplerowkeys_streamserver_async]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/SyncMutateRow.java
similarity index 82%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/SyncMutateRow.java
index 01a7f01362..5d44d6b656 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/SyncMutateRow.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.bigtable.data.v2.samples;
 
-// [START bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings_sync]
+// [START bigtable_v2_generated_basebigtabledatasettings_mutaterow_sync]
 import com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings;
 import java.time.Duration;
 
-public class MutateRowSettingsSetRetrySettingsBaseBigtableDataSettings {
+public class SyncMutateRow {
 
   public static void main(String[] args) throws Exception {
-    mutateRowSettingsSetRetrySettingsBaseBigtableDataSettings();
+    syncMutateRow();
   }
 
-  public static void mutateRowSettingsSetRetrySettingsBaseBigtableDataSettings() throws Exception {
+  public static void syncMutateRow() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     BaseBigtableDataSettings.Builder baseBigtableDataSettingsBuilder =
@@ -43,4 +43,4 @@ public static void mutateRowSettingsSetRetrySettingsBaseBigtableDataSettings() t
     BaseBigtableDataSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build();
   }
 }
-// [END bigtable_v2_generated_basebigtabledatasettings_mutaterow_settingssetretrysettingsbasebigtabledatasettings_sync]
+// [END bigtable_v2_generated_basebigtabledatasettings_mutaterow_sync]
diff --git a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/SyncMutateRow.java
similarity index 80%
rename from test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java
rename to test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/SyncMutateRow.java
index a10929f1fe..bfa678d2d4 100644
--- a/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/MutateRowSettingsSetRetrySettingsBigtableStubSettings.java
+++ b/test/integration/goldens/bigtable/samples/generated/src/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/SyncMutateRow.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.bigtable.data.v2.stub.samples;
 
-// [START bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings_sync]
+// [START bigtable_v2_generated_bigtablestubsettings_mutaterow_sync]
 import com.google.cloud.bigtable.data.v2.stub.BigtableStubSettings;
 import java.time.Duration;
 
-public class MutateRowSettingsSetRetrySettingsBigtableStubSettings {
+public class SyncMutateRow {
 
   public static void main(String[] args) throws Exception {
-    mutateRowSettingsSetRetrySettingsBigtableStubSettings();
+    syncMutateRow();
   }
 
-  public static void mutateRowSettingsSetRetrySettingsBigtableStubSettings() throws Exception {
+  public static void syncMutateRow() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     BigtableStubSettings.Builder baseBigtableDataSettingsBuilder =
@@ -43,4 +43,4 @@ public static void mutateRowSettingsSetRetrySettingsBigtableStubSettings() throw
     BigtableStubSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build();
   }
 }
-// [END bigtable_v2_generated_bigtablestubsettings_mutaterow_settingssetretrysettingsbigtablestubsettings_sync]
+// [END bigtable_v2_generated_bigtablestubsettings_mutaterow_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AsyncAggregatedListPagedCallable.java
similarity index 83%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AsyncAggregatedListPagedCallable.java
index 0fb636e07c..b954e7b2a4 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AsyncAggregatedListPagedCallable.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest_sync]
+// [START compute_v1small_generated_addressesclient_aggregatedlist_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.AddressesScopedList;
 import com.google.cloud.compute.v1small.AggregatedListAddressesRequest;
 import java.util.Map;
 
-public class AggregatedListPagedCallableFutureCallAggregatedListAddressesRequest {
+public class AsyncAggregatedListPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    aggregatedListPagedCallableFutureCallAggregatedListAddressesRequest();
+    asyncAggregatedListPagedCallable();
   }
 
-  public static void aggregatedListPagedCallableFutureCallAggregatedListAddressesRequest()
-      throws Exception {
+  public static void asyncAggregatedListPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -52,4 +51,4 @@ public static void aggregatedListPagedCallableFutureCallAggregatedListAddressesR
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_aggregatedlist_pagedcallablefuturecallaggregatedlistaddressesrequest_sync]
+// [END compute_v1small_generated_addressesclient_aggregatedlist_pagedcallable_async]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedList.java
similarity index 85%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedList.java
index f444adbe48..cacfc4a3d3 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListAggregatedListAddressesRequestIterateAll.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedList.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall_sync]
+// [START compute_v1small_generated_addressesclient_aggregatedlist_sync]
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.AddressesScopedList;
 import com.google.cloud.compute.v1small.AggregatedListAddressesRequest;
 import java.util.Map;
 
-public class AggregatedListAggregatedListAddressesRequestIterateAll {
+public class SyncAggregatedList {
 
   public static void main(String[] args) throws Exception {
-    aggregatedListAggregatedListAddressesRequestIterateAll();
+    syncAggregatedList();
   }
 
-  public static void aggregatedListAggregatedListAddressesRequestIterateAll() throws Exception {
+  public static void syncAggregatedList() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -48,4 +48,4 @@ public static void aggregatedListAggregatedListAddressesRequestIterateAll() thro
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_aggregatedlist_aggregatedlistaddressesrequestiterateall_sync]
+// [END compute_v1small_generated_addressesclient_aggregatedlist_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedListPaged.java
similarity index 87%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedListPaged.java
index 61b7b37641..6bb0e740da 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListCallableCallAggregatedListAddressesRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedListPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest_sync]
+// [START compute_v1small_generated_addressesclient_aggregatedlist_paged_sync]
 import com.google.cloud.compute.v1small.AddressAggregatedList;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.AddressesScopedList;
@@ -24,13 +24,13 @@
 import com.google.common.base.Strings;
 import java.util.Map;
 
-public class AggregatedListCallableCallAggregatedListAddressesRequest {
+public class SyncAggregatedListPaged {
 
   public static void main(String[] args) throws Exception {
-    aggregatedListCallableCallAggregatedListAddressesRequest();
+    syncAggregatedListPaged();
   }
 
-  public static void aggregatedListCallableCallAggregatedListAddressesRequest() throws Exception {
+  public static void syncAggregatedListPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -58,4 +58,4 @@ public static void aggregatedListCallableCallAggregatedListAddressesRequest() th
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_aggregatedlist_callablecallaggregatedlistaddressesrequest_sync]
+// [END compute_v1small_generated_addressesclient_aggregatedlist_paged_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedListString.java
similarity index 87%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedListString.java
index 6135ffad96..1be23cc870 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AggregatedListStringIterateAll.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/SyncAggregatedListString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall_sync]
+// [START compute_v1small_generated_addressesclient_aggregatedlist_string_sync]
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.AddressesScopedList;
 import java.util.Map;
 
-public class AggregatedListStringIterateAll {
+public class SyncAggregatedListString {
 
   public static void main(String[] args) throws Exception {
-    aggregatedListStringIterateAll();
+    syncAggregatedListString();
   }
 
-  public static void aggregatedListStringIterateAll() throws Exception {
+  public static void syncAggregatedListString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -39,4 +39,4 @@ public static void aggregatedListStringIterateAll() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_aggregatedlist_stringiterateall_sync]
+// [END compute_v1small_generated_addressesclient_aggregatedlist_string_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/SyncCreateSetCredentialsProvider.java
index 3b6240f567..84dd3cbf6a 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings1.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_create_addressessettings1_sync]
+// [START compute_v1small_generated_addressesclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.AddressesSettings;
 import com.google.cloud.compute.v1small.myCredentials;
 
-public class CreateAddressesSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createAddressesSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createAddressesSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     AddressesSettings addressesSettings =
@@ -38,4 +38,4 @@ public static void createAddressesSettings1() throws Exception {
     AddressesClient addressesClient = AddressesClient.create(addressesSettings);
   }
 }
-// [END compute_v1small_generated_addressesclient_create_addressessettings1_sync]
+// [END compute_v1small_generated_addressesclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/SyncCreateSetEndpoint.java
similarity index 80%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/SyncCreateSetEndpoint.java
index 1157f9a12c..3a90b53196 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/CreateAddressesSettings2.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_create_addressessettings2_sync]
+// [START compute_v1small_generated_addressesclient_create_setendpoint_sync]
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.AddressesSettings;
 import com.google.cloud.compute.v1small.myEndpoint;
 
-public class CreateAddressesSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createAddressesSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createAddressesSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     AddressesSettings addressesSettings =
@@ -35,4 +35,4 @@ public static void createAddressesSettings2() throws Exception {
     AddressesClient addressesClient = AddressesClient.create(addressesSettings);
   }
 }
-// [END compute_v1small_generated_addressesclient_create_addressessettings2_sync]
+// [END compute_v1small_generated_addressesclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/AsyncDelete.java
similarity index 80%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/AsyncDelete.java
index a9e996d3a8..0fff28559e 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteCallableFutureCallDeleteAddressRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/AsyncDelete.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest_sync]
+// [START compute_v1small_generated_addressesclient_delete_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.DeleteAddressRequest;
 import com.google.longrunning.Operation;
 
-public class DeleteCallableFutureCallDeleteAddressRequest {
+public class AsyncDelete {
 
   public static void main(String[] args) throws Exception {
-    deleteCallableFutureCallDeleteAddressRequest();
+    asyncDelete();
   }
 
-  public static void deleteCallableFutureCallDeleteAddressRequest() throws Exception {
+  public static void asyncDelete() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -45,4 +45,4 @@ public static void deleteCallableFutureCallDeleteAddressRequest() throws Excepti
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_delete_callablefuturecalldeleteaddressrequest_sync]
+// [END compute_v1small_generated_addressesclient_delete_async]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/AsyncDeleteOperationCallable.java
similarity index 84%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/AsyncDeleteOperationCallable.java
index e27eac3b9a..ba18e96bc0 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteOperationCallableFutureCallDeleteAddressRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/AsyncDeleteOperationCallable.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest_sync]
+// [START compute_v1small_generated_addressesclient_delete_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.DeleteAddressRequest;
 import com.google.cloud.compute.v1small.Operation;
 
-public class DeleteOperationCallableFutureCallDeleteAddressRequest {
+public class AsyncDeleteOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    deleteOperationCallableFutureCallDeleteAddressRequest();
+    asyncDeleteOperationCallable();
   }
 
-  public static void deleteOperationCallableFutureCallDeleteAddressRequest() throws Exception {
+  public static void asyncDeleteOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -46,4 +46,4 @@ public static void deleteOperationCallableFutureCallDeleteAddressRequest() throw
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_delete_operationcallablefuturecalldeleteaddressrequest_sync]
+// [END compute_v1small_generated_addressesclient_delete_operationcallable_async]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/SyncDelete.java
similarity index 80%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/SyncDelete.java
index ea48081361..4ade7c59a7 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncDeleteAddressRequestGet.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/SyncDelete.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget_sync]
+// [START compute_v1small_generated_addressesclient_delete_sync]
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.DeleteAddressRequest;
 import com.google.cloud.compute.v1small.Operation;
 
-public class DeleteAsyncDeleteAddressRequestGet {
+public class SyncDelete {
 
   public static void main(String[] args) throws Exception {
-    deleteAsyncDeleteAddressRequestGet();
+    syncDelete();
   }
 
-  public static void deleteAsyncDeleteAddressRequestGet() throws Exception {
+  public static void syncDelete() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -42,4 +42,4 @@ public static void deleteAsyncDeleteAddressRequestGet() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_delete_asyncdeleteaddressrequestget_sync]
+// [END compute_v1small_generated_addressesclient_delete_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/SyncDeleteStringStringString.java
similarity index 78%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/SyncDeleteStringStringString.java
index a4b0567ecc..217f67cfad 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/DeleteAsyncStringStringStringGet.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/delete/SyncDeleteStringStringString.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_delete_asyncstringstringstringget_sync]
+// [START compute_v1small_generated_addressesclient_delete_stringstringstring_sync]
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.Operation;
 
-public class DeleteAsyncStringStringStringGet {
+public class SyncDeleteStringStringString {
 
   public static void main(String[] args) throws Exception {
-    deleteAsyncStringStringStringGet();
+    syncDeleteStringStringString();
   }
 
-  public static void deleteAsyncStringStringStringGet() throws Exception {
+  public static void syncDeleteStringStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -37,4 +37,4 @@ public static void deleteAsyncStringStringStringGet() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_delete_asyncstringstringstringget_sync]
+// [END compute_v1small_generated_addressesclient_delete_stringstringstring_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/AsyncInsert.java
similarity index 80%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/AsyncInsert.java
index d533de7c96..ad2c94e004 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertCallableFutureCallInsertAddressRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/AsyncInsert.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest_sync]
+// [START compute_v1small_generated_addressesclient_insert_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.compute.v1small.Address;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.InsertAddressRequest;
 import com.google.longrunning.Operation;
 
-public class InsertCallableFutureCallInsertAddressRequest {
+public class AsyncInsert {
 
   public static void main(String[] args) throws Exception {
-    insertCallableFutureCallInsertAddressRequest();
+    asyncInsert();
   }
 
-  public static void insertCallableFutureCallInsertAddressRequest() throws Exception {
+  public static void asyncInsert() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -46,4 +46,4 @@ public static void insertCallableFutureCallInsertAddressRequest() throws Excepti
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_insert_callablefuturecallinsertaddressrequest_sync]
+// [END compute_v1small_generated_addressesclient_insert_async]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/AsyncInsertOperationCallable.java
similarity index 85%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/AsyncInsertOperationCallable.java
index 76d473e348..d02fbafad0 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertOperationCallableFutureCallInsertAddressRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/AsyncInsertOperationCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest_sync]
+// [START compute_v1small_generated_addressesclient_insert_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.compute.v1small.Address;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.InsertAddressRequest;
 import com.google.cloud.compute.v1small.Operation;
 
-public class InsertOperationCallableFutureCallInsertAddressRequest {
+public class AsyncInsertOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    insertOperationCallableFutureCallInsertAddressRequest();
+    asyncInsertOperationCallable();
   }
 
-  public static void insertOperationCallableFutureCallInsertAddressRequest() throws Exception {
+  public static void asyncInsertOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -47,4 +47,4 @@ public static void insertOperationCallableFutureCallInsertAddressRequest() throw
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_insert_operationcallablefuturecallinsertaddressrequest_sync]
+// [END compute_v1small_generated_addressesclient_insert_operationcallable_async]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/SyncInsert.java
similarity index 81%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/SyncInsert.java
index 668fc98c06..74373292ce 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncInsertAddressRequestGet.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/SyncInsert.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget_sync]
+// [START compute_v1small_generated_addressesclient_insert_sync]
 import com.google.cloud.compute.v1small.Address;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.InsertAddressRequest;
 import com.google.cloud.compute.v1small.Operation;
 
-public class InsertAsyncInsertAddressRequestGet {
+public class SyncInsert {
 
   public static void main(String[] args) throws Exception {
-    insertAsyncInsertAddressRequestGet();
+    syncInsert();
   }
 
-  public static void insertAsyncInsertAddressRequestGet() throws Exception {
+  public static void syncInsert() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -43,4 +43,4 @@ public static void insertAsyncInsertAddressRequestGet() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_insert_asyncinsertaddressrequestget_sync]
+// [END compute_v1small_generated_addressesclient_insert_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/SyncInsertStringStringAddress.java
similarity index 79%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/SyncInsertStringStringAddress.java
index 99dfdf3406..496430e9e5 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/InsertAsyncStringStringAddressGet.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/insert/SyncInsertStringStringAddress.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget_sync]
+// [START compute_v1small_generated_addressesclient_insert_stringstringaddress_sync]
 import com.google.cloud.compute.v1small.Address;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.Operation;
 
-public class InsertAsyncStringStringAddressGet {
+public class SyncInsertStringStringAddress {
 
   public static void main(String[] args) throws Exception {
-    insertAsyncStringStringAddressGet();
+    syncInsertStringStringAddress();
   }
 
-  public static void insertAsyncStringStringAddressGet() throws Exception {
+  public static void syncInsertStringStringAddress() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -38,4 +38,4 @@ public static void insertAsyncStringStringAddressGet() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_insert_asyncstringstringaddressget_sync]
+// [END compute_v1small_generated_addressesclient_insert_stringstringaddress_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/AsyncListPagedCallable.java
similarity index 86%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/AsyncListPagedCallable.java
index d51e6a055a..e70b89d054 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListPagedCallableFutureCallListAddressesRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/AsyncListPagedCallable.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest_sync]
+// [START compute_v1small_generated_addressesclient_list_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.compute.v1small.Address;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.ListAddressesRequest;
 
-public class ListPagedCallableFutureCallListAddressesRequest {
+public class AsyncListPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listPagedCallableFutureCallListAddressesRequest();
+    asyncListPagedCallable();
   }
 
-  public static void listPagedCallableFutureCallListAddressesRequest() throws Exception {
+  public static void asyncListPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -49,4 +49,4 @@ public static void listPagedCallableFutureCallListAddressesRequest() throws Exce
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_list_pagedcallablefuturecalllistaddressesrequest_sync]
+// [END compute_v1small_generated_addressesclient_list_pagedcallable_async]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncList.java
similarity index 81%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncList.java
index d441dab06c..5f90b3cb91 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListListAddressesRequestIterateAll.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncList.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall_sync]
+// [START compute_v1small_generated_addressesclient_list_sync]
 import com.google.cloud.compute.v1small.Address;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.ListAddressesRequest;
 
-public class ListListAddressesRequestIterateAll {
+public class SyncList {
 
   public static void main(String[] args) throws Exception {
-    listListAddressesRequestIterateAll();
+    syncList();
   }
 
-  public static void listListAddressesRequestIterateAll() throws Exception {
+  public static void syncList() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -46,4 +46,4 @@ public static void listListAddressesRequestIterateAll() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_list_listaddressesrequestiterateall_sync]
+// [END compute_v1small_generated_addressesclient_list_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncListPaged.java
similarity index 84%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncListPaged.java
index 8411998113..48b2533a04 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListCallableCallListAddressesRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncListPaged.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest_sync]
+// [START compute_v1small_generated_addressesclient_list_paged_sync]
 import com.google.cloud.compute.v1small.Address;
 import com.google.cloud.compute.v1small.AddressList;
 import com.google.cloud.compute.v1small.AddressesClient;
 import com.google.cloud.compute.v1small.ListAddressesRequest;
 import com.google.common.base.Strings;
 
-public class ListCallableCallListAddressesRequest {
+public class SyncListPaged {
 
   public static void main(String[] args) throws Exception {
-    listCallableCallListAddressesRequest();
+    syncListPaged();
   }
 
-  public static void listCallableCallListAddressesRequest() throws Exception {
+  public static void syncListPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -57,4 +57,4 @@ public static void listCallableCallListAddressesRequest() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_list_callablecalllistaddressesrequest_sync]
+// [END compute_v1small_generated_addressesclient_list_paged_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncListStringStringString.java
similarity index 86%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncListStringStringString.java
index dca587941d..cc91612660 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/ListStringStringStringIterateAll.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressesclient/list/SyncListStringStringString.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressesclient_list_stringstringstringiterateall_sync]
+// [START compute_v1small_generated_addressesclient_list_stringstringstring_sync]
 import com.google.cloud.compute.v1small.Address;
 import com.google.cloud.compute.v1small.AddressesClient;
 
-public class ListStringStringStringIterateAll {
+public class SyncListStringStringString {
 
   public static void main(String[] args) throws Exception {
-    listStringStringStringIterateAll();
+    syncListStringStringString();
   }
 
-  public static void listStringStringStringIterateAll() throws Exception {
+  public static void syncListStringStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (AddressesClient addressesClient = AddressesClient.create()) {
@@ -39,4 +39,4 @@ public static void listStringStringStringIterateAll() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_addressesclient_list_stringstringstringiterateall_sync]
+// [END compute_v1small_generated_addressesclient_list_stringstringstring_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/SyncAggregatedList.java
similarity index 82%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/SyncAggregatedList.java
index c273119c38..7753347900 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesSettings.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/SyncAggregatedList.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings_sync]
+// [START compute_v1small_generated_addressessettings_aggregatedlist_sync]
 import com.google.cloud.compute.v1small.AddressesSettings;
 import java.time.Duration;
 
-public class AggregatedListSettingsSetRetrySettingsAddressesSettings {
+public class SyncAggregatedList {
 
   public static void main(String[] args) throws Exception {
-    aggregatedListSettingsSetRetrySettingsAddressesSettings();
+    syncAggregatedList();
   }
 
-  public static void aggregatedListSettingsSetRetrySettingsAddressesSettings() throws Exception {
+  public static void syncAggregatedList() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     AddressesSettings.Builder addressesSettingsBuilder = AddressesSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void aggregatedListSettingsSetRetrySettingsAddressesSettings() thr
     AddressesSettings addressesSettings = addressesSettingsBuilder.build();
   }
 }
-// [END compute_v1small_generated_addressessettings_aggregatedlist_settingssetretrysettingsaddressessettings_sync]
+// [END compute_v1small_generated_addressessettings_aggregatedlist_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/SyncCreateSetCredentialsProvider.java
similarity index 87%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/SyncCreateSetCredentialsProvider.java
index 0f893214f3..95d8a07ac3 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings1.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1_sync]
+// [START compute_v1small_generated_regionoperationsclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.compute.v1small.RegionOperationsClient;
 import com.google.cloud.compute.v1small.RegionOperationsSettings;
 import com.google.cloud.compute.v1small.myCredentials;
 
-public class CreateRegionOperationsSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createRegionOperationsSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createRegionOperationsSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     RegionOperationsSettings regionOperationsSettings =
@@ -39,4 +39,4 @@ public static void createRegionOperationsSettings1() throws Exception {
         RegionOperationsClient.create(regionOperationsSettings);
   }
 }
-// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings1_sync]
+// [END compute_v1small_generated_regionoperationsclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/SyncCreateSetEndpoint.java
similarity index 86%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/SyncCreateSetEndpoint.java
index 706ce7ef78..eb624b3f88 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/CreateRegionOperationsSettings2.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2_sync]
+// [START compute_v1small_generated_regionoperationsclient_create_setendpoint_sync]
 import com.google.cloud.compute.v1small.RegionOperationsClient;
 import com.google.cloud.compute.v1small.RegionOperationsSettings;
 import com.google.cloud.compute.v1small.myEndpoint;
 
-public class CreateRegionOperationsSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createRegionOperationsSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createRegionOperationsSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     RegionOperationsSettings regionOperationsSettings =
@@ -36,4 +36,4 @@ public static void createRegionOperationsSettings2() throws Exception {
         RegionOperationsClient.create(regionOperationsSettings);
   }
 }
-// [END compute_v1small_generated_regionoperationsclient_create_regionoperationssettings2_sync]
+// [END compute_v1small_generated_regionoperationsclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/AsyncGet.java
similarity index 78%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/AsyncGet.java
index 4bf699e067..32423ccae7 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetCallableFutureCallGetRegionOperationRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/AsyncGet.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest_sync]
+// [START compute_v1small_generated_regionoperationsclient_get_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.compute.v1small.GetRegionOperationRequest;
 import com.google.cloud.compute.v1small.Operation;
 import com.google.cloud.compute.v1small.RegionOperationsClient;
 
-public class GetCallableFutureCallGetRegionOperationRequest {
+public class AsyncGet {
 
   public static void main(String[] args) throws Exception {
-    getCallableFutureCallGetRegionOperationRequest();
+    asyncGet();
   }
 
-  public static void getCallableFutureCallGetRegionOperationRequest() throws Exception {
+  public static void asyncGet() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
@@ -44,4 +44,4 @@ public static void getCallableFutureCallGetRegionOperationRequest() throws Excep
     }
   }
 }
-// [END compute_v1small_generated_regionoperationsclient_get_callablefuturecallgetregionoperationrequest_sync]
+// [END compute_v1small_generated_regionoperationsclient_get_async]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/SyncGet.java
similarity index 81%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/SyncGet.java
index ff561a2218..3a29facce9 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetGetRegionOperationRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/SyncGet.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest_sync]
+// [START compute_v1small_generated_regionoperationsclient_get_sync]
 import com.google.cloud.compute.v1small.GetRegionOperationRequest;
 import com.google.cloud.compute.v1small.Operation;
 import com.google.cloud.compute.v1small.RegionOperationsClient;
 
-public class GetGetRegionOperationRequest {
+public class SyncGet {
 
   public static void main(String[] args) throws Exception {
-    getGetRegionOperationRequest();
+    syncGet();
   }
 
-  public static void getGetRegionOperationRequest() throws Exception {
+  public static void syncGet() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
@@ -41,4 +41,4 @@ public static void getGetRegionOperationRequest() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_regionoperationsclient_get_getregionoperationrequest_sync]
+// [END compute_v1small_generated_regionoperationsclient_get_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/SyncGetStringStringString.java
similarity index 91%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/SyncGetStringStringString.java
index 0b5571c540..5789da4f49 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/GetStringStringString.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/get/SyncGetStringStringString.java
@@ -20,13 +20,13 @@
 import com.google.cloud.compute.v1small.Operation;
 import com.google.cloud.compute.v1small.RegionOperationsClient;
 
-public class GetStringStringString {
+public class SyncGetStringStringString {
 
   public static void main(String[] args) throws Exception {
-    getStringStringString();
+    syncGetStringStringString();
   }
 
-  public static void getStringStringString() throws Exception {
+  public static void syncGetStringStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/AsyncWait.java
similarity index 81%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/AsyncWait.java
index b4bbda3893..330dda902a 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitCallableFutureCallWaitRegionOperationRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/AsyncWait.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest_sync]
+// [START compute_v1small_generated_regionoperationsclient_wait_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.compute.v1small.Operation;
 import com.google.cloud.compute.v1small.RegionOperationsClient;
 import com.google.cloud.compute.v1small.WaitRegionOperationRequest;
 
-public class WaitCallableFutureCallWaitRegionOperationRequest {
+public class AsyncWait {
 
   public static void main(String[] args) throws Exception {
-    waitCallableFutureCallWaitRegionOperationRequest();
+    asyncWait();
   }
 
-  public static void waitCallableFutureCallWaitRegionOperationRequest() throws Exception {
+  public static void asyncWait() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
@@ -44,4 +44,4 @@ public static void waitCallableFutureCallWaitRegionOperationRequest() throws Exc
     }
   }
 }
-// [END compute_v1small_generated_regionoperationsclient_wait_callablefuturecallwaitregionoperationrequest_sync]
+// [END compute_v1small_generated_regionoperationsclient_wait_async]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/SyncWait.java
similarity index 84%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/SyncWait.java
index 57a8924d93..2fdc002e8b 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitWaitRegionOperationRequest.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/SyncWait.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest_sync]
+// [START compute_v1small_generated_regionoperationsclient_wait_sync]
 import com.google.cloud.compute.v1small.Operation;
 import com.google.cloud.compute.v1small.RegionOperationsClient;
 import com.google.cloud.compute.v1small.WaitRegionOperationRequest;
 
-public class WaitWaitRegionOperationRequest {
+public class SyncWait {
 
   public static void main(String[] args) throws Exception {
-    waitWaitRegionOperationRequest();
+    syncWait();
   }
 
-  public static void waitWaitRegionOperationRequest() throws Exception {
+  public static void syncWait() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
@@ -41,4 +41,4 @@ public static void waitWaitRegionOperationRequest() throws Exception {
     }
   }
 }
-// [END compute_v1small_generated_regionoperationsclient_wait_waitregionoperationrequest_sync]
+// [END compute_v1small_generated_regionoperationsclient_wait_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/SyncWaitStringStringString.java
similarity index 91%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/SyncWaitStringStringString.java
index 023ae6f4e1..a82868b75c 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/WaitStringStringString.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationsclient/wait/SyncWaitStringStringString.java
@@ -20,13 +20,13 @@
 import com.google.cloud.compute.v1small.Operation;
 import com.google.cloud.compute.v1small.RegionOperationsClient;
 
-public class WaitStringStringString {
+public class SyncWaitStringStringString {
 
   public static void main(String[] args) throws Exception {
-    waitStringStringString();
+    syncWaitStringStringString();
   }
 
-  public static void waitStringStringString() throws Exception {
+  public static void syncWaitStringStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/SyncGet.java
similarity index 83%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/SyncGet.java
index f493244f1d..e18716b267 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/GetSettingsSetRetrySettingsRegionOperationsSettings.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/regionoperationssettings/get/SyncGet.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.compute.v1small.samples;
 
-// [START compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings_sync]
+// [START compute_v1small_generated_regionoperationssettings_get_sync]
 import com.google.cloud.compute.v1small.RegionOperationsSettings;
 import java.time.Duration;
 
-public class GetSettingsSetRetrySettingsRegionOperationsSettings {
+public class SyncGet {
 
   public static void main(String[] args) throws Exception {
-    getSettingsSetRetrySettingsRegionOperationsSettings();
+    syncGet();
   }
 
-  public static void getSettingsSetRetrySettingsRegionOperationsSettings() throws Exception {
+  public static void syncGet() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     RegionOperationsSettings.Builder regionOperationsSettingsBuilder =
@@ -43,4 +43,4 @@ public static void getSettingsSetRetrySettingsRegionOperationsSettings() throws
     RegionOperationsSettings regionOperationsSettings = regionOperationsSettingsBuilder.build();
   }
 }
-// [END compute_v1small_generated_regionoperationssettings_get_settingssetretrysettingsregionoperationssettings_sync]
+// [END compute_v1small_generated_regionoperationssettings_get_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/SyncAggregatedList.java
similarity index 81%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/SyncAggregatedList.java
index a67d01c5de..1194c3b42a 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/AggregatedListSettingsSetRetrySettingsAddressesStubSettings.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/SyncAggregatedList.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.compute.v1small.stub.samples;
 
-// [START compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings_sync]
+// [START compute_v1small_generated_addressesstubsettings_aggregatedlist_sync]
 import com.google.cloud.compute.v1small.stub.AddressesStubSettings;
 import java.time.Duration;
 
-public class AggregatedListSettingsSetRetrySettingsAddressesStubSettings {
+public class SyncAggregatedList {
 
   public static void main(String[] args) throws Exception {
-    aggregatedListSettingsSetRetrySettingsAddressesStubSettings();
+    syncAggregatedList();
   }
 
-  public static void aggregatedListSettingsSetRetrySettingsAddressesStubSettings()
-      throws Exception {
+  public static void syncAggregatedList() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     AddressesStubSettings.Builder addressesSettingsBuilder = AddressesStubSettings.newBuilder();
@@ -43,4 +42,4 @@ public static void aggregatedListSettingsSetRetrySettingsAddressesStubSettings()
     AddressesStubSettings addressesSettings = addressesSettingsBuilder.build();
   }
 }
-// [END compute_v1small_generated_addressesstubsettings_aggregatedlist_settingssetretrysettingsaddressesstubsettings_sync]
+// [END compute_v1small_generated_addressesstubsettings_aggregatedlist_sync]
diff --git a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/SyncGet.java
similarity index 82%
rename from test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java
rename to test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/SyncGet.java
index 3ef6a35fc1..ccb16e77cb 100644
--- a/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/GetSettingsSetRetrySettingsRegionOperationsStubSettings.java
+++ b/test/integration/goldens/compute/samples/generated/src/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/SyncGet.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.compute.v1small.stub.samples;
 
-// [START compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings_sync]
+// [START compute_v1small_generated_regionoperationsstubsettings_get_sync]
 import com.google.cloud.compute.v1small.stub.RegionOperationsStubSettings;
 import java.time.Duration;
 
-public class GetSettingsSetRetrySettingsRegionOperationsStubSettings {
+public class SyncGet {
 
   public static void main(String[] args) throws Exception {
-    getSettingsSetRetrySettingsRegionOperationsStubSettings();
+    syncGet();
   }
 
-  public static void getSettingsSetRetrySettingsRegionOperationsStubSettings() throws Exception {
+  public static void syncGet() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     RegionOperationsStubSettings.Builder regionOperationsSettingsBuilder =
@@ -43,4 +43,4 @@ public static void getSettingsSetRetrySettingsRegionOperationsStubSettings() thr
     RegionOperationsStubSettings regionOperationsSettings = regionOperationsSettingsBuilder.build();
   }
 }
-// [END compute_v1small_generated_regionoperationsstubsettings_get_settingssetretrysettingsregionoperationsstubsettings_sync]
+// [END compute_v1small_generated_regionoperationsstubsettings_get_sync]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/SyncCreateSetCredentialsProvider.java
index 793f58b33a..3417df5a97 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings1.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1_sync]
+// [START credentials_v1_generated_iamcredentialsclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.iam.credentials.v1.IamCredentialsClient;
 import com.google.cloud.iam.credentials.v1.IamCredentialsSettings;
 import com.google.cloud.iam.credentials.v1.myCredentials;
 
-public class CreateIamCredentialsSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createIamCredentialsSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createIamCredentialsSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IamCredentialsSettings iamCredentialsSettings =
@@ -38,4 +38,4 @@ public static void createIamCredentialsSettings1() throws Exception {
     IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings);
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings1_sync]
+// [END credentials_v1_generated_iamcredentialsclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/SyncCreateSetEndpoint.java
similarity index 79%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/SyncCreateSetEndpoint.java
index b66bee2ac2..74549be5b7 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/CreateIamCredentialsSettings2.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2_sync]
+// [START credentials_v1_generated_iamcredentialsclient_create_setendpoint_sync]
 import com.google.cloud.iam.credentials.v1.IamCredentialsClient;
 import com.google.cloud.iam.credentials.v1.IamCredentialsSettings;
 import com.google.cloud.iam.credentials.v1.myEndpoint;
 
-public class CreateIamCredentialsSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createIamCredentialsSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createIamCredentialsSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IamCredentialsSettings iamCredentialsSettings =
@@ -35,4 +35,4 @@ public static void createIamCredentialsSettings2() throws Exception {
     IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings);
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_create_iamcredentialssettings2_sync]
+// [END credentials_v1_generated_iamcredentialsclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/AsyncGenerateAccessToken.java
similarity index 84%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/AsyncGenerateAccessToken.java
index d995c3a5be..00650e2b2d 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/AsyncGenerateAccessToken.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest_sync]
+// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest;
 import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse;
@@ -25,14 +25,13 @@
 import com.google.protobuf.Duration;
 import java.util.ArrayList;
 
-public class GenerateAccessTokenCallableFutureCallGenerateAccessTokenRequest {
+public class AsyncGenerateAccessToken {
 
   public static void main(String[] args) throws Exception {
-    generateAccessTokenCallableFutureCallGenerateAccessTokenRequest();
+    asyncGenerateAccessToken();
   }
 
-  public static void generateAccessTokenCallableFutureCallGenerateAccessTokenRequest()
-      throws Exception {
+  public static void asyncGenerateAccessToken() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
@@ -50,4 +49,4 @@ public static void generateAccessTokenCallableFutureCallGenerateAccessTokenReque
     }
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_callablefuturecallgenerateaccesstokenrequest_sync]
+// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_async]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessToken.java
similarity index 86%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessToken.java
index 4801ac1829..093b6b9060 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenGenerateAccessTokenRequest.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessToken.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest_sync]
+// [START credentials_v1_generated_iamcredentialsclient_generateaccesstoken_sync]
 import com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest;
 import com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse;
 import com.google.cloud.iam.credentials.v1.IamCredentialsClient;
@@ -24,13 +24,13 @@
 import com.google.protobuf.Duration;
 import java.util.ArrayList;
 
-public class GenerateAccessTokenGenerateAccessTokenRequest {
+public class SyncGenerateAccessToken {
 
   public static void main(String[] args) throws Exception {
-    generateAccessTokenGenerateAccessTokenRequest();
+    syncGenerateAccessToken();
   }
 
-  public static void generateAccessTokenGenerateAccessTokenRequest() throws Exception {
+  public static void syncGenerateAccessToken() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
@@ -45,4 +45,4 @@ public static void generateAccessTokenGenerateAccessTokenRequest() throws Except
     }
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_generateaccesstokenrequest_sync]
+// [END credentials_v1_generated_iamcredentialsclient_generateaccesstoken_sync]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration.java
similarity index 88%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration.java
index 5d5a780e21..3d5089db5b 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenServiceAccountNameListStringListStringDuration.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration.java
@@ -24,13 +24,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class GenerateAccessTokenServiceAccountNameListStringListStringDuration {
+public class SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration {
 
   public static void main(String[] args) throws Exception {
-    generateAccessTokenServiceAccountNameListStringListStringDuration();
+    syncGenerateAccessTokenServiceaccountnameListstringListstringDuration();
   }
 
-  public static void generateAccessTokenServiceAccountNameListStringListStringDuration()
+  public static void syncGenerateAccessTokenServiceaccountnameListstringListstringDuration()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessTokenStringListstringListstringDuration.java
similarity index 88%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessTokenStringListstringListstringDuration.java
index 18d0c663b1..72d86179d3 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/GenerateAccessTokenStringListStringListStringDuration.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateaccesstoken/SyncGenerateAccessTokenStringListstringListstringDuration.java
@@ -24,13 +24,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class GenerateAccessTokenStringListStringListStringDuration {
+public class SyncGenerateAccessTokenStringListstringListstringDuration {
 
   public static void main(String[] args) throws Exception {
-    generateAccessTokenStringListStringListStringDuration();
+    syncGenerateAccessTokenStringListstringListstringDuration();
   }
 
-  public static void generateAccessTokenStringListStringListStringDuration() throws Exception {
+  public static void syncGenerateAccessTokenStringListstringListstringDuration() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/AsyncGenerateIdToken.java
similarity index 85%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/AsyncGenerateIdToken.java
index cf862890cb..64a1821b61 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenCallableFutureCallGenerateIdTokenRequest.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/AsyncGenerateIdToken.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest_sync]
+// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.iam.credentials.v1.GenerateIdTokenRequest;
 import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse;
@@ -24,13 +24,13 @@
 import com.google.cloud.iam.credentials.v1.ServiceAccountName;
 import java.util.ArrayList;
 
-public class GenerateIdTokenCallableFutureCallGenerateIdTokenRequest {
+public class AsyncGenerateIdToken {
 
   public static void main(String[] args) throws Exception {
-    generateIdTokenCallableFutureCallGenerateIdTokenRequest();
+    asyncGenerateIdToken();
   }
 
-  public static void generateIdTokenCallableFutureCallGenerateIdTokenRequest() throws Exception {
+  public static void asyncGenerateIdToken() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
@@ -48,4 +48,4 @@ public static void generateIdTokenCallableFutureCallGenerateIdTokenRequest() thr
     }
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_callablefuturecallgenerateidtokenrequest_sync]
+// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_async]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdToken.java
similarity index 87%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdToken.java
index cd0ac25fdb..5c10d0227a 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenGenerateIdTokenRequest.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdToken.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest_sync]
+// [START credentials_v1_generated_iamcredentialsclient_generateidtoken_sync]
 import com.google.cloud.iam.credentials.v1.GenerateIdTokenRequest;
 import com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse;
 import com.google.cloud.iam.credentials.v1.IamCredentialsClient;
 import com.google.cloud.iam.credentials.v1.ServiceAccountName;
 import java.util.ArrayList;
 
-public class GenerateIdTokenGenerateIdTokenRequest {
+public class SyncGenerateIdToken {
 
   public static void main(String[] args) throws Exception {
-    generateIdTokenGenerateIdTokenRequest();
+    syncGenerateIdToken();
   }
 
-  public static void generateIdTokenGenerateIdTokenRequest() throws Exception {
+  public static void syncGenerateIdToken() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
@@ -44,4 +44,4 @@ public static void generateIdTokenGenerateIdTokenRequest() throws Exception {
     }
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_generateidtokenrequest_sync]
+// [END credentials_v1_generated_iamcredentialsclient_generateidtoken_sync]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdTokenServiceaccountnameListstringStringBoolean.java
similarity index 87%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdTokenServiceaccountnameListstringStringBoolean.java
index 4d4a9051fc..f34fc96e7d 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenServiceAccountNameListStringStringBoolean.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdTokenServiceaccountnameListstringStringBoolean.java
@@ -23,13 +23,14 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class GenerateIdTokenServiceAccountNameListStringStringBoolean {
+public class SyncGenerateIdTokenServiceaccountnameListstringStringBoolean {
 
   public static void main(String[] args) throws Exception {
-    generateIdTokenServiceAccountNameListStringStringBoolean();
+    syncGenerateIdTokenServiceaccountnameListstringStringBoolean();
   }
 
-  public static void generateIdTokenServiceAccountNameListStringStringBoolean() throws Exception {
+  public static void syncGenerateIdTokenServiceaccountnameListstringStringBoolean()
+      throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdTokenStringListstringStringBoolean.java
similarity index 89%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdTokenStringListstringStringBoolean.java
index 68342dc23c..78a035114c 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/GenerateIdTokenStringListStringStringBoolean.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/generateidtoken/SyncGenerateIdTokenStringListstringStringBoolean.java
@@ -23,13 +23,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class GenerateIdTokenStringListStringStringBoolean {
+public class SyncGenerateIdTokenStringListstringStringBoolean {
 
   public static void main(String[] args) throws Exception {
-    generateIdTokenStringListStringStringBoolean();
+    syncGenerateIdTokenStringListstringStringBoolean();
   }
 
-  public static void generateIdTokenStringListStringStringBoolean() throws Exception {
+  public static void syncGenerateIdTokenStringListstringStringBoolean() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/AsyncSignBlob.java
similarity index 84%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/AsyncSignBlob.java
index 5380515ef0..57372a99fd 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobCallableFutureCallSignBlobRequest.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/AsyncSignBlob.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest_sync]
+// [START credentials_v1_generated_iamcredentialsclient_signblob_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.iam.credentials.v1.IamCredentialsClient;
 import com.google.cloud.iam.credentials.v1.ServiceAccountName;
@@ -25,13 +25,13 @@
 import com.google.protobuf.ByteString;
 import java.util.ArrayList;
 
-public class SignBlobCallableFutureCallSignBlobRequest {
+public class AsyncSignBlob {
 
   public static void main(String[] args) throws Exception {
-    signBlobCallableFutureCallSignBlobRequest();
+    asyncSignBlob();
   }
 
-  public static void signBlobCallableFutureCallSignBlobRequest() throws Exception {
+  public static void asyncSignBlob() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
@@ -48,4 +48,4 @@ public static void signBlobCallableFutureCallSignBlobRequest() throws Exception
     }
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_signblob_callablefuturecallsignblobrequest_sync]
+// [END credentials_v1_generated_iamcredentialsclient_signblob_async]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlob.java
similarity index 90%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlob.java
index c2ae2373a4..e78b4aa337 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobSignBlobRequest.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlob.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest_sync]
+// [START credentials_v1_generated_iamcredentialsclient_signblob_sync]
 import com.google.cloud.iam.credentials.v1.IamCredentialsClient;
 import com.google.cloud.iam.credentials.v1.ServiceAccountName;
 import com.google.cloud.iam.credentials.v1.SignBlobRequest;
@@ -24,13 +24,13 @@
 import com.google.protobuf.ByteString;
 import java.util.ArrayList;
 
-public class SignBlobSignBlobRequest {
+public class SyncSignBlob {
 
   public static void main(String[] args) throws Exception {
-    signBlobSignBlobRequest();
+    syncSignBlob();
   }
 
-  public static void signBlobSignBlobRequest() throws Exception {
+  public static void syncSignBlob() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
@@ -44,4 +44,4 @@ public static void signBlobSignBlobRequest() throws Exception {
     }
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_signblob_signblobrequest_sync]
+// [END credentials_v1_generated_iamcredentialsclient_signblob_sync]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlobServiceaccountnameListstringBytestring.java
similarity index 88%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlobServiceaccountnameListstringBytestring.java
index f14026d381..91fc918d75 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobServiceAccountNameListStringByteString.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlobServiceaccountnameListstringBytestring.java
@@ -24,13 +24,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class SignBlobServiceAccountNameListStringByteString {
+public class SyncSignBlobServiceaccountnameListstringBytestring {
 
   public static void main(String[] args) throws Exception {
-    signBlobServiceAccountNameListStringByteString();
+    syncSignBlobServiceaccountnameListstringBytestring();
   }
 
-  public static void signBlobServiceAccountNameListStringByteString() throws Exception {
+  public static void syncSignBlobServiceaccountnameListstringBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlobStringListstringBytestring.java
similarity index 90%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlobStringListstringBytestring.java
index 2c04bd4332..935744eaf8 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SignBlobStringListStringByteString.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signblob/SyncSignBlobStringListstringBytestring.java
@@ -24,13 +24,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class SignBlobStringListStringByteString {
+public class SyncSignBlobStringListstringBytestring {
 
   public static void main(String[] args) throws Exception {
-    signBlobStringListStringByteString();
+    syncSignBlobStringListstringBytestring();
   }
 
-  public static void signBlobStringListStringByteString() throws Exception {
+  public static void syncSignBlobStringListstringBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/AsyncSignJwt.java
similarity index 84%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/AsyncSignJwt.java
index 0ecbaf1780..3cf757ce7c 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtCallableFutureCallSignJwtRequest.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/AsyncSignJwt.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest_sync]
+// [START credentials_v1_generated_iamcredentialsclient_signjwt_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.iam.credentials.v1.IamCredentialsClient;
 import com.google.cloud.iam.credentials.v1.ServiceAccountName;
@@ -24,13 +24,13 @@
 import com.google.cloud.iam.credentials.v1.SignJwtResponse;
 import java.util.ArrayList;
 
-public class SignJwtCallableFutureCallSignJwtRequest {
+public class AsyncSignJwt {
 
   public static void main(String[] args) throws Exception {
-    signJwtCallableFutureCallSignJwtRequest();
+    asyncSignJwt();
   }
 
-  public static void signJwtCallableFutureCallSignJwtRequest() throws Exception {
+  public static void asyncSignJwt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
@@ -47,4 +47,4 @@ public static void signJwtCallableFutureCallSignJwtRequest() throws Exception {
     }
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_signjwt_callablefuturecallsignjwtrequest_sync]
+// [END credentials_v1_generated_iamcredentialsclient_signjwt_async]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwt.java
similarity index 87%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwt.java
index 05492a152f..bc9f5cf168 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtSignJwtRequest.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwt.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest_sync]
+// [START credentials_v1_generated_iamcredentialsclient_signjwt_sync]
 import com.google.cloud.iam.credentials.v1.IamCredentialsClient;
 import com.google.cloud.iam.credentials.v1.ServiceAccountName;
 import com.google.cloud.iam.credentials.v1.SignJwtRequest;
 import com.google.cloud.iam.credentials.v1.SignJwtResponse;
 import java.util.ArrayList;
 
-public class SignJwtSignJwtRequest {
+public class SyncSignJwt {
 
   public static void main(String[] args) throws Exception {
-    signJwtSignJwtRequest();
+    syncSignJwt();
   }
 
-  public static void signJwtSignJwtRequest() throws Exception {
+  public static void syncSignJwt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
@@ -43,4 +43,4 @@ public static void signJwtSignJwtRequest() throws Exception {
     }
   }
 }
-// [END credentials_v1_generated_iamcredentialsclient_signjwt_signjwtrequest_sync]
+// [END credentials_v1_generated_iamcredentialsclient_signjwt_sync]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwtServiceaccountnameListstringString.java
similarity index 89%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwtServiceaccountnameListstringString.java
index b03e820ea1..28f73bb95c 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtServiceAccountNameListStringString.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwtServiceaccountnameListstringString.java
@@ -23,13 +23,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class SignJwtServiceAccountNameListStringString {
+public class SyncSignJwtServiceaccountnameListstringString {
 
   public static void main(String[] args) throws Exception {
-    signJwtServiceAccountNameListStringString();
+    syncSignJwtServiceaccountnameListstringString();
   }
 
-  public static void signJwtServiceAccountNameListStringString() throws Exception {
+  public static void syncSignJwtServiceaccountnameListstringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwtStringListstringString.java
similarity index 90%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwtStringListstringString.java
index 464fdb7684..5caddb6f72 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SignJwtStringListStringString.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialsclient/signjwt/SyncSignJwtStringListstringString.java
@@ -23,13 +23,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class SignJwtStringListStringString {
+public class SyncSignJwtStringListstringString {
 
   public static void main(String[] args) throws Exception {
-    signJwtStringListStringString();
+    syncSignJwtStringListstringString();
   }
 
-  public static void signJwtStringListStringString() throws Exception {
+  public static void syncSignJwtStringListstringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/SyncGenerateAccessToken.java
similarity index 80%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/SyncGenerateAccessToken.java
index 1e02bc2ca4..3360cd50c9 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/SyncGenerateAccessToken.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.iam.credentials.v1.samples;
 
-// [START credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings_sync]
+// [START credentials_v1_generated_iamcredentialssettings_generateaccesstoken_sync]
 import com.google.cloud.iam.credentials.v1.IamCredentialsSettings;
 import java.time.Duration;
 
-public class GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings {
+public class SyncGenerateAccessToken {
 
   public static void main(String[] args) throws Exception {
-    generateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings();
+    syncGenerateAccessToken();
   }
 
-  public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsSettings()
-      throws Exception {
+  public static void syncGenerateAccessToken() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IamCredentialsSettings.Builder iamCredentialsSettingsBuilder =
@@ -44,4 +43,4 @@ public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsSett
     IamCredentialsSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build();
   }
 }
-// [END credentials_v1_generated_iamcredentialssettings_generateaccesstoken_settingssetretrysettingsiamcredentialssettings_sync]
+// [END credentials_v1_generated_iamcredentialssettings_generateaccesstoken_sync]
diff --git a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/SyncGenerateAccessToken.java
similarity index 79%
rename from test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java
rename to test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/SyncGenerateAccessToken.java
index 8c4591d382..0891aa0550 100644
--- a/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings.java
+++ b/test/integration/goldens/credentials/samples/generated/src/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/SyncGenerateAccessToken.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.iam.credentials.v1.stub.samples;
 
-// [START credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings_sync]
+// [START credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_sync]
 import com.google.cloud.iam.credentials.v1.stub.IamCredentialsStubSettings;
 import java.time.Duration;
 
-public class GenerateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings {
+public class SyncGenerateAccessToken {
 
   public static void main(String[] args) throws Exception {
-    generateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings();
+    syncGenerateAccessToken();
   }
 
-  public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsStubSettings()
-      throws Exception {
+  public static void syncGenerateAccessToken() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IamCredentialsStubSettings.Builder iamCredentialsSettingsBuilder =
@@ -44,4 +43,4 @@ public static void generateAccessTokenSettingsSetRetrySettingsIamCredentialsStub
     IamCredentialsStubSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build();
   }
 }
-// [END credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_settingssetretrysettingsiamcredentialsstubsettings_sync]
+// [END credentials_v1_generated_iamcredentialsstubsettings_generateaccesstoken_sync]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/SyncCreateSetCredentialsProvider.java
index c242623c0b..8c2748947d 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings1.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicyclient_create_iampolicysettings1_sync]
+// [START iam_v1_generated_iampolicyclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.iam.v1.IAMPolicyClient;
 import com.google.iam.v1.IAMPolicySettings;
 import com.google.iam.v1.myCredentials;
 
-public class CreateIAMPolicySettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createIAMPolicySettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createIAMPolicySettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IAMPolicySettings iAMPolicySettings =
@@ -38,4 +38,4 @@ public static void createIAMPolicySettings1() throws Exception {
     IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings);
   }
 }
-// [END iam_v1_generated_iampolicyclient_create_iampolicysettings1_sync]
+// [END iam_v1_generated_iampolicyclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/SyncCreateSetEndpoint.java
similarity index 80%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/SyncCreateSetEndpoint.java
index 37d4fecc72..34ab770360 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/CreateIAMPolicySettings2.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicyclient_create_iampolicysettings2_sync]
+// [START iam_v1_generated_iampolicyclient_create_setendpoint_sync]
 import com.google.iam.v1.IAMPolicyClient;
 import com.google.iam.v1.IAMPolicySettings;
 import com.google.iam.v1.myEndpoint;
 
-public class CreateIAMPolicySettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createIAMPolicySettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createIAMPolicySettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IAMPolicySettings iAMPolicySettings =
@@ -35,4 +35,4 @@ public static void createIAMPolicySettings2() throws Exception {
     IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings);
   }
 }
-// [END iam_v1_generated_iampolicyclient_create_iampolicysettings2_sync]
+// [END iam_v1_generated_iampolicyclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 78%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/AsyncGetIamPolicy.java
index d73686f07b..ce611b870a 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/AsyncGetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [START iam_v1_generated_iampolicyclient_getiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.GetPolicyOptions;
 import com.google.iam.v1.IAMPolicyClient;
 import com.google.iam.v1.Policy;
 
-public class GetIamPolicyCallableFutureCallGetIamPolicyRequest {
+public class AsyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyCallableFutureCallGetIamPolicyRequest();
+    asyncGetIamPolicy();
   }
 
-  public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception {
+  public static void asyncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
@@ -44,4 +44,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END iam_v1_generated_iampolicyclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [END iam_v1_generated_iampolicyclient_getiampolicy_async]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/SyncGetIamPolicy.java
similarity index 81%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/SyncGetIamPolicy.java
index ab462d4d9c..620f8e8f07 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/getiampolicy/SyncGetIamPolicy.java
@@ -16,19 +16,19 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest_sync]
+// [START iam_v1_generated_iampolicyclient_getiampolicy_sync]
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.GetPolicyOptions;
 import com.google.iam.v1.IAMPolicyClient;
 import com.google.iam.v1.Policy;
 
-public class GetIamPolicyGetIamPolicyRequest {
+public class SyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyGetIamPolicyRequest();
+    syncGetIamPolicy();
   }
 
-  public static void getIamPolicyGetIamPolicyRequest() throws Exception {
+  public static void syncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
@@ -41,4 +41,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END iam_v1_generated_iampolicyclient_getiampolicy_getiampolicyrequest_sync]
+// [END iam_v1_generated_iampolicyclient_getiampolicy_sync]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 78%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/AsyncSetIamPolicy.java
index 706b354352..99e62e3d90 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/AsyncSetIamPolicy.java
@@ -16,19 +16,19 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [START iam_v1_generated_iampolicyclient_setiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.iam.v1.IAMPolicyClient;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 
-public class SetIamPolicyCallableFutureCallSetIamPolicyRequest {
+public class AsyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicyCallableFutureCallSetIamPolicyRequest();
+    asyncSetIamPolicy();
   }
 
-  public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception {
+  public static void asyncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
@@ -43,4 +43,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END iam_v1_generated_iampolicyclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [END iam_v1_generated_iampolicyclient_setiampolicy_async]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SyncSetIamPolicy.java
similarity index 80%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SyncSetIamPolicy.java
index 5c84b5cf14..866c9fc1a3 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/setiampolicy/SyncSetIamPolicy.java
@@ -16,18 +16,18 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest_sync]
+// [START iam_v1_generated_iampolicyclient_setiampolicy_sync]
 import com.google.iam.v1.IAMPolicyClient;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 
-public class SetIamPolicySetIamPolicyRequest {
+public class SyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicySetIamPolicyRequest();
+    syncSetIamPolicy();
   }
 
-  public static void setIamPolicySetIamPolicyRequest() throws Exception {
+  public static void syncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
@@ -40,4 +40,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END iam_v1_generated_iampolicyclient_setiampolicy_setiampolicyrequest_sync]
+// [END iam_v1_generated_iampolicyclient_setiampolicy_sync]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 77%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/AsyncTestIamPermissions.java
index 42a63935a9..aef6002de7 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/AsyncTestIamPermissions.java
@@ -16,21 +16,20 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [START iam_v1_generated_iampolicyclient_testiampermissions_async]
 import com.google.api.core.ApiFuture;
 import com.google.iam.v1.IAMPolicyClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
 import java.util.ArrayList;
 
-public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest {
+public class AsyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsCallableFutureCallTestIamPermissionsRequest();
+    asyncTestIamPermissions();
   }
 
-  public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest()
-      throws Exception {
+  public static void asyncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
@@ -46,4 +45,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest
     }
   }
 }
-// [END iam_v1_generated_iampolicyclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [END iam_v1_generated_iampolicyclient_testiampermissions_async]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/SyncTestIamPermissions.java
similarity index 79%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/SyncTestIamPermissions.java
index aed1c852d2..30ea800cd3 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicyclient/testiampermissions/SyncTestIamPermissions.java
@@ -16,19 +16,19 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest_sync]
+// [START iam_v1_generated_iampolicyclient_testiampermissions_sync]
 import com.google.iam.v1.IAMPolicyClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
 import java.util.ArrayList;
 
-public class TestIamPermissionsTestIamPermissionsRequest {
+public class SyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsTestIamPermissionsRequest();
+    syncTestIamPermissions();
   }
 
-  public static void testIamPermissionsTestIamPermissionsRequest() throws Exception {
+  public static void syncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
@@ -41,4 +41,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio
     }
   }
 }
-// [END iam_v1_generated_iampolicyclient_testiampermissions_testiampermissionsrequest_sync]
+// [END iam_v1_generated_iampolicyclient_testiampermissions_sync]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SyncSetIamPolicy.java
similarity index 76%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SyncSetIamPolicy.java
index 0554ded03e..97a3125aa9 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicySettings.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/iampolicysettings/setiampolicy/SyncSetIamPolicy.java
@@ -16,17 +16,17 @@
 
 package com.google.iam.v1.samples;
 
-// [START iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings_sync]
+// [START iam_v1_generated_iampolicysettings_setiampolicy_sync]
 import com.google.iam.v1.IAMPolicySettings;
 import java.time.Duration;
 
-public class SetIamPolicySettingsSetRetrySettingsIAMPolicySettings {
+public class SyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicySettingsSetRetrySettingsIAMPolicySettings();
+    syncSetIamPolicy();
   }
 
-  public static void setIamPolicySettingsSetRetrySettingsIAMPolicySettings() throws Exception {
+  public static void syncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IAMPolicySettings.Builder iAMPolicySettingsBuilder = IAMPolicySettings.newBuilder();
@@ -42,4 +42,4 @@ public static void setIamPolicySettingsSetRetrySettingsIAMPolicySettings() throw
     IAMPolicySettings iAMPolicySettings = iAMPolicySettingsBuilder.build();
   }
 }
-// [END iam_v1_generated_iampolicysettings_setiampolicy_settingssetretrysettingsiampolicysettings_sync]
+// [END iam_v1_generated_iampolicysettings_setiampolicy_sync]
diff --git a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SyncSetIamPolicy.java
similarity index 75%
rename from test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java
rename to test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SyncSetIamPolicy.java
index 674a067cd8..080c2c8a7b 100644
--- a/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings.java
+++ b/test/integration/goldens/iam/samples/generated/src/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SyncSetIamPolicy.java
@@ -16,17 +16,17 @@
 
 package com.google.iam.v1.stub.samples;
 
-// [START iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings_sync]
+// [START iam_v1_generated_iampolicystubsettings_setiampolicy_sync]
 import com.google.iam.v1.stub.IAMPolicyStubSettings;
 import java.time.Duration;
 
-public class SetIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings {
+public class SyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings();
+    syncSetIamPolicy();
   }
 
-  public static void setIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings() throws Exception {
+  public static void syncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IAMPolicyStubSettings.Builder iAMPolicySettingsBuilder = IAMPolicyStubSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void setIamPolicySettingsSetRetrySettingsIAMPolicyStubSettings() t
     IAMPolicyStubSettings iAMPolicySettings = iAMPolicySettingsBuilder.build();
   }
 }
-// [END iam_v1_generated_iampolicystubsettings_setiampolicy_settingssetretrysettingsiampolicystubsettings_sync]
+// [END iam_v1_generated_iampolicystubsettings_setiampolicy_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsyncAsymmetricDecrypt.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsyncAsymmetricDecrypt.java
index 1ae24d6cc1..d2d323b4fd 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsyncAsymmetricDecrypt.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.AsymmetricDecryptRequest;
 import com.google.cloud.kms.v1.AsymmetricDecryptResponse;
@@ -25,14 +25,13 @@
 import com.google.protobuf.ByteString;
 import com.google.protobuf.Int64Value;
 
-public class AsymmetricDecryptCallableFutureCallAsymmetricDecryptRequest {
+public class AsyncAsymmetricDecrypt {
 
   public static void main(String[] args) throws Exception {
-    asymmetricDecryptCallableFutureCallAsymmetricDecryptRequest();
+    asyncAsymmetricDecrypt();
   }
 
-  public static void asymmetricDecryptCallableFutureCallAsymmetricDecryptRequest()
-      throws Exception {
+  public static void asyncAsymmetricDecrypt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -57,4 +56,4 @@ public static void asymmetricDecryptCallableFutureCallAsymmetricDecryptRequest()
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_callablefuturecallasymmetricdecryptrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecrypt.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecrypt.java
index 82607836d7..efda2ce9f8 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptAsymmetricDecryptRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecrypt.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_sync]
 import com.google.cloud.kms.v1.AsymmetricDecryptRequest;
 import com.google.cloud.kms.v1.AsymmetricDecryptResponse;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
@@ -24,13 +24,13 @@
 import com.google.protobuf.ByteString;
 import com.google.protobuf.Int64Value;
 
-public class AsymmetricDecryptAsymmetricDecryptRequest {
+public class SyncAsymmetricDecrypt {
 
   public static void main(String[] args) throws Exception {
-    asymmetricDecryptAsymmetricDecryptRequest();
+    syncAsymmetricDecrypt();
   }
 
-  public static void asymmetricDecryptAsymmetricDecryptRequest() throws Exception {
+  public static void syncAsymmetricDecrypt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -52,4 +52,4 @@ public static void asymmetricDecryptAsymmetricDecryptRequest() throws Exception
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_asymmetricdecryptrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_asymmetricdecrypt_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java
index 644be89c61..5737897324 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptCryptoKeyVersionNameByteString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java
@@ -22,13 +22,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.ByteString;
 
-public class AsymmetricDecryptCryptoKeyVersionNameByteString {
+public class SyncAsymmetricDecryptCryptokeyversionnameBytestring {
 
   public static void main(String[] args) throws Exception {
-    asymmetricDecryptCryptoKeyVersionNameByteString();
+    syncAsymmetricDecryptCryptokeyversionnameBytestring();
   }
 
-  public static void asymmetricDecryptCryptoKeyVersionNameByteString() throws Exception {
+  public static void syncAsymmetricDecryptCryptokeyversionnameBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java
similarity index 90%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java
index 87621a205c..7aac61a879 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/AsymmetricDecryptStringByteString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java
@@ -22,13 +22,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.ByteString;
 
-public class AsymmetricDecryptStringByteString {
+public class SyncAsymmetricDecryptStringBytestring {
 
   public static void main(String[] args) throws Exception {
-    asymmetricDecryptStringByteString();
+    syncAsymmetricDecryptStringBytestring();
   }
 
-  public static void asymmetricDecryptStringByteString() throws Exception {
+  public static void syncAsymmetricDecryptStringBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsyncAsymmetricSign.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsyncAsymmetricSign.java
index 007f9ab619..ec6c21328a 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCallableFutureCallAsymmetricSignRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsyncAsymmetricSign.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.AsymmetricSignRequest;
 import com.google.cloud.kms.v1.AsymmetricSignResponse;
@@ -25,13 +25,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.Int64Value;
 
-public class AsymmetricSignCallableFutureCallAsymmetricSignRequest {
+public class AsyncAsymmetricSign {
 
   public static void main(String[] args) throws Exception {
-    asymmetricSignCallableFutureCallAsymmetricSignRequest();
+    asyncAsymmetricSign();
   }
 
-  public static void asymmetricSignCallableFutureCallAsymmetricSignRequest() throws Exception {
+  public static void asyncAsymmetricSign() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -56,4 +56,4 @@ public static void asymmetricSignCallableFutureCallAsymmetricSignRequest() throw
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_callablefuturecallasymmetricsignrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSign.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSign.java
index 0e169e946f..b9710e7ee6 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignAsymmetricSignRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSign.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_asymmetricsign_sync]
 import com.google.cloud.kms.v1.AsymmetricSignRequest;
 import com.google.cloud.kms.v1.AsymmetricSignResponse;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
@@ -24,13 +24,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.Int64Value;
 
-public class AsymmetricSignAsymmetricSignRequest {
+public class SyncAsymmetricSign {
 
   public static void main(String[] args) throws Exception {
-    asymmetricSignAsymmetricSignRequest();
+    syncAsymmetricSign();
   }
 
-  public static void asymmetricSignAsymmetricSignRequest() throws Exception {
+  public static void syncAsymmetricSign() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -52,4 +52,4 @@ public static void asymmetricSignAsymmetricSignRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_asymmetricsignrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_asymmetricsign_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java
index 5038121288..ffb27fb3f2 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignCryptoKeyVersionNameDigest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java
@@ -22,13 +22,13 @@
 import com.google.cloud.kms.v1.Digest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class AsymmetricSignCryptoKeyVersionNameDigest {
+public class SyncAsymmetricSignCryptokeyversionnameDigest {
 
   public static void main(String[] args) throws Exception {
-    asymmetricSignCryptoKeyVersionNameDigest();
+    syncAsymmetricSignCryptokeyversionnameDigest();
   }
 
-  public static void asymmetricSignCryptoKeyVersionNameDigest() throws Exception {
+  public static void syncAsymmetricSignCryptokeyversionnameDigest() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSignStringDigest.java
similarity index 91%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSignStringDigest.java
index 724416c830..51c506b210 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/AsymmetricSignStringDigest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/asymmetricsign/SyncAsymmetricSignStringDigest.java
@@ -22,13 +22,13 @@
 import com.google.cloud.kms.v1.Digest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class AsymmetricSignStringDigest {
+public class SyncAsymmetricSignStringDigest {
 
   public static void main(String[] args) throws Exception {
-    asymmetricSignStringDigest();
+    syncAsymmetricSignStringDigest();
   }
 
-  public static void asymmetricSignStringDigest() throws Exception {
+  public static void syncAsymmetricSignStringDigest() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/SyncCreateSetCredentialsProvider.java
similarity index 79%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/SyncCreateSetCredentialsProvider.java
index a690bc4529..a3b313fc57 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings1.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1_sync]
+// [START kms_v1_generated_keymanagementserviceclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyManagementServiceSettings;
 import com.google.cloud.kms.v1.myCredentials;
 
-public class CreateKeyManagementServiceSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createKeyManagementServiceSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createKeyManagementServiceSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     KeyManagementServiceSettings keyManagementServiceSettings =
@@ -39,4 +39,4 @@ public static void createKeyManagementServiceSettings1() throws Exception {
         KeyManagementServiceClient.create(keyManagementServiceSettings);
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings1_sync]
+// [END kms_v1_generated_keymanagementserviceclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/SyncCreateSetEndpoint.java
similarity index 78%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/SyncCreateSetEndpoint.java
index 1866d5e17a..a3f0de93c2 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/CreateKeyManagementServiceSettings2.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2_sync]
+// [START kms_v1_generated_keymanagementserviceclient_create_setendpoint_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyManagementServiceSettings;
 import com.google.cloud.kms.v1.myEndpoint;
 
-public class CreateKeyManagementServiceSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createKeyManagementServiceSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createKeyManagementServiceSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     KeyManagementServiceSettings keyManagementServiceSettings =
@@ -36,4 +36,4 @@ public static void createKeyManagementServiceSettings2() throws Exception {
         KeyManagementServiceClient.create(keyManagementServiceSettings);
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_create_keymanagementservicesettings2_sync]
+// [END kms_v1_generated_keymanagementserviceclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/AsyncCreateCryptoKey.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/AsyncCreateCryptoKey.java
index 4ddb788471..219a4e0bcd 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/AsyncCreateCryptoKey.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CreateCryptoKeyRequest;
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class CreateCryptoKeyCallableFutureCallCreateCryptoKeyRequest {
+public class AsyncCreateCryptoKey {
 
   public static void main(String[] args) throws Exception {
-    createCryptoKeyCallableFutureCallCreateCryptoKeyRequest();
+    asyncCreateCryptoKey();
   }
 
-  public static void createCryptoKeyCallableFutureCallCreateCryptoKeyRequest() throws Exception {
+  public static void asyncCreateCryptoKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -48,4 +48,4 @@ public static void createCryptoKeyCallableFutureCallCreateCryptoKeyRequest() thr
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_callablefuturecallcreatecryptokeyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKey.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKey.java
index 983f1bb2f4..0fd2282f0d 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyCreateCryptoKeyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKey.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_createcryptokey_sync]
 import com.google.cloud.kms.v1.CreateCryptoKeyRequest;
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class CreateCryptoKeyCreateCryptoKeyRequest {
+public class SyncCreateCryptoKey {
 
   public static void main(String[] args) throws Exception {
-    createCryptoKeyCreateCryptoKeyRequest();
+    syncCreateCryptoKey();
   }
 
-  public static void createCryptoKeyCreateCryptoKeyRequest() throws Exception {
+  public static void syncCreateCryptoKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -44,4 +44,4 @@ public static void createCryptoKeyCreateCryptoKeyRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_createcryptokeyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_createcryptokey_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java
index b7c273f0c4..9719174a49 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyKeyRingNameStringCryptoKey.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class CreateCryptoKeyKeyRingNameStringCryptoKey {
+public class SyncCreateCryptoKeyKeyringnameStringCryptokey {
 
   public static void main(String[] args) throws Exception {
-    createCryptoKeyKeyRingNameStringCryptoKey();
+    syncCreateCryptoKeyKeyringnameStringCryptokey();
   }
 
-  public static void createCryptoKeyKeyRingNameStringCryptoKey() throws Exception {
+  public static void syncCreateCryptoKeyKeyringnameStringCryptokey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java
index 3558f6db1c..064c0938ed 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/CreateCryptoKeyStringStringCryptoKey.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class CreateCryptoKeyStringStringCryptoKey {
+public class SyncCreateCryptoKeyStringStringCryptokey {
 
   public static void main(String[] args) throws Exception {
-    createCryptoKeyStringStringCryptoKey();
+    syncCreateCryptoKeyStringStringCryptokey();
   }
 
-  public static void createCryptoKeyStringStringCryptoKey() throws Exception {
+  public static void syncCreateCryptoKeyStringStringCryptokey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java
similarity index 82%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java
index 153706b49f..154d4cbd6b 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class CreateCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest {
+public class AsyncCreateCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    createCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest();
+    asyncCreateCryptoKeyVersion();
   }
 
-  public static void createCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersionRequest()
-      throws Exception {
+  public static void asyncCreateCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -49,4 +48,4 @@ public static void createCryptoKeyVersionCallableFutureCallCreateCryptoKeyVersio
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_callablefuturecallcreatecryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersion.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersion.java
index 3bcae4ad0e..0d6d7e8cb7 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCreateCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_sync]
 import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class CreateCryptoKeyVersionCreateCryptoKeyVersionRequest {
+public class SyncCreateCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    createCryptoKeyVersionCreateCryptoKeyVersionRequest();
+    syncCreateCryptoKeyVersion();
   }
 
-  public static void createCryptoKeyVersionCreateCryptoKeyVersionRequest() throws Exception {
+  public static void syncCreateCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -44,4 +44,4 @@ public static void createCryptoKeyVersionCreateCryptoKeyVersionRequest() throws
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_createcryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_createcryptokeyversion_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java
index 177ba5a4fb..bd08598303 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class CreateCryptoKeyVersionCryptoKeyNameCryptoKeyVersion {
+public class SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion {
 
   public static void main(String[] args) throws Exception {
-    createCryptoKeyVersionCryptoKeyNameCryptoKeyVersion();
+    syncCreateCryptoKeyVersionCryptokeynameCryptokeyversion();
   }
 
-  public static void createCryptoKeyVersionCryptoKeyNameCryptoKeyVersion() throws Exception {
+  public static void syncCreateCryptoKeyVersionCryptokeynameCryptokeyversion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java
index f514bef3ad..6991e442ad 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/CreateCryptoKeyVersionStringCryptoKeyVersion.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class CreateCryptoKeyVersionStringCryptoKeyVersion {
+public class SyncCreateCryptoKeyVersionStringCryptokeyversion {
 
   public static void main(String[] args) throws Exception {
-    createCryptoKeyVersionStringCryptoKeyVersion();
+    syncCreateCryptoKeyVersionStringCryptokeyversion();
   }
 
-  public static void createCryptoKeyVersionStringCryptoKeyVersion() throws Exception {
+  public static void syncCreateCryptoKeyVersionStringCryptokeyversion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/AsyncCreateImportJob.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/AsyncCreateImportJob.java
index 74dc96cc68..2358cca240 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCallableFutureCallCreateImportJobRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/AsyncCreateImportJob.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_createimportjob_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CreateImportJobRequest;
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class CreateImportJobCallableFutureCallCreateImportJobRequest {
+public class AsyncCreateImportJob {
 
   public static void main(String[] args) throws Exception {
-    createImportJobCallableFutureCallCreateImportJobRequest();
+    asyncCreateImportJob();
   }
 
-  public static void createImportJobCallableFutureCallCreateImportJobRequest() throws Exception {
+  public static void asyncCreateImportJob() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -47,4 +47,4 @@ public static void createImportJobCallableFutureCallCreateImportJobRequest() thr
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_createimportjob_callablefuturecallcreateimportjobrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_createimportjob_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJob.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJob.java
index fa113e2249..576caadd29 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobCreateImportJobRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJob.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_createimportjob_sync]
 import com.google.cloud.kms.v1.CreateImportJobRequest;
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class CreateImportJobCreateImportJobRequest {
+public class SyncCreateImportJob {
 
   public static void main(String[] args) throws Exception {
-    createImportJobCreateImportJobRequest();
+    syncCreateImportJob();
   }
 
-  public static void createImportJobCreateImportJobRequest() throws Exception {
+  public static void syncCreateImportJob() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -43,4 +43,4 @@ public static void createImportJobCreateImportJobRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_createimportjob_createimportjobrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_createimportjob_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java
index 6503de2e49..ceddcf404a 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobKeyRingNameStringImportJob.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class CreateImportJobKeyRingNameStringImportJob {
+public class SyncCreateImportJobKeyringnameStringImportjob {
 
   public static void main(String[] args) throws Exception {
-    createImportJobKeyRingNameStringImportJob();
+    syncCreateImportJobKeyringnameStringImportjob();
   }
 
-  public static void createImportJobKeyRingNameStringImportJob() throws Exception {
+  public static void syncCreateImportJobKeyringnameStringImportjob() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJobStringStringImportjob.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJobStringStringImportjob.java
index 23190c97fb..2ecd330cef 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/CreateImportJobStringStringImportJob.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createimportjob/SyncCreateImportJobStringStringImportjob.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class CreateImportJobStringStringImportJob {
+public class SyncCreateImportJobStringStringImportjob {
 
   public static void main(String[] args) throws Exception {
-    createImportJobStringStringImportJob();
+    syncCreateImportJobStringStringImportjob();
   }
 
-  public static void createImportJobStringStringImportJob() throws Exception {
+  public static void syncCreateImportJobStringStringImportjob() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/AsyncCreateKeyRing.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/AsyncCreateKeyRing.java
index fe73c50d45..b36032047e 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCallableFutureCallCreateKeyRingRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/AsyncCreateKeyRing.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_createkeyring_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CreateKeyRingRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.LocationName;
 
-public class CreateKeyRingCallableFutureCallCreateKeyRingRequest {
+public class AsyncCreateKeyRing {
 
   public static void main(String[] args) throws Exception {
-    createKeyRingCallableFutureCallCreateKeyRingRequest();
+    asyncCreateKeyRing();
   }
 
-  public static void createKeyRingCallableFutureCallCreateKeyRingRequest() throws Exception {
+  public static void asyncCreateKeyRing() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -47,4 +47,4 @@ public static void createKeyRingCallableFutureCallCreateKeyRingRequest() throws
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_createkeyring_callablefuturecallcreatekeyringrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_createkeyring_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRing.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRing.java
index 1f3e666f31..72e5346542 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingCreateKeyRingRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRing.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_createkeyring_sync]
 import com.google.cloud.kms.v1.CreateKeyRingRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.LocationName;
 
-public class CreateKeyRingCreateKeyRingRequest {
+public class SyncCreateKeyRing {
 
   public static void main(String[] args) throws Exception {
-    createKeyRingCreateKeyRingRequest();
+    syncCreateKeyRing();
   }
 
-  public static void createKeyRingCreateKeyRingRequest() throws Exception {
+  public static void syncCreateKeyRing() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -43,4 +43,4 @@ public static void createKeyRingCreateKeyRingRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_createkeyring_createkeyringrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_createkeyring_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java
index 640b57309e..22e239058e 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingLocationNameStringKeyRing.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.LocationName;
 
-public class CreateKeyRingLocationNameStringKeyRing {
+public class SyncCreateKeyRingLocationnameStringKeyring {
 
   public static void main(String[] args) throws Exception {
-    createKeyRingLocationNameStringKeyRing();
+    syncCreateKeyRingLocationnameStringKeyring();
   }
 
-  public static void createKeyRingLocationNameStringKeyRing() throws Exception {
+  public static void syncCreateKeyRingLocationnameStringKeyring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRingStringStringKeyring.java
similarity index 90%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRingStringStringKeyring.java
index fe62c3ee3c..f1b4a3fa90 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/CreateKeyRingStringStringKeyRing.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/createkeyring/SyncCreateKeyRingStringStringKeyring.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.LocationName;
 
-public class CreateKeyRingStringStringKeyRing {
+public class SyncCreateKeyRingStringStringKeyring {
 
   public static void main(String[] args) throws Exception {
-    createKeyRingStringStringKeyRing();
+    syncCreateKeyRingStringStringKeyring();
   }
 
-  public static void createKeyRingStringStringKeyRing() throws Exception {
+  public static void syncCreateKeyRingStringStringKeyring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/AsyncDecrypt.java
similarity index 83%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/AsyncDecrypt.java
index 5e511e4551..9e58b15613 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCallableFutureCallDecryptRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/AsyncDecrypt.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_decrypt_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.DecryptRequest;
@@ -25,13 +25,13 @@
 import com.google.protobuf.ByteString;
 import com.google.protobuf.Int64Value;
 
-public class DecryptCallableFutureCallDecryptRequest {
+public class AsyncDecrypt {
 
   public static void main(String[] args) throws Exception {
-    decryptCallableFutureCallDecryptRequest();
+    asyncDecrypt();
   }
 
-  public static void decryptCallableFutureCallDecryptRequest() throws Exception {
+  public static void asyncDecrypt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -53,4 +53,4 @@ public static void decryptCallableFutureCallDecryptRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_decrypt_callablefuturecalldecryptrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_decrypt_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecrypt.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecrypt.java
index 164077eb26..ede2128825 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptDecryptRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecrypt.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_decrypt_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.DecryptRequest;
 import com.google.cloud.kms.v1.DecryptResponse;
@@ -24,13 +24,13 @@
 import com.google.protobuf.ByteString;
 import com.google.protobuf.Int64Value;
 
-public class DecryptDecryptRequest {
+public class SyncDecrypt {
 
   public static void main(String[] args) throws Exception {
-    decryptDecryptRequest();
+    syncDecrypt();
   }
 
-  public static void decryptDecryptRequest() throws Exception {
+  public static void syncDecrypt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -49,4 +49,4 @@ public static void decryptDecryptRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_decrypt_decryptrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_decrypt_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecryptCryptokeynameBytestring.java
similarity index 90%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecryptCryptokeynameBytestring.java
index f0a25cfb6e..c086ea55d0 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptCryptoKeyNameByteString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecryptCryptokeynameBytestring.java
@@ -22,13 +22,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.ByteString;
 
-public class DecryptCryptoKeyNameByteString {
+public class SyncDecryptCryptokeynameBytestring {
 
   public static void main(String[] args) throws Exception {
-    decryptCryptoKeyNameByteString();
+    syncDecryptCryptokeynameBytestring();
   }
 
-  public static void decryptCryptoKeyNameByteString() throws Exception {
+  public static void syncDecryptCryptokeynameBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecryptStringBytestring.java
similarity index 91%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecryptStringBytestring.java
index 541dd3f7d4..8b3f1525d9 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/DecryptStringByteString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/decrypt/SyncDecryptStringBytestring.java
@@ -22,13 +22,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.ByteString;
 
-public class DecryptStringByteString {
+public class SyncDecryptStringBytestring {
 
   public static void main(String[] args) throws Exception {
-    decryptStringByteString();
+    syncDecryptStringBytestring();
   }
 
-  public static void decryptStringByteString() throws Exception {
+  public static void syncDecryptStringBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java
similarity index 82%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java
index 1165a62ed8..8b39340a1b 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class DestroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest {
+public class AsyncDestroyCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    destroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest();
+    asyncDestroyCryptoKeyVersion();
   }
 
-  public static void destroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVersionRequest()
-      throws Exception {
+  public static void asyncDestroyCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -53,4 +52,4 @@ public static void destroyCryptoKeyVersionCallableFutureCallDestroyCryptoKeyVers
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_callablefuturecalldestroycryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java
index 29085f4971..cb7195ef60 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_sync]
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class DestroyCryptoKeyVersionDestroyCryptoKeyVersionRequest {
+public class SyncDestroyCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    destroyCryptoKeyVersionDestroyCryptoKeyVersionRequest();
+    syncDestroyCryptoKeyVersion();
   }
 
-  public static void destroyCryptoKeyVersionDestroyCryptoKeyVersionRequest() throws Exception {
+  public static void syncDestroyCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -48,4 +48,4 @@ public static void destroyCryptoKeyVersionDestroyCryptoKeyVersionRequest() throw
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_destroycryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_destroycryptokeyversion_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java
index 8f5b2aee0a..8833061674 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionCryptoKeyVersionName.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class DestroyCryptoKeyVersionCryptoKeyVersionName {
+public class SyncDestroyCryptoKeyVersionCryptokeyversionname {
 
   public static void main(String[] args) throws Exception {
-    destroyCryptoKeyVersionCryptoKeyVersionName();
+    syncDestroyCryptoKeyVersionCryptokeyversionname();
   }
 
-  public static void destroyCryptoKeyVersionCryptoKeyVersionName() throws Exception {
+  public static void syncDestroyCryptoKeyVersionCryptokeyversionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java
similarity index 90%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java
index 139b041876..d1e2099276 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/DestroyCryptoKeyVersionString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class DestroyCryptoKeyVersionString {
+public class SyncDestroyCryptoKeyVersionString {
 
   public static void main(String[] args) throws Exception {
-    destroyCryptoKeyVersionString();
+    syncDestroyCryptoKeyVersionString();
   }
 
-  public static void destroyCryptoKeyVersionString() throws Exception {
+  public static void syncDestroyCryptoKeyVersionString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/AsyncEncrypt.java
similarity index 83%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/AsyncEncrypt.java
index 80943e8d95..d102ca32c2 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptCallableFutureCallEncryptRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/AsyncEncrypt.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_encrypt_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.EncryptRequest;
@@ -25,13 +25,13 @@
 import com.google.protobuf.ByteString;
 import com.google.protobuf.Int64Value;
 
-public class EncryptCallableFutureCallEncryptRequest {
+public class AsyncEncrypt {
 
   public static void main(String[] args) throws Exception {
-    encryptCallableFutureCallEncryptRequest();
+    asyncEncrypt();
   }
 
-  public static void encryptCallableFutureCallEncryptRequest() throws Exception {
+  public static void asyncEncrypt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -53,4 +53,4 @@ public static void encryptCallableFutureCallEncryptRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_encrypt_callablefuturecallencryptrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_encrypt_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncrypt.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncrypt.java
index ff51dbd6ba..06cfbee231 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptEncryptRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncrypt.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_encrypt_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.EncryptRequest;
 import com.google.cloud.kms.v1.EncryptResponse;
@@ -24,13 +24,13 @@
 import com.google.protobuf.ByteString;
 import com.google.protobuf.Int64Value;
 
-public class EncryptEncryptRequest {
+public class SyncEncrypt {
 
   public static void main(String[] args) throws Exception {
-    encryptEncryptRequest();
+    syncEncrypt();
   }
 
-  public static void encryptEncryptRequest() throws Exception {
+  public static void syncEncrypt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -49,4 +49,4 @@ public static void encryptEncryptRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_encrypt_encryptrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_encrypt_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncryptResourcenameBytestring.java
similarity index 90%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncryptResourcenameBytestring.java
index 0e3665ae30..d2903ac55a 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptResourceNameByteString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncryptResourcenameBytestring.java
@@ -23,13 +23,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.ByteString;
 
-public class EncryptResourceNameByteString {
+public class SyncEncryptResourcenameBytestring {
 
   public static void main(String[] args) throws Exception {
-    encryptResourceNameByteString();
+    syncEncryptResourcenameBytestring();
   }
 
-  public static void encryptResourceNameByteString() throws Exception {
+  public static void syncEncryptResourcenameBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncryptStringBytestring.java
similarity index 91%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncryptStringBytestring.java
index a88d09708a..f2f271f833 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/EncryptStringByteString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/encrypt/SyncEncryptStringBytestring.java
@@ -22,13 +22,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.ByteString;
 
-public class EncryptStringByteString {
+public class SyncEncryptStringBytestring {
 
   public static void main(String[] args) throws Exception {
-    encryptStringByteString();
+    syncEncryptStringBytestring();
   }
 
-  public static void encryptStringByteString() throws Exception {
+  public static void syncEncryptStringBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/AsyncGetCryptoKey.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/AsyncGetCryptoKey.java
index c0d815d43c..afb9247e9e 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCallableFutureCallGetCryptoKeyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/AsyncGetCryptoKey.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.GetCryptoKeyRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetCryptoKeyCallableFutureCallGetCryptoKeyRequest {
+public class AsyncGetCryptoKey {
 
   public static void main(String[] args) throws Exception {
-    getCryptoKeyCallableFutureCallGetCryptoKeyRequest();
+    asyncGetCryptoKey();
   }
 
-  public static void getCryptoKeyCallableFutureCallGetCryptoKeyRequest() throws Exception {
+  public static void asyncGetCryptoKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -47,4 +47,4 @@ public static void getCryptoKeyCallableFutureCallGetCryptoKeyRequest() throws Ex
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_callablefuturecallgetcryptokeyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKey.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKey.java
index 0e4816ab01..7171b932e5 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyGetCryptoKeyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKey.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getcryptokey_sync]
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.GetCryptoKeyRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetCryptoKeyGetCryptoKeyRequest {
+public class SyncGetCryptoKey {
 
   public static void main(String[] args) throws Exception {
-    getCryptoKeyGetCryptoKeyRequest();
+    syncGetCryptoKey();
   }
 
-  public static void getCryptoKeyGetCryptoKeyRequest() throws Exception {
+  public static void syncGetCryptoKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -43,4 +43,4 @@ public static void getCryptoKeyGetCryptoKeyRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_getcryptokeyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getcryptokey_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKeyCryptokeyname.java
similarity index 90%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKeyCryptokeyname.java
index f48010ff0b..502e82a317 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyCryptoKeyName.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKeyCryptokeyname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetCryptoKeyCryptoKeyName {
+public class SyncGetCryptoKeyCryptokeyname {
 
   public static void main(String[] args) throws Exception {
-    getCryptoKeyCryptoKeyName();
+    syncGetCryptoKeyCryptokeyname();
   }
 
-  public static void getCryptoKeyCryptoKeyName() throws Exception {
+  public static void syncGetCryptoKeyCryptokeyname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKeyString.java
similarity index 91%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKeyString.java
index 2d667dfd0c..29bc7ab985 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/GetCryptoKeyString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokey/SyncGetCryptoKeyString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetCryptoKeyString {
+public class SyncGetCryptoKeyString {
 
   public static void main(String[] args) throws Exception {
-    getCryptoKeyString();
+    syncGetCryptoKeyString();
   }
 
-  public static void getCryptoKeyString() throws Exception {
+  public static void syncGetCryptoKeyString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/AsyncGetCryptoKeyVersion.java
similarity index 83%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/AsyncGetCryptoKeyVersion.java
index 2eaf3f5588..65a78ad558 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/AsyncGetCryptoKeyVersion.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest {
+public class AsyncGetCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    getCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest();
+    asyncGetCryptoKeyVersion();
   }
 
-  public static void getCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionRequest()
-      throws Exception {
+  public static void asyncGetCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -53,4 +52,4 @@ public static void getCryptoKeyVersionCallableFutureCallGetCryptoKeyVersionReque
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_callablefuturecallgetcryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersion.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersion.java
index 288025ee6f..1262f13387 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionGetCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_sync]
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetCryptoKeyVersionGetCryptoKeyVersionRequest {
+public class SyncGetCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    getCryptoKeyVersionGetCryptoKeyVersionRequest();
+    syncGetCryptoKeyVersion();
   }
 
-  public static void getCryptoKeyVersionGetCryptoKeyVersionRequest() throws Exception {
+  public static void syncGetCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -48,4 +48,4 @@ public static void getCryptoKeyVersionGetCryptoKeyVersionRequest() throws Except
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_getcryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getcryptokeyversion_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java
index adf07112be..233349f476 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionCryptoKeyVersionName.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetCryptoKeyVersionCryptoKeyVersionName {
+public class SyncGetCryptoKeyVersionCryptokeyversionname {
 
   public static void main(String[] args) throws Exception {
-    getCryptoKeyVersionCryptoKeyVersionName();
+    syncGetCryptoKeyVersionCryptokeyversionname();
   }
 
-  public static void getCryptoKeyVersionCryptoKeyVersionName() throws Exception {
+  public static void syncGetCryptoKeyVersionCryptokeyversionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersionString.java
similarity index 91%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersionString.java
index c9dfd9e5b9..f0cce5d900 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/GetCryptoKeyVersionString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getcryptokeyversion/SyncGetCryptoKeyVersionString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetCryptoKeyVersionString {
+public class SyncGetCryptoKeyVersionString {
 
   public static void main(String[] args) throws Exception {
-    getCryptoKeyVersionString();
+    syncGetCryptoKeyVersionString();
   }
 
-  public static void getCryptoKeyVersionString() throws Exception {
+  public static void syncGetCryptoKeyVersionString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/AsyncGetIamPolicy.java
index f47c5b467b..b9de93dcf1 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/AsyncGetIamPolicy.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
@@ -24,13 +24,13 @@
 import com.google.iam.v1.GetPolicyOptions;
 import com.google.iam.v1.Policy;
 
-public class GetIamPolicyCallableFutureCallGetIamPolicyRequest {
+public class AsyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyCallableFutureCallGetIamPolicyRequest();
+    asyncGetIamPolicy();
   }
 
-  public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception {
+  public static void asyncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -49,4 +49,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/SyncGetIamPolicy.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/SyncGetIamPolicy.java
index a068e0b36a..3020b367b3 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getiampolicy/SyncGetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getiampolicy_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.GetPolicyOptions;
 import com.google.iam.v1.Policy;
 
-public class GetIamPolicyGetIamPolicyRequest {
+public class SyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyGetIamPolicyRequest();
+    syncGetIamPolicy();
   }
 
-  public static void getIamPolicyGetIamPolicyRequest() throws Exception {
+  public static void syncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -45,4 +45,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_getiampolicyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getiampolicy_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/AsyncGetImportJob.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/AsyncGetImportJob.java
index 2bd36de783..6d0981ad41 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobCallableFutureCallGetImportJobRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/AsyncGetImportJob.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getimportjob_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.GetImportJobRequest;
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.ImportJobName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetImportJobCallableFutureCallGetImportJobRequest {
+public class AsyncGetImportJob {
 
   public static void main(String[] args) throws Exception {
-    getImportJobCallableFutureCallGetImportJobRequest();
+    asyncGetImportJob();
   }
 
-  public static void getImportJobCallableFutureCallGetImportJobRequest() throws Exception {
+  public static void asyncGetImportJob() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -47,4 +47,4 @@ public static void getImportJobCallableFutureCallGetImportJobRequest() throws Ex
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getimportjob_callablefuturecallgetimportjobrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getimportjob_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJob.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJob.java
index 1984021623..fab6e0d6d1 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobGetImportJobRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJob.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getimportjob_sync]
 import com.google.cloud.kms.v1.GetImportJobRequest;
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.ImportJobName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetImportJobGetImportJobRequest {
+public class SyncGetImportJob {
 
   public static void main(String[] args) throws Exception {
-    getImportJobGetImportJobRequest();
+    syncGetImportJob();
   }
 
-  public static void getImportJobGetImportJobRequest() throws Exception {
+  public static void syncGetImportJob() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -43,4 +43,4 @@ public static void getImportJobGetImportJobRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getimportjob_getimportjobrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getimportjob_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJobImportjobname.java
similarity index 90%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJobImportjobname.java
index 753b35a741..6da1c44cdd 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobImportJobName.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJobImportjobname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.ImportJobName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetImportJobImportJobName {
+public class SyncGetImportJobImportjobname {
 
   public static void main(String[] args) throws Exception {
-    getImportJobImportJobName();
+    syncGetImportJobImportjobname();
   }
 
-  public static void getImportJobImportJobName() throws Exception {
+  public static void syncGetImportJobImportjobname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJobString.java
similarity index 91%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJobString.java
index bfca3d649f..4b1abbc094 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/GetImportJobString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getimportjob/SyncGetImportJobString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.ImportJobName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class GetImportJobString {
+public class SyncGetImportJobString {
 
   public static void main(String[] args) throws Exception {
-    getImportJobString();
+    syncGetImportJobString();
   }
 
-  public static void getImportJobString() throws Exception {
+  public static void syncGetImportJobString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/AsyncGetKeyRing.java
similarity index 82%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/AsyncGetKeyRing.java
index af378ae4c0..d11013dd6f 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingCallableFutureCallGetKeyRingRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/AsyncGetKeyRing.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getkeyring_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.GetKeyRingRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class GetKeyRingCallableFutureCallGetKeyRingRequest {
+public class AsyncGetKeyRing {
 
   public static void main(String[] args) throws Exception {
-    getKeyRingCallableFutureCallGetKeyRingRequest();
+    asyncGetKeyRing();
   }
 
-  public static void getKeyRingCallableFutureCallGetKeyRingRequest() throws Exception {
+  public static void asyncGetKeyRing() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -45,4 +45,4 @@ public static void getKeyRingCallableFutureCallGetKeyRingRequest() throws Except
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getkeyring_callablefuturecallgetkeyringrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getkeyring_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRing.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRing.java
index 3eb1bbd0c2..28470ae260 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingGetKeyRingRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRing.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getkeyring_sync]
 import com.google.cloud.kms.v1.GetKeyRingRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class GetKeyRingGetKeyRingRequest {
+public class SyncGetKeyRing {
 
   public static void main(String[] args) throws Exception {
-    getKeyRingGetKeyRingRequest();
+    syncGetKeyRing();
   }
 
-  public static void getKeyRingGetKeyRingRequest() throws Exception {
+  public static void syncGetKeyRing() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -41,4 +41,4 @@ public static void getKeyRingGetKeyRingRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getkeyring_getkeyringrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getkeyring_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRingKeyringname.java
similarity index 91%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRingKeyringname.java
index fefa1806d6..fa265fe9d4 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingKeyRingName.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRingKeyringname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class GetKeyRingKeyRingName {
+public class SyncGetKeyRingKeyringname {
 
   public static void main(String[] args) throws Exception {
-    getKeyRingKeyRingName();
+    syncGetKeyRingKeyringname();
   }
 
-  public static void getKeyRingKeyRingName() throws Exception {
+  public static void syncGetKeyRingKeyringname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRingString.java
similarity index 91%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRingString.java
index 44f32f9383..b03662f8b9 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/GetKeyRingString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getkeyring/SyncGetKeyRingString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class GetKeyRingString {
+public class SyncGetKeyRingString {
 
   public static void main(String[] args) throws Exception {
-    getKeyRingString();
+    syncGetKeyRingString();
   }
 
-  public static void getKeyRingString() throws Exception {
+  public static void syncGetKeyRingString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/AsyncGetLocation.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/AsyncGetLocation.java
index 1825d4f351..2973834483 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationCallableFutureCallGetLocationRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/AsyncGetLocation.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getlocation_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.location.GetLocationRequest;
 import com.google.cloud.location.Location;
 
-public class GetLocationCallableFutureCallGetLocationRequest {
+public class AsyncGetLocation {
 
   public static void main(String[] args) throws Exception {
-    getLocationCallableFutureCallGetLocationRequest();
+    asyncGetLocation();
   }
 
-  public static void getLocationCallableFutureCallGetLocationRequest() throws Exception {
+  public static void asyncGetLocation() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -41,4 +41,4 @@ public static void getLocationCallableFutureCallGetLocationRequest() throws Exce
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getlocation_callablefuturecallgetlocationrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getlocation_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/SyncGetLocation.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/SyncGetLocation.java
index a26b84b64c..537c3936a0 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/GetLocationGetLocationRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getlocation/SyncGetLocation.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getlocation_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.location.GetLocationRequest;
 import com.google.cloud.location.Location;
 
-public class GetLocationGetLocationRequest {
+public class SyncGetLocation {
 
   public static void main(String[] args) throws Exception {
-    getLocationGetLocationRequest();
+    syncGetLocation();
   }
 
-  public static void getLocationGetLocationRequest() throws Exception {
+  public static void syncGetLocation() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -37,4 +37,4 @@ public static void getLocationGetLocationRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getlocation_getlocationrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getlocation_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/AsyncGetPublicKey.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/AsyncGetPublicKey.java
index 0d91b9ae91..397ebb1bb9 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCallableFutureCallGetPublicKeyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/AsyncGetPublicKey.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getpublickey_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.GetPublicKeyRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.PublicKey;
 
-public class GetPublicKeyCallableFutureCallGetPublicKeyRequest {
+public class AsyncGetPublicKey {
 
   public static void main(String[] args) throws Exception {
-    getPublicKeyCallableFutureCallGetPublicKeyRequest();
+    asyncGetPublicKey();
   }
 
-  public static void getPublicKeyCallableFutureCallGetPublicKeyRequest() throws Exception {
+  public static void asyncGetPublicKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -52,4 +52,4 @@ public static void getPublicKeyCallableFutureCallGetPublicKeyRequest() throws Ex
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getpublickey_callablefuturecallgetpublickeyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getpublickey_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKey.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKey.java
index 3784d375df..4b6fa32989 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyGetPublicKeyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKey.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_getpublickey_sync]
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.GetPublicKeyRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.PublicKey;
 
-public class GetPublicKeyGetPublicKeyRequest {
+public class SyncGetPublicKey {
 
   public static void main(String[] args) throws Exception {
-    getPublicKeyGetPublicKeyRequest();
+    syncGetPublicKey();
   }
 
-  public static void getPublicKeyGetPublicKeyRequest() throws Exception {
+  public static void syncGetPublicKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -48,4 +48,4 @@ public static void getPublicKeyGetPublicKeyRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_getpublickey_getpublickeyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_getpublickey_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKeyCryptokeyversionname.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKeyCryptokeyversionname.java
index 795e11cff0..b519b55302 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyCryptoKeyVersionName.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKeyCryptokeyversionname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.PublicKey;
 
-public class GetPublicKeyCryptoKeyVersionName {
+public class SyncGetPublicKeyCryptokeyversionname {
 
   public static void main(String[] args) throws Exception {
-    getPublicKeyCryptoKeyVersionName();
+    syncGetPublicKeyCryptokeyversionname();
   }
 
-  public static void getPublicKeyCryptoKeyVersionName() throws Exception {
+  public static void syncGetPublicKeyCryptokeyversionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKeyString.java
similarity index 92%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKeyString.java
index c9cdb7fe5e..b3f6a56f48 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/GetPublicKeyString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/getpublickey/SyncGetPublicKeyString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.PublicKey;
 
-public class GetPublicKeyString {
+public class SyncGetPublicKeyString {
 
   public static void main(String[] args) throws Exception {
-    getPublicKeyString();
+    syncGetPublicKeyString();
   }
 
-  public static void getPublicKeyString() throws Exception {
+  public static void syncGetPublicKeyString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/AsyncImportCryptoKeyVersion.java
similarity index 82%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/AsyncImportCryptoKeyVersion.java
index 7a2d09f730..3efb40a164 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/AsyncImportCryptoKeyVersion.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class ImportCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest {
+public class AsyncImportCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    importCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest();
+    asyncImportCryptoKeyVersion();
   }
 
-  public static void importCryptoKeyVersionCallableFutureCallImportCryptoKeyVersionRequest()
-      throws Exception {
+  public static void asyncImportCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -49,4 +48,4 @@ public static void importCryptoKeyVersionCallableFutureCallImportCryptoKeyVersio
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_callablefuturecallimportcryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/SyncImportCryptoKeyVersion.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/SyncImportCryptoKeyVersion.java
index 9b370b4a5d..5034d89b69 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/ImportCryptoKeyVersionImportCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/importcryptokeyversion/SyncImportCryptoKeyVersion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class ImportCryptoKeyVersionImportCryptoKeyVersionRequest {
+public class SyncImportCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    importCryptoKeyVersionImportCryptoKeyVersionRequest();
+    syncImportCryptoKeyVersion();
   }
 
-  public static void importCryptoKeyVersionImportCryptoKeyVersionRequest() throws Exception {
+  public static void syncImportCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -44,4 +44,4 @@ public static void importCryptoKeyVersionImportCryptoKeyVersionRequest() throws
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_importcryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_importcryptokeyversion_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/AsyncListCryptoKeysPagedCallable.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/AsyncListCryptoKeysPagedCallable.java
index d2af8dd670..d5e664575e 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/AsyncListCryptoKeysPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 import com.google.cloud.kms.v1.ListCryptoKeysRequest;
 
-public class ListCryptoKeysPagedCallableFutureCallListCryptoKeysRequest {
+public class AsyncListCryptoKeysPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeysPagedCallableFutureCallListCryptoKeysRequest();
+    asyncListCryptoKeysPagedCallable();
   }
 
-  public static void listCryptoKeysPagedCallableFutureCallListCryptoKeysRequest() throws Exception {
+  public static void asyncListCryptoKeysPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -51,4 +51,4 @@ public static void listCryptoKeysPagedCallableFutureCallListCryptoKeysRequest()
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallablefuturecalllistcryptokeysrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_pagedcallable_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeys.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeys.java
index 8b913f840a..b82a7ccdeb 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysListCryptoKeysRequestIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeys.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_sync]
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 import com.google.cloud.kms.v1.ListCryptoKeysRequest;
 
-public class ListCryptoKeysListCryptoKeysRequestIterateAll {
+public class SyncListCryptoKeys {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeysListCryptoKeysRequestIterateAll();
+    syncListCryptoKeys();
   }
 
-  public static void listCryptoKeysListCryptoKeysRequestIterateAll() throws Exception {
+  public static void syncListCryptoKeys() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -47,4 +47,4 @@ public static void listCryptoKeysListCryptoKeysRequestIterateAll() throws Except
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_listcryptokeysrequestiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysKeyringname.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysKeyringname.java
index 8a741c5a8a..a2111418f2 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysKeyRingNameIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysKeyringname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringname_sync]
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class ListCryptoKeysKeyRingNameIterateAll {
+public class SyncListCryptoKeysKeyringname {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeysKeyRingNameIterateAll();
+    syncListCryptoKeysKeyringname();
   }
 
-  public static void listCryptoKeysKeyRingNameIterateAll() throws Exception {
+  public static void syncListCryptoKeysKeyringname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -39,4 +39,4 @@ public static void listCryptoKeysKeyRingNameIterateAll() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringnameiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_keyringname_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysPaged.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysPaged.java
index 523ff2d5a1..8b1ec9e01f 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysCallableCallListCryptoKeysRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_paged_sync]
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
@@ -24,13 +24,13 @@
 import com.google.cloud.kms.v1.ListCryptoKeysResponse;
 import com.google.common.base.Strings;
 
-public class ListCryptoKeysCallableCallListCryptoKeysRequest {
+public class SyncListCryptoKeysPaged {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeysCallableCallListCryptoKeysRequest();
+    syncListCryptoKeysPaged();
   }
 
-  public static void listCryptoKeysCallableCallListCryptoKeysRequest() throws Exception {
+  public static void syncListCryptoKeysPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -59,4 +59,4 @@ public static void listCryptoKeysCallableCallListCryptoKeysRequest() throws Exce
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_callablecalllistcryptokeysrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_paged_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysString.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysString.java
index cf450ec112..e220fe461d 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/ListCryptoKeysStringIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/SyncListCryptoKeysString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeys_string_sync]
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class ListCryptoKeysStringIterateAll {
+public class SyncListCryptoKeysString {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeysStringIterateAll();
+    syncListCryptoKeysString();
   }
 
-  public static void listCryptoKeysStringIterateAll() throws Exception {
+  public static void syncListCryptoKeysString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -39,4 +39,4 @@ public static void listCryptoKeysStringIterateAll() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_stringiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeys_string_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/AsyncListCryptoKeyVersionsPagedCallable.java
similarity index 83%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/AsyncListCryptoKeyVersionsPagedCallable.java
index a50d5f7806..f64e69af79 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/AsyncListCryptoKeyVersionsPagedCallable.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest;
 
-public class ListCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest {
+public class AsyncListCryptoKeyVersionsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest();
+    asyncListCryptoKeyVersionsPagedCallable();
   }
 
-  public static void listCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVersionsRequest()
-      throws Exception {
+  public static void asyncListCryptoKeyVersionsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -54,4 +53,4 @@ public static void listCryptoKeyVersionsPagedCallableFutureCallListCryptoKeyVers
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallablefuturecalllistcryptokeyversionsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_pagedcallable_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersions.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersions.java
index b4585ac82e..fee573a19e 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersions.java
@@ -16,20 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest;
 
-public class ListCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll {
+public class SyncListCryptoKeyVersions {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll();
+    syncListCryptoKeyVersions();
   }
 
-  public static void listCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll()
-      throws Exception {
+  public static void syncListCryptoKeyVersions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -51,4 +50,4 @@ public static void listCryptoKeyVersionsListCryptoKeyVersionsRequestIterateAll()
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_listcryptokeyversionsrequestiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java
index 74faee57dd..3732a4bc2c 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCryptoKeyNameIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeyname_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class ListCryptoKeyVersionsCryptoKeyNameIterateAll {
+public class SyncListCryptoKeyVersionsCryptokeyname {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeyVersionsCryptoKeyNameIterateAll();
+    syncListCryptoKeyVersionsCryptokeyname();
   }
 
-  public static void listCryptoKeyVersionsCryptoKeyNameIterateAll() throws Exception {
+  public static void syncListCryptoKeyVersionsCryptokeyname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -41,4 +41,4 @@ public static void listCryptoKeyVersionsCryptoKeyNameIterateAll() throws Excepti
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeynameiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_cryptokeyname_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsPaged.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsPaged.java
index dfb6b04b8a..cc0cab27ec 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_paged_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
@@ -24,14 +24,13 @@
 import com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse;
 import com.google.common.base.Strings;
 
-public class ListCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest {
+public class SyncListCryptoKeyVersionsPaged {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest();
+    syncListCryptoKeyVersionsPaged();
   }
 
-  public static void listCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest()
-      throws Exception {
+  public static void syncListCryptoKeyVersionsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -62,4 +61,4 @@ public static void listCryptoKeyVersionsCallableCallListCryptoKeyVersionsRequest
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_callablecalllistcryptokeyversionsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_paged_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsString.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsString.java
index 29ed06384c..7eeb04ea63 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/ListCryptoKeyVersionsStringIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/SyncListCryptoKeyVersionsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_string_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class ListCryptoKeyVersionsStringIterateAll {
+public class SyncListCryptoKeyVersionsString {
 
   public static void main(String[] args) throws Exception {
-    listCryptoKeyVersionsStringIterateAll();
+    syncListCryptoKeyVersionsString();
   }
 
-  public static void listCryptoKeyVersionsStringIterateAll() throws Exception {
+  public static void syncListCryptoKeyVersionsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -41,4 +41,4 @@ public static void listCryptoKeyVersionsStringIterateAll() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_stringiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listcryptokeyversions_string_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/AsyncListImportJobsPagedCallable.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/AsyncListImportJobsPagedCallable.java
index 901e28fc5c..966dd42d5c 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsPagedCallableFutureCallListImportJobsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/AsyncListImportJobsPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 import com.google.cloud.kms.v1.ListImportJobsRequest;
 
-public class ListImportJobsPagedCallableFutureCallListImportJobsRequest {
+public class AsyncListImportJobsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listImportJobsPagedCallableFutureCallListImportJobsRequest();
+    asyncListImportJobsPagedCallable();
   }
 
-  public static void listImportJobsPagedCallableFutureCallListImportJobsRequest() throws Exception {
+  public static void asyncListImportJobsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -51,4 +51,4 @@ public static void listImportJobsPagedCallableFutureCallListImportJobsRequest()
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallablefuturecalllistimportjobsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_pagedcallable_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobs.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobs.java
index 5cd7a79f25..a448fc8d06 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsListImportJobsRequestIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobs.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_sync]
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 import com.google.cloud.kms.v1.ListImportJobsRequest;
 
-public class ListImportJobsListImportJobsRequestIterateAll {
+public class SyncListImportJobs {
 
   public static void main(String[] args) throws Exception {
-    listImportJobsListImportJobsRequestIterateAll();
+    syncListImportJobs();
   }
 
-  public static void listImportJobsListImportJobsRequestIterateAll() throws Exception {
+  public static void syncListImportJobs() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -47,4 +47,4 @@ public static void listImportJobsListImportJobsRequestIterateAll() throws Except
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_listimportjobsrequestiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsKeyringname.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsKeyringname.java
index 5096fab9ec..c27b7ebb4b 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsKeyRingNameIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsKeyringname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringname_sync]
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class ListImportJobsKeyRingNameIterateAll {
+public class SyncListImportJobsKeyringname {
 
   public static void main(String[] args) throws Exception {
-    listImportJobsKeyRingNameIterateAll();
+    syncListImportJobsKeyringname();
   }
 
-  public static void listImportJobsKeyRingNameIterateAll() throws Exception {
+  public static void syncListImportJobsKeyringname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -39,4 +39,4 @@ public static void listImportJobsKeyRingNameIterateAll() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringnameiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_keyringname_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsPaged.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsPaged.java
index 8d26670da7..ea932a19d3 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsCallableCallListImportJobsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_paged_sync]
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
@@ -24,13 +24,13 @@
 import com.google.cloud.kms.v1.ListImportJobsResponse;
 import com.google.common.base.Strings;
 
-public class ListImportJobsCallableCallListImportJobsRequest {
+public class SyncListImportJobsPaged {
 
   public static void main(String[] args) throws Exception {
-    listImportJobsCallableCallListImportJobsRequest();
+    syncListImportJobsPaged();
   }
 
-  public static void listImportJobsCallableCallListImportJobsRequest() throws Exception {
+  public static void syncListImportJobsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -59,4 +59,4 @@ public static void listImportJobsCallableCallListImportJobsRequest() throws Exce
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_callablecalllistimportjobsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_paged_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsString.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsString.java
index 8740c48460..16a7cf09fa 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/ListImportJobsStringIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/SyncListImportJobsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listimportjobs_string_sync]
 import com.google.cloud.kms.v1.ImportJob;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRingName;
 
-public class ListImportJobsStringIterateAll {
+public class SyncListImportJobsString {
 
   public static void main(String[] args) throws Exception {
-    listImportJobsStringIterateAll();
+    syncListImportJobsString();
   }
 
-  public static void listImportJobsStringIterateAll() throws Exception {
+  public static void syncListImportJobsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -39,4 +39,4 @@ public static void listImportJobsStringIterateAll() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_stringiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listimportjobs_string_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/AsyncListKeyRingsPagedCallable.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/AsyncListKeyRingsPagedCallable.java
index 33f7b6474a..e9497d235f 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsPagedCallableFutureCallListKeyRingsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/AsyncListKeyRingsPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.ListKeyRingsRequest;
 import com.google.cloud.kms.v1.LocationName;
 
-public class ListKeyRingsPagedCallableFutureCallListKeyRingsRequest {
+public class AsyncListKeyRingsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listKeyRingsPagedCallableFutureCallListKeyRingsRequest();
+    asyncListKeyRingsPagedCallable();
   }
 
-  public static void listKeyRingsPagedCallableFutureCallListKeyRingsRequest() throws Exception {
+  public static void asyncListKeyRingsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -51,4 +51,4 @@ public static void listKeyRingsPagedCallableFutureCallListKeyRingsRequest() thro
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallablefuturecalllistkeyringsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_pagedcallable_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRings.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRings.java
index afbab5ed77..44a39dee7c 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsListKeyRingsRequestIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRings.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.ListKeyRingsRequest;
 import com.google.cloud.kms.v1.LocationName;
 
-public class ListKeyRingsListKeyRingsRequestIterateAll {
+public class SyncListKeyRings {
 
   public static void main(String[] args) throws Exception {
-    listKeyRingsListKeyRingsRequestIterateAll();
+    syncListKeyRings();
   }
 
-  public static void listKeyRingsListKeyRingsRequestIterateAll() throws Exception {
+  public static void syncListKeyRings() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -47,4 +47,4 @@ public static void listKeyRingsListKeyRingsRequestIterateAll() throws Exception
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_listkeyringsrequestiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsLocationname.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsLocationname.java
index 223adfd56f..02099fdcae 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsLocationNameIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsLocationname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_locationname_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.LocationName;
 
-public class ListKeyRingsLocationNameIterateAll {
+public class SyncListKeyRingsLocationname {
 
   public static void main(String[] args) throws Exception {
-    listKeyRingsLocationNameIterateAll();
+    syncListKeyRingsLocationname();
   }
 
-  public static void listKeyRingsLocationNameIterateAll() throws Exception {
+  public static void syncListKeyRingsLocationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -39,4 +39,4 @@ public static void listKeyRingsLocationNameIterateAll() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_locationnameiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_locationname_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsPaged.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsPaged.java
index 269f5138d3..0ee3c3e13d 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsCallableCallListKeyRingsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_paged_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.ListKeyRingsRequest;
@@ -24,13 +24,13 @@
 import com.google.cloud.kms.v1.LocationName;
 import com.google.common.base.Strings;
 
-public class ListKeyRingsCallableCallListKeyRingsRequest {
+public class SyncListKeyRingsPaged {
 
   public static void main(String[] args) throws Exception {
-    listKeyRingsCallableCallListKeyRingsRequest();
+    syncListKeyRingsPaged();
   }
 
-  public static void listKeyRingsCallableCallListKeyRingsRequest() throws Exception {
+  public static void syncListKeyRingsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -59,4 +59,4 @@ public static void listKeyRingsCallableCallListKeyRingsRequest() throws Exceptio
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_callablecalllistkeyringsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_paged_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsString.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsString.java
index 4c11352cc7..5dc2d3699a 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/ListKeyRingsStringIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/SyncListKeyRingsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listkeyrings_string_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.KeyRing;
 import com.google.cloud.kms.v1.LocationName;
 
-public class ListKeyRingsStringIterateAll {
+public class SyncListKeyRingsString {
 
   public static void main(String[] args) throws Exception {
-    listKeyRingsStringIterateAll();
+    syncListKeyRingsString();
   }
 
-  public static void listKeyRingsStringIterateAll() throws Exception {
+  public static void syncListKeyRingsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -39,4 +39,4 @@ public static void listKeyRingsStringIterateAll() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_stringiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listkeyrings_string_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/AsyncListLocationsPagedCallable.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/AsyncListLocationsPagedCallable.java
index 09d894339c..19db194878 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsPagedCallableFutureCallListLocationsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/AsyncListLocationsPagedCallable.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.location.ListLocationsRequest;
 import com.google.cloud.location.Location;
 
-public class ListLocationsPagedCallableFutureCallListLocationsRequest {
+public class AsyncListLocationsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listLocationsPagedCallableFutureCallListLocationsRequest();
+    asyncListLocationsPagedCallable();
   }
 
-  public static void listLocationsPagedCallableFutureCallListLocationsRequest() throws Exception {
+  public static void asyncListLocationsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -49,4 +49,4 @@ public static void listLocationsPagedCallableFutureCallListLocationsRequest() th
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallablefuturecalllistlocationsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listlocations_pagedcallable_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/SyncListLocations.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/SyncListLocations.java
index 05f3cb828a..51d7a597a9 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsListLocationsRequestIterateAll.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/SyncListLocations.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listlocations_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.location.ListLocationsRequest;
 import com.google.cloud.location.Location;
 
-public class ListLocationsListLocationsRequestIterateAll {
+public class SyncListLocations {
 
   public static void main(String[] args) throws Exception {
-    listLocationsListLocationsRequestIterateAll();
+    syncListLocations();
   }
 
-  public static void listLocationsListLocationsRequestIterateAll() throws Exception {
+  public static void syncListLocations() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -45,4 +45,4 @@ public static void listLocationsListLocationsRequestIterateAll() throws Exceptio
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listlocations_listlocationsrequestiterateall_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listlocations_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/SyncListLocationsPaged.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/SyncListLocationsPaged.java
index 83c2e8b6be..6fececb72e 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/ListLocationsCallableCallListLocationsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/SyncListLocationsPaged.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_listlocations_paged_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.location.ListLocationsRequest;
 import com.google.cloud.location.ListLocationsResponse;
 import com.google.cloud.location.Location;
 import com.google.common.base.Strings;
 
-public class ListLocationsCallableCallListLocationsRequest {
+public class SyncListLocationsPaged {
 
   public static void main(String[] args) throws Exception {
-    listLocationsCallableCallListLocationsRequest();
+    syncListLocationsPaged();
   }
 
-  public static void listLocationsCallableCallListLocationsRequest() throws Exception {
+  public static void syncListLocationsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -57,4 +57,4 @@ public static void listLocationsCallableCallListLocationsRequest() throws Except
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_listlocations_callablecalllistlocationsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_listlocations_paged_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java
similarity index 82%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java
index 1e90ea2736..99c01083dd 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest;
 
-public class RestoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest {
+public class AsyncRestoreCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    restoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest();
+    asyncRestoreCryptoKeyVersion();
   }
 
-  public static void restoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVersionRequest()
-      throws Exception {
+  public static void asyncRestoreCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -53,4 +52,4 @@ public static void restoreCryptoKeyVersionCallableFutureCallRestoreCryptoKeyVers
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_callablefuturecallrestorecryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java
similarity index 85%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java
index 4e5911aac1..db1b5f42ef 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_sync]
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest;
 
-public class RestoreCryptoKeyVersionRestoreCryptoKeyVersionRequest {
+public class SyncRestoreCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    restoreCryptoKeyVersionRestoreCryptoKeyVersionRequest();
+    syncRestoreCryptoKeyVersion();
   }
 
-  public static void restoreCryptoKeyVersionRestoreCryptoKeyVersionRequest() throws Exception {
+  public static void syncRestoreCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -48,4 +48,4 @@ public static void restoreCryptoKeyVersionRestoreCryptoKeyVersionRequest() throw
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_restorecryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_restorecryptokeyversion_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java
index 087579d14a..e19636c91b 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionCryptoKeyVersionName.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class RestoreCryptoKeyVersionCryptoKeyVersionName {
+public class SyncRestoreCryptoKeyVersionCryptokeyversionname {
 
   public static void main(String[] args) throws Exception {
-    restoreCryptoKeyVersionCryptoKeyVersionName();
+    syncRestoreCryptoKeyVersionCryptokeyversionname();
   }
 
-  public static void restoreCryptoKeyVersionCryptoKeyVersionName() throws Exception {
+  public static void syncRestoreCryptoKeyVersionCryptokeyversionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java
similarity index 90%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java
index 008678b3eb..bf35052c9f 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/RestoreCryptoKeyVersionString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyVersionName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class RestoreCryptoKeyVersionString {
+public class SyncRestoreCryptoKeyVersionString {
 
   public static void main(String[] args) throws Exception {
-    restoreCryptoKeyVersionString();
+    syncRestoreCryptoKeyVersionString();
   }
 
-  public static void restoreCryptoKeyVersionString() throws Exception {
+  public static void syncRestoreCryptoKeyVersionString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 83%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/AsyncTestIamPermissions.java
index c64f5f3175..cc00c4a773 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/AsyncTestIamPermissions.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
@@ -24,14 +24,13 @@
 import com.google.iam.v1.TestIamPermissionsResponse;
 import java.util.ArrayList;
 
-public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest {
+public class AsyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsCallableFutureCallTestIamPermissionsRequest();
+    asyncTestIamPermissions();
   }
 
-  public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest()
-      throws Exception {
+  public static void asyncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -50,4 +49,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/SyncTestIamPermissions.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/SyncTestIamPermissions.java
index 78666a25ab..b1db511b62 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/testiampermissions/SyncTestIamPermissions.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_testiampermissions_sync]
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
 import java.util.ArrayList;
 
-public class TestIamPermissionsTestIamPermissionsRequest {
+public class SyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsTestIamPermissionsRequest();
+    syncTestIamPermissions();
   }
 
-  public static void testIamPermissionsTestIamPermissionsRequest() throws Exception {
+  public static void syncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -45,4 +45,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_testiampermissionsrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_testiampermissions_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/AsyncUpdateCryptoKey.java
similarity index 83%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/AsyncUpdateCryptoKey.java
index 88f0f9e5c1..d6ffefaa14 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/AsyncUpdateCryptoKey.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.UpdateCryptoKeyRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest {
+public class AsyncUpdateCryptoKey {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest();
+    asyncUpdateCryptoKey();
   }
 
-  public static void updateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest() throws Exception {
+  public static void asyncUpdateCryptoKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -46,4 +46,4 @@ public static void updateCryptoKeyCallableFutureCallUpdateCryptoKeyRequest() thr
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_callablefuturecallupdatecryptokeyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/SyncUpdateCryptoKey.java
similarity index 86%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/SyncUpdateCryptoKey.java
index 881e8341c5..f9af1159d2 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyUpdateCryptoKeyRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/SyncUpdateCryptoKey.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_updatecryptokey_sync]
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.UpdateCryptoKeyRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateCryptoKeyUpdateCryptoKeyRequest {
+public class SyncUpdateCryptoKey {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyUpdateCryptoKeyRequest();
+    syncUpdateCryptoKey();
   }
 
-  public static void updateCryptoKeyUpdateCryptoKeyRequest() throws Exception {
+  public static void syncUpdateCryptoKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -42,4 +42,4 @@ public static void updateCryptoKeyUpdateCryptoKeyRequest() throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_updatecryptokeyrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_updatecryptokey_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java
similarity index 89%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java
index 3b6ad2327b..a908aaa8ef 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/UpdateCryptoKeyCryptoKeyFieldMask.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.FieldMask;
 
-public class UpdateCryptoKeyCryptoKeyFieldMask {
+public class SyncUpdateCryptoKeyCryptokeyFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyCryptoKeyFieldMask();
+    syncUpdateCryptoKeyCryptokeyFieldmask();
   }
 
-  public static void updateCryptoKeyCryptoKeyFieldMask() throws Exception {
+  public static void syncUpdateCryptoKeyCryptokeyFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java
similarity index 79%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java
index 708b12ab46..c60249a2fe 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java
@@ -16,22 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest;
 
-public class UpdateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest {
+public class AsyncUpdateCryptoKeyPrimaryVersion {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest();
+    asyncUpdateCryptoKeyPrimaryVersion();
   }
 
-  public static void
-      updateCryptoKeyPrimaryVersionCallableFutureCallUpdateCryptoKeyPrimaryVersionRequest()
-          throws Exception {
+  public static void asyncUpdateCryptoKeyPrimaryVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -50,4 +48,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_callablefuturecallupdatecryptokeyprimaryversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java
similarity index 81%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java
index eda8db531c..9ffc5a1634 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java
@@ -16,20 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_sync]
 import com.google.cloud.kms.v1.CryptoKey;
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest;
 
-public class UpdateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest {
+public class SyncUpdateCryptoKeyPrimaryVersion {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest();
+    syncUpdateCryptoKeyPrimaryVersion();
   }
 
-  public static void updateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionRequest()
-      throws Exception {
+  public static void syncUpdateCryptoKeyPrimaryVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -45,4 +44,4 @@ public static void updateCryptoKeyPrimaryVersionUpdateCryptoKeyPrimaryVersionReq
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_updatecryptokeyprimaryversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyprimaryversion_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java
index a4c49860b0..2c51ac8a44 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionCryptoKeyNameString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class UpdateCryptoKeyPrimaryVersionCryptoKeyNameString {
+public class SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyPrimaryVersionCryptoKeyNameString();
+    syncUpdateCryptoKeyPrimaryVersionCryptokeynameString();
   }
 
-  public static void updateCryptoKeyPrimaryVersionCryptoKeyNameString() throws Exception {
+  public static void syncUpdateCryptoKeyPrimaryVersionCryptokeynameString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java
similarity index 88%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java
index c50a0dfba0..7d8e67a671 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/UpdateCryptoKeyPrimaryVersionStringString.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.CryptoKeyName;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 
-public class UpdateCryptoKeyPrimaryVersionStringString {
+public class SyncUpdateCryptoKeyPrimaryVersionStringString {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyPrimaryVersionStringString();
+    syncUpdateCryptoKeyPrimaryVersionStringString();
   }
 
-  public static void updateCryptoKeyPrimaryVersionStringString() throws Exception {
+  public static void syncUpdateCryptoKeyPrimaryVersionStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java
similarity index 81%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java
index 230df4238b..eb72033e50 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest {
+public class AsyncUpdateCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest();
+    asyncUpdateCryptoKeyVersion();
   }
 
-  public static void updateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersionRequest()
-      throws Exception {
+  public static void asyncUpdateCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -47,4 +46,4 @@ public static void updateCryptoKeyVersionCallableFutureCallUpdateCryptoKeyVersio
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_callablefuturecallupdatecryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_async]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java
similarity index 84%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java
index 5336eda9ac..84d39b0ea4 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest_sync]
+// [START kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_sync]
 import com.google.cloud.kms.v1.CryptoKeyVersion;
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateCryptoKeyVersionUpdateCryptoKeyVersionRequest {
+public class SyncUpdateCryptoKeyVersion {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyVersionUpdateCryptoKeyVersionRequest();
+    syncUpdateCryptoKeyVersion();
   }
 
-  public static void updateCryptoKeyVersionUpdateCryptoKeyVersionRequest() throws Exception {
+  public static void syncUpdateCryptoKeyVersion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
@@ -42,4 +42,4 @@ public static void updateCryptoKeyVersionUpdateCryptoKeyVersionRequest() throws
     }
   }
 }
-// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_updatecryptokeyversionrequest_sync]
+// [END kms_v1_generated_keymanagementserviceclient_updatecryptokeyversion_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java
similarity index 87%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java
index 79a1603d35..d6ddd7f871 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/UpdateCryptoKeyVersionCryptoKeyVersionFieldMask.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementserviceclient/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java
@@ -21,13 +21,13 @@
 import com.google.cloud.kms.v1.KeyManagementServiceClient;
 import com.google.protobuf.FieldMask;
 
-public class UpdateCryptoKeyVersionCryptoKeyVersionFieldMask {
+public class SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateCryptoKeyVersionCryptoKeyVersionFieldMask();
+    syncUpdateCryptoKeyVersionCryptokeyversionFieldmask();
   }
 
-  public static void updateCryptoKeyVersionCryptoKeyVersionFieldMask() throws Exception {
+  public static void syncUpdateCryptoKeyVersionCryptokeyversionFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (KeyManagementServiceClient keyManagementServiceClient =
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java
similarity index 81%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java
index c1466b8c03..65a3a77274 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.kms.v1.samples;
 
-// [START kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings_sync]
+// [START kms_v1_generated_keymanagementservicesettings_getkeyring_sync]
 import com.google.cloud.kms.v1.KeyManagementServiceSettings;
 import java.time.Duration;
 
-public class GetKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings {
+public class SyncGetKeyRing {
 
   public static void main(String[] args) throws Exception {
-    getKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings();
+    syncGetKeyRing();
   }
 
-  public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceSettings()
-      throws Exception {
+  public static void syncGetKeyRing() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder =
@@ -45,4 +44,4 @@ public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceSetting
         keyManagementServiceSettingsBuilder.build();
   }
 }
-// [END kms_v1_generated_keymanagementservicesettings_getkeyring_settingssetretrysettingskeymanagementservicesettings_sync]
+// [END kms_v1_generated_keymanagementservicesettings_getkeyring_sync]
diff --git a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java
similarity index 80%
rename from test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java
rename to test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java
index e58ab1cf99..511287cfbc 100644
--- a/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings.java
+++ b/test/integration/goldens/kms/samples/generated/src/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.kms.v1.stub.samples;
 
-// [START kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings_sync]
+// [START kms_v1_generated_keymanagementservicestubsettings_getkeyring_sync]
 import com.google.cloud.kms.v1.stub.KeyManagementServiceStubSettings;
 import java.time.Duration;
 
-public class GetKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings {
+public class SyncGetKeyRing {
 
   public static void main(String[] args) throws Exception {
-    getKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings();
+    syncGetKeyRing();
   }
 
-  public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSettings()
-      throws Exception {
+  public static void syncGetKeyRing() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     KeyManagementServiceStubSettings.Builder keyManagementServiceSettingsBuilder =
@@ -45,4 +44,4 @@ public static void getKeyRingSettingsSetRetrySettingsKeyManagementServiceStubSet
         keyManagementServiceSettingsBuilder.build();
   }
 }
-// [END kms_v1_generated_keymanagementservicestubsettings_getkeyring_settingssetretrysettingskeymanagementservicestubsettings_sync]
+// [END kms_v1_generated_keymanagementservicestubsettings_getkeyring_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/SyncCreateSetCredentialsProvider.java
index a49ca8a444..cb1ae3c17d 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings1.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_create_libraryservicesettings1_sync]
+// [START library_v1_generated_libraryserviceclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.cloud.example.library.v1.LibraryServiceSettings;
 import com.google.cloud.example.library.v1.myCredentials;
 
-public class CreateLibraryServiceSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createLibraryServiceSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createLibraryServiceSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LibraryServiceSettings libraryServiceSettings =
@@ -38,4 +38,4 @@ public static void createLibraryServiceSettings1() throws Exception {
     LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings);
   }
 }
-// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings1_sync]
+// [END library_v1_generated_libraryserviceclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/SyncCreateSetEndpoint.java
similarity index 79%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/SyncCreateSetEndpoint.java
index 6b106856ef..0635adf8c6 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/CreateLibraryServiceSettings2.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_create_libraryservicesettings2_sync]
+// [START library_v1_generated_libraryserviceclient_create_setendpoint_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.cloud.example.library.v1.LibraryServiceSettings;
 import com.google.cloud.example.library.v1.myEndpoint;
 
-public class CreateLibraryServiceSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createLibraryServiceSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createLibraryServiceSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LibraryServiceSettings libraryServiceSettings =
@@ -35,4 +35,4 @@ public static void createLibraryServiceSettings2() throws Exception {
     LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings);
   }
 }
-// [END library_v1_generated_libraryserviceclient_create_libraryservicesettings2_sync]
+// [END library_v1_generated_libraryserviceclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/AsyncCreateBook.java
similarity index 79%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/AsyncCreateBook.java
index dbff321914..f01d9f0121 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCallableFutureCallCreateBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/AsyncCreateBook.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_createbook_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.CreateBookRequest;
 import com.google.example.library.v1.ShelfName;
 
-public class CreateBookCallableFutureCallCreateBookRequest {
+public class AsyncCreateBook {
 
   public static void main(String[] args) throws Exception {
-    createBookCallableFutureCallCreateBookRequest();
+    asyncCreateBook();
   }
 
-  public static void createBookCallableFutureCallCreateBookRequest() throws Exception {
+  public static void asyncCreateBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void createBookCallableFutureCallCreateBookRequest() throws Except
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_createbook_callablefuturecallcreatebookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_createbook_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBook.java
similarity index 81%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBook.java
index 9ac3d5100b..6b593d4d58 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookCreateBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBook.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_createbook_createbookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_createbook_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.CreateBookRequest;
 import com.google.example.library.v1.ShelfName;
 
-public class CreateBookCreateBookRequest {
+public class SyncCreateBook {
 
   public static void main(String[] args) throws Exception {
-    createBookCreateBookRequest();
+    syncCreateBook();
   }
 
-  public static void createBookCreateBookRequest() throws Exception {
+  public static void syncCreateBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void createBookCreateBookRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_createbook_createbookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_createbook_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBookShelfnameBook.java
similarity index 90%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBookShelfnameBook.java
index 34b2dcd39d..da33aa07d9 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookShelfNameBook.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBookShelfnameBook.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.ShelfName;
 
-public class CreateBookShelfNameBook {
+public class SyncCreateBookShelfnameBook {
 
   public static void main(String[] args) throws Exception {
-    createBookShelfNameBook();
+    syncCreateBookShelfnameBook();
   }
 
-  public static void createBookShelfNameBook() throws Exception {
+  public static void syncCreateBookShelfnameBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBookStringBook.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBookStringBook.java
index 726b98ccf7..0f6e1798be 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/CreateBookStringBook.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createbook/SyncCreateBookStringBook.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.ShelfName;
 
-public class CreateBookStringBook {
+public class SyncCreateBookStringBook {
 
   public static void main(String[] args) throws Exception {
-    createBookStringBook();
+    syncCreateBookStringBook();
   }
 
-  public static void createBookStringBook() throws Exception {
+  public static void syncCreateBookStringBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/AsyncCreateShelf.java
similarity index 80%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/AsyncCreateShelf.java
index 11a7a9dcbb..0e2e7caead 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCallableFutureCallCreateShelfRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/AsyncCreateShelf.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest_sync]
+// [START library_v1_generated_libraryserviceclient_createshelf_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.CreateShelfRequest;
 import com.google.example.library.v1.Shelf;
 
-public class CreateShelfCallableFutureCallCreateShelfRequest {
+public class AsyncCreateShelf {
 
   public static void main(String[] args) throws Exception {
-    createShelfCallableFutureCallCreateShelfRequest();
+    asyncCreateShelf();
   }
 
-  public static void createShelfCallableFutureCallCreateShelfRequest() throws Exception {
+  public static void asyncCreateShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -40,4 +40,4 @@ public static void createShelfCallableFutureCallCreateShelfRequest() throws Exce
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_createshelf_callablefuturecallcreateshelfrequest_sync]
+// [END library_v1_generated_libraryserviceclient_createshelf_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/SyncCreateShelf.java
similarity index 83%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/SyncCreateShelf.java
index f0dcfc5fdb..de9ecdb0c1 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfCreateShelfRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/SyncCreateShelf.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_createshelf_createshelfrequest_sync]
+// [START library_v1_generated_libraryserviceclient_createshelf_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.CreateShelfRequest;
 import com.google.example.library.v1.Shelf;
 
-public class CreateShelfCreateShelfRequest {
+public class SyncCreateShelf {
 
   public static void main(String[] args) throws Exception {
-    createShelfCreateShelfRequest();
+    syncCreateShelf();
   }
 
-  public static void createShelfCreateShelfRequest() throws Exception {
+  public static void syncCreateShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -37,4 +37,4 @@ public static void createShelfCreateShelfRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_createshelf_createshelfrequest_sync]
+// [END library_v1_generated_libraryserviceclient_createshelf_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/SyncCreateShelfShelf.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/SyncCreateShelfShelf.java
index e8816af5f9..ebf578cbd1 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/CreateShelfShelf.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/createshelf/SyncCreateShelfShelf.java
@@ -20,13 +20,13 @@
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Shelf;
 
-public class CreateShelfShelf {
+public class SyncCreateShelfShelf {
 
   public static void main(String[] args) throws Exception {
-    createShelfShelf();
+    syncCreateShelfShelf();
   }
 
-  public static void createShelfShelf() throws Exception {
+  public static void syncCreateShelfShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/AsyncDeleteBook.java
similarity index 78%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/AsyncDeleteBook.java
index b7a1587b7e..4f8c7cb482 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookCallableFutureCallDeleteBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/AsyncDeleteBook.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_deletebook_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.DeleteBookRequest;
 import com.google.protobuf.Empty;
 
-public class DeleteBookCallableFutureCallDeleteBookRequest {
+public class AsyncDeleteBook {
 
   public static void main(String[] args) throws Exception {
-    deleteBookCallableFutureCallDeleteBookRequest();
+    asyncDeleteBook();
   }
 
-  public static void deleteBookCallableFutureCallDeleteBookRequest() throws Exception {
+  public static void asyncDeleteBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteBookCallableFutureCallDeleteBookRequest() throws Except
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_deletebook_callablefuturecalldeletebookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_deletebook_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBook.java
similarity index 81%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBook.java
index 32b9c923a8..eb1d1783cc 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookDeleteBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBook.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_deletebook_deletebookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_deletebook_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.DeleteBookRequest;
 import com.google.protobuf.Empty;
 
-public class DeleteBookDeleteBookRequest {
+public class SyncDeleteBook {
 
   public static void main(String[] args) throws Exception {
-    deleteBookDeleteBookRequest();
+    syncDeleteBook();
   }
 
-  public static void deleteBookDeleteBookRequest() throws Exception {
+  public static void syncDeleteBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteBookDeleteBookRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_deletebook_deletebookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_deletebook_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBookBookname.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBookBookname.java
index c21df763bd..195bb8beed 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookBookName.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBookBookname.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.BookName;
 import com.google.protobuf.Empty;
 
-public class DeleteBookBookName {
+public class SyncDeleteBookBookname {
 
   public static void main(String[] args) throws Exception {
-    deleteBookBookName();
+    syncDeleteBookBookname();
   }
 
-  public static void deleteBookBookName() throws Exception {
+  public static void syncDeleteBookBookname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBookString.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBookString.java
index 54528721e9..4500043b48 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/DeleteBookString.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deletebook/SyncDeleteBookString.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.BookName;
 import com.google.protobuf.Empty;
 
-public class DeleteBookString {
+public class SyncDeleteBookString {
 
   public static void main(String[] args) throws Exception {
-    deleteBookString();
+    syncDeleteBookString();
   }
 
-  public static void deleteBookString() throws Exception {
+  public static void syncDeleteBookString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/AsyncDeleteShelf.java
similarity index 81%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/AsyncDeleteShelf.java
index de55fc22cf..420edb975f 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfCallableFutureCallDeleteShelfRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/AsyncDeleteShelf.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest_sync]
+// [START library_v1_generated_libraryserviceclient_deleteshelf_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.DeleteShelfRequest;
 import com.google.example.library.v1.ShelfName;
 import com.google.protobuf.Empty;
 
-public class DeleteShelfCallableFutureCallDeleteShelfRequest {
+public class AsyncDeleteShelf {
 
   public static void main(String[] args) throws Exception {
-    deleteShelfCallableFutureCallDeleteShelfRequest();
+    asyncDeleteShelf();
   }
 
-  public static void deleteShelfCallableFutureCallDeleteShelfRequest() throws Exception {
+  public static void asyncDeleteShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void deleteShelfCallableFutureCallDeleteShelfRequest() throws Exce
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_deleteshelf_callablefuturecalldeleteshelfrequest_sync]
+// [END library_v1_generated_libraryserviceclient_deleteshelf_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelf.java
similarity index 84%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelf.java
index 0e87b54b58..45bdccf0ff 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfDeleteShelfRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelf.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest_sync]
+// [START library_v1_generated_libraryserviceclient_deleteshelf_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.DeleteShelfRequest;
 import com.google.example.library.v1.ShelfName;
 import com.google.protobuf.Empty;
 
-public class DeleteShelfDeleteShelfRequest {
+public class SyncDeleteShelf {
 
   public static void main(String[] args) throws Exception {
-    deleteShelfDeleteShelfRequest();
+    syncDeleteShelf();
   }
 
-  public static void deleteShelfDeleteShelfRequest() throws Exception {
+  public static void syncDeleteShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -38,4 +38,4 @@ public static void deleteShelfDeleteShelfRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_deleteshelf_deleteshelfrequest_sync]
+// [END library_v1_generated_libraryserviceclient_deleteshelf_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelfShelfname.java
similarity index 90%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelfShelfname.java
index 2e2b06001b..703b210a31 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfShelfName.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelfShelfname.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.ShelfName;
 import com.google.protobuf.Empty;
 
-public class DeleteShelfShelfName {
+public class SyncDeleteShelfShelfname {
 
   public static void main(String[] args) throws Exception {
-    deleteShelfShelfName();
+    syncDeleteShelfShelfname();
   }
 
-  public static void deleteShelfShelfName() throws Exception {
+  public static void syncDeleteShelfShelfname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelfString.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelfString.java
index c6eaff1711..9b13123cae 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/DeleteShelfString.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/deleteshelf/SyncDeleteShelfString.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.ShelfName;
 import com.google.protobuf.Empty;
 
-public class DeleteShelfString {
+public class SyncDeleteShelfString {
 
   public static void main(String[] args) throws Exception {
-    deleteShelfString();
+    syncDeleteShelfString();
   }
 
-  public static void deleteShelfString() throws Exception {
+  public static void syncDeleteShelfString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/AsyncGetBook.java
similarity index 79%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/AsyncGetBook.java
index 997dfc3f08..7d2e5d5923 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookCallableFutureCallGetBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/AsyncGetBook.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_getbook_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.GetBookRequest;
 
-public class GetBookCallableFutureCallGetBookRequest {
+public class AsyncGetBook {
 
   public static void main(String[] args) throws Exception {
-    getBookCallableFutureCallGetBookRequest();
+    asyncGetBook();
   }
 
-  public static void getBookCallableFutureCallGetBookRequest() throws Exception {
+  public static void asyncGetBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void getBookCallableFutureCallGetBookRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_getbook_callablefuturecallgetbookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_getbook_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBook.java
similarity index 82%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBook.java
index ee59555cd8..86ee72d85a 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookGetBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBook.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_getbook_getbookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_getbook_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.GetBookRequest;
 
-public class GetBookGetBookRequest {
+public class SyncGetBook {
 
   public static void main(String[] args) throws Exception {
-    getBookGetBookRequest();
+    syncGetBook();
   }
 
-  public static void getBookGetBookRequest() throws Exception {
+  public static void syncGetBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -38,4 +38,4 @@ public static void getBookGetBookRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_getbook_getbookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_getbook_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBookBookname.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBookBookname.java
index 4712d2e739..616dd30c7a 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookBookName.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBookBookname.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.BookName;
 
-public class GetBookBookName {
+public class SyncGetBookBookname {
 
   public static void main(String[] args) throws Exception {
-    getBookBookName();
+    syncGetBookBookname();
   }
 
-  public static void getBookBookName() throws Exception {
+  public static void syncGetBookBookname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBookString.java
similarity index 92%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBookString.java
index 98ff532a1b..85bd33a6d1 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/GetBookString.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getbook/SyncGetBookString.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.BookName;
 
-public class GetBookString {
+public class SyncGetBookString {
 
   public static void main(String[] args) throws Exception {
-    getBookString();
+    syncGetBookString();
   }
 
-  public static void getBookString() throws Exception {
+  public static void syncGetBookString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/AsyncGetShelf.java
similarity index 79%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/AsyncGetShelf.java
index 20c140f674..64549e0341 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfCallableFutureCallGetShelfRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/AsyncGetShelf.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest_sync]
+// [START library_v1_generated_libraryserviceclient_getshelf_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.GetShelfRequest;
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class GetShelfCallableFutureCallGetShelfRequest {
+public class AsyncGetShelf {
 
   public static void main(String[] args) throws Exception {
-    getShelfCallableFutureCallGetShelfRequest();
+    asyncGetShelf();
   }
 
-  public static void getShelfCallableFutureCallGetShelfRequest() throws Exception {
+  public static void asyncGetShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void getShelfCallableFutureCallGetShelfRequest() throws Exception
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_getshelf_callablefuturecallgetshelfrequest_sync]
+// [END library_v1_generated_libraryserviceclient_getshelf_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelf.java
similarity index 82%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelf.java
index 8620040e21..4b15cde43b 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfGetShelfRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelf.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_getshelf_getshelfrequest_sync]
+// [START library_v1_generated_libraryserviceclient_getshelf_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.GetShelfRequest;
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class GetShelfGetShelfRequest {
+public class SyncGetShelf {
 
   public static void main(String[] args) throws Exception {
-    getShelfGetShelfRequest();
+    syncGetShelf();
   }
 
-  public static void getShelfGetShelfRequest() throws Exception {
+  public static void syncGetShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -38,4 +38,4 @@ public static void getShelfGetShelfRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_getshelf_getshelfrequest_sync]
+// [END library_v1_generated_libraryserviceclient_getshelf_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelfShelfname.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelfShelfname.java
index 09ec3c10b5..55fe6e60eb 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfShelfName.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelfShelfname.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class GetShelfShelfName {
+public class SyncGetShelfShelfname {
 
   public static void main(String[] args) throws Exception {
-    getShelfShelfName();
+    syncGetShelfShelfname();
   }
 
-  public static void getShelfShelfName() throws Exception {
+  public static void syncGetShelfShelfname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelfString.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelfString.java
index 87b86ee5ad..4182d61edd 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/GetShelfString.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/getshelf/SyncGetShelfString.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class GetShelfString {
+public class SyncGetShelfString {
 
   public static void main(String[] args) throws Exception {
-    getShelfString();
+    syncGetShelfString();
   }
 
-  public static void getShelfString() throws Exception {
+  public static void syncGetShelfString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/AsyncListBooksPagedCallable.java
similarity index 85%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/AsyncListBooksPagedCallable.java
index e0dce6d501..d78b045a1d 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksPagedCallableFutureCallListBooksRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/AsyncListBooksPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest_sync]
+// [START library_v1_generated_libraryserviceclient_listbooks_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.ListBooksRequest;
 import com.google.example.library.v1.ShelfName;
 
-public class ListBooksPagedCallableFutureCallListBooksRequest {
+public class AsyncListBooksPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listBooksPagedCallableFutureCallListBooksRequest();
+    asyncListBooksPagedCallable();
   }
 
-  public static void listBooksPagedCallableFutureCallListBooksRequest() throws Exception {
+  public static void asyncListBooksPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -47,4 +47,4 @@ public static void listBooksPagedCallableFutureCallListBooksRequest() throws Exc
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_listbooks_pagedcallablefuturecalllistbooksrequest_sync]
+// [END library_v1_generated_libraryserviceclient_listbooks_pagedcallable_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooks.java
similarity index 81%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooks.java
index cc2880fc7c..90672f2a15 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksListBooksRequestIterateAll.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooks.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall_sync]
+// [START library_v1_generated_libraryserviceclient_listbooks_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.ListBooksRequest;
 import com.google.example.library.v1.ShelfName;
 
-public class ListBooksListBooksRequestIterateAll {
+public class SyncListBooks {
 
   public static void main(String[] args) throws Exception {
-    listBooksListBooksRequestIterateAll();
+    syncListBooks();
   }
 
-  public static void listBooksListBooksRequestIterateAll() throws Exception {
+  public static void syncListBooks() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void listBooksListBooksRequestIterateAll() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_listbooks_listbooksrequestiterateall_sync]
+// [END library_v1_generated_libraryserviceclient_listbooks_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksPaged.java
similarity index 84%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksPaged.java
index 6808c5044e..10c74b428c 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksCallableCallListBooksRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest_sync]
+// [START library_v1_generated_libraryserviceclient_listbooks_paged_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.common.base.Strings;
 import com.google.example.library.v1.Book;
@@ -24,13 +24,13 @@
 import com.google.example.library.v1.ListBooksResponse;
 import com.google.example.library.v1.ShelfName;
 
-public class ListBooksCallableCallListBooksRequest {
+public class SyncListBooksPaged {
 
   public static void main(String[] args) throws Exception {
-    listBooksCallableCallListBooksRequest();
+    syncListBooksPaged();
   }
 
-  public static void listBooksCallableCallListBooksRequest() throws Exception {
+  public static void syncListBooksPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -55,4 +55,4 @@ public static void listBooksCallableCallListBooksRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_listbooks_callablecalllistbooksrequest_sync]
+// [END library_v1_generated_libraryserviceclient_listbooks_paged_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksShelfname.java
similarity index 87%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksShelfname.java
index fda2ef5d63..8669c72af0 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksShelfNameIterateAll.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksShelfname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall_sync]
+// [START library_v1_generated_libraryserviceclient_listbooks_shelfname_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.ShelfName;
 
-public class ListBooksShelfNameIterateAll {
+public class SyncListBooksShelfname {
 
   public static void main(String[] args) throws Exception {
-    listBooksShelfNameIterateAll();
+    syncListBooksShelfname();
   }
 
-  public static void listBooksShelfNameIterateAll() throws Exception {
+  public static void syncListBooksShelfname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -38,4 +38,4 @@ public static void listBooksShelfNameIterateAll() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_listbooks_shelfnameiterateall_sync]
+// [END library_v1_generated_libraryserviceclient_listbooks_shelfname_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksString.java
similarity index 88%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksString.java
index 5217b54643..ca888a75d3 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/ListBooksStringIterateAll.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/SyncListBooksString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_listbooks_stringiterateall_sync]
+// [START library_v1_generated_libraryserviceclient_listbooks_string_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.ShelfName;
 
-public class ListBooksStringIterateAll {
+public class SyncListBooksString {
 
   public static void main(String[] args) throws Exception {
-    listBooksStringIterateAll();
+    syncListBooksString();
   }
 
-  public static void listBooksStringIterateAll() throws Exception {
+  public static void syncListBooksString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -38,4 +38,4 @@ public static void listBooksStringIterateAll() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_listbooks_stringiterateall_sync]
+// [END library_v1_generated_libraryserviceclient_listbooks_string_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/AsyncListShelvesPagedCallable.java
similarity index 84%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/AsyncListShelvesPagedCallable.java
index 8caa98ab67..43aa8b6ff9 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesPagedCallableFutureCallListShelvesRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/AsyncListShelvesPagedCallable.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest_sync]
+// [START library_v1_generated_libraryserviceclient_listshelves_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.ListShelvesRequest;
 import com.google.example.library.v1.Shelf;
 
-public class ListShelvesPagedCallableFutureCallListShelvesRequest {
+public class AsyncListShelvesPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listShelvesPagedCallableFutureCallListShelvesRequest();
+    asyncListShelvesPagedCallable();
   }
 
-  public static void listShelvesPagedCallableFutureCallListShelvesRequest() throws Exception {
+  public static void asyncListShelvesPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -45,4 +45,4 @@ public static void listShelvesPagedCallableFutureCallListShelvesRequest() throws
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_listshelves_pagedcallablefuturecalllistshelvesrequest_sync]
+// [END library_v1_generated_libraryserviceclient_listshelves_pagedcallable_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/SyncListShelves.java
similarity index 82%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/SyncListShelves.java
index ad8d52b197..8c1126dbea 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesListShelvesRequestIterateAll.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/SyncListShelves.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall_sync]
+// [START library_v1_generated_libraryserviceclient_listshelves_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.ListShelvesRequest;
 import com.google.example.library.v1.Shelf;
 
-public class ListShelvesListShelvesRequestIterateAll {
+public class SyncListShelves {
 
   public static void main(String[] args) throws Exception {
-    listShelvesListShelvesRequestIterateAll();
+    syncListShelves();
   }
 
-  public static void listShelvesListShelvesRequestIterateAll() throws Exception {
+  public static void syncListShelves() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void listShelvesListShelvesRequestIterateAll() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_listshelves_listshelvesrequestiterateall_sync]
+// [END library_v1_generated_libraryserviceclient_listshelves_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/SyncListShelvesPaged.java
similarity index 85%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/SyncListShelvesPaged.java
index 936e1292be..df2191c3cb 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/ListShelvesCallableCallListShelvesRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/SyncListShelvesPaged.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest_sync]
+// [START library_v1_generated_libraryserviceclient_listshelves_paged_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.common.base.Strings;
 import com.google.example.library.v1.ListShelvesRequest;
 import com.google.example.library.v1.ListShelvesResponse;
 import com.google.example.library.v1.Shelf;
 
-public class ListShelvesCallableCallListShelvesRequest {
+public class SyncListShelvesPaged {
 
   public static void main(String[] args) throws Exception {
-    listShelvesCallableCallListShelvesRequest();
+    syncListShelvesPaged();
   }
 
-  public static void listShelvesCallableCallListShelvesRequest() throws Exception {
+  public static void syncListShelvesPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -53,4 +53,4 @@ public static void listShelvesCallableCallListShelvesRequest() throws Exception
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_listshelves_callablecalllistshelvesrequest_sync]
+// [END library_v1_generated_libraryserviceclient_listshelves_paged_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/AsyncMergeShelves.java
similarity index 82%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/AsyncMergeShelves.java
index a9b62981e2..ceb7b3484b 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesCallableFutureCallMergeShelvesRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/AsyncMergeShelves.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest_sync]
+// [START library_v1_generated_libraryserviceclient_mergeshelves_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.MergeShelvesRequest;
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class MergeShelvesCallableFutureCallMergeShelvesRequest {
+public class AsyncMergeShelves {
 
   public static void main(String[] args) throws Exception {
-    mergeShelvesCallableFutureCallMergeShelvesRequest();
+    asyncMergeShelves();
   }
 
-  public static void mergeShelvesCallableFutureCallMergeShelvesRequest() throws Exception {
+  public static void asyncMergeShelves() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void mergeShelvesCallableFutureCallMergeShelvesRequest() throws Ex
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_mergeshelves_callablefuturecallmergeshelvesrequest_sync]
+// [END library_v1_generated_libraryserviceclient_mergeshelves_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelves.java
similarity index 84%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelves.java
index 3c8e9953f5..cd4880bd6e 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesMergeShelvesRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelves.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest_sync]
+// [START library_v1_generated_libraryserviceclient_mergeshelves_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.MergeShelvesRequest;
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class MergeShelvesMergeShelvesRequest {
+public class SyncMergeShelves {
 
   public static void main(String[] args) throws Exception {
-    mergeShelvesMergeShelvesRequest();
+    syncMergeShelves();
   }
 
-  public static void mergeShelvesMergeShelvesRequest() throws Exception {
+  public static void syncMergeShelves() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void mergeShelvesMergeShelvesRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_mergeshelves_mergeshelvesrequest_sync]
+// [END library_v1_generated_libraryserviceclient_mergeshelves_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesShelfnameShelfname.java
similarity index 89%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesShelfnameShelfname.java
index 765bbd0585..bdd3bbd9f3 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameShelfName.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesShelfnameShelfname.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class MergeShelvesShelfNameShelfName {
+public class SyncMergeShelvesShelfnameShelfname {
 
   public static void main(String[] args) throws Exception {
-    mergeShelvesShelfNameShelfName();
+    syncMergeShelvesShelfnameShelfname();
   }
 
-  public static void mergeShelvesShelfNameShelfName() throws Exception {
+  public static void syncMergeShelvesShelfnameShelfname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesShelfnameString.java
similarity index 90%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesShelfnameString.java
index bddfdb5640..30b07581e2 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesShelfNameString.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesShelfnameString.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class MergeShelvesShelfNameString {
+public class SyncMergeShelvesShelfnameString {
 
   public static void main(String[] args) throws Exception {
-    mergeShelvesShelfNameString();
+    syncMergeShelvesShelfnameString();
   }
 
-  public static void mergeShelvesShelfNameString() throws Exception {
+  public static void syncMergeShelvesShelfnameString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesStringShelfname.java
similarity index 90%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesStringShelfname.java
index 514902ad1e..a35863f85c 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringShelfName.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesStringShelfname.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class MergeShelvesStringShelfName {
+public class SyncMergeShelvesStringShelfname {
 
   public static void main(String[] args) throws Exception {
-    mergeShelvesStringShelfName();
+    syncMergeShelvesStringShelfname();
   }
 
-  public static void mergeShelvesStringShelfName() throws Exception {
+  public static void syncMergeShelvesStringShelfname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesStringString.java
similarity index 90%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesStringString.java
index 9684e113cb..3e7b021146 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/MergeShelvesStringString.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/mergeshelves/SyncMergeShelvesStringString.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Shelf;
 import com.google.example.library.v1.ShelfName;
 
-public class MergeShelvesStringString {
+public class SyncMergeShelvesStringString {
 
   public static void main(String[] args) throws Exception {
-    mergeShelvesStringString();
+    syncMergeShelvesStringString();
   }
 
-  public static void mergeShelvesStringString() throws Exception {
+  public static void syncMergeShelvesStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/AsyncMoveBook.java
similarity index 80%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/AsyncMoveBook.java
index de43ac7565..2269627946 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookCallableFutureCallMoveBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/AsyncMoveBook.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_movebook_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
@@ -24,13 +24,13 @@
 import com.google.example.library.v1.MoveBookRequest;
 import com.google.example.library.v1.ShelfName;
 
-public class MoveBookCallableFutureCallMoveBookRequest {
+public class AsyncMoveBook {
 
   public static void main(String[] args) throws Exception {
-    moveBookCallableFutureCallMoveBookRequest();
+    asyncMoveBook();
   }
 
-  public static void moveBookCallableFutureCallMoveBookRequest() throws Exception {
+  public static void asyncMoveBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -45,4 +45,4 @@ public static void moveBookCallableFutureCallMoveBookRequest() throws Exception
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_movebook_callablefuturecallmovebookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_movebook_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBook.java
similarity index 83%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBook.java
index eae71f327e..cf9d52b768 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookMoveBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBook.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_movebook_movebookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_movebook_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.MoveBookRequest;
 import com.google.example.library.v1.ShelfName;
 
-public class MoveBookMoveBookRequest {
+public class SyncMoveBook {
 
   public static void main(String[] args) throws Exception {
-    moveBookMoveBookRequest();
+    syncMoveBook();
   }
 
-  public static void moveBookMoveBookRequest() throws Exception {
+  public static void syncMoveBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void moveBookMoveBookRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_movebook_movebookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_movebook_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookBooknameShelfname.java
similarity index 90%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookBooknameShelfname.java
index fd104a1ee5..228696e512 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameShelfName.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookBooknameShelfname.java
@@ -22,13 +22,13 @@
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.ShelfName;
 
-public class MoveBookBookNameShelfName {
+public class SyncMoveBookBooknameShelfname {
 
   public static void main(String[] args) throws Exception {
-    moveBookBookNameShelfName();
+    syncMoveBookBooknameShelfname();
   }
 
-  public static void moveBookBookNameShelfName() throws Exception {
+  public static void syncMoveBookBooknameShelfname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookBooknameString.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookBooknameString.java
index 5410c2f901..a85e71ca34 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookBookNameString.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookBooknameString.java
@@ -22,13 +22,13 @@
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.ShelfName;
 
-public class MoveBookBookNameString {
+public class SyncMoveBookBooknameString {
 
   public static void main(String[] args) throws Exception {
-    moveBookBookNameString();
+    syncMoveBookBooknameString();
   }
 
-  public static void moveBookBookNameString() throws Exception {
+  public static void syncMoveBookBooknameString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookStringShelfname.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookStringShelfname.java
index c8e32abea6..3ab3f3b124 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringShelfName.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookStringShelfname.java
@@ -22,13 +22,13 @@
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.ShelfName;
 
-public class MoveBookStringShelfName {
+public class SyncMoveBookStringShelfname {
 
   public static void main(String[] args) throws Exception {
-    moveBookStringShelfName();
+    syncMoveBookStringShelfname();
   }
 
-  public static void moveBookStringShelfName() throws Exception {
+  public static void syncMoveBookStringShelfname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookStringString.java
similarity index 91%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookStringString.java
index 557201be28..252ec2e0b0 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/MoveBookStringString.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/movebook/SyncMoveBookStringString.java
@@ -22,13 +22,13 @@
 import com.google.example.library.v1.BookName;
 import com.google.example.library.v1.ShelfName;
 
-public class MoveBookStringString {
+public class SyncMoveBookStringString {
 
   public static void main(String[] args) throws Exception {
-    moveBookStringString();
+    syncMoveBookStringString();
   }
 
-  public static void moveBookStringString() throws Exception {
+  public static void syncMoveBookStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/AsyncUpdateBook.java
similarity index 79%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/AsyncUpdateBook.java
index 5e15bb0c0f..d11b4c1c5a 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookCallableFutureCallUpdateBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/AsyncUpdateBook.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_updatebook_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.UpdateBookRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateBookCallableFutureCallUpdateBookRequest {
+public class AsyncUpdateBook {
 
   public static void main(String[] args) throws Exception {
-    updateBookCallableFutureCallUpdateBookRequest();
+    asyncUpdateBook();
   }
 
-  public static void updateBookCallableFutureCallUpdateBookRequest() throws Exception {
+  public static void asyncUpdateBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void updateBookCallableFutureCallUpdateBookRequest() throws Except
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_updatebook_callablefuturecallupdatebookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_updatebook_async]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/SyncUpdateBook.java
similarity index 81%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/SyncUpdateBook.java
index 07b3c6c025..5ac4ffd2ce 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookUpdateBookRequest.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/SyncUpdateBook.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryserviceclient_updatebook_updatebookrequest_sync]
+// [START library_v1_generated_libraryserviceclient_updatebook_sync]
 import com.google.cloud.example.library.v1.LibraryServiceClient;
 import com.google.example.library.v1.Book;
 import com.google.example.library.v1.UpdateBookRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateBookUpdateBookRequest {
+public class SyncUpdateBook {
 
   public static void main(String[] args) throws Exception {
-    updateBookUpdateBookRequest();
+    syncUpdateBook();
   }
 
-  public static void updateBookUpdateBookRequest() throws Exception {
+  public static void syncUpdateBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void updateBookUpdateBookRequest() throws Exception {
     }
   }
 }
-// [END library_v1_generated_libraryserviceclient_updatebook_updatebookrequest_sync]
+// [END library_v1_generated_libraryserviceclient_updatebook_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/SyncUpdateBookBookFieldmask.java
similarity index 90%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/SyncUpdateBookBookFieldmask.java
index d8c6cef2a6..e8c6231b35 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/UpdateBookBookFieldMask.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryserviceclient/updatebook/SyncUpdateBookBookFieldmask.java
@@ -21,13 +21,13 @@
 import com.google.example.library.v1.Book;
 import com.google.protobuf.FieldMask;
 
-public class UpdateBookBookFieldMask {
+public class SyncUpdateBookBookFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateBookBookFieldMask();
+    syncUpdateBookBookFieldmask();
   }
 
-  public static void updateBookBookFieldMask() throws Exception {
+  public static void syncUpdateBookBookFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/SyncCreateShelf.java
similarity index 82%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/SyncCreateShelf.java
index 168dddc41d..09c41fca35 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceSettings.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/SyncCreateShelf.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.example.library.v1.samples;
 
-// [START library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings_sync]
+// [START library_v1_generated_libraryservicesettings_createshelf_sync]
 import com.google.cloud.example.library.v1.LibraryServiceSettings;
 import java.time.Duration;
 
-public class CreateShelfSettingsSetRetrySettingsLibraryServiceSettings {
+public class SyncCreateShelf {
 
   public static void main(String[] args) throws Exception {
-    createShelfSettingsSetRetrySettingsLibraryServiceSettings();
+    syncCreateShelf();
   }
 
-  public static void createShelfSettingsSetRetrySettingsLibraryServiceSettings() throws Exception {
+  public static void syncCreateShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LibraryServiceSettings.Builder libraryServiceSettingsBuilder =
@@ -43,4 +43,4 @@ public static void createShelfSettingsSetRetrySettingsLibraryServiceSettings() t
     LibraryServiceSettings libraryServiceSettings = libraryServiceSettingsBuilder.build();
   }
 }
-// [END library_v1_generated_libraryservicesettings_createshelf_settingssetretrysettingslibraryservicesettings_sync]
+// [END library_v1_generated_libraryservicesettings_createshelf_sync]
diff --git a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/SyncCreateShelf.java
similarity index 81%
rename from test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java
rename to test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/SyncCreateShelf.java
index 4e36bdb499..7875366841 100644
--- a/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings.java
+++ b/test/integration/goldens/library/samples/generated/src/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/SyncCreateShelf.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.example.library.v1.stub.samples;
 
-// [START library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings_sync]
+// [START library_v1_generated_libraryservicestubsettings_createshelf_sync]
 import com.google.cloud.example.library.v1.stub.LibraryServiceStubSettings;
 import java.time.Duration;
 
-public class CreateShelfSettingsSetRetrySettingsLibraryServiceStubSettings {
+public class SyncCreateShelf {
 
   public static void main(String[] args) throws Exception {
-    createShelfSettingsSetRetrySettingsLibraryServiceStubSettings();
+    syncCreateShelf();
   }
 
-  public static void createShelfSettingsSetRetrySettingsLibraryServiceStubSettings()
-      throws Exception {
+  public static void syncCreateShelf() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LibraryServiceStubSettings.Builder libraryServiceSettingsBuilder =
@@ -44,4 +43,4 @@ public static void createShelfSettingsSetRetrySettingsLibraryServiceStubSettings
     LibraryServiceStubSettings libraryServiceSettings = libraryServiceSettingsBuilder.build();
   }
 }
-// [END library_v1_generated_libraryservicestubsettings_createshelf_settingssetretrysettingslibraryservicestubsettings_sync]
+// [END library_v1_generated_libraryservicestubsettings_createshelf_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/SyncCreateSetCredentialsProvider.java
index 8fa2de90ef..d8d41c4144 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings1.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_create_configsettings1_sync]
+// [START logging_v2_generated_configclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.cloud.logging.v2.ConfigSettings;
 import com.google.cloud.logging.v2.myCredentials;
 
-public class CreateConfigSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createConfigSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createConfigSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     ConfigSettings configSettings =
@@ -38,4 +38,4 @@ public static void createConfigSettings1() throws Exception {
     ConfigClient configClient = ConfigClient.create(configSettings);
   }
 }
-// [END logging_v2_generated_configclient_create_configsettings1_sync]
+// [END logging_v2_generated_configclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/SyncCreateSetEndpoint.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/SyncCreateSetEndpoint.java
index 738bfcc4f6..f87353a43e 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/CreateConfigSettings2.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/create/SyncCreateSetEndpoint.java
@@ -16,22 +16,22 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_create_configsettings2_sync]
+// [START logging_v2_generated_configclient_create_setendpoint_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.cloud.logging.v2.ConfigSettings;
 import com.google.cloud.logging.v2.myEndpoint;
 
-public class CreateConfigSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createConfigSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createConfigSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     ConfigSettings configSettings = ConfigSettings.newBuilder().setEndpoint(myEndpoint).build();
     ConfigClient configClient = ConfigClient.create(configSettings);
   }
 }
-// [END logging_v2_generated_configclient_create_configsettings2_sync]
+// [END logging_v2_generated_configclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/AsyncCreateBucket.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/AsyncCreateBucket.java
index 83b8fccb3e..75190b4528 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/AsyncCreateBucket.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest_sync]
+// [START logging_v2_generated_configclient_createbucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CreateBucketRequest;
 import com.google.logging.v2.LocationName;
 import com.google.logging.v2.LogBucket;
 
-public class CreateBucketCallableFutureCallCreateBucketRequest {
+public class AsyncCreateBucket {
 
   public static void main(String[] args) throws Exception {
-    createBucketCallableFutureCallCreateBucketRequest();
+    asyncCreateBucket();
   }
 
-  public static void createBucketCallableFutureCallCreateBucketRequest() throws Exception {
+  public static void asyncCreateBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -45,4 +45,4 @@ public static void createBucketCallableFutureCallCreateBucketRequest() throws Ex
     }
   }
 }
-// [END logging_v2_generated_configclient_createbucket_callablefuturecallcreatebucketrequest_sync]
+// [END logging_v2_generated_configclient_createbucket_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/SyncCreateBucket.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/SyncCreateBucket.java
index ef4afe9c5b..20e0d5b3a8 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/CreateBucketCreateBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createbucket/SyncCreateBucket.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_createbucket_createbucketrequest_sync]
+// [START logging_v2_generated_configclient_createbucket_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CreateBucketRequest;
 import com.google.logging.v2.LocationName;
 import com.google.logging.v2.LogBucket;
 
-public class CreateBucketCreateBucketRequest {
+public class SyncCreateBucket {
 
   public static void main(String[] args) throws Exception {
-    createBucketCreateBucketRequest();
+    syncCreateBucket();
   }
 
-  public static void createBucketCreateBucketRequest() throws Exception {
+  public static void syncCreateBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -42,4 +42,4 @@ public static void createBucketCreateBucketRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_createbucket_createbucketrequest_sync]
+// [END logging_v2_generated_configclient_createbucket_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/AsyncCreateExclusion.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/AsyncCreateExclusion.java
index 37a7094598..c3331613d8 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCallableFutureCallCreateExclusionRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/AsyncCreateExclusion.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest_sync]
+// [START logging_v2_generated_configclient_createexclusion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CreateExclusionRequest;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class CreateExclusionCallableFutureCallCreateExclusionRequest {
+public class AsyncCreateExclusion {
 
   public static void main(String[] args) throws Exception {
-    createExclusionCallableFutureCallCreateExclusionRequest();
+    asyncCreateExclusion();
   }
 
-  public static void createExclusionCallableFutureCallCreateExclusionRequest() throws Exception {
+  public static void asyncCreateExclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void createExclusionCallableFutureCallCreateExclusionRequest() thr
     }
   }
 }
-// [END logging_v2_generated_configclient_createexclusion_callablefuturecallcreateexclusionrequest_sync]
+// [END logging_v2_generated_configclient_createexclusion_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusion.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusion.java
index 250d267329..448c2e5950 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionCreateExclusionRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_createexclusion_createexclusionrequest_sync]
+// [START logging_v2_generated_configclient_createexclusion_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CreateExclusionRequest;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class CreateExclusionCreateExclusionRequest {
+public class SyncCreateExclusion {
 
   public static void main(String[] args) throws Exception {
-    createExclusionCreateExclusionRequest();
+    syncCreateExclusion();
   }
 
-  public static void createExclusionCreateExclusionRequest() throws Exception {
+  public static void syncCreateExclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -41,4 +41,4 @@ public static void createExclusionCreateExclusionRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_createexclusion_createexclusionrequest_sync]
+// [END logging_v2_generated_configclient_createexclusion_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionBillingaccountnameLogexclusion.java
similarity index 87%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionBillingaccountnameLogexclusion.java
index aa8edb89ee..92bd2d2f08 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionBillingAccountNameLogExclusion.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionBillingaccountnameLogexclusion.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.BillingAccountName;
 import com.google.logging.v2.LogExclusion;
 
-public class CreateExclusionBillingAccountNameLogExclusion {
+public class SyncCreateExclusionBillingaccountnameLogexclusion {
 
   public static void main(String[] args) throws Exception {
-    createExclusionBillingAccountNameLogExclusion();
+    syncCreateExclusionBillingaccountnameLogexclusion();
   }
 
-  public static void createExclusionBillingAccountNameLogExclusion() throws Exception {
+  public static void syncCreateExclusionBillingaccountnameLogexclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionFoldernameLogexclusion.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionFoldernameLogexclusion.java
index 24f19a5afb..0720cc4d27 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionFolderNameLogExclusion.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionFoldernameLogexclusion.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.FolderName;
 import com.google.logging.v2.LogExclusion;
 
-public class CreateExclusionFolderNameLogExclusion {
+public class SyncCreateExclusionFoldernameLogexclusion {
 
   public static void main(String[] args) throws Exception {
-    createExclusionFolderNameLogExclusion();
+    syncCreateExclusionFoldernameLogexclusion();
   }
 
-  public static void createExclusionFolderNameLogExclusion() throws Exception {
+  public static void syncCreateExclusionFoldernameLogexclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionOrganizationnameLogexclusion.java
similarity index 87%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionOrganizationnameLogexclusion.java
index 8e1434bab3..1e542fce44 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionOrganizationNameLogExclusion.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionOrganizationnameLogexclusion.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.OrganizationName;
 
-public class CreateExclusionOrganizationNameLogExclusion {
+public class SyncCreateExclusionOrganizationnameLogexclusion {
 
   public static void main(String[] args) throws Exception {
-    createExclusionOrganizationNameLogExclusion();
+    syncCreateExclusionOrganizationnameLogexclusion();
   }
 
-  public static void createExclusionOrganizationNameLogExclusion() throws Exception {
+  public static void syncCreateExclusionOrganizationnameLogexclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionProjectnameLogexclusion.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionProjectnameLogexclusion.java
index 3b510d1c97..b741f57dca 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionProjectNameLogExclusion.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionProjectnameLogexclusion.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class CreateExclusionProjectNameLogExclusion {
+public class SyncCreateExclusionProjectnameLogexclusion {
 
   public static void main(String[] args) throws Exception {
-    createExclusionProjectNameLogExclusion();
+    syncCreateExclusionProjectnameLogexclusion();
   }
 
-  public static void createExclusionProjectNameLogExclusion() throws Exception {
+  public static void syncCreateExclusionProjectnameLogexclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionStringLogexclusion.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionStringLogexclusion.java
index 4553c915b5..78831b5331 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/CreateExclusionStringLogExclusion.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createexclusion/SyncCreateExclusionStringLogexclusion.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class CreateExclusionStringLogExclusion {
+public class SyncCreateExclusionStringLogexclusion {
 
   public static void main(String[] args) throws Exception {
-    createExclusionStringLogExclusion();
+    syncCreateExclusionStringLogexclusion();
   }
 
-  public static void createExclusionStringLogExclusion() throws Exception {
+  public static void syncCreateExclusionStringLogexclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/AsyncCreateSink.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/AsyncCreateSink.java
index da8c1ac6a4..5feca6ac85 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCallableFutureCallCreateSinkRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/AsyncCreateSink.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest_sync]
+// [START logging_v2_generated_configclient_createsink_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CreateSinkRequest;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class CreateSinkCallableFutureCallCreateSinkRequest {
+public class AsyncCreateSink {
 
   public static void main(String[] args) throws Exception {
-    createSinkCallableFutureCallCreateSinkRequest();
+    asyncCreateSink();
   }
 
-  public static void createSinkCallableFutureCallCreateSinkRequest() throws Exception {
+  public static void asyncCreateSink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -45,4 +45,4 @@ public static void createSinkCallableFutureCallCreateSinkRequest() throws Except
     }
   }
 }
-// [END logging_v2_generated_configclient_createsink_callablefuturecallcreatesinkrequest_sync]
+// [END logging_v2_generated_configclient_createsink_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSink.java
similarity index 82%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSink.java
index b72c7bc05c..6492525c50 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkCreateSinkRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSink.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_createsink_createsinkrequest_sync]
+// [START logging_v2_generated_configclient_createsink_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CreateSinkRequest;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class CreateSinkCreateSinkRequest {
+public class SyncCreateSink {
 
   public static void main(String[] args) throws Exception {
-    createSinkCreateSinkRequest();
+    syncCreateSink();
   }
 
-  public static void createSinkCreateSinkRequest() throws Exception {
+  public static void syncCreateSink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -42,4 +42,4 @@ public static void createSinkCreateSinkRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_createsink_createsinkrequest_sync]
+// [END logging_v2_generated_configclient_createsink_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkBillingaccountnameLogsink.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkBillingaccountnameLogsink.java
index 2904fff9b6..9ea538c578 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkBillingAccountNameLogSink.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkBillingaccountnameLogsink.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.BillingAccountName;
 import com.google.logging.v2.LogSink;
 
-public class CreateSinkBillingAccountNameLogSink {
+public class SyncCreateSinkBillingaccountnameLogsink {
 
   public static void main(String[] args) throws Exception {
-    createSinkBillingAccountNameLogSink();
+    syncCreateSinkBillingaccountnameLogsink();
   }
 
-  public static void createSinkBillingAccountNameLogSink() throws Exception {
+  public static void syncCreateSinkBillingaccountnameLogsink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkFoldernameLogsink.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkFoldernameLogsink.java
index d28056d589..199f21f815 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkFolderNameLogSink.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkFoldernameLogsink.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.FolderName;
 import com.google.logging.v2.LogSink;
 
-public class CreateSinkFolderNameLogSink {
+public class SyncCreateSinkFoldernameLogsink {
 
   public static void main(String[] args) throws Exception {
-    createSinkFolderNameLogSink();
+    syncCreateSinkFoldernameLogsink();
   }
 
-  public static void createSinkFolderNameLogSink() throws Exception {
+  public static void syncCreateSinkFoldernameLogsink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkOrganizationnameLogsink.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkOrganizationnameLogsink.java
index 0684b4cf18..556c7ec71d 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkOrganizationNameLogSink.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkOrganizationnameLogsink.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.OrganizationName;
 
-public class CreateSinkOrganizationNameLogSink {
+public class SyncCreateSinkOrganizationnameLogsink {
 
   public static void main(String[] args) throws Exception {
-    createSinkOrganizationNameLogSink();
+    syncCreateSinkOrganizationnameLogsink();
   }
 
-  public static void createSinkOrganizationNameLogSink() throws Exception {
+  public static void syncCreateSinkOrganizationnameLogsink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkProjectnameLogsink.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkProjectnameLogsink.java
index 37aea3b147..16c09911a4 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkProjectNameLogSink.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkProjectnameLogsink.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class CreateSinkProjectNameLogSink {
+public class SyncCreateSinkProjectnameLogsink {
 
   public static void main(String[] args) throws Exception {
-    createSinkProjectNameLogSink();
+    syncCreateSinkProjectnameLogsink();
   }
 
-  public static void createSinkProjectNameLogSink() throws Exception {
+  public static void syncCreateSinkProjectnameLogsink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkStringLogsink.java
similarity index 90%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkStringLogsink.java
index a2bd74365c..b4ee60474d 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/CreateSinkStringLogSink.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createsink/SyncCreateSinkStringLogsink.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class CreateSinkStringLogSink {
+public class SyncCreateSinkStringLogsink {
 
   public static void main(String[] args) throws Exception {
-    createSinkStringLogSink();
+    syncCreateSinkStringLogsink();
   }
 
-  public static void createSinkStringLogSink() throws Exception {
+  public static void syncCreateSinkStringLogsink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/AsyncCreateView.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/AsyncCreateView.java
index da65f69a70..3965775a98 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCallableFutureCallCreateViewRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/AsyncCreateView.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest_sync]
+// [START logging_v2_generated_configclient_createview_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CreateViewRequest;
 import com.google.logging.v2.LogView;
 
-public class CreateViewCallableFutureCallCreateViewRequest {
+public class AsyncCreateView {
 
   public static void main(String[] args) throws Exception {
-    createViewCallableFutureCallCreateViewRequest();
+    asyncCreateView();
   }
 
-  public static void createViewCallableFutureCallCreateViewRequest() throws Exception {
+  public static void asyncCreateView() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void createViewCallableFutureCallCreateViewRequest() throws Except
     }
   }
 }
-// [END logging_v2_generated_configclient_createview_callablefuturecallcreateviewrequest_sync]
+// [END logging_v2_generated_configclient_createview_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/SyncCreateView.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/SyncCreateView.java
index 9408e4774f..8f3b00f1fc 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/CreateViewCreateViewRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/createview/SyncCreateView.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_createview_createviewrequest_sync]
+// [START logging_v2_generated_configclient_createview_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CreateViewRequest;
 import com.google.logging.v2.LogView;
 
-public class CreateViewCreateViewRequest {
+public class SyncCreateView {
 
   public static void main(String[] args) throws Exception {
-    createViewCreateViewRequest();
+    syncCreateView();
   }
 
-  public static void createViewCreateViewRequest() throws Exception {
+  public static void syncCreateView() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -41,4 +41,4 @@ public static void createViewCreateViewRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_createview_createviewrequest_sync]
+// [END logging_v2_generated_configclient_createview_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/AsyncDeleteBucket.java
similarity index 78%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/AsyncDeleteBucket.java
index e2485ec430..0798689fd3 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/AsyncDeleteBucket.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest_sync]
+// [START logging_v2_generated_configclient_deletebucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.DeleteBucketRequest;
 import com.google.logging.v2.LogBucketName;
 import com.google.protobuf.Empty;
 
-public class DeleteBucketCallableFutureCallDeleteBucketRequest {
+public class AsyncDeleteBucket {
 
   public static void main(String[] args) throws Exception {
-    deleteBucketCallableFutureCallDeleteBucketRequest();
+    asyncDeleteBucket();
   }
 
-  public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Exception {
+  public static void asyncDeleteBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -45,4 +45,4 @@ public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Ex
     }
   }
 }
-// [END logging_v2_generated_configclient_deletebucket_callablefuturecalldeletebucketrequest_sync]
+// [END logging_v2_generated_configclient_deletebucket_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/SyncDeleteBucket.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/SyncDeleteBucket.java
index 058f69d31e..d48a002db1 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/DeleteBucketDeleteBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletebucket/SyncDeleteBucket.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_deletebucket_deletebucketrequest_sync]
+// [START logging_v2_generated_configclient_deletebucket_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.DeleteBucketRequest;
 import com.google.logging.v2.LogBucketName;
 import com.google.protobuf.Empty;
 
-public class DeleteBucketDeleteBucketRequest {
+public class SyncDeleteBucket {
 
   public static void main(String[] args) throws Exception {
-    deleteBucketDeleteBucketRequest();
+    syncDeleteBucket();
   }
 
-  public static void deleteBucketDeleteBucketRequest() throws Exception {
+  public static void syncDeleteBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -42,4 +42,4 @@ public static void deleteBucketDeleteBucketRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_deletebucket_deletebucketrequest_sync]
+// [END logging_v2_generated_configclient_deletebucket_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/AsyncDeleteExclusion.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/AsyncDeleteExclusion.java
index 2afee4c697..21a399e11e 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionCallableFutureCallDeleteExclusionRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/AsyncDeleteExclusion.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest_sync]
+// [START logging_v2_generated_configclient_deleteexclusion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.DeleteExclusionRequest;
 import com.google.logging.v2.LogExclusionName;
 import com.google.protobuf.Empty;
 
-public class DeleteExclusionCallableFutureCallDeleteExclusionRequest {
+public class AsyncDeleteExclusion {
 
   public static void main(String[] args) throws Exception {
-    deleteExclusionCallableFutureCallDeleteExclusionRequest();
+    asyncDeleteExclusion();
   }
 
-  public static void deleteExclusionCallableFutureCallDeleteExclusionRequest() throws Exception {
+  public static void asyncDeleteExclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void deleteExclusionCallableFutureCallDeleteExclusionRequest() thr
     }
   }
 }
-// [END logging_v2_generated_configclient_deleteexclusion_callablefuturecalldeleteexclusionrequest_sync]
+// [END logging_v2_generated_configclient_deleteexclusion_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusion.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusion.java
index d4833f7b23..4eea01ed80 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionDeleteExclusionRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest_sync]
+// [START logging_v2_generated_configclient_deleteexclusion_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.DeleteExclusionRequest;
 import com.google.logging.v2.LogExclusionName;
 import com.google.protobuf.Empty;
 
-public class DeleteExclusionDeleteExclusionRequest {
+public class SyncDeleteExclusion {
 
   public static void main(String[] args) throws Exception {
-    deleteExclusionDeleteExclusionRequest();
+    syncDeleteExclusion();
   }
 
-  public static void deleteExclusionDeleteExclusionRequest() throws Exception {
+  public static void syncDeleteExclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -41,4 +41,4 @@ public static void deleteExclusionDeleteExclusionRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_deleteexclusion_deleteexclusionrequest_sync]
+// [END logging_v2_generated_configclient_deleteexclusion_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusionLogexclusionname.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusionLogexclusionname.java
index d3430d5527..84df5f5e4d 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionLogExclusionName.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusionLogexclusionname.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogExclusionName;
 import com.google.protobuf.Empty;
 
-public class DeleteExclusionLogExclusionName {
+public class SyncDeleteExclusionLogexclusionname {
 
   public static void main(String[] args) throws Exception {
-    deleteExclusionLogExclusionName();
+    syncDeleteExclusionLogexclusionname();
   }
 
-  public static void deleteExclusionLogExclusionName() throws Exception {
+  public static void syncDeleteExclusionLogexclusionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusionString.java
similarity index 90%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusionString.java
index 3fc408f47b..99a910b7e2 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/DeleteExclusionString.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteexclusion/SyncDeleteExclusionString.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogExclusionName;
 import com.google.protobuf.Empty;
 
-public class DeleteExclusionString {
+public class SyncDeleteExclusionString {
 
   public static void main(String[] args) throws Exception {
-    deleteExclusionString();
+    syncDeleteExclusionString();
   }
 
-  public static void deleteExclusionString() throws Exception {
+  public static void syncDeleteExclusionString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/AsyncDeleteSink.java
similarity index 78%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/AsyncDeleteSink.java
index 4ef16b7ba1..2defdb3fb5 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkCallableFutureCallDeleteSinkRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/AsyncDeleteSink.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest_sync]
+// [START logging_v2_generated_configclient_deletesink_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.DeleteSinkRequest;
 import com.google.logging.v2.LogSinkName;
 import com.google.protobuf.Empty;
 
-public class DeleteSinkCallableFutureCallDeleteSinkRequest {
+public class AsyncDeleteSink {
 
   public static void main(String[] args) throws Exception {
-    deleteSinkCallableFutureCallDeleteSinkRequest();
+    asyncDeleteSink();
   }
 
-  public static void deleteSinkCallableFutureCallDeleteSinkRequest() throws Exception {
+  public static void asyncDeleteSink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteSinkCallableFutureCallDeleteSinkRequest() throws Except
     }
   }
 }
-// [END logging_v2_generated_configclient_deletesink_callablefuturecalldeletesinkrequest_sync]
+// [END logging_v2_generated_configclient_deletesink_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSink.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSink.java
index 2d3e0765a5..ab83572efc 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkDeleteSinkRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSink.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_deletesink_deletesinkrequest_sync]
+// [START logging_v2_generated_configclient_deletesink_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.DeleteSinkRequest;
 import com.google.logging.v2.LogSinkName;
 import com.google.protobuf.Empty;
 
-public class DeleteSinkDeleteSinkRequest {
+public class SyncDeleteSink {
 
   public static void main(String[] args) throws Exception {
-    deleteSinkDeleteSinkRequest();
+    syncDeleteSink();
   }
 
-  public static void deleteSinkDeleteSinkRequest() throws Exception {
+  public static void syncDeleteSink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteSinkDeleteSinkRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_deletesink_deletesinkrequest_sync]
+// [END logging_v2_generated_configclient_deletesink_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSinkLogsinkname.java
similarity index 90%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSinkLogsinkname.java
index 21504eb69a..26dd24f2d1 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkLogSinkName.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSinkLogsinkname.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSinkName;
 import com.google.protobuf.Empty;
 
-public class DeleteSinkLogSinkName {
+public class SyncDeleteSinkLogsinkname {
 
   public static void main(String[] args) throws Exception {
-    deleteSinkLogSinkName();
+    syncDeleteSinkLogsinkname();
   }
 
-  public static void deleteSinkLogSinkName() throws Exception {
+  public static void syncDeleteSinkLogsinkname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSinkString.java
similarity index 91%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSinkString.java
index 75f04f1453..a70a666121 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/DeleteSinkString.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deletesink/SyncDeleteSinkString.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSinkName;
 import com.google.protobuf.Empty;
 
-public class DeleteSinkString {
+public class SyncDeleteSinkString {
 
   public static void main(String[] args) throws Exception {
-    deleteSinkString();
+    syncDeleteSinkString();
   }
 
-  public static void deleteSinkString() throws Exception {
+  public static void syncDeleteSinkString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/AsyncDeleteView.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/AsyncDeleteView.java
index 21f757502b..0c9335978f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewCallableFutureCallDeleteViewRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/AsyncDeleteView.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest_sync]
+// [START logging_v2_generated_configclient_deleteview_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.DeleteViewRequest;
 import com.google.logging.v2.LogViewName;
 import com.google.protobuf.Empty;
 
-public class DeleteViewCallableFutureCallDeleteViewRequest {
+public class AsyncDeleteView {
 
   public static void main(String[] args) throws Exception {
-    deleteViewCallableFutureCallDeleteViewRequest();
+    asyncDeleteView();
   }
 
-  public static void deleteViewCallableFutureCallDeleteViewRequest() throws Exception {
+  public static void asyncDeleteView() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -46,4 +46,4 @@ public static void deleteViewCallableFutureCallDeleteViewRequest() throws Except
     }
   }
 }
-// [END logging_v2_generated_configclient_deleteview_callablefuturecalldeleteviewrequest_sync]
+// [END logging_v2_generated_configclient_deleteview_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/SyncDeleteView.java
similarity index 82%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/SyncDeleteView.java
index 22bc149cb3..5970758e08 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/DeleteViewDeleteViewRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/deleteview/SyncDeleteView.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_deleteview_deleteviewrequest_sync]
+// [START logging_v2_generated_configclient_deleteview_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.DeleteViewRequest;
 import com.google.logging.v2.LogViewName;
 import com.google.protobuf.Empty;
 
-public class DeleteViewDeleteViewRequest {
+public class SyncDeleteView {
 
   public static void main(String[] args) throws Exception {
-    deleteViewDeleteViewRequest();
+    syncDeleteView();
   }
 
-  public static void deleteViewDeleteViewRequest() throws Exception {
+  public static void syncDeleteView() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteViewDeleteViewRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_deleteview_deleteviewrequest_sync]
+// [END logging_v2_generated_configclient_deleteview_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/AsyncGetBucket.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/AsyncGetBucket.java
index f9b93a4ed1..a8e9b6b108 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/AsyncGetBucket.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest_sync]
+// [START logging_v2_generated_configclient_getbucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.GetBucketRequest;
 import com.google.logging.v2.LogBucket;
 import com.google.logging.v2.LogBucketName;
 
-public class GetBucketCallableFutureCallGetBucketRequest {
+public class AsyncGetBucket {
 
   public static void main(String[] args) throws Exception {
-    getBucketCallableFutureCallGetBucketRequest();
+    asyncGetBucket();
   }
 
-  public static void getBucketCallableFutureCallGetBucketRequest() throws Exception {
+  public static void asyncGetBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -45,4 +45,4 @@ public static void getBucketCallableFutureCallGetBucketRequest() throws Exceptio
     }
   }
 }
-// [END logging_v2_generated_configclient_getbucket_callablefuturecallgetbucketrequest_sync]
+// [END logging_v2_generated_configclient_getbucket_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/SyncGetBucket.java
similarity index 82%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/SyncGetBucket.java
index d977838a01..de19568a33 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/GetBucketGetBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getbucket/SyncGetBucket.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getbucket_getbucketrequest_sync]
+// [START logging_v2_generated_configclient_getbucket_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.GetBucketRequest;
 import com.google.logging.v2.LogBucket;
 import com.google.logging.v2.LogBucketName;
 
-public class GetBucketGetBucketRequest {
+public class SyncGetBucket {
 
   public static void main(String[] args) throws Exception {
-    getBucketGetBucketRequest();
+    syncGetBucket();
   }
 
-  public static void getBucketGetBucketRequest() throws Exception {
+  public static void syncGetBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -42,4 +42,4 @@ public static void getBucketGetBucketRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_getbucket_getbucketrequest_sync]
+// [END logging_v2_generated_configclient_getbucket_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/AsyncGetCmekSettings.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/AsyncGetCmekSettings.java
index 468fc42978..35bd79e757 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsCallableFutureCallGetCmekSettingsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/AsyncGetCmekSettings.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest_sync]
+// [START logging_v2_generated_configclient_getcmeksettings_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CmekSettings;
 import com.google.logging.v2.CmekSettingsName;
 import com.google.logging.v2.GetCmekSettingsRequest;
 
-public class GetCmekSettingsCallableFutureCallGetCmekSettingsRequest {
+public class AsyncGetCmekSettings {
 
   public static void main(String[] args) throws Exception {
-    getCmekSettingsCallableFutureCallGetCmekSettingsRequest();
+    asyncGetCmekSettings();
   }
 
-  public static void getCmekSettingsCallableFutureCallGetCmekSettingsRequest() throws Exception {
+  public static void asyncGetCmekSettings() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -43,4 +43,4 @@ public static void getCmekSettingsCallableFutureCallGetCmekSettingsRequest() thr
     }
   }
 }
-// [END logging_v2_generated_configclient_getcmeksettings_callablefuturecallgetcmeksettingsrequest_sync]
+// [END logging_v2_generated_configclient_getcmeksettings_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/SyncGetCmekSettings.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/SyncGetCmekSettings.java
index f90078a758..489b7d7a55 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/GetCmekSettingsGetCmekSettingsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getcmeksettings/SyncGetCmekSettings.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest_sync]
+// [START logging_v2_generated_configclient_getcmeksettings_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CmekSettings;
 import com.google.logging.v2.CmekSettingsName;
 import com.google.logging.v2.GetCmekSettingsRequest;
 
-public class GetCmekSettingsGetCmekSettingsRequest {
+public class SyncGetCmekSettings {
 
   public static void main(String[] args) throws Exception {
-    getCmekSettingsGetCmekSettingsRequest();
+    syncGetCmekSettings();
   }
 
-  public static void getCmekSettingsGetCmekSettingsRequest() throws Exception {
+  public static void syncGetCmekSettings() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -40,4 +40,4 @@ public static void getCmekSettingsGetCmekSettingsRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_getcmeksettings_getcmeksettingsrequest_sync]
+// [END logging_v2_generated_configclient_getcmeksettings_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/AsyncGetExclusion.java
similarity index 78%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/AsyncGetExclusion.java
index ee4e54c1ae..966c48a490 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionCallableFutureCallGetExclusionRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/AsyncGetExclusion.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest_sync]
+// [START logging_v2_generated_configclient_getexclusion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.GetExclusionRequest;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.LogExclusionName;
 
-public class GetExclusionCallableFutureCallGetExclusionRequest {
+public class AsyncGetExclusion {
 
   public static void main(String[] args) throws Exception {
-    getExclusionCallableFutureCallGetExclusionRequest();
+    asyncGetExclusion();
   }
 
-  public static void getExclusionCallableFutureCallGetExclusionRequest() throws Exception {
+  public static void asyncGetExclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void getExclusionCallableFutureCallGetExclusionRequest() throws Ex
     }
   }
 }
-// [END logging_v2_generated_configclient_getexclusion_callablefuturecallgetexclusionrequest_sync]
+// [END logging_v2_generated_configclient_getexclusion_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusion.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusion.java
index b93b179e9a..993486736b 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionGetExclusionRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusion.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getexclusion_getexclusionrequest_sync]
+// [START logging_v2_generated_configclient_getexclusion_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.GetExclusionRequest;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.LogExclusionName;
 
-public class GetExclusionGetExclusionRequest {
+public class SyncGetExclusion {
 
   public static void main(String[] args) throws Exception {
-    getExclusionGetExclusionRequest();
+    syncGetExclusion();
   }
 
-  public static void getExclusionGetExclusionRequest() throws Exception {
+  public static void syncGetExclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -41,4 +41,4 @@ public static void getExclusionGetExclusionRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_getexclusion_getexclusionrequest_sync]
+// [END logging_v2_generated_configclient_getexclusion_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusionLogexclusionname.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusionLogexclusionname.java
index 59af3c4859..d778c37bb1 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionLogExclusionName.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusionLogexclusionname.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.LogExclusionName;
 
-public class GetExclusionLogExclusionName {
+public class SyncGetExclusionLogexclusionname {
 
   public static void main(String[] args) throws Exception {
-    getExclusionLogExclusionName();
+    syncGetExclusionLogexclusionname();
   }
 
-  public static void getExclusionLogExclusionName() throws Exception {
+  public static void syncGetExclusionLogexclusionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusionString.java
similarity index 91%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusionString.java
index 0a3ac2b671..e6fdc9bcf0 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/GetExclusionString.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getexclusion/SyncGetExclusionString.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.LogExclusionName;
 
-public class GetExclusionString {
+public class SyncGetExclusionString {
 
   public static void main(String[] args) throws Exception {
-    getExclusionString();
+    syncGetExclusionString();
   }
 
-  public static void getExclusionString() throws Exception {
+  public static void syncGetExclusionString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/AsyncGetSink.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/AsyncGetSink.java
index 2183b3661c..b9028ef060 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkCallableFutureCallGetSinkRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/AsyncGetSink.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest_sync]
+// [START logging_v2_generated_configclient_getsink_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.GetSinkRequest;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.LogSinkName;
 
-public class GetSinkCallableFutureCallGetSinkRequest {
+public class AsyncGetSink {
 
   public static void main(String[] args) throws Exception {
-    getSinkCallableFutureCallGetSinkRequest();
+    asyncGetSink();
   }
 
-  public static void getSinkCallableFutureCallGetSinkRequest() throws Exception {
+  public static void asyncGetSink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -43,4 +43,4 @@ public static void getSinkCallableFutureCallGetSinkRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_getsink_callablefuturecallgetsinkrequest_sync]
+// [END logging_v2_generated_configclient_getsink_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSink.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSink.java
index 067b615b80..21f4749a16 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkGetSinkRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSink.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getsink_getsinkrequest_sync]
+// [START logging_v2_generated_configclient_getsink_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.GetSinkRequest;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.LogSinkName;
 
-public class GetSinkGetSinkRequest {
+public class SyncGetSink {
 
   public static void main(String[] args) throws Exception {
-    getSinkGetSinkRequest();
+    syncGetSink();
   }
 
-  public static void getSinkGetSinkRequest() throws Exception {
+  public static void syncGetSink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -40,4 +40,4 @@ public static void getSinkGetSinkRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_getsink_getsinkrequest_sync]
+// [END logging_v2_generated_configclient_getsink_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSinkLogsinkname.java
similarity index 90%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSinkLogsinkname.java
index 8efa76a62d..3c63e0a3a8 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkLogSinkName.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSinkLogsinkname.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.LogSinkName;
 
-public class GetSinkLogSinkName {
+public class SyncGetSinkLogsinkname {
 
   public static void main(String[] args) throws Exception {
-    getSinkLogSinkName();
+    syncGetSinkLogsinkname();
   }
 
-  public static void getSinkLogSinkName() throws Exception {
+  public static void syncGetSinkLogsinkname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSinkString.java
similarity index 91%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSinkString.java
index 135035f4ff..e42fae0088 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/GetSinkString.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getsink/SyncGetSinkString.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.LogSinkName;
 
-public class GetSinkString {
+public class SyncGetSinkString {
 
   public static void main(String[] args) throws Exception {
-    getSinkString();
+    syncGetSinkString();
   }
 
-  public static void getSinkString() throws Exception {
+  public static void syncGetSinkString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/AsyncGetView.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/AsyncGetView.java
index bcd0d5c962..4d696c0d10 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewCallableFutureCallGetViewRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/AsyncGetView.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest_sync]
+// [START logging_v2_generated_configclient_getview_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.GetViewRequest;
 import com.google.logging.v2.LogView;
 import com.google.logging.v2.LogViewName;
 
-public class GetViewCallableFutureCallGetViewRequest {
+public class AsyncGetView {
 
   public static void main(String[] args) throws Exception {
-    getViewCallableFutureCallGetViewRequest();
+    asyncGetView();
   }
 
-  public static void getViewCallableFutureCallGetViewRequest() throws Exception {
+  public static void asyncGetView() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -46,4 +46,4 @@ public static void getViewCallableFutureCallGetViewRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_getview_callablefuturecallgetviewrequest_sync]
+// [END logging_v2_generated_configclient_getview_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/SyncGetView.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/SyncGetView.java
index d5301ce217..7c34344ca9 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/GetViewGetViewRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/getview/SyncGetView.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_getview_getviewrequest_sync]
+// [START logging_v2_generated_configclient_getview_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.GetViewRequest;
 import com.google.logging.v2.LogView;
 import com.google.logging.v2.LogViewName;
 
-public class GetViewGetViewRequest {
+public class SyncGetView {
 
   public static void main(String[] args) throws Exception {
-    getViewGetViewRequest();
+    syncGetView();
   }
 
-  public static void getViewGetViewRequest() throws Exception {
+  public static void syncGetView() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -43,4 +43,4 @@ public static void getViewGetViewRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_getview_getviewrequest_sync]
+// [END logging_v2_generated_configclient_getview_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/AsyncListBucketsPagedCallable.java
similarity index 85%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/AsyncListBucketsPagedCallable.java
index a0ba537faa..2215b7f5d4 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/AsyncListBucketsPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest_sync]
+// [START logging_v2_generated_configclient_listbuckets_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.ListBucketsRequest;
 import com.google.logging.v2.LocationName;
 import com.google.logging.v2.LogBucket;
 
-public class ListBucketsPagedCallableFutureCallListBucketsRequest {
+public class AsyncListBucketsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listBucketsPagedCallableFutureCallListBucketsRequest();
+    asyncListBucketsPagedCallable();
   }
 
-  public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws Exception {
+  public static void asyncListBucketsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -47,4 +47,4 @@ public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws
     }
   }
 }
-// [END logging_v2_generated_configclient_listbuckets_pagedcallablefuturecalllistbucketsrequest_sync]
+// [END logging_v2_generated_configclient_listbuckets_pagedcallable_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBuckets.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBuckets.java
index ebf5f247e7..d9a54bec64 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBuckets.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall_sync]
+// [START logging_v2_generated_configclient_listbuckets_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.ListBucketsRequest;
 import com.google.logging.v2.LocationName;
 import com.google.logging.v2.LogBucket;
 
-public class ListBucketsListBucketsRequestIterateAll {
+public class SyncListBuckets {
 
   public static void main(String[] args) throws Exception {
-    listBucketsListBucketsRequestIterateAll();
+    syncListBuckets();
   }
 
-  public static void listBucketsListBucketsRequestIterateAll() throws Exception {
+  public static void syncListBuckets() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void listBucketsListBucketsRequestIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listbuckets_listbucketsrequestiterateall_sync]
+// [END logging_v2_generated_configclient_listbuckets_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsBillingaccountlocationname.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsBillingaccountlocationname.java
index c64965a657..67d1df8d1b 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsBillingAccountLocationNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsBillingaccountlocationname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall_sync]
+// [START logging_v2_generated_configclient_listbuckets_billingaccountlocationname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.BillingAccountLocationName;
 import com.google.logging.v2.LogBucket;
 
-public class ListBucketsBillingAccountLocationNameIterateAll {
+public class SyncListBucketsBillingaccountlocationname {
 
   public static void main(String[] args) throws Exception {
-    listBucketsBillingAccountLocationNameIterateAll();
+    syncListBucketsBillingaccountlocationname();
   }
 
-  public static void listBucketsBillingAccountLocationNameIterateAll() throws Exception {
+  public static void syncListBucketsBillingaccountlocationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -39,4 +39,4 @@ public static void listBucketsBillingAccountLocationNameIterateAll() throws Exce
     }
   }
 }
-// [END logging_v2_generated_configclient_listbuckets_billingaccountlocationnameiterateall_sync]
+// [END logging_v2_generated_configclient_listbuckets_billingaccountlocationname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsFolderlocationname.java
similarity index 85%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsFolderlocationname.java
index 8b2fa1eb54..727e9b4fc5 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsFolderLocationNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsFolderlocationname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall_sync]
+// [START logging_v2_generated_configclient_listbuckets_folderlocationname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.FolderLocationName;
 import com.google.logging.v2.LogBucket;
 
-public class ListBucketsFolderLocationNameIterateAll {
+public class SyncListBucketsFolderlocationname {
 
   public static void main(String[] args) throws Exception {
-    listBucketsFolderLocationNameIterateAll();
+    syncListBucketsFolderlocationname();
   }
 
-  public static void listBucketsFolderLocationNameIterateAll() throws Exception {
+  public static void syncListBucketsFolderlocationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listBucketsFolderLocationNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listbuckets_folderlocationnameiterateall_sync]
+// [END logging_v2_generated_configclient_listbuckets_folderlocationname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsLocationname.java
similarity index 87%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsLocationname.java
index 0598ac959f..5d77cafba3 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsLocationNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsLocationname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listbuckets_locationnameiterateall_sync]
+// [START logging_v2_generated_configclient_listbuckets_locationname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LocationName;
 import com.google.logging.v2.LogBucket;
 
-public class ListBucketsLocationNameIterateAll {
+public class SyncListBucketsLocationname {
 
   public static void main(String[] args) throws Exception {
-    listBucketsLocationNameIterateAll();
+    syncListBucketsLocationname();
   }
 
-  public static void listBucketsLocationNameIterateAll() throws Exception {
+  public static void syncListBucketsLocationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listBucketsLocationNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listbuckets_locationnameiterateall_sync]
+// [END logging_v2_generated_configclient_listbuckets_locationname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsOrganizationlocationname.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsOrganizationlocationname.java
index 57e991ac63..7cecb6a90a 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsOrganizationLocationNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsOrganizationlocationname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall_sync]
+// [START logging_v2_generated_configclient_listbuckets_organizationlocationname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogBucket;
 import com.google.logging.v2.OrganizationLocationName;
 
-public class ListBucketsOrganizationLocationNameIterateAll {
+public class SyncListBucketsOrganizationlocationname {
 
   public static void main(String[] args) throws Exception {
-    listBucketsOrganizationLocationNameIterateAll();
+    syncListBucketsOrganizationlocationname();
   }
 
-  public static void listBucketsOrganizationLocationNameIterateAll() throws Exception {
+  public static void syncListBucketsOrganizationlocationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listBucketsOrganizationLocationNameIterateAll() throws Except
     }
   }
 }
-// [END logging_v2_generated_configclient_listbuckets_organizationlocationnameiterateall_sync]
+// [END logging_v2_generated_configclient_listbuckets_organizationlocationname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsPaged.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsPaged.java
index d6ee9e9982..ad05c3d0fc 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest_sync]
+// [START logging_v2_generated_configclient_listbuckets_paged_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.common.base.Strings;
 import com.google.logging.v2.ListBucketsRequest;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.LocationName;
 import com.google.logging.v2.LogBucket;
 
-public class ListBucketsCallableCallListBucketsRequest {
+public class SyncListBucketsPaged {
 
   public static void main(String[] args) throws Exception {
-    listBucketsCallableCallListBucketsRequest();
+    syncListBucketsPaged();
   }
 
-  public static void listBucketsCallableCallListBucketsRequest() throws Exception {
+  public static void syncListBucketsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -55,4 +55,4 @@ public static void listBucketsCallableCallListBucketsRequest() throws Exception
     }
   }
 }
-// [END logging_v2_generated_configclient_listbuckets_callablecalllistbucketsrequest_sync]
+// [END logging_v2_generated_configclient_listbuckets_paged_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsString.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsString.java
index b560140718..d800efaa1d 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/ListBucketsStringIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listbuckets/SyncListBucketsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listbuckets_stringiterateall_sync]
+// [START logging_v2_generated_configclient_listbuckets_string_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LocationName;
 import com.google.logging.v2.LogBucket;
 
-public class ListBucketsStringIterateAll {
+public class SyncListBucketsString {
 
   public static void main(String[] args) throws Exception {
-    listBucketsStringIterateAll();
+    syncListBucketsString();
   }
 
-  public static void listBucketsStringIterateAll() throws Exception {
+  public static void syncListBucketsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listBucketsStringIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listbuckets_stringiterateall_sync]
+// [END logging_v2_generated_configclient_listbuckets_string_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/AsyncListExclusionsPagedCallable.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/AsyncListExclusionsPagedCallable.java
index 7ada9546d1..b8c682b3fd 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsPagedCallableFutureCallListExclusionsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/AsyncListExclusionsPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest_sync]
+// [START logging_v2_generated_configclient_listexclusions_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.ListExclusionsRequest;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class ListExclusionsPagedCallableFutureCallListExclusionsRequest {
+public class AsyncListExclusionsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listExclusionsPagedCallableFutureCallListExclusionsRequest();
+    asyncListExclusionsPagedCallable();
   }
 
-  public static void listExclusionsPagedCallableFutureCallListExclusionsRequest() throws Exception {
+  public static void asyncListExclusionsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -48,4 +48,4 @@ public static void listExclusionsPagedCallableFutureCallListExclusionsRequest()
     }
   }
 }
-// [END logging_v2_generated_configclient_listexclusions_pagedcallablefuturecalllistexclusionsrequest_sync]
+// [END logging_v2_generated_configclient_listexclusions_pagedcallable_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusions.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusions.java
index 0c6eaacd0e..aea97da057 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsListExclusionsRequestIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusions.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall_sync]
+// [START logging_v2_generated_configclient_listexclusions_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.ListExclusionsRequest;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class ListExclusionsListExclusionsRequestIterateAll {
+public class SyncListExclusions {
 
   public static void main(String[] args) throws Exception {
-    listExclusionsListExclusionsRequestIterateAll();
+    syncListExclusions();
   }
 
-  public static void listExclusionsListExclusionsRequestIterateAll() throws Exception {
+  public static void syncListExclusions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void listExclusionsListExclusionsRequestIterateAll() throws Except
     }
   }
 }
-// [END logging_v2_generated_configclient_listexclusions_listexclusionsrequestiterateall_sync]
+// [END logging_v2_generated_configclient_listexclusions_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsBillingaccountname.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsBillingaccountname.java
index c1bbb6055a..c771bdd426 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsBillingAccountNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsBillingaccountname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall_sync]
+// [START logging_v2_generated_configclient_listexclusions_billingaccountname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.BillingAccountName;
 import com.google.logging.v2.LogExclusion;
 
-public class ListExclusionsBillingAccountNameIterateAll {
+public class SyncListExclusionsBillingaccountname {
 
   public static void main(String[] args) throws Exception {
-    listExclusionsBillingAccountNameIterateAll();
+    syncListExclusionsBillingaccountname();
   }
 
-  public static void listExclusionsBillingAccountNameIterateAll() throws Exception {
+  public static void syncListExclusionsBillingaccountname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listExclusionsBillingAccountNameIterateAll() throws Exception
     }
   }
 }
-// [END logging_v2_generated_configclient_listexclusions_billingaccountnameiterateall_sync]
+// [END logging_v2_generated_configclient_listexclusions_billingaccountname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsFoldername.java
similarity index 86%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsFoldername.java
index 960afad6c1..b87b93003f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsFolderNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsFoldername.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listexclusions_foldernameiterateall_sync]
+// [START logging_v2_generated_configclient_listexclusions_foldername_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.FolderName;
 import com.google.logging.v2.LogExclusion;
 
-public class ListExclusionsFolderNameIterateAll {
+public class SyncListExclusionsFoldername {
 
   public static void main(String[] args) throws Exception {
-    listExclusionsFolderNameIterateAll();
+    syncListExclusionsFoldername();
   }
 
-  public static void listExclusionsFolderNameIterateAll() throws Exception {
+  public static void syncListExclusionsFoldername() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listExclusionsFolderNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listexclusions_foldernameiterateall_sync]
+// [END logging_v2_generated_configclient_listexclusions_foldername_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsOrganizationname.java
similarity index 85%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsOrganizationname.java
index 9905c83d10..c95c8904c7 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsOrganizationNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsOrganizationname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listexclusions_organizationnameiterateall_sync]
+// [START logging_v2_generated_configclient_listexclusions_organizationname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.OrganizationName;
 
-public class ListExclusionsOrganizationNameIterateAll {
+public class SyncListExclusionsOrganizationname {
 
   public static void main(String[] args) throws Exception {
-    listExclusionsOrganizationNameIterateAll();
+    syncListExclusionsOrganizationname();
   }
 
-  public static void listExclusionsOrganizationNameIterateAll() throws Exception {
+  public static void syncListExclusionsOrganizationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listExclusionsOrganizationNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listexclusions_organizationnameiterateall_sync]
+// [END logging_v2_generated_configclient_listexclusions_organizationname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsPaged.java
similarity index 82%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsPaged.java
index b825a4e81a..47282cee99 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsCallableCallListExclusionsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest_sync]
+// [START logging_v2_generated_configclient_listexclusions_paged_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.common.base.Strings;
 import com.google.logging.v2.ListExclusionsRequest;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class ListExclusionsCallableCallListExclusionsRequest {
+public class SyncListExclusionsPaged {
 
   public static void main(String[] args) throws Exception {
-    listExclusionsCallableCallListExclusionsRequest();
+    syncListExclusionsPaged();
   }
 
-  public static void listExclusionsCallableCallListExclusionsRequest() throws Exception {
+  public static void syncListExclusionsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -55,4 +55,4 @@ public static void listExclusionsCallableCallListExclusionsRequest() throws Exce
     }
   }
 }
-// [END logging_v2_generated_configclient_listexclusions_callablecalllistexclusionsrequest_sync]
+// [END logging_v2_generated_configclient_listexclusions_paged_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsProjectname.java
similarity index 86%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsProjectname.java
index 0c06644620..7d5773b4ab 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsProjectNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listexclusions_projectnameiterateall_sync]
+// [START logging_v2_generated_configclient_listexclusions_projectname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class ListExclusionsProjectNameIterateAll {
+public class SyncListExclusionsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listExclusionsProjectNameIterateAll();
+    syncListExclusionsProjectname();
   }
 
-  public static void listExclusionsProjectNameIterateAll() throws Exception {
+  public static void syncListExclusionsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listExclusionsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listexclusions_projectnameiterateall_sync]
+// [END logging_v2_generated_configclient_listexclusions_projectname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsString.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsString.java
index 9176ccf3c4..3894b5236e 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/ListExclusionsStringIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listexclusions/SyncListExclusionsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listexclusions_stringiterateall_sync]
+// [START logging_v2_generated_configclient_listexclusions_string_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.ProjectName;
 
-public class ListExclusionsStringIterateAll {
+public class SyncListExclusionsString {
 
   public static void main(String[] args) throws Exception {
-    listExclusionsStringIterateAll();
+    syncListExclusionsString();
   }
 
-  public static void listExclusionsStringIterateAll() throws Exception {
+  public static void syncListExclusionsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listExclusionsStringIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listexclusions_stringiterateall_sync]
+// [END logging_v2_generated_configclient_listexclusions_string_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/AsyncListSinksPagedCallable.java
similarity index 86%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/AsyncListSinksPagedCallable.java
index 4723bc1044..0cf1a113d5 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksPagedCallableFutureCallListSinksRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/AsyncListSinksPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest_sync]
+// [START logging_v2_generated_configclient_listsinks_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.ListSinksRequest;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class ListSinksPagedCallableFutureCallListSinksRequest {
+public class AsyncListSinksPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listSinksPagedCallableFutureCallListSinksRequest();
+    asyncListSinksPagedCallable();
   }
 
-  public static void listSinksPagedCallableFutureCallListSinksRequest() throws Exception {
+  public static void asyncListSinksPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -47,4 +47,4 @@ public static void listSinksPagedCallableFutureCallListSinksRequest() throws Exc
     }
   }
 }
-// [END logging_v2_generated_configclient_listsinks_pagedcallablefuturecalllistsinksrequest_sync]
+// [END logging_v2_generated_configclient_listsinks_pagedcallable_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinks.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinks.java
index f402f5acea..a57003dcb5 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksListSinksRequestIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinks.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listsinks_listsinksrequestiterateall_sync]
+// [START logging_v2_generated_configclient_listsinks_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.ListSinksRequest;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class ListSinksListSinksRequestIterateAll {
+public class SyncListSinks {
 
   public static void main(String[] args) throws Exception {
-    listSinksListSinksRequestIterateAll();
+    syncListSinks();
   }
 
-  public static void listSinksListSinksRequestIterateAll() throws Exception {
+  public static void syncListSinks() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void listSinksListSinksRequestIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listsinks_listsinksrequestiterateall_sync]
+// [END logging_v2_generated_configclient_listsinks_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksBillingaccountname.java
similarity index 86%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksBillingaccountname.java
index dea4bfdf81..43c3f9bb79 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksBillingAccountNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksBillingaccountname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listsinks_billingaccountnameiterateall_sync]
+// [START logging_v2_generated_configclient_listsinks_billingaccountname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.BillingAccountName;
 import com.google.logging.v2.LogSink;
 
-public class ListSinksBillingAccountNameIterateAll {
+public class SyncListSinksBillingaccountname {
 
   public static void main(String[] args) throws Exception {
-    listSinksBillingAccountNameIterateAll();
+    syncListSinksBillingaccountname();
   }
 
-  public static void listSinksBillingAccountNameIterateAll() throws Exception {
+  public static void syncListSinksBillingaccountname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listSinksBillingAccountNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listsinks_billingaccountnameiterateall_sync]
+// [END logging_v2_generated_configclient_listsinks_billingaccountname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksFoldername.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksFoldername.java
index ad4ad5f954..149a8bea5c 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksFolderNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksFoldername.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listsinks_foldernameiterateall_sync]
+// [START logging_v2_generated_configclient_listsinks_foldername_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.FolderName;
 import com.google.logging.v2.LogSink;
 
-public class ListSinksFolderNameIterateAll {
+public class SyncListSinksFoldername {
 
   public static void main(String[] args) throws Exception {
-    listSinksFolderNameIterateAll();
+    syncListSinksFoldername();
   }
 
-  public static void listSinksFolderNameIterateAll() throws Exception {
+  public static void syncListSinksFoldername() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listSinksFolderNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listsinks_foldernameiterateall_sync]
+// [END logging_v2_generated_configclient_listsinks_foldername_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksOrganizationname.java
similarity index 86%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksOrganizationname.java
index 8a4a652c09..d3ba5899b6 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksOrganizationNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksOrganizationname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listsinks_organizationnameiterateall_sync]
+// [START logging_v2_generated_configclient_listsinks_organizationname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.OrganizationName;
 
-public class ListSinksOrganizationNameIterateAll {
+public class SyncListSinksOrganizationname {
 
   public static void main(String[] args) throws Exception {
-    listSinksOrganizationNameIterateAll();
+    syncListSinksOrganizationname();
   }
 
-  public static void listSinksOrganizationNameIterateAll() throws Exception {
+  public static void syncListSinksOrganizationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listSinksOrganizationNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listsinks_organizationnameiterateall_sync]
+// [END logging_v2_generated_configclient_listsinks_organizationname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksPaged.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksPaged.java
index c6b2ce44d6..e14dbc7e1a 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksCallableCallListSinksRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest_sync]
+// [START logging_v2_generated_configclient_listsinks_paged_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.common.base.Strings;
 import com.google.logging.v2.ListSinksRequest;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class ListSinksCallableCallListSinksRequest {
+public class SyncListSinksPaged {
 
   public static void main(String[] args) throws Exception {
-    listSinksCallableCallListSinksRequest();
+    syncListSinksPaged();
   }
 
-  public static void listSinksCallableCallListSinksRequest() throws Exception {
+  public static void syncListSinksPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -55,4 +55,4 @@ public static void listSinksCallableCallListSinksRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listsinks_callablecalllistsinksrequest_sync]
+// [END logging_v2_generated_configclient_listsinks_paged_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksProjectname.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksProjectname.java
index 1d7823459a..3fa5049203 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksProjectNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listsinks_projectnameiterateall_sync]
+// [START logging_v2_generated_configclient_listsinks_projectname_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class ListSinksProjectNameIterateAll {
+public class SyncListSinksProjectname {
 
   public static void main(String[] args) throws Exception {
-    listSinksProjectNameIterateAll();
+    syncListSinksProjectname();
   }
 
-  public static void listSinksProjectNameIterateAll() throws Exception {
+  public static void syncListSinksProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listSinksProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listsinks_projectnameiterateall_sync]
+// [END logging_v2_generated_configclient_listsinks_projectname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksString.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksString.java
index d3f231d0bf..8b39c2e9a0 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/ListSinksStringIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listsinks/SyncListSinksString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listsinks_stringiterateall_sync]
+// [START logging_v2_generated_configclient_listsinks_string_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.ProjectName;
 
-public class ListSinksStringIterateAll {
+public class SyncListSinksString {
 
   public static void main(String[] args) throws Exception {
-    listSinksStringIterateAll();
+    syncListSinksString();
   }
 
-  public static void listSinksStringIterateAll() throws Exception {
+  public static void syncListSinksString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -38,4 +38,4 @@ public static void listSinksStringIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listsinks_stringiterateall_sync]
+// [END logging_v2_generated_configclient_listsinks_string_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/AsyncListViewsPagedCallable.java
similarity index 85%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/AsyncListViewsPagedCallable.java
index d62e737a7e..f03a1e9be6 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsPagedCallableFutureCallListViewsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/AsyncListViewsPagedCallable.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest_sync]
+// [START logging_v2_generated_configclient_listviews_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.ListViewsRequest;
 import com.google.logging.v2.LogView;
 
-public class ListViewsPagedCallableFutureCallListViewsRequest {
+public class AsyncListViewsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listViewsPagedCallableFutureCallListViewsRequest();
+    asyncListViewsPagedCallable();
   }
 
-  public static void listViewsPagedCallableFutureCallListViewsRequest() throws Exception {
+  public static void asyncListViewsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -46,4 +46,4 @@ public static void listViewsPagedCallableFutureCallListViewsRequest() throws Exc
     }
   }
 }
-// [END logging_v2_generated_configclient_listviews_pagedcallablefuturecalllistviewsrequest_sync]
+// [END logging_v2_generated_configclient_listviews_pagedcallable_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViews.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViews.java
index 31ca88661b..35bf3c3bff 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsListViewsRequestIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViews.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listviews_listviewsrequestiterateall_sync]
+// [START logging_v2_generated_configclient_listviews_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.ListViewsRequest;
 import com.google.logging.v2.LogView;
 
-public class ListViewsListViewsRequestIterateAll {
+public class SyncListViews {
 
   public static void main(String[] args) throws Exception {
-    listViewsListViewsRequestIterateAll();
+    syncListViews();
   }
 
-  public static void listViewsListViewsRequestIterateAll() throws Exception {
+  public static void syncListViews() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -43,4 +43,4 @@ public static void listViewsListViewsRequestIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listviews_listviewsrequestiterateall_sync]
+// [END logging_v2_generated_configclient_listviews_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViewsPaged.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViewsPaged.java
index db0df68e53..9c24bb5abf 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsCallableCallListViewsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViewsPaged.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listviews_callablecalllistviewsrequest_sync]
+// [START logging_v2_generated_configclient_listviews_paged_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.common.base.Strings;
 import com.google.logging.v2.ListViewsRequest;
 import com.google.logging.v2.ListViewsResponse;
 import com.google.logging.v2.LogView;
 
-public class ListViewsCallableCallListViewsRequest {
+public class SyncListViewsPaged {
 
   public static void main(String[] args) throws Exception {
-    listViewsCallableCallListViewsRequest();
+    syncListViewsPaged();
   }
 
-  public static void listViewsCallableCallListViewsRequest() throws Exception {
+  public static void syncListViewsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -54,4 +54,4 @@ public static void listViewsCallableCallListViewsRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listviews_callablecalllistviewsrequest_sync]
+// [END logging_v2_generated_configclient_listviews_paged_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViewsString.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViewsString.java
index b1f45d5b61..9c3a70563e 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/ListViewsStringIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/listviews/SyncListViewsString.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_listviews_stringiterateall_sync]
+// [START logging_v2_generated_configclient_listviews_string_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogView;
 
-public class ListViewsStringIterateAll {
+public class SyncListViewsString {
 
   public static void main(String[] args) throws Exception {
-    listViewsStringIterateAll();
+    syncListViewsString();
   }
 
-  public static void listViewsStringIterateAll() throws Exception {
+  public static void syncListViewsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -37,4 +37,4 @@ public static void listViewsStringIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_listviews_stringiterateall_sync]
+// [END logging_v2_generated_configclient_listviews_string_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/AsyncUndeleteBucket.java
similarity index 78%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/AsyncUndeleteBucket.java
index 93dbb1da1e..853b0fa092 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketCallableFutureCallUndeleteBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/AsyncUndeleteBucket.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest_sync]
+// [START logging_v2_generated_configclient_undeletebucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogBucketName;
 import com.google.logging.v2.UndeleteBucketRequest;
 import com.google.protobuf.Empty;
 
-public class UndeleteBucketCallableFutureCallUndeleteBucketRequest {
+public class AsyncUndeleteBucket {
 
   public static void main(String[] args) throws Exception {
-    undeleteBucketCallableFutureCallUndeleteBucketRequest();
+    asyncUndeleteBucket();
   }
 
-  public static void undeleteBucketCallableFutureCallUndeleteBucketRequest() throws Exception {
+  public static void asyncUndeleteBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -45,4 +45,4 @@ public static void undeleteBucketCallableFutureCallUndeleteBucketRequest() throw
     }
   }
 }
-// [END logging_v2_generated_configclient_undeletebucket_callablefuturecallundeletebucketrequest_sync]
+// [END logging_v2_generated_configclient_undeletebucket_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/SyncUndeleteBucket.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/SyncUndeleteBucket.java
index 9dbcb994a2..24a7ba8c7f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/UndeleteBucketUndeleteBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/undeletebucket/SyncUndeleteBucket.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_undeletebucket_undeletebucketrequest_sync]
+// [START logging_v2_generated_configclient_undeletebucket_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogBucketName;
 import com.google.logging.v2.UndeleteBucketRequest;
 import com.google.protobuf.Empty;
 
-public class UndeleteBucketUndeleteBucketRequest {
+public class SyncUndeleteBucket {
 
   public static void main(String[] args) throws Exception {
-    undeleteBucketUndeleteBucketRequest();
+    syncUndeleteBucket();
   }
 
-  public static void undeleteBucketUndeleteBucketRequest() throws Exception {
+  public static void syncUndeleteBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -42,4 +42,4 @@ public static void undeleteBucketUndeleteBucketRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_undeletebucket_undeletebucketrequest_sync]
+// [END logging_v2_generated_configclient_undeletebucket_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/AsyncUpdateBucket.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/AsyncUpdateBucket.java
index f4fcb0c3b1..4b43c8f803 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/AsyncUpdateBucket.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest_sync]
+// [START logging_v2_generated_configclient_updatebucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogBucket;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.UpdateBucketRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateBucketCallableFutureCallUpdateBucketRequest {
+public class AsyncUpdateBucket {
 
   public static void main(String[] args) throws Exception {
-    updateBucketCallableFutureCallUpdateBucketRequest();
+    asyncUpdateBucket();
   }
 
-  public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Exception {
+  public static void asyncUpdateBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -48,4 +48,4 @@ public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Ex
     }
   }
 }
-// [END logging_v2_generated_configclient_updatebucket_callablefuturecallupdatebucketrequest_sync]
+// [END logging_v2_generated_configclient_updatebucket_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/SyncUpdateBucket.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/SyncUpdateBucket.java
index d550647c22..4df66d4c3c 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/UpdateBucketUpdateBucketRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatebucket/SyncUpdateBucket.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updatebucket_updatebucketrequest_sync]
+// [START logging_v2_generated_configclient_updatebucket_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogBucket;
 import com.google.logging.v2.LogBucketName;
 import com.google.logging.v2.UpdateBucketRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateBucketUpdateBucketRequest {
+public class SyncUpdateBucket {
 
   public static void main(String[] args) throws Exception {
-    updateBucketUpdateBucketRequest();
+    syncUpdateBucket();
   }
 
-  public static void updateBucketUpdateBucketRequest() throws Exception {
+  public static void syncUpdateBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -45,4 +45,4 @@ public static void updateBucketUpdateBucketRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_updatebucket_updatebucketrequest_sync]
+// [END logging_v2_generated_configclient_updatebucket_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/AsyncUpdateCmekSettings.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/AsyncUpdateCmekSettings.java
index e38785cdc7..7a75f188f1 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/AsyncUpdateCmekSettings.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest_sync]
+// [START logging_v2_generated_configclient_updatecmeksettings_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CmekSettings;
 import com.google.logging.v2.UpdateCmekSettingsRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest {
+public class AsyncUpdateCmekSettings {
 
   public static void main(String[] args) throws Exception {
-    updateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest();
+    asyncUpdateCmekSettings();
   }
 
-  public static void updateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest()
-      throws Exception {
+  public static void asyncUpdateCmekSettings() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -47,4 +46,4 @@ public static void updateCmekSettingsCallableFutureCallUpdateCmekSettingsRequest
     }
   }
 }
-// [END logging_v2_generated_configclient_updatecmeksettings_callablefuturecallupdatecmeksettingsrequest_sync]
+// [END logging_v2_generated_configclient_updatecmeksettings_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/SyncUpdateCmekSettings.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/SyncUpdateCmekSettings.java
index aa7793f96a..012d01fa93 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/UpdateCmekSettingsUpdateCmekSettingsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatecmeksettings/SyncUpdateCmekSettings.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest_sync]
+// [START logging_v2_generated_configclient_updatecmeksettings_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.CmekSettings;
 import com.google.logging.v2.UpdateCmekSettingsRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateCmekSettingsUpdateCmekSettingsRequest {
+public class SyncUpdateCmekSettings {
 
   public static void main(String[] args) throws Exception {
-    updateCmekSettingsUpdateCmekSettingsRequest();
+    syncUpdateCmekSettings();
   }
 
-  public static void updateCmekSettingsUpdateCmekSettingsRequest() throws Exception {
+  public static void syncUpdateCmekSettings() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -42,4 +42,4 @@ public static void updateCmekSettingsUpdateCmekSettingsRequest() throws Exceptio
     }
   }
 }
-// [END logging_v2_generated_configclient_updatecmeksettings_updatecmeksettingsrequest_sync]
+// [END logging_v2_generated_configclient_updatecmeksettings_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/AsyncUpdateExclusion.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/AsyncUpdateExclusion.java
index 596a8a0d06..30388f02d6 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionCallableFutureCallUpdateExclusionRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/AsyncUpdateExclusion.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest_sync]
+// [START logging_v2_generated_configclient_updateexclusion_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogExclusion;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.UpdateExclusionRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateExclusionCallableFutureCallUpdateExclusionRequest {
+public class AsyncUpdateExclusion {
 
   public static void main(String[] args) throws Exception {
-    updateExclusionCallableFutureCallUpdateExclusionRequest();
+    asyncUpdateExclusion();
   }
 
-  public static void updateExclusionCallableFutureCallUpdateExclusionRequest() throws Exception {
+  public static void asyncUpdateExclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -47,4 +47,4 @@ public static void updateExclusionCallableFutureCallUpdateExclusionRequest() thr
     }
   }
 }
-// [END logging_v2_generated_configclient_updateexclusion_callablefuturecallupdateexclusionrequest_sync]
+// [END logging_v2_generated_configclient_updateexclusion_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusion.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusion.java
index d48c5218ac..85e49f0146 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionUpdateExclusionRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusion.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updateexclusion_updateexclusionrequest_sync]
+// [START logging_v2_generated_configclient_updateexclusion_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogExclusion;
 import com.google.logging.v2.LogExclusionName;
 import com.google.logging.v2.UpdateExclusionRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateExclusionUpdateExclusionRequest {
+public class SyncUpdateExclusion {
 
   public static void main(String[] args) throws Exception {
-    updateExclusionUpdateExclusionRequest();
+    syncUpdateExclusion();
   }
 
-  public static void updateExclusionUpdateExclusionRequest() throws Exception {
+  public static void syncUpdateExclusion() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void updateExclusionUpdateExclusionRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_updateexclusion_updateexclusionrequest_sync]
+// [END logging_v2_generated_configclient_updateexclusion_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask.java
similarity index 87%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask.java
index 189914f9e8..843d144b5d 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionLogExclusionNameLogExclusionFieldMask.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask.java
@@ -22,13 +22,13 @@
 import com.google.logging.v2.LogExclusionName;
 import com.google.protobuf.FieldMask;
 
-public class UpdateExclusionLogExclusionNameLogExclusionFieldMask {
+public class SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateExclusionLogExclusionNameLogExclusionFieldMask();
+    syncUpdateExclusionLogexclusionnameLogexclusionFieldmask();
   }
 
-  public static void updateExclusionLogExclusionNameLogExclusionFieldMask() throws Exception {
+  public static void syncUpdateExclusionLogexclusionnameLogexclusionFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusionStringLogexclusionFieldmask.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusionStringLogexclusionFieldmask.java
index 51ebcc5489..e4339ec2e4 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/UpdateExclusionStringLogExclusionFieldMask.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateexclusion/SyncUpdateExclusionStringLogexclusionFieldmask.java
@@ -22,13 +22,13 @@
 import com.google.logging.v2.LogExclusionName;
 import com.google.protobuf.FieldMask;
 
-public class UpdateExclusionStringLogExclusionFieldMask {
+public class SyncUpdateExclusionStringLogexclusionFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateExclusionStringLogExclusionFieldMask();
+    syncUpdateExclusionStringLogexclusionFieldmask();
   }
 
-  public static void updateExclusionStringLogExclusionFieldMask() throws Exception {
+  public static void syncUpdateExclusionStringLogexclusionFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/AsyncUpdateSink.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/AsyncUpdateSink.java
index 0786425ef6..7001e79931 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkCallableFutureCallUpdateSinkRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/AsyncUpdateSink.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest_sync]
+// [START logging_v2_generated_configclient_updatesink_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogSink;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.UpdateSinkRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateSinkCallableFutureCallUpdateSinkRequest {
+public class AsyncUpdateSink {
 
   public static void main(String[] args) throws Exception {
-    updateSinkCallableFutureCallUpdateSinkRequest();
+    asyncUpdateSink();
   }
 
-  public static void updateSinkCallableFutureCallUpdateSinkRequest() throws Exception {
+  public static void asyncUpdateSink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -47,4 +47,4 @@ public static void updateSinkCallableFutureCallUpdateSinkRequest() throws Except
     }
   }
 }
-// [END logging_v2_generated_configclient_updatesink_callablefuturecallupdatesinkrequest_sync]
+// [END logging_v2_generated_configclient_updatesink_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSink.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSink.java
index 8232443092..c672ae0ec6 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkUpdateSinkRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSink.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updatesink_updatesinkrequest_sync]
+// [START logging_v2_generated_configclient_updatesink_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.LogSinkName;
 import com.google.logging.v2.UpdateSinkRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateSinkUpdateSinkRequest {
+public class SyncUpdateSink {
 
   public static void main(String[] args) throws Exception {
-    updateSinkUpdateSinkRequest();
+    syncUpdateSink();
   }
 
-  public static void updateSinkUpdateSinkRequest() throws Exception {
+  public static void syncUpdateSink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -44,4 +44,4 @@ public static void updateSinkUpdateSinkRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_updatesink_updatesinkrequest_sync]
+// [END logging_v2_generated_configclient_updatesink_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkLogsinknameLogsink.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkLogsinknameLogsink.java
index 0189cf32de..b137e0ca15 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSink.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkLogsinknameLogsink.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.LogSinkName;
 
-public class UpdateSinkLogSinkNameLogSink {
+public class SyncUpdateSinkLogsinknameLogsink {
 
   public static void main(String[] args) throws Exception {
-    updateSinkLogSinkNameLogSink();
+    syncUpdateSinkLogsinknameLogsink();
   }
 
-  public static void updateSinkLogSinkNameLogSink() throws Exception {
+  public static void syncUpdateSinkLogsinknameLogsink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkLogsinknameLogsinkFieldmask.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkLogsinknameLogsinkFieldmask.java
index 909ba652d9..85f50fd328 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkLogSinkNameLogSinkFieldMask.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkLogsinknameLogsinkFieldmask.java
@@ -22,13 +22,13 @@
 import com.google.logging.v2.LogSinkName;
 import com.google.protobuf.FieldMask;
 
-public class UpdateSinkLogSinkNameLogSinkFieldMask {
+public class SyncUpdateSinkLogsinknameLogsinkFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateSinkLogSinkNameLogSinkFieldMask();
+    syncUpdateSinkLogsinknameLogsinkFieldmask();
   }
 
-  public static void updateSinkLogSinkNameLogSinkFieldMask() throws Exception {
+  public static void syncUpdateSinkLogsinknameLogsinkFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkStringLogsink.java
similarity index 90%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkStringLogsink.java
index 683becd11e..389c84a6ab 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSink.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkStringLogsink.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogSink;
 import com.google.logging.v2.LogSinkName;
 
-public class UpdateSinkStringLogSink {
+public class SyncUpdateSinkStringLogsink {
 
   public static void main(String[] args) throws Exception {
-    updateSinkStringLogSink();
+    syncUpdateSinkStringLogsink();
   }
 
-  public static void updateSinkStringLogSink() throws Exception {
+  public static void syncUpdateSinkStringLogsink() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkStringLogsinkFieldmask.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkStringLogsinkFieldmask.java
index 0020195166..bb8d68fa3e 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/UpdateSinkStringLogSinkFieldMask.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updatesink/SyncUpdateSinkStringLogsinkFieldmask.java
@@ -22,13 +22,13 @@
 import com.google.logging.v2.LogSinkName;
 import com.google.protobuf.FieldMask;
 
-public class UpdateSinkStringLogSinkFieldMask {
+public class SyncUpdateSinkStringLogsinkFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateSinkStringLogSinkFieldMask();
+    syncUpdateSinkStringLogsinkFieldmask();
   }
 
-  public static void updateSinkStringLogSinkFieldMask() throws Exception {
+  public static void syncUpdateSinkStringLogsinkFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/AsyncUpdateView.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/AsyncUpdateView.java
index 3393c45d86..d4f662038c 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewCallableFutureCallUpdateViewRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/AsyncUpdateView.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest_sync]
+// [START logging_v2_generated_configclient_updateview_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogView;
 import com.google.logging.v2.UpdateViewRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateViewCallableFutureCallUpdateViewRequest {
+public class AsyncUpdateView {
 
   public static void main(String[] args) throws Exception {
-    updateViewCallableFutureCallUpdateViewRequest();
+    asyncUpdateView();
   }
 
-  public static void updateViewCallableFutureCallUpdateViewRequest() throws Exception {
+  public static void asyncUpdateView() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -45,4 +45,4 @@ public static void updateViewCallableFutureCallUpdateViewRequest() throws Except
     }
   }
 }
-// [END logging_v2_generated_configclient_updateview_callablefuturecallupdateviewrequest_sync]
+// [END logging_v2_generated_configclient_updateview_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/SyncUpdateView.java
similarity index 82%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/SyncUpdateView.java
index 792999d6ff..4fe57e77d8 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/UpdateViewUpdateViewRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configclient/updateview/SyncUpdateView.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configclient_updateview_updateviewrequest_sync]
+// [START logging_v2_generated_configclient_updateview_sync]
 import com.google.cloud.logging.v2.ConfigClient;
 import com.google.logging.v2.LogView;
 import com.google.logging.v2.UpdateViewRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateViewUpdateViewRequest {
+public class SyncUpdateView {
 
   public static void main(String[] args) throws Exception {
-    updateViewUpdateViewRequest();
+    syncUpdateView();
   }
 
-  public static void updateViewUpdateViewRequest() throws Exception {
+  public static void syncUpdateView() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (ConfigClient configClient = ConfigClient.create()) {
@@ -42,4 +42,4 @@ public static void updateViewUpdateViewRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_configclient_updateview_updateviewrequest_sync]
+// [END logging_v2_generated_configclient_updateview_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/SyncGetBucket.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/SyncGetBucket.java
index c875f107a4..9df354b9cb 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigSettings.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/configsettings/getbucket/SyncGetBucket.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings_sync]
+// [START logging_v2_generated_configsettings_getbucket_sync]
 import com.google.cloud.logging.v2.ConfigSettings;
 import java.time.Duration;
 
-public class GetBucketSettingsSetRetrySettingsConfigSettings {
+public class SyncGetBucket {
 
   public static void main(String[] args) throws Exception {
-    getBucketSettingsSetRetrySettingsConfigSettings();
+    syncGetBucket();
   }
 
-  public static void getBucketSettingsSetRetrySettingsConfigSettings() throws Exception {
+  public static void syncGetBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void getBucketSettingsSetRetrySettingsConfigSettings() throws Exce
     ConfigSettings configSettings = configSettingsBuilder.build();
   }
 }
-// [END logging_v2_generated_configsettings_getbucket_settingssetretrysettingsconfigsettings_sync]
+// [END logging_v2_generated_configsettings_getbucket_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/SyncCreateSetCredentialsProvider.java
index 745bf3fa77..c3d9e27a99 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings1.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_create_loggingsettings1_sync]
+// [START logging_v2_generated_loggingclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.cloud.logging.v2.LoggingSettings;
 import com.google.cloud.logging.v2.myCredentials;
 
-public class CreateLoggingSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createLoggingSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createLoggingSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LoggingSettings loggingSettings =
@@ -38,4 +38,4 @@ public static void createLoggingSettings1() throws Exception {
     LoggingClient loggingClient = LoggingClient.create(loggingSettings);
   }
 }
-// [END logging_v2_generated_loggingclient_create_loggingsettings1_sync]
+// [END logging_v2_generated_loggingclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/SyncCreateSetEndpoint.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/SyncCreateSetEndpoint.java
index bdd6e00db5..6793beeff0 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/CreateLoggingSettings2.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/create/SyncCreateSetEndpoint.java
@@ -16,22 +16,22 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_create_loggingsettings2_sync]
+// [START logging_v2_generated_loggingclient_create_setendpoint_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.cloud.logging.v2.LoggingSettings;
 import com.google.cloud.logging.v2.myEndpoint;
 
-public class CreateLoggingSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createLoggingSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createLoggingSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LoggingSettings loggingSettings = LoggingSettings.newBuilder().setEndpoint(myEndpoint).build();
     LoggingClient loggingClient = LoggingClient.create(loggingSettings);
   }
 }
-// [END logging_v2_generated_loggingclient_create_loggingsettings2_sync]
+// [END logging_v2_generated_loggingclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/AsyncDeleteLog.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/AsyncDeleteLog.java
index 92b11c5dd0..cea7571ac9 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogCallableFutureCallDeleteLogRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/AsyncDeleteLog.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest_sync]
+// [START logging_v2_generated_loggingclient_deletelog_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.DeleteLogRequest;
 import com.google.logging.v2.LogName;
 import com.google.protobuf.Empty;
 
-public class DeleteLogCallableFutureCallDeleteLogRequest {
+public class AsyncDeleteLog {
 
   public static void main(String[] args) throws Exception {
-    deleteLogCallableFutureCallDeleteLogRequest();
+    asyncDeleteLog();
   }
 
-  public static void deleteLogCallableFutureCallDeleteLogRequest() throws Exception {
+  public static void asyncDeleteLog() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteLogCallableFutureCallDeleteLogRequest() throws Exceptio
     }
   }
 }
-// [END logging_v2_generated_loggingclient_deletelog_callablefuturecalldeletelogrequest_sync]
+// [END logging_v2_generated_loggingclient_deletelog_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLog.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLog.java
index e8af45a9d8..567bce04cf 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogDeleteLogRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLog.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_deletelog_deletelogrequest_sync]
+// [START logging_v2_generated_loggingclient_deletelog_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.DeleteLogRequest;
 import com.google.logging.v2.LogName;
 import com.google.protobuf.Empty;
 
-public class DeleteLogDeleteLogRequest {
+public class SyncDeleteLog {
 
   public static void main(String[] args) throws Exception {
-    deleteLogDeleteLogRequest();
+    syncDeleteLog();
   }
 
-  public static void deleteLogDeleteLogRequest() throws Exception {
+  public static void syncDeleteLog() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteLogDeleteLogRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_deletelog_deletelogrequest_sync]
+// [END logging_v2_generated_loggingclient_deletelog_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLogLogname.java
similarity index 91%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLogLogname.java
index abd5314b58..333f8f3e8e 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogLogName.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLogLogname.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogName;
 import com.google.protobuf.Empty;
 
-public class DeleteLogLogName {
+public class SyncDeleteLogLogname {
 
   public static void main(String[] args) throws Exception {
-    deleteLogLogName();
+    syncDeleteLogLogname();
   }
 
-  public static void deleteLogLogName() throws Exception {
+  public static void syncDeleteLogLogname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLogString.java
similarity index 91%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLogString.java
index 700f048f2a..593fb8b650 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/DeleteLogString.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/deletelog/SyncDeleteLogString.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogName;
 import com.google.protobuf.Empty;
 
-public class DeleteLogString {
+public class SyncDeleteLogString {
 
   public static void main(String[] args) throws Exception {
-    deleteLogString();
+    syncDeleteLogString();
   }
 
-  public static void deleteLogString() throws Exception {
+  public static void syncDeleteLogString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/AsyncListLogEntriesPagedCallable.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/AsyncListLogEntriesPagedCallable.java
index 841e525699..28138d5eb8 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesPagedCallableFutureCallListLogEntriesRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/AsyncListLogEntriesPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest_sync]
+// [START logging_v2_generated_loggingclient_listlogentries_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.ListLogEntriesRequest;
 import com.google.logging.v2.LogEntry;
 import java.util.ArrayList;
 
-public class ListLogEntriesPagedCallableFutureCallListLogEntriesRequest {
+public class AsyncListLogEntriesPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listLogEntriesPagedCallableFutureCallListLogEntriesRequest();
+    asyncListLogEntriesPagedCallable();
   }
 
-  public static void listLogEntriesPagedCallableFutureCallListLogEntriesRequest() throws Exception {
+  public static void asyncListLogEntriesPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -49,4 +49,4 @@ public static void listLogEntriesPagedCallableFutureCallListLogEntriesRequest()
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogentries_pagedcallablefuturecalllistlogentriesrequest_sync]
+// [END logging_v2_generated_loggingclient_listlogentries_pagedcallable_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntries.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntries.java
index 6dc9c047eb..88dda82a28 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListLogEntriesRequestIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntries.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall_sync]
+// [START logging_v2_generated_loggingclient_listlogentries_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.ListLogEntriesRequest;
 import com.google.logging.v2.LogEntry;
 import java.util.ArrayList;
 
-public class ListLogEntriesListLogEntriesRequestIterateAll {
+public class SyncListLogEntries {
 
   public static void main(String[] args) throws Exception {
-    listLogEntriesListLogEntriesRequestIterateAll();
+    syncListLogEntries();
   }
 
-  public static void listLogEntriesListLogEntriesRequestIterateAll() throws Exception {
+  public static void syncListLogEntries() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -46,4 +46,4 @@ public static void listLogEntriesListLogEntriesRequestIterateAll() throws Except
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogentries_listlogentriesrequestiterateall_sync]
+// [END logging_v2_generated_loggingclient_listlogentries_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntriesListstringStringString.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntriesListstringStringString.java
index acf2c830ef..6d14bff372 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesListStringStringStringIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntriesListstringStringString.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall_sync]
+// [START logging_v2_generated_loggingclient_listlogentries_liststringstringstring_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.LogEntry;
 import java.util.ArrayList;
 import java.util.List;
 
-public class ListLogEntriesListStringStringStringIterateAll {
+public class SyncListLogEntriesListstringStringString {
 
   public static void main(String[] args) throws Exception {
-    listLogEntriesListStringStringStringIterateAll();
+    syncListLogEntriesListstringStringString();
   }
 
-  public static void listLogEntriesListStringStringStringIterateAll() throws Exception {
+  public static void syncListLogEntriesListstringStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -42,4 +42,4 @@ public static void listLogEntriesListStringStringStringIterateAll() throws Excep
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogentries_liststringstringstringiterateall_sync]
+// [END logging_v2_generated_loggingclient_listlogentries_liststringstringstring_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntriesPaged.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntriesPaged.java
index 1019937a21..96ca7e4ead 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/ListLogEntriesCallableCallListLogEntriesRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogentries/SyncListLogEntriesPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest_sync]
+// [START logging_v2_generated_loggingclient_listlogentries_paged_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.common.base.Strings;
 import com.google.logging.v2.ListLogEntriesRequest;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.LogEntry;
 import java.util.ArrayList;
 
-public class ListLogEntriesCallableCallListLogEntriesRequest {
+public class SyncListLogEntriesPaged {
 
   public static void main(String[] args) throws Exception {
-    listLogEntriesCallableCallListLogEntriesRequest();
+    syncListLogEntriesPaged();
   }
 
-  public static void listLogEntriesCallableCallListLogEntriesRequest() throws Exception {
+  public static void syncListLogEntriesPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -57,4 +57,4 @@ public static void listLogEntriesCallableCallListLogEntriesRequest() throws Exce
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogentries_callablecalllistlogentriesrequest_sync]
+// [END logging_v2_generated_loggingclient_listlogentries_paged_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/AsyncListLogsPagedCallable.java
similarity index 86%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/AsyncListLogsPagedCallable.java
index 0c61d5add3..7e970d5db2 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsPagedCallableFutureCallListLogsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/AsyncListLogsPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest_sync]
+// [START logging_v2_generated_loggingclient_listlogs_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.ListLogsRequest;
 import com.google.logging.v2.ProjectName;
 import java.util.ArrayList;
 
-public class ListLogsPagedCallableFutureCallListLogsRequest {
+public class AsyncListLogsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listLogsPagedCallableFutureCallListLogsRequest();
+    asyncListLogsPagedCallable();
   }
 
-  public static void listLogsPagedCallableFutureCallListLogsRequest() throws Exception {
+  public static void asyncListLogsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -48,4 +48,4 @@ public static void listLogsPagedCallableFutureCallListLogsRequest() throws Excep
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogs_pagedcallablefuturecalllistlogsrequest_sync]
+// [END logging_v2_generated_loggingclient_listlogs_pagedcallable_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogs.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogs.java
index 7de2180acd..d1b89b033d 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsListLogsRequestIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogs.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall_sync]
+// [START logging_v2_generated_loggingclient_listlogs_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.ListLogsRequest;
 import com.google.logging.v2.ProjectName;
 import java.util.ArrayList;
 
-public class ListLogsListLogsRequestIterateAll {
+public class SyncListLogs {
 
   public static void main(String[] args) throws Exception {
-    listLogsListLogsRequestIterateAll();
+    syncListLogs();
   }
 
-  public static void listLogsListLogsRequestIterateAll() throws Exception {
+  public static void syncListLogs() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -45,4 +45,4 @@ public static void listLogsListLogsRequestIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogs_listlogsrequestiterateall_sync]
+// [END logging_v2_generated_loggingclient_listlogs_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsBillingaccountname.java
similarity index 85%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsBillingaccountname.java
index 2b7c43340d..38edf85574 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsBillingAccountNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsBillingaccountname.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall_sync]
+// [START logging_v2_generated_loggingclient_listlogs_billingaccountname_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.BillingAccountName;
 
-public class ListLogsBillingAccountNameIterateAll {
+public class SyncListLogsBillingaccountname {
 
   public static void main(String[] args) throws Exception {
-    listLogsBillingAccountNameIterateAll();
+    syncListLogsBillingaccountname();
   }
 
-  public static void listLogsBillingAccountNameIterateAll() throws Exception {
+  public static void syncListLogsBillingaccountname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -37,4 +37,4 @@ public static void listLogsBillingAccountNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogs_billingaccountnameiterateall_sync]
+// [END logging_v2_generated_loggingclient_listlogs_billingaccountname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsFoldername.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsFoldername.java
index e74c671296..3d00e4e445 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsFolderNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsFoldername.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogs_foldernameiterateall_sync]
+// [START logging_v2_generated_loggingclient_listlogs_foldername_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.FolderName;
 
-public class ListLogsFolderNameIterateAll {
+public class SyncListLogsFoldername {
 
   public static void main(String[] args) throws Exception {
-    listLogsFolderNameIterateAll();
+    syncListLogsFoldername();
   }
 
-  public static void listLogsFolderNameIterateAll() throws Exception {
+  public static void syncListLogsFoldername() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -37,4 +37,4 @@ public static void listLogsFolderNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogs_foldernameiterateall_sync]
+// [END logging_v2_generated_loggingclient_listlogs_foldername_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsOrganizationname.java
similarity index 86%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsOrganizationname.java
index c706876cc3..f7a8209b0f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsOrganizationNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsOrganizationname.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogs_organizationnameiterateall_sync]
+// [START logging_v2_generated_loggingclient_listlogs_organizationname_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.OrganizationName;
 
-public class ListLogsOrganizationNameIterateAll {
+public class SyncListLogsOrganizationname {
 
   public static void main(String[] args) throws Exception {
-    listLogsOrganizationNameIterateAll();
+    syncListLogsOrganizationname();
   }
 
-  public static void listLogsOrganizationNameIterateAll() throws Exception {
+  public static void syncListLogsOrganizationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -37,4 +37,4 @@ public static void listLogsOrganizationNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogs_organizationnameiterateall_sync]
+// [END logging_v2_generated_loggingclient_listlogs_organizationname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsPaged.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsPaged.java
index 85c9e1a7e5..b1c9843ef9 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsCallableCallListLogsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest_sync]
+// [START logging_v2_generated_loggingclient_listlogs_paged_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.common.base.Strings;
 import com.google.logging.v2.ListLogsRequest;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.ProjectName;
 import java.util.ArrayList;
 
-public class ListLogsCallableCallListLogsRequest {
+public class SyncListLogsPaged {
 
   public static void main(String[] args) throws Exception {
-    listLogsCallableCallListLogsRequest();
+    syncListLogsPaged();
   }
 
-  public static void listLogsCallableCallListLogsRequest() throws Exception {
+  public static void syncListLogsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -56,4 +56,4 @@ public static void listLogsCallableCallListLogsRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogs_callablecalllistlogsrequest_sync]
+// [END logging_v2_generated_loggingclient_listlogs_paged_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsProjectname.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsProjectname.java
index 7405f23e11..de21231a2a 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsProjectNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsProjectname.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogs_projectnameiterateall_sync]
+// [START logging_v2_generated_loggingclient_listlogs_projectname_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.ProjectName;
 
-public class ListLogsProjectNameIterateAll {
+public class SyncListLogsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listLogsProjectNameIterateAll();
+    syncListLogsProjectname();
   }
 
-  public static void listLogsProjectNameIterateAll() throws Exception {
+  public static void syncListLogsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -37,4 +37,4 @@ public static void listLogsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogs_projectnameiterateall_sync]
+// [END logging_v2_generated_loggingclient_listlogs_projectname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsString.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsString.java
index d584e586a1..404a102a4e 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/ListLogsStringIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listlogs/SyncListLogsString.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listlogs_stringiterateall_sync]
+// [START logging_v2_generated_loggingclient_listlogs_string_sync]
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.ProjectName;
 
-public class ListLogsStringIterateAll {
+public class SyncListLogsString {
 
   public static void main(String[] args) throws Exception {
-    listLogsStringIterateAll();
+    syncListLogsString();
   }
 
-  public static void listLogsStringIterateAll() throws Exception {
+  public static void syncListLogsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -37,4 +37,4 @@ public static void listLogsStringIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listlogs_stringiterateall_sync]
+// [END logging_v2_generated_loggingclient_listlogs_string_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPagedCallable.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPagedCallable.java
index f0b24758e3..ed4f0a8e87 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPagedCallable.java
@@ -16,22 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest_sync]
+// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallable_async]
 import com.google.api.MonitoredResourceDescriptor;
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest;
 
-public
-class ListMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest {
+public class AsyncListMonitoredResourceDescriptorsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest();
+    asyncListMonitoredResourceDescriptorsPagedCallable();
   }
 
-  public static void
-      listMonitoredResourceDescriptorsPagedCallableFutureCallListMonitoredResourceDescriptorsRequest()
-          throws Exception {
+  public static void asyncListMonitoredResourceDescriptorsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -49,4 +46,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallablefuturecalllistmonitoredresourcedescriptorsrequest_sync]
+// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_pagedcallable_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
index 9a429c20d2..3c4bee11c6 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java
@@ -16,20 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall_sync]
+// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_sync]
 import com.google.api.MonitoredResourceDescriptor;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest;
 
-public class ListMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll {
+public class SyncListMonitoredResourceDescriptors {
 
   public static void main(String[] args) throws Exception {
-    listMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll();
+    syncListMonitoredResourceDescriptors();
   }
 
-  public static void
-      listMonitoredResourceDescriptorsListMonitoredResourceDescriptorsRequestIterateAll()
-          throws Exception {
+  public static void syncListMonitoredResourceDescriptors() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -45,4 +43,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_listmonitoredresourcedescriptorsrequestiterateall_sync]
+// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsPaged.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsPaged.java
index d11441a3d2..ce95f60224 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptorsPaged.java
@@ -16,22 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest_sync]
+// [START logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_paged_sync]
 import com.google.api.MonitoredResourceDescriptor;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.common.base.Strings;
 import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest;
 import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse;
 
-public class ListMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest {
+public class SyncListMonitoredResourceDescriptorsPaged {
 
   public static void main(String[] args) throws Exception {
-    listMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest();
+    syncListMonitoredResourceDescriptorsPaged();
   }
 
-  public static void
-      listMonitoredResourceDescriptorsCallableCallListMonitoredResourceDescriptorsRequest()
-          throws Exception {
+  public static void syncListMonitoredResourceDescriptorsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -56,4 +54,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_callablecalllistmonitoredresourcedescriptorsrequest_sync]
+// [END logging_v2_generated_loggingclient_listmonitoredresourcedescriptors_paged_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/AsyncTailLogEntriesStreamBidi.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/AsyncTailLogEntriesStreamBidi.java
index a3490bf2be..0807171ba3 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/TailLogEntriesCallableCallTailLogEntriesRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/taillogentries/AsyncTailLogEntriesStreamBidi.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest_sync]
+// [START logging_v2_generated_loggingclient_taillogentries_streambidi_async]
 import com.google.api.gax.rpc.BidiStream;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.TailLogEntriesRequest;
@@ -24,13 +24,13 @@
 import com.google.protobuf.Duration;
 import java.util.ArrayList;
 
-public class TailLogEntriesCallableCallTailLogEntriesRequest {
+public class AsyncTailLogEntriesStreamBidi {
 
   public static void main(String[] args) throws Exception {
-    tailLogEntriesCallableCallTailLogEntriesRequest();
+    asyncTailLogEntriesStreamBidi();
   }
 
-  public static void tailLogEntriesCallableCallTailLogEntriesRequest() throws Exception {
+  public static void asyncTailLogEntriesStreamBidi() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -49,4 +49,4 @@ public static void tailLogEntriesCallableCallTailLogEntriesRequest() throws Exce
     }
   }
 }
-// [END logging_v2_generated_loggingclient_taillogentries_callablecalltaillogentriesrequest_sync]
+// [END logging_v2_generated_loggingclient_taillogentries_streambidi_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/AsyncWriteLogEntries.java
similarity index 81%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/AsyncWriteLogEntries.java
index 6a94fd25b8..14ba6ca1a5 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesCallableFutureCallWriteLogEntriesRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/AsyncWriteLogEntries.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest_sync]
+// [START logging_v2_generated_loggingclient_writelogentries_async]
 import com.google.api.MonitoredResource;
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.LoggingClient;
@@ -27,13 +27,13 @@
 import java.util.ArrayList;
 import java.util.HashMap;
 
-public class WriteLogEntriesCallableFutureCallWriteLogEntriesRequest {
+public class AsyncWriteLogEntries {
 
   public static void main(String[] args) throws Exception {
-    writeLogEntriesCallableFutureCallWriteLogEntriesRequest();
+    asyncWriteLogEntries();
   }
 
-  public static void writeLogEntriesCallableFutureCallWriteLogEntriesRequest() throws Exception {
+  public static void asyncWriteLogEntries() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -53,4 +53,4 @@ public static void writeLogEntriesCallableFutureCallWriteLogEntriesRequest() thr
     }
   }
 }
-// [END logging_v2_generated_loggingclient_writelogentries_callablefuturecallwritelogentriesrequest_sync]
+// [END logging_v2_generated_loggingclient_writelogentries_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntries.java
similarity index 83%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntries.java
index bceb1ed42b..72835920ad 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesWriteLogEntriesRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntries.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest_sync]
+// [START logging_v2_generated_loggingclient_writelogentries_sync]
 import com.google.api.MonitoredResource;
 import com.google.cloud.logging.v2.LoggingClient;
 import com.google.logging.v2.LogEntry;
@@ -26,13 +26,13 @@
 import java.util.ArrayList;
 import java.util.HashMap;
 
-public class WriteLogEntriesWriteLogEntriesRequest {
+public class SyncWriteLogEntries {
 
   public static void main(String[] args) throws Exception {
-    writeLogEntriesWriteLogEntriesRequest();
+    syncWriteLogEntries();
   }
 
-  public static void writeLogEntriesWriteLogEntriesRequest() throws Exception {
+  public static void syncWriteLogEntries() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (LoggingClient loggingClient = LoggingClient.create()) {
@@ -49,4 +49,4 @@ public static void writeLogEntriesWriteLogEntriesRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_loggingclient_writelogentries_writelogentriesrequest_sync]
+// [END logging_v2_generated_loggingclient_writelogentries_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry.java
similarity index 87%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry.java
index db2855cff6..c6da656a5e 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry.java
@@ -27,13 +27,13 @@
 import java.util.List;
 import java.util.Map;
 
-public class WriteLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry {
+public class SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry {
 
   public static void main(String[] args) throws Exception {
-    writeLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry();
+    syncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry();
   }
 
-  public static void writeLogEntriesLogNameMonitoredResourceMapStringStringListLogEntry()
+  public static void syncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry.java
index 64b549a580..83e9df4822 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingclient/writelogentries/SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry.java
@@ -27,13 +27,13 @@
 import java.util.List;
 import java.util.Map;
 
-public class WriteLogEntriesStringMonitoredResourceMapStringStringListLogEntry {
+public class SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry {
 
   public static void main(String[] args) throws Exception {
-    writeLogEntriesStringMonitoredResourceMapStringStringListLogEntry();
+    syncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry();
   }
 
-  public static void writeLogEntriesStringMonitoredResourceMapStringStringListLogEntry()
+  public static void syncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/SyncDeleteLog.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/SyncDeleteLog.java
index fe892cca10..d46470a27b 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingSettings.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/loggingsettings/deletelog/SyncDeleteLog.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings_sync]
+// [START logging_v2_generated_loggingsettings_deletelog_sync]
 import com.google.cloud.logging.v2.LoggingSettings;
 import java.time.Duration;
 
-public class DeleteLogSettingsSetRetrySettingsLoggingSettings {
+public class SyncDeleteLog {
 
   public static void main(String[] args) throws Exception {
-    deleteLogSettingsSetRetrySettingsLoggingSettings();
+    syncDeleteLog();
   }
 
-  public static void deleteLogSettingsSetRetrySettingsLoggingSettings() throws Exception {
+  public static void syncDeleteLog() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LoggingSettings.Builder loggingSettingsBuilder = LoggingSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void deleteLogSettingsSetRetrySettingsLoggingSettings() throws Exc
     LoggingSettings loggingSettings = loggingSettingsBuilder.build();
   }
 }
-// [END logging_v2_generated_loggingsettings_deletelog_settingssetretrysettingsloggingsettings_sync]
+// [END logging_v2_generated_loggingsettings_deletelog_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/SyncCreateSetCredentialsProvider.java
index 73e7522196..4e16520c1f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings1.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_create_metricssettings1_sync]
+// [START logging_v2_generated_metricsclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.cloud.logging.v2.MetricsSettings;
 import com.google.cloud.logging.v2.myCredentials;
 
-public class CreateMetricsSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createMetricsSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createMetricsSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     MetricsSettings metricsSettings =
@@ -38,4 +38,4 @@ public static void createMetricsSettings1() throws Exception {
     MetricsClient metricsClient = MetricsClient.create(metricsSettings);
   }
 }
-// [END logging_v2_generated_metricsclient_create_metricssettings1_sync]
+// [END logging_v2_generated_metricsclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/SyncCreateSetEndpoint.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/SyncCreateSetEndpoint.java
index 26f659dcf3..1e023b0445 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/CreateMetricsSettings2.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/create/SyncCreateSetEndpoint.java
@@ -16,22 +16,22 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_create_metricssettings2_sync]
+// [START logging_v2_generated_metricsclient_create_setendpoint_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.cloud.logging.v2.MetricsSettings;
 import com.google.cloud.logging.v2.myEndpoint;
 
-public class CreateMetricsSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createMetricsSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createMetricsSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     MetricsSettings metricsSettings = MetricsSettings.newBuilder().setEndpoint(myEndpoint).build();
     MetricsClient metricsClient = MetricsClient.create(metricsSettings);
   }
 }
-// [END logging_v2_generated_metricsclient_create_metricssettings2_sync]
+// [END logging_v2_generated_metricsclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/AsyncCreateLogMetric.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/AsyncCreateLogMetric.java
index f23328c814..24af4a48b6 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCallableFutureCallCreateLogMetricRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/AsyncCreateLogMetric.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest_sync]
+// [START logging_v2_generated_metricsclient_createlogmetric_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.CreateLogMetricRequest;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class CreateLogMetricCallableFutureCallCreateLogMetricRequest {
+public class AsyncCreateLogMetric {
 
   public static void main(String[] args) throws Exception {
-    createLogMetricCallableFutureCallCreateLogMetricRequest();
+    asyncCreateLogMetric();
   }
 
-  public static void createLogMetricCallableFutureCallCreateLogMetricRequest() throws Exception {
+  public static void asyncCreateLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -44,4 +44,4 @@ public static void createLogMetricCallableFutureCallCreateLogMetricRequest() thr
     }
   }
 }
-// [END logging_v2_generated_metricsclient_createlogmetric_callablefuturecallcreatelogmetricrequest_sync]
+// [END logging_v2_generated_metricsclient_createlogmetric_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetric.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetric.java
index 8a81f94600..8ea9c99360 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricCreateLogMetricRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetric.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest_sync]
+// [START logging_v2_generated_metricsclient_createlogmetric_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.CreateLogMetricRequest;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class CreateLogMetricCreateLogMetricRequest {
+public class SyncCreateLogMetric {
 
   public static void main(String[] args) throws Exception {
-    createLogMetricCreateLogMetricRequest();
+    syncCreateLogMetric();
   }
 
-  public static void createLogMetricCreateLogMetricRequest() throws Exception {
+  public static void syncCreateLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -41,4 +41,4 @@ public static void createLogMetricCreateLogMetricRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_metricsclient_createlogmetric_createlogmetricrequest_sync]
+// [END logging_v2_generated_metricsclient_createlogmetric_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetricProjectnameLogmetric.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetricProjectnameLogmetric.java
index 1f4bce8e4d..843fcba89f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricProjectNameLogMetric.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetricProjectnameLogmetric.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class CreateLogMetricProjectNameLogMetric {
+public class SyncCreateLogMetricProjectnameLogmetric {
 
   public static void main(String[] args) throws Exception {
-    createLogMetricProjectNameLogMetric();
+    syncCreateLogMetricProjectnameLogmetric();
   }
 
-  public static void createLogMetricProjectNameLogMetric() throws Exception {
+  public static void syncCreateLogMetricProjectnameLogmetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetricStringLogmetric.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetricStringLogmetric.java
index 813a7dc9f8..ac5b5a1574 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/CreateLogMetricStringLogMetric.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/createlogmetric/SyncCreateLogMetricStringLogmetric.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class CreateLogMetricStringLogMetric {
+public class SyncCreateLogMetricStringLogmetric {
 
   public static void main(String[] args) throws Exception {
-    createLogMetricStringLogMetric();
+    syncCreateLogMetricStringLogmetric();
   }
 
-  public static void createLogMetricStringLogMetric() throws Exception {
+  public static void syncCreateLogMetricStringLogmetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/AsyncDeleteLogMetric.java
similarity index 76%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/AsyncDeleteLogMetric.java
index 328d9ffa47..eda0326167 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricCallableFutureCallDeleteLogMetricRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/AsyncDeleteLogMetric.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest_sync]
+// [START logging_v2_generated_metricsclient_deletelogmetric_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.DeleteLogMetricRequest;
 import com.google.logging.v2.LogMetricName;
 import com.google.protobuf.Empty;
 
-public class DeleteLogMetricCallableFutureCallDeleteLogMetricRequest {
+public class AsyncDeleteLogMetric {
 
   public static void main(String[] args) throws Exception {
-    deleteLogMetricCallableFutureCallDeleteLogMetricRequest();
+    asyncDeleteLogMetric();
   }
 
-  public static void deleteLogMetricCallableFutureCallDeleteLogMetricRequest() throws Exception {
+  public static void asyncDeleteLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteLogMetricCallableFutureCallDeleteLogMetricRequest() thr
     }
   }
 }
-// [END logging_v2_generated_metricsclient_deletelogmetric_callablefuturecalldeletelogmetricrequest_sync]
+// [END logging_v2_generated_metricsclient_deletelogmetric_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetric.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetric.java
index 82e5ead631..6a77d2bbc3 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricDeleteLogMetricRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetric.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest_sync]
+// [START logging_v2_generated_metricsclient_deletelogmetric_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.DeleteLogMetricRequest;
 import com.google.logging.v2.LogMetricName;
 import com.google.protobuf.Empty;
 
-public class DeleteLogMetricDeleteLogMetricRequest {
+public class SyncDeleteLogMetric {
 
   public static void main(String[] args) throws Exception {
-    deleteLogMetricDeleteLogMetricRequest();
+    syncDeleteLogMetric();
   }
 
-  public static void deleteLogMetricDeleteLogMetricRequest() throws Exception {
+  public static void syncDeleteLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteLogMetricDeleteLogMetricRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_metricsclient_deletelogmetric_deletelogmetricrequest_sync]
+// [END logging_v2_generated_metricsclient_deletelogmetric_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetricLogmetricname.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetricLogmetricname.java
index 384f3a5a94..427ceb5379 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricLogMetricName.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetricLogmetricname.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogMetricName;
 import com.google.protobuf.Empty;
 
-public class DeleteLogMetricLogMetricName {
+public class SyncDeleteLogMetricLogmetricname {
 
   public static void main(String[] args) throws Exception {
-    deleteLogMetricLogMetricName();
+    syncDeleteLogMetricLogmetricname();
   }
 
-  public static void deleteLogMetricLogMetricName() throws Exception {
+  public static void syncDeleteLogMetricLogmetricname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetricString.java
similarity index 90%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetricString.java
index 3166d23c25..3b76667609 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/DeleteLogMetricString.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/deletelogmetric/SyncDeleteLogMetricString.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogMetricName;
 import com.google.protobuf.Empty;
 
-public class DeleteLogMetricString {
+public class SyncDeleteLogMetricString {
 
   public static void main(String[] args) throws Exception {
-    deleteLogMetricString();
+    syncDeleteLogMetricString();
   }
 
-  public static void deleteLogMetricString() throws Exception {
+  public static void syncDeleteLogMetricString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/AsyncGetLogMetric.java
similarity index 78%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/AsyncGetLogMetric.java
index c3b8d6e376..ecf3837fad 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricCallableFutureCallGetLogMetricRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/AsyncGetLogMetric.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest_sync]
+// [START logging_v2_generated_metricsclient_getlogmetric_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.GetLogMetricRequest;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.LogMetricName;
 
-public class GetLogMetricCallableFutureCallGetLogMetricRequest {
+public class AsyncGetLogMetric {
 
   public static void main(String[] args) throws Exception {
-    getLogMetricCallableFutureCallGetLogMetricRequest();
+    asyncGetLogMetric();
   }
 
-  public static void getLogMetricCallableFutureCallGetLogMetricRequest() throws Exception {
+  public static void asyncGetLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -43,4 +43,4 @@ public static void getLogMetricCallableFutureCallGetLogMetricRequest() throws Ex
     }
   }
 }
-// [END logging_v2_generated_metricsclient_getlogmetric_callablefuturecallgetlogmetricrequest_sync]
+// [END logging_v2_generated_metricsclient_getlogmetric_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetric.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetric.java
index 6d854fd3c8..5003835e45 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricGetLogMetricRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetric.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest_sync]
+// [START logging_v2_generated_metricsclient_getlogmetric_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.GetLogMetricRequest;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.LogMetricName;
 
-public class GetLogMetricGetLogMetricRequest {
+public class SyncGetLogMetric {
 
   public static void main(String[] args) throws Exception {
-    getLogMetricGetLogMetricRequest();
+    syncGetLogMetric();
   }
 
-  public static void getLogMetricGetLogMetricRequest() throws Exception {
+  public static void syncGetLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -40,4 +40,4 @@ public static void getLogMetricGetLogMetricRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_metricsclient_getlogmetric_getlogmetricrequest_sync]
+// [END logging_v2_generated_metricsclient_getlogmetric_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetricLogmetricname.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetricLogmetricname.java
index a88e058f35..8ae3a7ec04 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricLogMetricName.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetricLogmetricname.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.LogMetricName;
 
-public class GetLogMetricLogMetricName {
+public class SyncGetLogMetricLogmetricname {
 
   public static void main(String[] args) throws Exception {
-    getLogMetricLogMetricName();
+    syncGetLogMetricLogmetricname();
   }
 
-  public static void getLogMetricLogMetricName() throws Exception {
+  public static void syncGetLogMetricLogmetricname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetricString.java
similarity index 91%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetricString.java
index 973c12a415..8c1c1b74c4 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/GetLogMetricString.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/getlogmetric/SyncGetLogMetricString.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.LogMetricName;
 
-public class GetLogMetricString {
+public class SyncGetLogMetricString {
 
   public static void main(String[] args) throws Exception {
-    getLogMetricString();
+    syncGetLogMetricString();
   }
 
-  public static void getLogMetricString() throws Exception {
+  public static void syncGetLogMetricString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/AsyncListLogMetricsPagedCallable.java
similarity index 84%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/AsyncListLogMetricsPagedCallable.java
index 86d56e62ed..ebcca49788 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsPagedCallableFutureCallListLogMetricsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/AsyncListLogMetricsPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest_sync]
+// [START logging_v2_generated_metricsclient_listlogmetrics_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.ListLogMetricsRequest;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class ListLogMetricsPagedCallableFutureCallListLogMetricsRequest {
+public class AsyncListLogMetricsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listLogMetricsPagedCallableFutureCallListLogMetricsRequest();
+    asyncListLogMetricsPagedCallable();
   }
 
-  public static void listLogMetricsPagedCallableFutureCallListLogMetricsRequest() throws Exception {
+  public static void asyncListLogMetricsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -47,4 +47,4 @@ public static void listLogMetricsPagedCallableFutureCallListLogMetricsRequest()
     }
   }
 }
-// [END logging_v2_generated_metricsclient_listlogmetrics_pagedcallablefuturecalllistlogmetricsrequest_sync]
+// [END logging_v2_generated_metricsclient_listlogmetrics_pagedcallable_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetrics.java
similarity index 79%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetrics.java
index c15cfed6f1..14b9375517 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsListLogMetricsRequestIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetrics.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall_sync]
+// [START logging_v2_generated_metricsclient_listlogmetrics_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.ListLogMetricsRequest;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class ListLogMetricsListLogMetricsRequestIterateAll {
+public class SyncListLogMetrics {
 
   public static void main(String[] args) throws Exception {
-    listLogMetricsListLogMetricsRequestIterateAll();
+    syncListLogMetrics();
   }
 
-  public static void listLogMetricsListLogMetricsRequestIterateAll() throws Exception {
+  public static void syncListLogMetrics() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -44,4 +44,4 @@ public static void listLogMetricsListLogMetricsRequestIterateAll() throws Except
     }
   }
 }
-// [END logging_v2_generated_metricsclient_listlogmetrics_listlogmetricsrequestiterateall_sync]
+// [END logging_v2_generated_metricsclient_listlogmetrics_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsPaged.java
similarity index 82%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsPaged.java
index 1b08ae30ae..7a658fe93f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsCallableCallListLogMetricsRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest_sync]
+// [START logging_v2_generated_metricsclient_listlogmetrics_paged_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.common.base.Strings;
 import com.google.logging.v2.ListLogMetricsRequest;
@@ -24,13 +24,13 @@
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class ListLogMetricsCallableCallListLogMetricsRequest {
+public class SyncListLogMetricsPaged {
 
   public static void main(String[] args) throws Exception {
-    listLogMetricsCallableCallListLogMetricsRequest();
+    syncListLogMetricsPaged();
   }
 
-  public static void listLogMetricsCallableCallListLogMetricsRequest() throws Exception {
+  public static void syncListLogMetricsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -55,4 +55,4 @@ public static void listLogMetricsCallableCallListLogMetricsRequest() throws Exce
     }
   }
 }
-// [END logging_v2_generated_metricsclient_listlogmetrics_callablecalllistlogmetricsrequest_sync]
+// [END logging_v2_generated_metricsclient_listlogmetrics_paged_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsProjectname.java
similarity index 86%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsProjectname.java
index 35ece8ab8e..af52d4c136 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsProjectNameIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall_sync]
+// [START logging_v2_generated_metricsclient_listlogmetrics_projectname_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class ListLogMetricsProjectNameIterateAll {
+public class SyncListLogMetricsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listLogMetricsProjectNameIterateAll();
+    syncListLogMetricsProjectname();
   }
 
-  public static void listLogMetricsProjectNameIterateAll() throws Exception {
+  public static void syncListLogMetricsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -38,4 +38,4 @@ public static void listLogMetricsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_metricsclient_listlogmetrics_projectnameiterateall_sync]
+// [END logging_v2_generated_metricsclient_listlogmetrics_projectname_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsString.java
similarity index 87%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsString.java
index 7946529edc..181ba2b40f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/ListLogMetricsStringIterateAll.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/listlogmetrics/SyncListLogMetricsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_listlogmetrics_stringiterateall_sync]
+// [START logging_v2_generated_metricsclient_listlogmetrics_string_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.ProjectName;
 
-public class ListLogMetricsStringIterateAll {
+public class SyncListLogMetricsString {
 
   public static void main(String[] args) throws Exception {
-    listLogMetricsStringIterateAll();
+    syncListLogMetricsString();
   }
 
-  public static void listLogMetricsStringIterateAll() throws Exception {
+  public static void syncListLogMetricsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -38,4 +38,4 @@ public static void listLogMetricsStringIterateAll() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_metricsclient_listlogmetrics_stringiterateall_sync]
+// [END logging_v2_generated_metricsclient_listlogmetrics_string_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/AsyncUpdateLogMetric.java
similarity index 77%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/AsyncUpdateLogMetric.java
index c0a4b03103..2609602572 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricCallableFutureCallUpdateLogMetricRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/AsyncUpdateLogMetric.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest_sync]
+// [START logging_v2_generated_metricsclient_updatelogmetric_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.LogMetricName;
 import com.google.logging.v2.UpdateLogMetricRequest;
 
-public class UpdateLogMetricCallableFutureCallUpdateLogMetricRequest {
+public class AsyncUpdateLogMetric {
 
   public static void main(String[] args) throws Exception {
-    updateLogMetricCallableFutureCallUpdateLogMetricRequest();
+    asyncUpdateLogMetric();
   }
 
-  public static void updateLogMetricCallableFutureCallUpdateLogMetricRequest() throws Exception {
+  public static void asyncUpdateLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -44,4 +44,4 @@ public static void updateLogMetricCallableFutureCallUpdateLogMetricRequest() thr
     }
   }
 }
-// [END logging_v2_generated_metricsclient_updatelogmetric_callablefuturecallupdatelogmetricrequest_sync]
+// [END logging_v2_generated_metricsclient_updatelogmetric_async]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetric.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetric.java
index b10355d9aa..d304d8f8c4 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricUpdateLogMetricRequest.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetric.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest_sync]
+// [START logging_v2_generated_metricsclient_updatelogmetric_sync]
 import com.google.cloud.logging.v2.MetricsClient;
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.LogMetricName;
 import com.google.logging.v2.UpdateLogMetricRequest;
 
-public class UpdateLogMetricUpdateLogMetricRequest {
+public class SyncUpdateLogMetric {
 
   public static void main(String[] args) throws Exception {
-    updateLogMetricUpdateLogMetricRequest();
+    syncUpdateLogMetric();
   }
 
-  public static void updateLogMetricUpdateLogMetricRequest() throws Exception {
+  public static void syncUpdateLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
@@ -41,4 +41,4 @@ public static void updateLogMetricUpdateLogMetricRequest() throws Exception {
     }
   }
 }
-// [END logging_v2_generated_metricsclient_updatelogmetric_updatelogmetricrequest_sync]
+// [END logging_v2_generated_metricsclient_updatelogmetric_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetricLogmetricnameLogmetric.java
similarity index 88%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetricLogmetricnameLogmetric.java
index fc0649d75e..6df03d103a 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricLogMetricNameLogMetric.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetricLogmetricnameLogmetric.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.LogMetricName;
 
-public class UpdateLogMetricLogMetricNameLogMetric {
+public class SyncUpdateLogMetricLogmetricnameLogmetric {
 
   public static void main(String[] args) throws Exception {
-    updateLogMetricLogMetricNameLogMetric();
+    syncUpdateLogMetricLogmetricnameLogmetric();
   }
 
-  public static void updateLogMetricLogMetricNameLogMetric() throws Exception {
+  public static void syncUpdateLogMetricLogmetricnameLogmetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetricStringLogmetric.java
similarity index 89%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetricStringLogmetric.java
index a7b3e35f30..bd4b6a378b 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/UpdateLogMetricStringLogMetric.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricsclient/updatelogmetric/SyncUpdateLogMetricStringLogmetric.java
@@ -21,13 +21,13 @@
 import com.google.logging.v2.LogMetric;
 import com.google.logging.v2.LogMetricName;
 
-public class UpdateLogMetricStringLogMetric {
+public class SyncUpdateLogMetricStringLogmetric {
 
   public static void main(String[] args) throws Exception {
-    updateLogMetricStringLogMetric();
+    syncUpdateLogMetricStringLogmetric();
   }
 
-  public static void updateLogMetricStringLogMetric() throws Exception {
+  public static void syncUpdateLogMetricStringLogmetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MetricsClient metricsClient = MetricsClient.create()) {
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/SyncGetLogMetric.java
similarity index 76%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/SyncGetLogMetric.java
index a2753f5bbb..ca54ad920f 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsSettings.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/metricssettings/getlogmetric/SyncGetLogMetric.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.logging.v2.samples;
 
-// [START logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings_sync]
+// [START logging_v2_generated_metricssettings_getlogmetric_sync]
 import com.google.cloud.logging.v2.MetricsSettings;
 import java.time.Duration;
 
-public class GetLogMetricSettingsSetRetrySettingsMetricsSettings {
+public class SyncGetLogMetric {
 
   public static void main(String[] args) throws Exception {
-    getLogMetricSettingsSetRetrySettingsMetricsSettings();
+    syncGetLogMetric();
   }
 
-  public static void getLogMetricSettingsSetRetrySettingsMetricsSettings() throws Exception {
+  public static void syncGetLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     MetricsSettings.Builder metricsSettingsBuilder = MetricsSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void getLogMetricSettingsSetRetrySettingsMetricsSettings() throws
     MetricsSettings metricsSettings = metricsSettingsBuilder.build();
   }
 }
-// [END logging_v2_generated_metricssettings_getlogmetric_settingssetretrysettingsmetricssettings_sync]
+// [END logging_v2_generated_metricssettings_getlogmetric_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/SyncGetBucket.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/SyncGetBucket.java
index e60d1f2fa5..21a82d85d5 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/SyncGetBucket.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.logging.v2.stub.samples;
 
-// [START logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings_sync]
+// [START logging_v2_generated_configservicev2stubsettings_getbucket_sync]
 import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings;
 import java.time.Duration;
 
-public class GetBucketSettingsSetRetrySettingsConfigServiceV2StubSettings {
+public class SyncGetBucket {
 
   public static void main(String[] args) throws Exception {
-    getBucketSettingsSetRetrySettingsConfigServiceV2StubSettings();
+    syncGetBucket();
   }
 
-  public static void getBucketSettingsSetRetrySettingsConfigServiceV2StubSettings()
-      throws Exception {
+  public static void syncGetBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     ConfigServiceV2StubSettings.Builder configSettingsBuilder =
@@ -44,4 +43,4 @@ public static void getBucketSettingsSetRetrySettingsConfigServiceV2StubSettings(
     ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build();
   }
 }
-// [END logging_v2_generated_configservicev2stubsettings_getbucket_settingssetretrysettingsconfigservicev2stubsettings_sync]
+// [END logging_v2_generated_configservicev2stubsettings_getbucket_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/SyncDeleteLog.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/SyncDeleteLog.java
index 0f4c6b8d8c..43a154123c 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/SyncDeleteLog.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.logging.v2.stub.samples;
 
-// [START logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings_sync]
+// [START logging_v2_generated_loggingservicev2stubsettings_deletelog_sync]
 import com.google.cloud.logging.v2.stub.LoggingServiceV2StubSettings;
 import java.time.Duration;
 
-public class DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings {
+public class SyncDeleteLog {
 
   public static void main(String[] args) throws Exception {
-    deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings();
+    syncDeleteLog();
   }
 
-  public static void deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings()
-      throws Exception {
+  public static void syncDeleteLog() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LoggingServiceV2StubSettings.Builder loggingSettingsBuilder =
@@ -44,4 +43,4 @@ public static void deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings
     LoggingServiceV2StubSettings loggingSettings = loggingSettingsBuilder.build();
   }
 }
-// [END logging_v2_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings_sync]
+// [END logging_v2_generated_loggingservicev2stubsettings_deletelog_sync]
diff --git a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/SyncGetLogMetric.java
similarity index 80%
rename from test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java
rename to test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/SyncGetLogMetric.java
index 44be920f72..89b702323a 100644
--- a/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/samples/generated/src/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/SyncGetLogMetric.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.logging.v2.stub.samples;
 
-// [START logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings_sync]
+// [START logging_v2_generated_metricsservicev2stubsettings_getlogmetric_sync]
 import com.google.cloud.logging.v2.stub.MetricsServiceV2StubSettings;
 import java.time.Duration;
 
-public class GetLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings {
+public class SyncGetLogMetric {
 
   public static void main(String[] args) throws Exception {
-    getLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings();
+    syncGetLogMetric();
   }
 
-  public static void getLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSettings()
-      throws Exception {
+  public static void syncGetLogMetric() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     MetricsServiceV2StubSettings.Builder metricsSettingsBuilder =
@@ -44,4 +43,4 @@ public static void getLogMetricSettingsSetRetrySettingsMetricsServiceV2StubSetti
     MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build();
   }
 }
-// [END logging_v2_generated_metricsservicev2stubsettings_getlogmetric_settingssetretrysettingsmetricsservicev2stubsettings_sync]
+// [END logging_v2_generated_metricsservicev2stubsettings_getlogmetric_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/SyncCreateSetCredentialsProvider.java
index acf21341de..7c919b545e 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings1.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1_sync]
+// [START pubsub_v1_generated_schemaserviceclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.cloud.pubsub.v1.SchemaServiceSettings;
 import com.google.cloud.pubsub.v1.myCredentials;
 
-public class CreateSchemaServiceSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createSchemaServiceSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createSchemaServiceSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     SchemaServiceSettings schemaServiceSettings =
@@ -38,4 +38,4 @@ public static void createSchemaServiceSettings1() throws Exception {
     SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings1_sync]
+// [END pubsub_v1_generated_schemaserviceclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/SyncCreateSetEndpoint.java
similarity index 79%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/SyncCreateSetEndpoint.java
index 7ac05408c7..f0db3dd1aa 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/CreateSchemaServiceSettings2.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2_sync]
+// [START pubsub_v1_generated_schemaserviceclient_create_setendpoint_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.cloud.pubsub.v1.SchemaServiceSettings;
 import com.google.cloud.pubsub.v1.myEndpoint;
 
-public class CreateSchemaServiceSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createSchemaServiceSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createSchemaServiceSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     SchemaServiceSettings schemaServiceSettings =
@@ -35,4 +35,4 @@ public static void createSchemaServiceSettings2() throws Exception {
     SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_create_schemaservicesettings2_sync]
+// [END pubsub_v1_generated_schemaserviceclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/AsyncCreateSchema.java
similarity index 78%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/AsyncCreateSchema.java
index f3a838f08b..16cf7cf855 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCallableFutureCallCreateSchemaRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/AsyncCreateSchema.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_createschema_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.CreateSchemaRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Schema;
 
-public class CreateSchemaCallableFutureCallCreateSchemaRequest {
+public class AsyncCreateSchema {
 
   public static void main(String[] args) throws Exception {
-    createSchemaCallableFutureCallCreateSchemaRequest();
+    asyncCreateSchema();
   }
 
-  public static void createSchemaCallableFutureCallCreateSchemaRequest() throws Exception {
+  public static void asyncCreateSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -45,4 +45,4 @@ public static void createSchemaCallableFutureCallCreateSchemaRequest() throws Ex
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_createschema_callablefuturecallcreateschemarequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_createschema_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchema.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchema.java
index 91069f2bd7..802eff6c83 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaCreateSchemaRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchema.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_createschema_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.CreateSchemaRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Schema;
 
-public class CreateSchemaCreateSchemaRequest {
+public class SyncCreateSchema {
 
   public static void main(String[] args) throws Exception {
-    createSchemaCreateSchemaRequest();
+    syncCreateSchema();
   }
 
-  public static void createSchemaCreateSchemaRequest() throws Exception {
+  public static void syncCreateSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void createSchemaCreateSchemaRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_createschema_createschemarequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_createschema_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchemaProjectnameSchemaString.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchemaProjectnameSchemaString.java
index 66d5750c00..0ae2df9279 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaProjectNameSchemaString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchemaProjectnameSchemaString.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Schema;
 
-public class CreateSchemaProjectNameSchemaString {
+public class SyncCreateSchemaProjectnameSchemaString {
 
   public static void main(String[] args) throws Exception {
-    createSchemaProjectNameSchemaString();
+    syncCreateSchemaProjectnameSchemaString();
   }
 
-  public static void createSchemaProjectNameSchemaString() throws Exception {
+  public static void syncCreateSchemaProjectnameSchemaString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchemaStringSchemaString.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchemaStringSchemaString.java
index f0f511a75f..79633abb96 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/CreateSchemaStringSchemaString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/createschema/SyncCreateSchemaStringSchemaString.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Schema;
 
-public class CreateSchemaStringSchemaString {
+public class SyncCreateSchemaStringSchemaString {
 
   public static void main(String[] args) throws Exception {
-    createSchemaStringSchemaString();
+    syncCreateSchemaStringSchemaString();
   }
 
-  public static void createSchemaStringSchemaString() throws Exception {
+  public static void syncCreateSchemaStringSchemaString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/AsyncDeleteSchema.java
similarity index 77%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/AsyncDeleteSchema.java
index e675a5f551..e34f41d285 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaCallableFutureCallDeleteSchemaRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/AsyncDeleteSchema.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_deleteschema_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.DeleteSchemaRequest;
 import com.google.pubsub.v1.SchemaName;
 
-public class DeleteSchemaCallableFutureCallDeleteSchemaRequest {
+public class AsyncDeleteSchema {
 
   public static void main(String[] args) throws Exception {
-    deleteSchemaCallableFutureCallDeleteSchemaRequest();
+    asyncDeleteSchema();
   }
 
-  public static void deleteSchemaCallableFutureCallDeleteSchemaRequest() throws Exception {
+  public static void asyncDeleteSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteSchemaCallableFutureCallDeleteSchemaRequest() throws Ex
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_deleteschema_callablefuturecalldeleteschemarequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_deleteschema_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchema.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchema.java
index 861b367ff2..13661a81f0 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaDeleteSchemaRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchema.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_deleteschema_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.DeleteSchemaRequest;
 import com.google.pubsub.v1.SchemaName;
 
-public class DeleteSchemaDeleteSchemaRequest {
+public class SyncDeleteSchema {
 
   public static void main(String[] args) throws Exception {
-    deleteSchemaDeleteSchemaRequest();
+    syncDeleteSchema();
   }
 
-  public static void deleteSchemaDeleteSchemaRequest() throws Exception {
+  public static void syncDeleteSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteSchemaDeleteSchemaRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_deleteschema_deleteschemarequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_deleteschema_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchemaSchemaname.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchemaSchemaname.java
index cf965e0636..8ce7c44700 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaSchemaName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchemaSchemaname.java
@@ -21,13 +21,13 @@
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.SchemaName;
 
-public class DeleteSchemaSchemaName {
+public class SyncDeleteSchemaSchemaname {
 
   public static void main(String[] args) throws Exception {
-    deleteSchemaSchemaName();
+    syncDeleteSchemaSchemaname();
   }
 
-  public static void deleteSchemaSchemaName() throws Exception {
+  public static void syncDeleteSchemaSchemaname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchemaString.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchemaString.java
index 5b2994b180..21f09fe2c6 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/DeleteSchemaString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/deleteschema/SyncDeleteSchemaString.java
@@ -21,13 +21,13 @@
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.SchemaName;
 
-public class DeleteSchemaString {
+public class SyncDeleteSchemaString {
 
   public static void main(String[] args) throws Exception {
-    deleteSchemaString();
+    syncDeleteSchemaString();
   }
 
-  public static void deleteSchemaString() throws Exception {
+  public static void syncDeleteSchemaString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 79%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/AsyncGetIamPolicy.java
index 12b81cc566..9da237388c 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/AsyncGetIamPolicy.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.iam.v1.GetIamPolicyRequest;
@@ -24,13 +24,13 @@
 import com.google.iam.v1.Policy;
 import com.google.pubsub.v1.ProjectName;
 
-public class GetIamPolicyCallableFutureCallGetIamPolicyRequest {
+public class AsyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyCallableFutureCallGetIamPolicyRequest();
+    asyncGetIamPolicy();
   }
 
-  public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception {
+  public static void asyncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -45,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/SyncGetIamPolicy.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/SyncGetIamPolicy.java
index 565b881005..f7c1333a26 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getiampolicy/SyncGetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_getiampolicy_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.GetPolicyOptions;
 import com.google.iam.v1.Policy;
 import com.google.pubsub.v1.ProjectName;
 
-public class GetIamPolicyGetIamPolicyRequest {
+public class SyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyGetIamPolicyRequest();
+    syncGetIamPolicy();
   }
 
-  public static void getIamPolicyGetIamPolicyRequest() throws Exception {
+  public static void syncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_getiampolicyrequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_getiampolicy_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/AsyncGetSchema.java
similarity index 79%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/AsyncGetSchema.java
index 2463cd738c..ee315fcfc8 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaCallableFutureCallGetSchemaRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/AsyncGetSchema.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_getschema_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.GetSchemaRequest;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.SchemaName;
 import com.google.pubsub.v1.SchemaView;
 
-public class GetSchemaCallableFutureCallGetSchemaRequest {
+public class AsyncGetSchema {
 
   public static void main(String[] args) throws Exception {
-    getSchemaCallableFutureCallGetSchemaRequest();
+    asyncGetSchema();
   }
 
-  public static void getSchemaCallableFutureCallGetSchemaRequest() throws Exception {
+  public static void asyncGetSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -45,4 +45,4 @@ public static void getSchemaCallableFutureCallGetSchemaRequest() throws Exceptio
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_getschema_callablefuturecallgetschemarequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_getschema_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchema.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchema.java
index de78945a30..a32701f8ec 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaGetSchemaRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchema.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_getschema_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.GetSchemaRequest;
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.SchemaName;
 import com.google.pubsub.v1.SchemaView;
 
-public class GetSchemaGetSchemaRequest {
+public class SyncGetSchema {
 
   public static void main(String[] args) throws Exception {
-    getSchemaGetSchemaRequest();
+    syncGetSchema();
   }
 
-  public static void getSchemaGetSchemaRequest() throws Exception {
+  public static void syncGetSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void getSchemaGetSchemaRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_getschema_getschemarequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_getschema_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchemaSchemaname.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchemaSchemaname.java
index e62cfea66b..0abb6d7522 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaSchemaName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchemaSchemaname.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.SchemaName;
 
-public class GetSchemaSchemaName {
+public class SyncGetSchemaSchemaname {
 
   public static void main(String[] args) throws Exception {
-    getSchemaSchemaName();
+    syncGetSchemaSchemaname();
   }
 
-  public static void getSchemaSchemaName() throws Exception {
+  public static void syncGetSchemaSchemaname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchemaString.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchemaString.java
index 8d6a6bd3a7..cfdbe99a35 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/GetSchemaString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/getschema/SyncGetSchemaString.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.SchemaName;
 
-public class GetSchemaString {
+public class SyncGetSchemaString {
 
   public static void main(String[] args) throws Exception {
-    getSchemaString();
+    syncGetSchemaString();
   }
 
-  public static void getSchemaString() throws Exception {
+  public static void syncGetSchemaString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/AsyncListSchemasPagedCallable.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/AsyncListSchemasPagedCallable.java
index dda21c43cb..daf680035f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasPagedCallableFutureCallListSchemasRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/AsyncListSchemasPagedCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.ListSchemasRequest;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.SchemaView;
 
-public class ListSchemasPagedCallableFutureCallListSchemasRequest {
+public class AsyncListSchemasPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listSchemasPagedCallableFutureCallListSchemasRequest();
+    asyncListSchemasPagedCallable();
   }
 
-  public static void listSchemasPagedCallableFutureCallListSchemasRequest() throws Exception {
+  public static void asyncListSchemasPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -49,4 +49,4 @@ public static void listSchemasPagedCallableFutureCallListSchemasRequest() throws
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallablefuturecalllistschemasrequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_listschemas_pagedcallable_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemas.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemas.java
index 892e583ec1..398dfb1a01 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasListSchemasRequestIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemas.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall_sync]
+// [START pubsub_v1_generated_schemaserviceclient_listschemas_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.ListSchemasRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.SchemaView;
 
-public class ListSchemasListSchemasRequestIterateAll {
+public class SyncListSchemas {
 
   public static void main(String[] args) throws Exception {
-    listSchemasListSchemasRequestIterateAll();
+    syncListSchemas();
   }
 
-  public static void listSchemasListSchemasRequestIterateAll() throws Exception {
+  public static void syncListSchemas() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -46,4 +46,4 @@ public static void listSchemasListSchemasRequestIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_listschemas_listschemasrequestiterateall_sync]
+// [END pubsub_v1_generated_schemaserviceclient_listschemas_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasPaged.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasPaged.java
index ca41c9764b..0f7306dff2 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasCallableCallListSchemasRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_listschemas_paged_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.common.base.Strings;
 import com.google.pubsub.v1.ListSchemasRequest;
@@ -25,13 +25,13 @@
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.SchemaView;
 
-public class ListSchemasCallableCallListSchemasRequest {
+public class SyncListSchemasPaged {
 
   public static void main(String[] args) throws Exception {
-    listSchemasCallableCallListSchemasRequest();
+    syncListSchemasPaged();
   }
 
-  public static void listSchemasCallableCallListSchemasRequest() throws Exception {
+  public static void syncListSchemasPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -57,4 +57,4 @@ public static void listSchemasCallableCallListSchemasRequest() throws Exception
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_listschemas_callablecalllistschemasrequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_listschemas_paged_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasProjectname.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasProjectname.java
index 133c8fe04c..77a9e914c5 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasProjectNameIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall_sync]
+// [START pubsub_v1_generated_schemaserviceclient_listschemas_projectname_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Schema;
 
-public class ListSchemasProjectNameIterateAll {
+public class SyncListSchemasProjectname {
 
   public static void main(String[] args) throws Exception {
-    listSchemasProjectNameIterateAll();
+    syncListSchemasProjectname();
   }
 
-  public static void listSchemasProjectNameIterateAll() throws Exception {
+  public static void syncListSchemasProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -38,4 +38,4 @@ public static void listSchemasProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_listschemas_projectnameiterateall_sync]
+// [END pubsub_v1_generated_schemaserviceclient_listschemas_projectname_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasString.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasString.java
index 0675a87814..7302d2e501 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/ListSchemasStringIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/SyncListSchemasString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall_sync]
+// [START pubsub_v1_generated_schemaserviceclient_listschemas_string_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Schema;
 
-public class ListSchemasStringIterateAll {
+public class SyncListSchemasString {
 
   public static void main(String[] args) throws Exception {
-    listSchemasStringIterateAll();
+    syncListSchemasString();
   }
 
-  public static void listSchemasStringIterateAll() throws Exception {
+  public static void syncListSchemasString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -38,4 +38,4 @@ public static void listSchemasStringIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_listschemas_stringiterateall_sync]
+// [END pubsub_v1_generated_schemaserviceclient_listschemas_string_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 78%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/AsyncSetIamPolicy.java
index f687b8f38e..21a968ee0e 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/AsyncSetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 import com.google.pubsub.v1.ProjectName;
 
-public class SetIamPolicyCallableFutureCallSetIamPolicyRequest {
+public class AsyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicyCallableFutureCallSetIamPolicyRequest();
+    asyncSetIamPolicy();
   }
 
-  public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception {
+  public static void asyncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SyncSetIamPolicy.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SyncSetIamPolicy.java
index 738c3ef7da..0a729de1c7 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/setiampolicy/SyncSetIamPolicy.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_setiampolicy_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 import com.google.pubsub.v1.ProjectName;
 
-public class SetIamPolicySetIamPolicyRequest {
+public class SyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicySetIamPolicyRequest();
+    syncSetIamPolicy();
   }
 
-  public static void setIamPolicySetIamPolicyRequest() throws Exception {
+  public static void syncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -41,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_setiampolicyrequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_setiampolicy_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 83%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/AsyncTestIamPermissions.java
index 129d330d04..460a418bd9 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/AsyncTestIamPermissions.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
@@ -24,14 +24,13 @@
 import com.google.pubsub.v1.ProjectName;
 import java.util.ArrayList;
 
-public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest {
+public class AsyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsCallableFutureCallTestIamPermissionsRequest();
+    asyncTestIamPermissions();
   }
 
-  public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest()
-      throws Exception {
+  public static void asyncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -47,4 +46,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/SyncTestIamPermissions.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/SyncTestIamPermissions.java
index a02cc2be56..8243336958 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/testiampermissions/SyncTestIamPermissions.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_testiampermissions_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.pubsub.v1.ProjectName;
 import java.util.ArrayList;
 
-public class TestIamPermissionsTestIamPermissionsRequest {
+public class SyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsTestIamPermissionsRequest();
+    syncTestIamPermissions();
   }
 
-  public static void testIamPermissionsTestIamPermissionsRequest() throws Exception {
+  public static void syncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_testiampermissionsrequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_testiampermissions_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/AsyncValidateMessage.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/AsyncValidateMessage.java
index 5da8aac038..13eb8f2e4f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageCallableFutureCallValidateMessageRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/AsyncValidateMessage.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_validatemessage_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.protobuf.ByteString;
@@ -25,13 +25,13 @@
 import com.google.pubsub.v1.ValidateMessageRequest;
 import com.google.pubsub.v1.ValidateMessageResponse;
 
-public class ValidateMessageCallableFutureCallValidateMessageRequest {
+public class AsyncValidateMessage {
 
   public static void main(String[] args) throws Exception {
-    validateMessageCallableFutureCallValidateMessageRequest();
+    asyncValidateMessage();
   }
 
-  public static void validateMessageCallableFutureCallValidateMessageRequest() throws Exception {
+  public static void asyncValidateMessage() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -48,4 +48,4 @@ public static void validateMessageCallableFutureCallValidateMessageRequest() thr
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_validatemessage_callablefuturecallvalidatemessagerequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_validatemessage_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/SyncValidateMessage.java
similarity index 87%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/SyncValidateMessage.java
index a90514c352..e44537eed2 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/ValidateMessageValidateMessageRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validatemessage/SyncValidateMessage.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_validatemessage_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.protobuf.ByteString;
 import com.google.pubsub.v1.Encoding;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.ValidateMessageRequest;
 import com.google.pubsub.v1.ValidateMessageResponse;
 
-public class ValidateMessageValidateMessageRequest {
+public class SyncValidateMessage {
 
   public static void main(String[] args) throws Exception {
-    validateMessageValidateMessageRequest();
+    syncValidateMessage();
   }
 
-  public static void validateMessageValidateMessageRequest() throws Exception {
+  public static void syncValidateMessage() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -44,4 +44,4 @@ public static void validateMessageValidateMessageRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_validatemessage_validatemessagerequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_validatemessage_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/AsyncValidateSchema.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/AsyncValidateSchema.java
index 9a487c8973..d6a800372c 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaCallableFutureCallValidateSchemaRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/AsyncValidateSchema.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_validateschema_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.ProjectName;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.ValidateSchemaRequest;
 import com.google.pubsub.v1.ValidateSchemaResponse;
 
-public class ValidateSchemaCallableFutureCallValidateSchemaRequest {
+public class AsyncValidateSchema {
 
   public static void main(String[] args) throws Exception {
-    validateSchemaCallableFutureCallValidateSchemaRequest();
+    asyncValidateSchema();
   }
 
-  public static void validateSchemaCallableFutureCallValidateSchemaRequest() throws Exception {
+  public static void asyncValidateSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -46,4 +46,4 @@ public static void validateSchemaCallableFutureCallValidateSchemaRequest() throw
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_validateschema_callablefuturecallvalidateschemarequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_validateschema_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchema.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchema.java
index 5d2326c880..d13ba3db03 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaValidateSchemaRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchema.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest_sync]
+// [START pubsub_v1_generated_schemaserviceclient_validateschema_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.ValidateSchemaRequest;
 import com.google.pubsub.v1.ValidateSchemaResponse;
 
-public class ValidateSchemaValidateSchemaRequest {
+public class SyncValidateSchema {
 
   public static void main(String[] args) throws Exception {
-    validateSchemaValidateSchemaRequest();
+    syncValidateSchema();
   }
 
-  public static void validateSchemaValidateSchemaRequest() throws Exception {
+  public static void syncValidateSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
@@ -42,4 +42,4 @@ public static void validateSchemaValidateSchemaRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_schemaserviceclient_validateschema_validateschemarequest_sync]
+// [END pubsub_v1_generated_schemaserviceclient_validateschema_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchemaProjectnameSchema.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchemaProjectnameSchema.java
index dbd22eeeda..a47e89db85 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaProjectNameSchema.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchemaProjectnameSchema.java
@@ -22,13 +22,13 @@
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.ValidateSchemaResponse;
 
-public class ValidateSchemaProjectNameSchema {
+public class SyncValidateSchemaProjectnameSchema {
 
   public static void main(String[] args) throws Exception {
-    validateSchemaProjectNameSchema();
+    syncValidateSchemaProjectnameSchema();
   }
 
-  public static void validateSchemaProjectNameSchema() throws Exception {
+  public static void syncValidateSchemaProjectnameSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchemaStringSchema.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchemaStringSchema.java
index 182e70ecdb..7a16eaaf28 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/ValidateSchemaStringSchema.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaserviceclient/validateschema/SyncValidateSchemaStringSchema.java
@@ -22,13 +22,13 @@
 import com.google.pubsub.v1.Schema;
 import com.google.pubsub.v1.ValidateSchemaResponse;
 
-public class ValidateSchemaStringSchema {
+public class SyncValidateSchemaStringSchema {
 
   public static void main(String[] args) throws Exception {
-    validateSchemaStringSchema();
+    syncValidateSchemaStringSchema();
   }
 
-  public static void validateSchemaStringSchema() throws Exception {
+  public static void syncValidateSchemaStringSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/SyncCreateSchema.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/SyncCreateSchema.java
index 5c87f6152d..f1c984ec7e 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/SyncCreateSchema.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings_sync]
+// [START pubsub_v1_generated_schemaservicesettings_createschema_sync]
 import com.google.cloud.pubsub.v1.SchemaServiceSettings;
 import java.time.Duration;
 
-public class CreateSchemaSettingsSetRetrySettingsSchemaServiceSettings {
+public class SyncCreateSchema {
 
   public static void main(String[] args) throws Exception {
-    createSchemaSettingsSetRetrySettingsSchemaServiceSettings();
+    syncCreateSchema();
   }
 
-  public static void createSchemaSettingsSetRetrySettingsSchemaServiceSettings() throws Exception {
+  public static void syncCreateSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void createSchemaSettingsSetRetrySettingsSchemaServiceSettings() t
     SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
   }
 }
-// [END pubsub_v1_generated_schemaservicesettings_createschema_settingssetretrysettingsschemaservicesettings_sync]
+// [END pubsub_v1_generated_schemaservicesettings_createschema_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/SyncCreateTopic.java
similarity index 79%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/SyncCreateTopic.java
index 76821fe18c..afc5c2463b 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/SyncCreateTopic.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.pubsub.v1.stub.samples;
 
-// [START pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings_sync]
+// [START pubsub_v1_generated_publisherstubsettings_createtopic_sync]
 import com.google.cloud.pubsub.v1.stub.PublisherStubSettings;
 import java.time.Duration;
 
-public class CreateTopicSettingsSetRetrySettingsPublisherStubSettings {
+public class SyncCreateTopic {
 
   public static void main(String[] args) throws Exception {
-    createTopicSettingsSetRetrySettingsPublisherStubSettings();
+    syncCreateTopic();
   }
 
-  public static void createTopicSettingsSetRetrySettingsPublisherStubSettings() throws Exception {
+  public static void syncCreateTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void createTopicSettingsSetRetrySettingsPublisherStubSettings() th
     PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
   }
 }
-// [END pubsub_v1_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings_sync]
+// [END pubsub_v1_generated_publisherstubsettings_createtopic_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/SyncCreateSchema.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/SyncCreateSchema.java
index 54e09426d9..8d52c1b51c 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/SyncCreateSchema.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.pubsub.v1.stub.samples;
 
-// [START pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings_sync]
+// [START pubsub_v1_generated_schemaservicestubsettings_createschema_sync]
 import com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings;
 import java.time.Duration;
 
-public class CreateSchemaSettingsSetRetrySettingsSchemaServiceStubSettings {
+public class SyncCreateSchema {
 
   public static void main(String[] args) throws Exception {
-    createSchemaSettingsSetRetrySettingsSchemaServiceStubSettings();
+    syncCreateSchema();
   }
 
-  public static void createSchemaSettingsSetRetrySettingsSchemaServiceStubSettings()
-      throws Exception {
+  public static void syncCreateSchema() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
@@ -44,4 +43,4 @@ public static void createSchemaSettingsSetRetrySettingsSchemaServiceStubSettings
     SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
   }
 }
-// [END pubsub_v1_generated_schemaservicestubsettings_createschema_settingssetretrysettingsschemaservicestubsettings_sync]
+// [END pubsub_v1_generated_schemaservicestubsettings_createschema_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/SyncCreateSubscription.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/SyncCreateSubscription.java
index 1eeedc3a29..05cce37df7 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/SyncCreateSubscription.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.pubsub.v1.stub.samples;
 
-// [START pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings_sync]
+// [START pubsub_v1_generated_subscriberstubsettings_createsubscription_sync]
 import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings;
 import java.time.Duration;
 
-public class CreateSubscriptionSettingsSetRetrySettingsSubscriberStubSettings {
+public class SyncCreateSubscription {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionSettingsSetRetrySettingsSubscriberStubSettings();
+    syncCreateSubscription();
   }
 
-  public static void createSubscriptionSettingsSetRetrySettingsSubscriberStubSettings()
-      throws Exception {
+  public static void syncCreateSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
@@ -44,4 +43,4 @@ public static void createSubscriptionSettingsSetRetrySettingsSubscriberStubSetti
     SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
   }
 }
-// [END pubsub_v1_generated_subscriberstubsettings_createsubscription_settingssetretrysettingssubscriberstubsettings_sync]
+// [END pubsub_v1_generated_subscriberstubsettings_createsubscription_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AsyncAcknowledge.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AsyncAcknowledge.java
index 081cd6aa8c..09170a1b85 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeCallableFutureCallAcknowledgeRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AsyncAcknowledge.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.SubscriptionName;
 import java.util.ArrayList;
 
-public class AcknowledgeCallableFutureCallAcknowledgeRequest {
+public class AsyncAcknowledge {
 
   public static void main(String[] args) throws Exception {
-    acknowledgeCallableFutureCallAcknowledgeRequest();
+    asyncAcknowledge();
   }
 
-  public static void acknowledgeCallableFutureCallAcknowledgeRequest() throws Exception {
+  public static void asyncAcknowledge() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -45,4 +45,4 @@ public static void acknowledgeCallableFutureCallAcknowledgeRequest() throws Exce
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_callablefuturecallacknowledgerequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledge.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledge.java
index 3c074fa7ea..c879c2529a 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeAcknowledgeRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledge.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_acknowledge_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.AcknowledgeRequest;
 import com.google.pubsub.v1.SubscriptionName;
 import java.util.ArrayList;
 
-public class AcknowledgeAcknowledgeRequest {
+public class SyncAcknowledge {
 
   public static void main(String[] args) throws Exception {
-    acknowledgeAcknowledgeRequest();
+    syncAcknowledge();
   }
 
-  public static void acknowledgeAcknowledgeRequest() throws Exception {
+  public static void syncAcknowledge() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -42,4 +42,4 @@ public static void acknowledgeAcknowledgeRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_acknowledgerequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_acknowledge_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledgeStringListstring.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledgeStringListstring.java
index b6f21dddd9..f3622bcf3a 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeStringListString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledgeStringListstring.java
@@ -23,13 +23,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class AcknowledgeStringListString {
+public class SyncAcknowledgeStringListstring {
 
   public static void main(String[] args) throws Exception {
-    acknowledgeStringListString();
+    syncAcknowledgeStringListstring();
   }
 
-  public static void acknowledgeStringListString() throws Exception {
+  public static void syncAcknowledgeStringListstring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledgeSubscriptionnameListstring.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledgeSubscriptionnameListstring.java
index a5b59b11a0..cc7386facb 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/AcknowledgeSubscriptionNameListString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/acknowledge/SyncAcknowledgeSubscriptionnameListstring.java
@@ -23,13 +23,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class AcknowledgeSubscriptionNameListString {
+public class SyncAcknowledgeSubscriptionnameListstring {
 
   public static void main(String[] args) throws Exception {
-    acknowledgeSubscriptionNameListString();
+    syncAcknowledgeSubscriptionnameListstring();
   }
 
-  public static void acknowledgeSubscriptionNameListString() throws Exception {
+  public static void syncAcknowledgeSubscriptionnameListstring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/SyncCreateSetCredentialsProvider.java
index 827bfb79c7..a3f2e2cc29 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings1.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.cloud.pubsub.v1.SubscriptionAdminSettings;
 import com.google.cloud.pubsub.v1.myCredentials;
 
-public class CreateSubscriptionAdminSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionAdminSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createSubscriptionAdminSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     SubscriptionAdminSettings subscriptionAdminSettings =
@@ -39,4 +39,4 @@ public static void createSubscriptionAdminSettings1() throws Exception {
         SubscriptionAdminClient.create(subscriptionAdminSettings);
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings1_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/SyncCreateSetEndpoint.java
similarity index 78%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/SyncCreateSetEndpoint.java
index be344c3edd..61447bf2e6 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/CreateSubscriptionAdminSettings2.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_create_setendpoint_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.cloud.pubsub.v1.SubscriptionAdminSettings;
 import com.google.cloud.pubsub.v1.myEndpoint;
 
-public class CreateSubscriptionAdminSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionAdminSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createSubscriptionAdminSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     SubscriptionAdminSettings subscriptionAdminSettings =
@@ -36,4 +36,4 @@ public static void createSubscriptionAdminSettings2() throws Exception {
         SubscriptionAdminClient.create(subscriptionAdminSettings);
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_create_subscriptionadminsettings2_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/AsyncCreateSnapshot.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/AsyncCreateSnapshot.java
index af41f6ede6..574c708681 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCallableFutureCallCreateSnapshotRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/AsyncCreateSnapshot.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.CreateSnapshotRequest;
@@ -25,13 +25,13 @@
 import com.google.pubsub.v1.SubscriptionName;
 import java.util.HashMap;
 
-public class CreateSnapshotCallableFutureCallCreateSnapshotRequest {
+public class AsyncCreateSnapshot {
 
   public static void main(String[] args) throws Exception {
-    createSnapshotCallableFutureCallCreateSnapshotRequest();
+    asyncCreateSnapshot();
   }
 
-  public static void createSnapshotCallableFutureCallCreateSnapshotRequest() throws Exception {
+  public static void asyncCreateSnapshot() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -48,4 +48,4 @@ public static void createSnapshotCallableFutureCallCreateSnapshotRequest() throw
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_callablefuturecallcreatesnapshotrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshot.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshot.java
index 2914fbdfe4..7ea954384f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotCreateSnapshotRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshot.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_createsnapshot_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.CreateSnapshotRequest;
 import com.google.pubsub.v1.Snapshot;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.SubscriptionName;
 import java.util.HashMap;
 
-public class CreateSnapshotCreateSnapshotRequest {
+public class SyncCreateSnapshot {
 
   public static void main(String[] args) throws Exception {
-    createSnapshotCreateSnapshotRequest();
+    syncCreateSnapshot();
   }
 
-  public static void createSnapshotCreateSnapshotRequest() throws Exception {
+  public static void syncCreateSnapshot() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void createSnapshotCreateSnapshotRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_createsnapshotrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_createsnapshot_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotSnapshotnameString.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotSnapshotnameString.java
index 497e7d4411..a9253018ec 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotSnapshotnameString.java
@@ -22,13 +22,13 @@
 import com.google.pubsub.v1.SnapshotName;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class CreateSnapshotSnapshotNameString {
+public class SyncCreateSnapshotSnapshotnameString {
 
   public static void main(String[] args) throws Exception {
-    createSnapshotSnapshotNameString();
+    syncCreateSnapshotSnapshotnameString();
   }
 
-  public static void createSnapshotSnapshotNameString() throws Exception {
+  public static void syncCreateSnapshotSnapshotnameString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotSnapshotnameSubscriptionname.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotSnapshotnameSubscriptionname.java
index 13eeac7884..3c891f5536 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotSnapshotNameSubscriptionName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotSnapshotnameSubscriptionname.java
@@ -22,13 +22,13 @@
 import com.google.pubsub.v1.SnapshotName;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class CreateSnapshotSnapshotNameSubscriptionName {
+public class SyncCreateSnapshotSnapshotnameSubscriptionname {
 
   public static void main(String[] args) throws Exception {
-    createSnapshotSnapshotNameSubscriptionName();
+    syncCreateSnapshotSnapshotnameSubscriptionname();
   }
 
-  public static void createSnapshotSnapshotNameSubscriptionName() throws Exception {
+  public static void syncCreateSnapshotSnapshotnameSubscriptionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotStringString.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotStringString.java
index ae2093081e..88f93ef673 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotStringString.java
@@ -22,13 +22,13 @@
 import com.google.pubsub.v1.SnapshotName;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class CreateSnapshotStringString {
+public class SyncCreateSnapshotStringString {
 
   public static void main(String[] args) throws Exception {
-    createSnapshotStringString();
+    syncCreateSnapshotStringString();
   }
 
-  public static void createSnapshotStringString() throws Exception {
+  public static void syncCreateSnapshotStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotStringSubscriptionname.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotStringSubscriptionname.java
index 0a52e39292..1e1e3d96a0 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/CreateSnapshotStringSubscriptionName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsnapshot/SyncCreateSnapshotStringSubscriptionname.java
@@ -22,13 +22,13 @@
 import com.google.pubsub.v1.SnapshotName;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class CreateSnapshotStringSubscriptionName {
+public class SyncCreateSnapshotStringSubscriptionname {
 
   public static void main(String[] args) throws Exception {
-    createSnapshotStringSubscriptionName();
+    syncCreateSnapshotStringSubscriptionname();
   }
 
-  public static void createSnapshotStringSubscriptionName() throws Exception {
+  public static void syncCreateSnapshotStringSubscriptionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/AsyncCreateSubscription.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/AsyncCreateSubscription.java
index cf4005589b..d2bf1ca3b8 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionCallableFutureCallSubscription.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/AsyncCreateSubscription.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Duration;
@@ -29,13 +29,13 @@
 import com.google.pubsub.v1.TopicName;
 import java.util.HashMap;
 
-public class CreateSubscriptionCallableFutureCallSubscription {
+public class AsyncCreateSubscription {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionCallableFutureCallSubscription();
+    asyncCreateSubscription();
   }
 
-  public static void createSubscriptionCallableFutureCallSubscription() throws Exception {
+  public static void asyncCreateSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -64,4 +64,4 @@ public static void createSubscriptionCallableFutureCallSubscription() throws Exc
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_callablefuturecallsubscription_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscription.java
similarity index 92%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscription.java
index 0a5ab6a142..579f5a2a28 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscription.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscription.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_createsubscription_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Duration;
 import com.google.pubsub.v1.DeadLetterPolicy;
@@ -28,13 +28,13 @@
 import com.google.pubsub.v1.TopicName;
 import java.util.HashMap;
 
-public class CreateSubscriptionSubscription {
+public class SyncCreateSubscription {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionSubscription();
+    syncCreateSubscription();
   }
 
-  public static void createSubscriptionSubscription() throws Exception {
+  public static void syncCreateSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -60,4 +60,4 @@ public static void createSubscriptionSubscription() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_subscription_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_createsubscription_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionStringStringPushconfigInt.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionStringStringPushconfigInt.java
index 2347446086..879745c4c3 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringStringPushConfigInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionStringStringPushconfigInt.java
@@ -23,13 +23,13 @@
 import com.google.pubsub.v1.SubscriptionName;
 import com.google.pubsub.v1.TopicName;
 
-public class CreateSubscriptionStringStringPushConfigInt {
+public class SyncCreateSubscriptionStringStringPushconfigInt {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionStringStringPushConfigInt();
+    syncCreateSubscriptionStringStringPushconfigInt();
   }
 
-  public static void createSubscriptionStringStringPushConfigInt() throws Exception {
+  public static void syncCreateSubscriptionStringStringPushconfigInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionStringTopicnamePushconfigInt.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionStringTopicnamePushconfigInt.java
index d71ce57802..49e74740b5 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionStringTopicNamePushConfigInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionStringTopicnamePushconfigInt.java
@@ -23,13 +23,13 @@
 import com.google.pubsub.v1.SubscriptionName;
 import com.google.pubsub.v1.TopicName;
 
-public class CreateSubscriptionStringTopicNamePushConfigInt {
+public class SyncCreateSubscriptionStringTopicnamePushconfigInt {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionStringTopicNamePushConfigInt();
+    syncCreateSubscriptionStringTopicnamePushconfigInt();
   }
 
-  public static void createSubscriptionStringTopicNamePushConfigInt() throws Exception {
+  public static void syncCreateSubscriptionStringTopicnamePushconfigInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionSubscriptionnameStringPushconfigInt.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionSubscriptionnameStringPushconfigInt.java
index ddff254443..31450dc20c 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameStringPushConfigInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionSubscriptionnameStringPushconfigInt.java
@@ -23,13 +23,13 @@
 import com.google.pubsub.v1.SubscriptionName;
 import com.google.pubsub.v1.TopicName;
 
-public class CreateSubscriptionSubscriptionNameStringPushConfigInt {
+public class SyncCreateSubscriptionSubscriptionnameStringPushconfigInt {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionSubscriptionNameStringPushConfigInt();
+    syncCreateSubscriptionSubscriptionnameStringPushconfigInt();
   }
 
-  public static void createSubscriptionSubscriptionNameStringPushConfigInt() throws Exception {
+  public static void syncCreateSubscriptionSubscriptionnameStringPushconfigInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt.java
similarity index 87%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt.java
index 529bedcbdf..1f7d589e86 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/CreateSubscriptionSubscriptionNameTopicNamePushConfigInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/createsubscription/SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt.java
@@ -23,13 +23,14 @@
 import com.google.pubsub.v1.SubscriptionName;
 import com.google.pubsub.v1.TopicName;
 
-public class CreateSubscriptionSubscriptionNameTopicNamePushConfigInt {
+public class SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionSubscriptionNameTopicNamePushConfigInt();
+    syncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt();
   }
 
-  public static void createSubscriptionSubscriptionNameTopicNamePushConfigInt() throws Exception {
+  public static void syncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt()
+      throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/AsyncDeleteSnapshot.java
similarity index 83%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/AsyncDeleteSnapshot.java
index 23fe6ac7e9..137a6f86c4 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotCallableFutureCallDeleteSnapshotRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/AsyncDeleteSnapshot.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.DeleteSnapshotRequest;
 import com.google.pubsub.v1.SnapshotName;
 
-public class DeleteSnapshotCallableFutureCallDeleteSnapshotRequest {
+public class AsyncDeleteSnapshot {
 
   public static void main(String[] args) throws Exception {
-    deleteSnapshotCallableFutureCallDeleteSnapshotRequest();
+    asyncDeleteSnapshot();
   }
 
-  public static void deleteSnapshotCallableFutureCallDeleteSnapshotRequest() throws Exception {
+  public static void asyncDeleteSnapshot() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void deleteSnapshotCallableFutureCallDeleteSnapshotRequest() throw
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_callablefuturecalldeletesnapshotrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshot.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshot.java
index cc5f39878b..0072e7c285 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotDeleteSnapshotRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshot.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_deletesnapshot_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.DeleteSnapshotRequest;
 import com.google.pubsub.v1.SnapshotName;
 
-public class DeleteSnapshotDeleteSnapshotRequest {
+public class SyncDeleteSnapshot {
 
   public static void main(String[] args) throws Exception {
-    deleteSnapshotDeleteSnapshotRequest();
+    syncDeleteSnapshot();
   }
 
-  public static void deleteSnapshotDeleteSnapshotRequest() throws Exception {
+  public static void syncDeleteSnapshot() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteSnapshotDeleteSnapshotRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_deletesnapshotrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_deletesnapshot_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshotSnapshotname.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshotSnapshotname.java
index 0622e7b1f1..5d451bd560 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotSnapshotName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshotSnapshotname.java
@@ -21,13 +21,13 @@
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.SnapshotName;
 
-public class DeleteSnapshotSnapshotName {
+public class SyncDeleteSnapshotSnapshotname {
 
   public static void main(String[] args) throws Exception {
-    deleteSnapshotSnapshotName();
+    syncDeleteSnapshotSnapshotname();
   }
 
-  public static void deleteSnapshotSnapshotName() throws Exception {
+  public static void syncDeleteSnapshotSnapshotname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshotString.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshotString.java
index 9ae96cabdf..4c66c5c028 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/DeleteSnapshotString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesnapshot/SyncDeleteSnapshotString.java
@@ -21,13 +21,13 @@
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.SnapshotName;
 
-public class DeleteSnapshotString {
+public class SyncDeleteSnapshotString {
 
   public static void main(String[] args) throws Exception {
-    deleteSnapshotString();
+    syncDeleteSnapshotString();
   }
 
-  public static void deleteSnapshotString() throws Exception {
+  public static void syncDeleteSnapshotString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/AsyncDeleteSubscription.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/AsyncDeleteSubscription.java
index 0c78b079ba..1b4305a1b0 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/AsyncDeleteSubscription.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.DeleteSubscriptionRequest;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class DeleteSubscriptionCallableFutureCallDeleteSubscriptionRequest {
+public class AsyncDeleteSubscription {
 
   public static void main(String[] args) throws Exception {
-    deleteSubscriptionCallableFutureCallDeleteSubscriptionRequest();
+    asyncDeleteSubscription();
   }
 
-  public static void deleteSubscriptionCallableFutureCallDeleteSubscriptionRequest()
-      throws Exception {
+  public static void asyncDeleteSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -45,4 +44,4 @@ public static void deleteSubscriptionCallableFutureCallDeleteSubscriptionRequest
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_callablefuturecalldeletesubscriptionrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscription.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscription.java
index 54424ffa84..6f789cdac3 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionDeleteSubscriptionRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscription.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_deletesubscription_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.DeleteSubscriptionRequest;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class DeleteSubscriptionDeleteSubscriptionRequest {
+public class SyncDeleteSubscription {
 
   public static void main(String[] args) throws Exception {
-    deleteSubscriptionDeleteSubscriptionRequest();
+    syncDeleteSubscription();
   }
 
-  public static void deleteSubscriptionDeleteSubscriptionRequest() throws Exception {
+  public static void syncDeleteSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteSubscriptionDeleteSubscriptionRequest() throws Exceptio
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_deletesubscriptionrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_deletesubscription_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscriptionString.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscriptionString.java
index a9d67eff3c..305640ac04 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscriptionString.java
@@ -21,13 +21,13 @@
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class DeleteSubscriptionString {
+public class SyncDeleteSubscriptionString {
 
   public static void main(String[] args) throws Exception {
-    deleteSubscriptionString();
+    syncDeleteSubscriptionString();
   }
 
-  public static void deleteSubscriptionString() throws Exception {
+  public static void syncDeleteSubscriptionString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java
index b573672245..c36c3858f8 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/DeleteSubscriptionSubscriptionName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java
@@ -21,13 +21,13 @@
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class DeleteSubscriptionSubscriptionName {
+public class SyncDeleteSubscriptionSubscriptionname {
 
   public static void main(String[] args) throws Exception {
-    deleteSubscriptionSubscriptionName();
+    syncDeleteSubscriptionSubscriptionname();
   }
 
-  public static void deleteSubscriptionSubscriptionName() throws Exception {
+  public static void syncDeleteSubscriptionSubscriptionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/AsyncGetIamPolicy.java
index cdef531cda..08b3a437a3 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/AsyncGetIamPolicy.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.iam.v1.GetIamPolicyRequest;
@@ -24,13 +24,13 @@
 import com.google.iam.v1.Policy;
 import com.google.pubsub.v1.ProjectName;
 
-public class GetIamPolicyCallableFutureCallGetIamPolicyRequest {
+public class AsyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyCallableFutureCallGetIamPolicyRequest();
+    asyncGetIamPolicy();
   }
 
-  public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception {
+  public static void asyncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -45,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/SyncGetIamPolicy.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/SyncGetIamPolicy.java
index 008dc7b1ff..6a0c4322fb 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getiampolicy/SyncGetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_getiampolicy_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.GetPolicyOptions;
 import com.google.iam.v1.Policy;
 import com.google.pubsub.v1.ProjectName;
 
-public class GetIamPolicyGetIamPolicyRequest {
+public class SyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyGetIamPolicyRequest();
+    syncGetIamPolicy();
   }
 
-  public static void getIamPolicyGetIamPolicyRequest() throws Exception {
+  public static void syncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -42,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_getiampolicyrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_getiampolicy_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/AsyncGetSnapshot.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/AsyncGetSnapshot.java
index f44ec4cc0b..42f848b480 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotCallableFutureCallGetSnapshotRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/AsyncGetSnapshot.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.GetSnapshotRequest;
 import com.google.pubsub.v1.Snapshot;
 import com.google.pubsub.v1.SnapshotName;
 
-public class GetSnapshotCallableFutureCallGetSnapshotRequest {
+public class AsyncGetSnapshot {
 
   public static void main(String[] args) throws Exception {
-    getSnapshotCallableFutureCallGetSnapshotRequest();
+    asyncGetSnapshot();
   }
 
-  public static void getSnapshotCallableFutureCallGetSnapshotRequest() throws Exception {
+  public static void asyncGetSnapshot() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void getSnapshotCallableFutureCallGetSnapshotRequest() throws Exce
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_callablefuturecallgetsnapshotrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshot.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshot.java
index 9a5ab80591..2eb2191762 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotGetSnapshotRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshot.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_getsnapshot_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.GetSnapshotRequest;
 import com.google.pubsub.v1.Snapshot;
 import com.google.pubsub.v1.SnapshotName;
 
-public class GetSnapshotGetSnapshotRequest {
+public class SyncGetSnapshot {
 
   public static void main(String[] args) throws Exception {
-    getSnapshotGetSnapshotRequest();
+    syncGetSnapshot();
   }
 
-  public static void getSnapshotGetSnapshotRequest() throws Exception {
+  public static void syncGetSnapshot() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -40,4 +40,4 @@ public static void getSnapshotGetSnapshotRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_getsnapshotrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_getsnapshot_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshotSnapshotname.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshotSnapshotname.java
index 0e032459f3..3a9a6dba17 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotSnapshotName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshotSnapshotname.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Snapshot;
 import com.google.pubsub.v1.SnapshotName;
 
-public class GetSnapshotSnapshotName {
+public class SyncGetSnapshotSnapshotname {
 
   public static void main(String[] args) throws Exception {
-    getSnapshotSnapshotName();
+    syncGetSnapshotSnapshotname();
   }
 
-  public static void getSnapshotSnapshotName() throws Exception {
+  public static void syncGetSnapshotSnapshotname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshotString.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshotString.java
index 3fe154061c..988ad0c82c 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/GetSnapshotString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsnapshot/SyncGetSnapshotString.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Snapshot;
 import com.google.pubsub.v1.SnapshotName;
 
-public class GetSnapshotString {
+public class SyncGetSnapshotString {
 
   public static void main(String[] args) throws Exception {
-    getSnapshotString();
+    syncGetSnapshotString();
   }
 
-  public static void getSnapshotString() throws Exception {
+  public static void syncGetSnapshotString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/AsyncGetSubscription.java
similarity index 83%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/AsyncGetSubscription.java
index 24a2cb7dd2..900ac3a2dd 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionCallableFutureCallGetSubscriptionRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/AsyncGetSubscription.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.GetSubscriptionRequest;
 import com.google.pubsub.v1.Subscription;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class GetSubscriptionCallableFutureCallGetSubscriptionRequest {
+public class AsyncGetSubscription {
 
   public static void main(String[] args) throws Exception {
-    getSubscriptionCallableFutureCallGetSubscriptionRequest();
+    asyncGetSubscription();
   }
 
-  public static void getSubscriptionCallableFutureCallGetSubscriptionRequest() throws Exception {
+  public static void asyncGetSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void getSubscriptionCallableFutureCallGetSubscriptionRequest() thr
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_callablefuturecallgetsubscriptionrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscription.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscription.java
index eaae3cec23..59452611c3 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionGetSubscriptionRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscription.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_getsubscription_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.GetSubscriptionRequest;
 import com.google.pubsub.v1.Subscription;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class GetSubscriptionGetSubscriptionRequest {
+public class SyncGetSubscription {
 
   public static void main(String[] args) throws Exception {
-    getSubscriptionGetSubscriptionRequest();
+    syncGetSubscription();
   }
 
-  public static void getSubscriptionGetSubscriptionRequest() throws Exception {
+  public static void syncGetSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -40,4 +40,4 @@ public static void getSubscriptionGetSubscriptionRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_getsubscriptionrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_getsubscription_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscriptionString.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscriptionString.java
index 4dbec002c4..2327ec9800 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscriptionString.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Subscription;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class GetSubscriptionString {
+public class SyncGetSubscriptionString {
 
   public static void main(String[] args) throws Exception {
-    getSubscriptionString();
+    syncGetSubscriptionString();
   }
 
-  public static void getSubscriptionString() throws Exception {
+  public static void syncGetSubscriptionString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscriptionSubscriptionname.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscriptionSubscriptionname.java
index 009c3d848f..392517e314 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/GetSubscriptionSubscriptionName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/getsubscription/SyncGetSubscriptionSubscriptionname.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Subscription;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class GetSubscriptionSubscriptionName {
+public class SyncGetSubscriptionSubscriptionname {
 
   public static void main(String[] args) throws Exception {
-    getSubscriptionSubscriptionName();
+    syncGetSubscriptionSubscriptionname();
   }
 
-  public static void getSubscriptionSubscriptionName() throws Exception {
+  public static void syncGetSubscriptionSubscriptionname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/AsyncListSnapshotsPagedCallable.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/AsyncListSnapshotsPagedCallable.java
index 580371965e..318eab8f89 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsPagedCallableFutureCallListSnapshotsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/AsyncListSnapshotsPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.ListSnapshotsRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Snapshot;
 
-public class ListSnapshotsPagedCallableFutureCallListSnapshotsRequest {
+public class AsyncListSnapshotsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listSnapshotsPagedCallableFutureCallListSnapshotsRequest();
+    asyncListSnapshotsPagedCallable();
   }
 
-  public static void listSnapshotsPagedCallableFutureCallListSnapshotsRequest() throws Exception {
+  public static void asyncListSnapshotsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -48,4 +48,4 @@ public static void listSnapshotsPagedCallableFutureCallListSnapshotsRequest() th
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallablefuturecalllistsnapshotsrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_pagedcallable_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshots.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshots.java
index 7f2367e848..900e4e26f5 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsListSnapshotsRequestIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshots.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.ListSnapshotsRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Snapshot;
 
-public class ListSnapshotsListSnapshotsRequestIterateAll {
+public class SyncListSnapshots {
 
   public static void main(String[] args) throws Exception {
-    listSnapshotsListSnapshotsRequestIterateAll();
+    syncListSnapshots();
   }
 
-  public static void listSnapshotsListSnapshotsRequestIterateAll() throws Exception {
+  public static void syncListSnapshots() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void listSnapshotsListSnapshotsRequestIterateAll() throws Exceptio
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_listsnapshotsrequestiterateall_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsPaged.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsPaged.java
index e0505780b1..3928c87b5d 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsCallableCallListSnapshotsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_paged_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.common.base.Strings;
 import com.google.pubsub.v1.ListSnapshotsRequest;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Snapshot;
 
-public class ListSnapshotsCallableCallListSnapshotsRequest {
+public class SyncListSnapshotsPaged {
 
   public static void main(String[] args) throws Exception {
-    listSnapshotsCallableCallListSnapshotsRequest();
+    syncListSnapshotsPaged();
   }
 
-  public static void listSnapshotsCallableCallListSnapshotsRequest() throws Exception {
+  public static void syncListSnapshotsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -56,4 +56,4 @@ public static void listSnapshotsCallableCallListSnapshotsRequest() throws Except
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_callablecalllistsnapshotsrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_paged_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsProjectname.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsProjectname.java
index c6666b694d..684ee19403 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsProjectNameIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectname_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Snapshot;
 
-public class ListSnapshotsProjectNameIterateAll {
+public class SyncListSnapshotsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listSnapshotsProjectNameIterateAll();
+    syncListSnapshotsProjectname();
   }
 
-  public static void listSnapshotsProjectNameIterateAll() throws Exception {
+  public static void syncListSnapshotsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -38,4 +38,4 @@ public static void listSnapshotsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectnameiterateall_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_projectname_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsString.java
similarity index 87%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsString.java
index 4e8dc163c6..a712abde37 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/ListSnapshotsStringIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/SyncListSnapshotsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsnapshots_string_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Snapshot;
 
-public class ListSnapshotsStringIterateAll {
+public class SyncListSnapshotsString {
 
   public static void main(String[] args) throws Exception {
-    listSnapshotsStringIterateAll();
+    syncListSnapshotsString();
   }
 
-  public static void listSnapshotsStringIterateAll() throws Exception {
+  public static void syncListSnapshotsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -38,4 +38,4 @@ public static void listSnapshotsStringIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_stringiterateall_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsnapshots_string_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/AsyncListSubscriptionsPagedCallable.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/AsyncListSubscriptionsPagedCallable.java
index 0529d00d75..c82f985927 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/AsyncListSubscriptionsPagedCallable.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.ListSubscriptionsRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Subscription;
 
-public class ListSubscriptionsPagedCallableFutureCallListSubscriptionsRequest {
+public class AsyncListSubscriptionsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listSubscriptionsPagedCallableFutureCallListSubscriptionsRequest();
+    asyncListSubscriptionsPagedCallable();
   }
 
-  public static void listSubscriptionsPagedCallableFutureCallListSubscriptionsRequest()
-      throws Exception {
+  public static void asyncListSubscriptionsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -49,4 +48,4 @@ public static void listSubscriptionsPagedCallableFutureCallListSubscriptionsRequ
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallablefuturecalllistsubscriptionsrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_pagedcallable_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptions.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptions.java
index 1badfcb4c9..149ba21dd2 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsListSubscriptionsRequestIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptions.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.ListSubscriptionsRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Subscription;
 
-public class ListSubscriptionsListSubscriptionsRequestIterateAll {
+public class SyncListSubscriptions {
 
   public static void main(String[] args) throws Exception {
-    listSubscriptionsListSubscriptionsRequestIterateAll();
+    syncListSubscriptions();
   }
 
-  public static void listSubscriptionsListSubscriptionsRequestIterateAll() throws Exception {
+  public static void syncListSubscriptions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void listSubscriptionsListSubscriptionsRequestIterateAll() throws
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_listsubscriptionsrequestiterateall_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsPaged.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsPaged.java
index 11af8a0b47..c6614472e3 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsCallableCallListSubscriptionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_paged_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.common.base.Strings;
 import com.google.pubsub.v1.ListSubscriptionsRequest;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Subscription;
 
-public class ListSubscriptionsCallableCallListSubscriptionsRequest {
+public class SyncListSubscriptionsPaged {
 
   public static void main(String[] args) throws Exception {
-    listSubscriptionsCallableCallListSubscriptionsRequest();
+    syncListSubscriptionsPaged();
   }
 
-  public static void listSubscriptionsCallableCallListSubscriptionsRequest() throws Exception {
+  public static void syncListSubscriptionsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -56,4 +56,4 @@ public static void listSubscriptionsCallableCallListSubscriptionsRequest() throw
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_callablecalllistsubscriptionsrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_paged_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsProjectname.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsProjectname.java
index 50494e86cd..24b2286321 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsProjectNameIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectname_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Subscription;
 
-public class ListSubscriptionsProjectNameIterateAll {
+public class SyncListSubscriptionsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listSubscriptionsProjectNameIterateAll();
+    syncListSubscriptionsProjectname();
   }
 
-  public static void listSubscriptionsProjectNameIterateAll() throws Exception {
+  public static void syncListSubscriptionsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -38,4 +38,4 @@ public static void listSubscriptionsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectnameiterateall_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_projectname_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsString.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsString.java
index 42b6900d44..c96628b09d 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/ListSubscriptionsStringIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/SyncListSubscriptionsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_listsubscriptions_string_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Subscription;
 
-public class ListSubscriptionsStringIterateAll {
+public class SyncListSubscriptionsString {
 
   public static void main(String[] args) throws Exception {
-    listSubscriptionsStringIterateAll();
+    syncListSubscriptionsString();
   }
 
-  public static void listSubscriptionsStringIterateAll() throws Exception {
+  public static void syncListSubscriptionsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -38,4 +38,4 @@ public static void listSubscriptionsStringIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_stringiterateall_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_listsubscriptions_string_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/AsyncModifyAckDeadline.java
similarity index 83%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/AsyncModifyAckDeadline.java
index f920b40e97..d74c7cd102 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/AsyncModifyAckDeadline.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
@@ -24,14 +24,13 @@
 import com.google.pubsub.v1.SubscriptionName;
 import java.util.ArrayList;
 
-public class ModifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest {
+public class AsyncModifyAckDeadline {
 
   public static void main(String[] args) throws Exception {
-    modifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest();
+    asyncModifyAckDeadline();
   }
 
-  public static void modifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest()
-      throws Exception {
+  public static void asyncModifyAckDeadline() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -48,4 +47,4 @@ public static void modifyAckDeadlineCallableFutureCallModifyAckDeadlineRequest()
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_callablefuturecallmodifyackdeadlinerequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadline.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadline.java
index aa8c22cba0..27fddd9c91 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineModifyAckDeadlineRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadline.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.ModifyAckDeadlineRequest;
 import com.google.pubsub.v1.SubscriptionName;
 import java.util.ArrayList;
 
-public class ModifyAckDeadlineModifyAckDeadlineRequest {
+public class SyncModifyAckDeadline {
 
   public static void main(String[] args) throws Exception {
-    modifyAckDeadlineModifyAckDeadlineRequest();
+    syncModifyAckDeadline();
   }
 
-  public static void modifyAckDeadlineModifyAckDeadlineRequest() throws Exception {
+  public static void syncModifyAckDeadline() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -43,4 +43,4 @@ public static void modifyAckDeadlineModifyAckDeadlineRequest() throws Exception
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_modifyackdeadlinerequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_modifyackdeadline_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadlineStringListstringInt.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadlineStringListstringInt.java
index 6d727d1301..e457109102 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineStringListStringInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadlineStringListstringInt.java
@@ -23,13 +23,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class ModifyAckDeadlineStringListStringInt {
+public class SyncModifyAckDeadlineStringListstringInt {
 
   public static void main(String[] args) throws Exception {
-    modifyAckDeadlineStringListStringInt();
+    syncModifyAckDeadlineStringListstringInt();
   }
 
-  public static void modifyAckDeadlineStringListStringInt() throws Exception {
+  public static void syncModifyAckDeadlineStringListstringInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadlineSubscriptionnameListstringInt.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadlineSubscriptionnameListstringInt.java
index 7539875fb8..a81a40bdc7 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/ModifyAckDeadlineSubscriptionNameListStringInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifyackdeadline/SyncModifyAckDeadlineSubscriptionnameListstringInt.java
@@ -23,13 +23,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class ModifyAckDeadlineSubscriptionNameListStringInt {
+public class SyncModifyAckDeadlineSubscriptionnameListstringInt {
 
   public static void main(String[] args) throws Exception {
-    modifyAckDeadlineSubscriptionNameListStringInt();
+    syncModifyAckDeadlineSubscriptionnameListstringInt();
   }
 
-  public static void modifyAckDeadlineSubscriptionNameListStringInt() throws Exception {
+  public static void syncModifyAckDeadlineSubscriptionnameListstringInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/AsyncModifyPushConfig.java
similarity index 83%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/AsyncModifyPushConfig.java
index fd012d3ad4..f7e5ac5c4d 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigCallableFutureCallModifyPushConfigRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/AsyncModifyPushConfig.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.PushConfig;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class ModifyPushConfigCallableFutureCallModifyPushConfigRequest {
+public class AsyncModifyPushConfig {
 
   public static void main(String[] args) throws Exception {
-    modifyPushConfigCallableFutureCallModifyPushConfigRequest();
+    asyncModifyPushConfig();
   }
 
-  public static void modifyPushConfigCallableFutureCallModifyPushConfigRequest() throws Exception {
+  public static void asyncModifyPushConfig() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -46,4 +46,4 @@ public static void modifyPushConfigCallableFutureCallModifyPushConfigRequest() t
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_callablefuturecallmodifypushconfigrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfig.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfig.java
index 271afc9b8f..1fb6e03255 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigModifyPushConfigRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfig.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_modifypushconfig_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.ModifyPushConfigRequest;
 import com.google.pubsub.v1.PushConfig;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class ModifyPushConfigModifyPushConfigRequest {
+public class SyncModifyPushConfig {
 
   public static void main(String[] args) throws Exception {
-    modifyPushConfigModifyPushConfigRequest();
+    syncModifyPushConfig();
   }
 
-  public static void modifyPushConfigModifyPushConfigRequest() throws Exception {
+  public static void syncModifyPushConfig() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -42,4 +42,4 @@ public static void modifyPushConfigModifyPushConfigRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_modifypushconfigrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_modifypushconfig_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfigStringPushconfig.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfigStringPushconfig.java
index 0af2d2f8b1..a9935cc0e8 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigStringPushConfig.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfigStringPushconfig.java
@@ -22,13 +22,13 @@
 import com.google.pubsub.v1.PushConfig;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class ModifyPushConfigStringPushConfig {
+public class SyncModifyPushConfigStringPushconfig {
 
   public static void main(String[] args) throws Exception {
-    modifyPushConfigStringPushConfig();
+    syncModifyPushConfigStringPushconfig();
   }
 
-  public static void modifyPushConfigStringPushConfig() throws Exception {
+  public static void syncModifyPushConfigStringPushconfig() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfigSubscriptionnamePushconfig.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfigSubscriptionnamePushconfig.java
index 9759c3e34a..c2bcdbdccc 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/ModifyPushConfigSubscriptionNamePushConfig.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/modifypushconfig/SyncModifyPushConfigSubscriptionnamePushconfig.java
@@ -22,13 +22,13 @@
 import com.google.pubsub.v1.PushConfig;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class ModifyPushConfigSubscriptionNamePushConfig {
+public class SyncModifyPushConfigSubscriptionnamePushconfig {
 
   public static void main(String[] args) throws Exception {
-    modifyPushConfigSubscriptionNamePushConfig();
+    syncModifyPushConfigSubscriptionnamePushconfig();
   }
 
-  public static void modifyPushConfigSubscriptionNamePushConfig() throws Exception {
+  public static void syncModifyPushConfigSubscriptionnamePushconfig() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/AsyncPull.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/AsyncPull.java
index 59983df33b..5dbf1ed63d 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullCallableFutureCallPullRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/AsyncPull.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_pull_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.PullRequest;
 import com.google.pubsub.v1.PullResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class PullCallableFutureCallPullRequest {
+public class AsyncPull {
 
   public static void main(String[] args) throws Exception {
-    pullCallableFutureCallPullRequest();
+    asyncPull();
   }
 
-  public static void pullCallableFutureCallPullRequest() throws Exception {
+  public static void asyncPull() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -45,4 +45,4 @@ public static void pullCallableFutureCallPullRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_pull_callablefuturecallpullrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_pull_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPull.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPull.java
index 24350af912..6940910d5f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullPullRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPull.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_pull_pullrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_pull_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.PullRequest;
 import com.google.pubsub.v1.PullResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class PullPullRequest {
+public class SyncPull {
 
   public static void main(String[] args) throws Exception {
-    pullPullRequest();
+    syncPull();
   }
 
-  public static void pullPullRequest() throws Exception {
+  public static void syncPull() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -42,4 +42,4 @@ public static void pullPullRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_pull_pullrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_pull_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullStringBooleanInt.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullStringBooleanInt.java
index 62c3d3f2dc..eafea3f003 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringBooleanInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullStringBooleanInt.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.PullResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class PullStringBooleanInt {
+public class SyncPullStringBooleanInt {
 
   public static void main(String[] args) throws Exception {
-    pullStringBooleanInt();
+    syncPullStringBooleanInt();
   }
 
-  public static void pullStringBooleanInt() throws Exception {
+  public static void syncPullStringBooleanInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullStringInt.java
similarity index 92%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullStringInt.java
index 51f159b7ef..6d931399e6 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullStringInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullStringInt.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.PullResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class PullStringInt {
+public class SyncPullStringInt {
 
   public static void main(String[] args) throws Exception {
-    pullStringInt();
+    syncPullStringInt();
   }
 
-  public static void pullStringInt() throws Exception {
+  public static void syncPullStringInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullSubscriptionnameBooleanInt.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullSubscriptionnameBooleanInt.java
index 3e1c095950..577d4cbc1f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameBooleanInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullSubscriptionnameBooleanInt.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.PullResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class PullSubscriptionNameBooleanInt {
+public class SyncPullSubscriptionnameBooleanInt {
 
   public static void main(String[] args) throws Exception {
-    pullSubscriptionNameBooleanInt();
+    syncPullSubscriptionnameBooleanInt();
   }
 
-  public static void pullSubscriptionNameBooleanInt() throws Exception {
+  public static void syncPullSubscriptionnameBooleanInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullSubscriptionnameInt.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullSubscriptionnameInt.java
index 8266b30bca..b0529d5b82 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/PullSubscriptionNameInt.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/pull/SyncPullSubscriptionnameInt.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.PullResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class PullSubscriptionNameInt {
+public class SyncPullSubscriptionnameInt {
 
   public static void main(String[] args) throws Exception {
-    pullSubscriptionNameInt();
+    syncPullSubscriptionnameInt();
   }
 
-  public static void pullSubscriptionNameInt() throws Exception {
+  public static void syncPullSubscriptionnameInt() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/AsyncSeek.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/AsyncSeek.java
index 38907dccf9..07cc3cf56d 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekCallableFutureCallSeekRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/AsyncSeek.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_seek_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.SeekRequest;
 import com.google.pubsub.v1.SeekResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class SeekCallableFutureCallSeekRequest {
+public class AsyncSeek {
 
   public static void main(String[] args) throws Exception {
-    seekCallableFutureCallSeekRequest();
+    asyncSeek();
   }
 
-  public static void seekCallableFutureCallSeekRequest() throws Exception {
+  public static void asyncSeek() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -43,4 +43,4 @@ public static void seekCallableFutureCallSeekRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_seek_callablefuturecallseekrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_seek_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SyncSeek.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SyncSeek.java
index 86bf6d1005..92f05b98b2 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SeekSeekRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/seek/SyncSeek.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_seek_seekrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_seek_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.SeekRequest;
 import com.google.pubsub.v1.SeekResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class SeekSeekRequest {
+public class SyncSeek {
 
   public static void main(String[] args) throws Exception {
-    seekSeekRequest();
+    syncSeek();
   }
 
-  public static void seekSeekRequest() throws Exception {
+  public static void syncSeek() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -40,4 +40,4 @@ public static void seekSeekRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_seek_seekrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_seek_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/AsyncSetIamPolicy.java
index f56da0abd1..2391c2254d 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/AsyncSetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 import com.google.pubsub.v1.ProjectName;
 
-public class SetIamPolicyCallableFutureCallSetIamPolicyRequest {
+public class AsyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicyCallableFutureCallSetIamPolicyRequest();
+    asyncSetIamPolicy();
   }
 
-  public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception {
+  public static void asyncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SyncSetIamPolicy.java
similarity index 87%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SyncSetIamPolicy.java
index 3fe8369fe4..f58ff8467d 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/setiampolicy/SyncSetIamPolicy.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_setiampolicy_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 import com.google.pubsub.v1.ProjectName;
 
-public class SetIamPolicySetIamPolicyRequest {
+public class SyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicySetIamPolicyRequest();
+    syncSetIamPolicy();
   }
 
-  public static void setIamPolicySetIamPolicyRequest() throws Exception {
+  public static void syncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -41,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_setiampolicyrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_setiampolicy_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/AsyncStreamingPullStreamBidi.java
similarity index 88%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/AsyncStreamingPullStreamBidi.java
index fe85e59fc7..45c60792e2 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/StreamingPullCallableCallStreamingPullRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/streamingpull/AsyncStreamingPullStreamBidi.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_streamingpull_streambidi_async]
 import com.google.api.gax.rpc.BidiStream;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.pubsub.v1.StreamingPullRequest;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.SubscriptionName;
 import java.util.ArrayList;
 
-public class StreamingPullCallableCallStreamingPullRequest {
+public class AsyncStreamingPullStreamBidi {
 
   public static void main(String[] args) throws Exception {
-    streamingPullCallableCallStreamingPullRequest();
+    asyncStreamingPullStreamBidi();
   }
 
-  public static void streamingPullCallableCallStreamingPullRequest() throws Exception {
+  public static void asyncStreamingPullStreamBidi() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -54,4 +54,4 @@ public static void streamingPullCallableCallStreamingPullRequest() throws Except
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_streamingpull_callablecallstreamingpullrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_streamingpull_streambidi_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 83%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/AsyncTestIamPermissions.java
index eda2eb3751..73da08f3c6 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/AsyncTestIamPermissions.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
@@ -24,14 +24,13 @@
 import com.google.pubsub.v1.ProjectName;
 import java.util.ArrayList;
 
-public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest {
+public class AsyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsCallableFutureCallTestIamPermissionsRequest();
+    asyncTestIamPermissions();
   }
 
-  public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest()
-      throws Exception {
+  public static void asyncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -47,4 +46,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/SyncTestIamPermissions.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/SyncTestIamPermissions.java
index 4030b289c4..b40e380872 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/testiampermissions/SyncTestIamPermissions.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_testiampermissions_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.pubsub.v1.ProjectName;
 import java.util.ArrayList;
 
-public class TestIamPermissionsTestIamPermissionsRequest {
+public class SyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsTestIamPermissionsRequest();
+    syncTestIamPermissions();
   }
 
-  public static void testIamPermissionsTestIamPermissionsRequest() throws Exception {
+  public static void syncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -42,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_testiampermissionsrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_testiampermissions_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/AsyncUpdateSnapshot.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/AsyncUpdateSnapshot.java
index 27ad17b770..e81cfd863e 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotCallableFutureCallUpdateSnapshotRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/AsyncUpdateSnapshot.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.FieldMask;
 import com.google.pubsub.v1.Snapshot;
 import com.google.pubsub.v1.UpdateSnapshotRequest;
 
-public class UpdateSnapshotCallableFutureCallUpdateSnapshotRequest {
+public class AsyncUpdateSnapshot {
 
   public static void main(String[] args) throws Exception {
-    updateSnapshotCallableFutureCallUpdateSnapshotRequest();
+    asyncUpdateSnapshot();
   }
 
-  public static void updateSnapshotCallableFutureCallUpdateSnapshotRequest() throws Exception {
+  public static void asyncUpdateSnapshot() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -45,4 +45,4 @@ public static void updateSnapshotCallableFutureCallUpdateSnapshotRequest() throw
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_callablefuturecallupdatesnapshotrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/SyncUpdateSnapshot.java
similarity index 87%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/SyncUpdateSnapshot.java
index dac3dd024c..3ebc64c376 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/UpdateSnapshotUpdateSnapshotRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesnapshot/SyncUpdateSnapshot.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_updatesnapshot_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.FieldMask;
 import com.google.pubsub.v1.Snapshot;
 import com.google.pubsub.v1.UpdateSnapshotRequest;
 
-public class UpdateSnapshotUpdateSnapshotRequest {
+public class SyncUpdateSnapshot {
 
   public static void main(String[] args) throws Exception {
-    updateSnapshotUpdateSnapshotRequest();
+    syncUpdateSnapshot();
   }
 
-  public static void updateSnapshotUpdateSnapshotRequest() throws Exception {
+  public static void syncUpdateSnapshot() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -41,4 +41,4 @@ public static void updateSnapshotUpdateSnapshotRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_updatesnapshotrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_updatesnapshot_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/AsyncUpdateSubscription.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/AsyncUpdateSubscription.java
index 0fcf5d293e..2a9d30bb4a 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/AsyncUpdateSubscription.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.FieldMask;
 import com.google.pubsub.v1.Subscription;
 import com.google.pubsub.v1.UpdateSubscriptionRequest;
 
-public class UpdateSubscriptionCallableFutureCallUpdateSubscriptionRequest {
+public class AsyncUpdateSubscription {
 
   public static void main(String[] args) throws Exception {
-    updateSubscriptionCallableFutureCallUpdateSubscriptionRequest();
+    asyncUpdateSubscription();
   }
 
-  public static void updateSubscriptionCallableFutureCallUpdateSubscriptionRequest()
-      throws Exception {
+  public static void asyncUpdateSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -46,4 +45,4 @@ public static void updateSubscriptionCallableFutureCallUpdateSubscriptionRequest
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_callablefuturecallupdatesubscriptionrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/SyncUpdateSubscription.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/SyncUpdateSubscription.java
index b52f77f9ec..b76693bfe6 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/UpdateSubscriptionUpdateSubscriptionRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminclient/updatesubscription/SyncUpdateSubscription.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest_sync]
+// [START pubsub_v1_generated_subscriptionadminclient_updatesubscription_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
 import com.google.protobuf.FieldMask;
 import com.google.pubsub.v1.Subscription;
 import com.google.pubsub.v1.UpdateSubscriptionRequest;
 
-public class UpdateSubscriptionUpdateSubscriptionRequest {
+public class SyncUpdateSubscription {
 
   public static void main(String[] args) throws Exception {
-    updateSubscriptionUpdateSubscriptionRequest();
+    syncUpdateSubscription();
   }
 
-  public static void updateSubscriptionUpdateSubscriptionRequest() throws Exception {
+  public static void syncUpdateSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
@@ -41,4 +41,4 @@ public static void updateSubscriptionUpdateSubscriptionRequest() throws Exceptio
     }
   }
 }
-// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_updatesubscriptionrequest_sync]
+// [END pubsub_v1_generated_subscriptionadminclient_updatesubscription_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/SyncCreateSubscription.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/SyncCreateSubscription.java
index d94c6a1f6c..543fbd8b9f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/SyncCreateSubscription.java
@@ -16,18 +16,17 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings_sync]
+// [START pubsub_v1_generated_subscriptionadminsettings_createsubscription_sync]
 import com.google.cloud.pubsub.v1.SubscriptionAdminSettings;
 import java.time.Duration;
 
-public class CreateSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings {
+public class SyncCreateSubscription {
 
   public static void main(String[] args) throws Exception {
-    createSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings();
+    syncCreateSubscription();
   }
 
-  public static void createSubscriptionSettingsSetRetrySettingsSubscriptionAdminSettings()
-      throws Exception {
+  public static void syncCreateSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
@@ -44,4 +43,4 @@ public static void createSubscriptionSettingsSetRetrySettingsSubscriptionAdminSe
     SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
   }
 }
-// [END pubsub_v1_generated_subscriptionadminsettings_createsubscription_settingssetretrysettingssubscriptionadminsettings_sync]
+// [END pubsub_v1_generated_subscriptionadminsettings_createsubscription_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/SyncCreateSetCredentialsProvider.java
index ff3140b612..8d9640b79b 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings1.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_create_topicadminsettings1_sync]
+// [START pubsub_v1_generated_topicadminclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.cloud.pubsub.v1.TopicAdminSettings;
 import com.google.cloud.pubsub.v1.myCredentials;
 
-public class CreateTopicAdminSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createTopicAdminSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createTopicAdminSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     TopicAdminSettings topicAdminSettings =
@@ -38,4 +38,4 @@ public static void createTopicAdminSettings1() throws Exception {
     TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings);
   }
 }
-// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings1_sync]
+// [END pubsub_v1_generated_topicadminclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/SyncCreateSetEndpoint.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/SyncCreateSetEndpoint.java
index 6418bdb2b7..6d4ea2b3bc 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/CreateTopicAdminSettings2.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_create_topicadminsettings2_sync]
+// [START pubsub_v1_generated_topicadminclient_create_setendpoint_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.cloud.pubsub.v1.TopicAdminSettings;
 import com.google.cloud.pubsub.v1.myEndpoint;
 
-public class CreateTopicAdminSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createTopicAdminSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createTopicAdminSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     TopicAdminSettings topicAdminSettings =
@@ -35,4 +35,4 @@ public static void createTopicAdminSettings2() throws Exception {
     TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings);
   }
 }
-// [END pubsub_v1_generated_topicadminclient_create_topicadminsettings2_sync]
+// [END pubsub_v1_generated_topicadminclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/AsyncCreateTopic.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/AsyncCreateTopic.java
index d0c567aac5..50e8e9d761 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicCallableFutureCallTopic.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/AsyncCreateTopic.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic_sync]
+// [START pubsub_v1_generated_topicadminclient_createtopic_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.protobuf.Duration;
@@ -26,13 +26,13 @@
 import com.google.pubsub.v1.TopicName;
 import java.util.HashMap;
 
-public class CreateTopicCallableFutureCallTopic {
+public class AsyncCreateTopic {
 
   public static void main(String[] args) throws Exception {
-    createTopicCallableFutureCallTopic();
+    asyncCreateTopic();
   }
 
-  public static void createTopicCallableFutureCallTopic() throws Exception {
+  public static void asyncCreateTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -52,4 +52,4 @@ public static void createTopicCallableFutureCallTopic() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_createtopic_callablefuturecalltopic_sync]
+// [END pubsub_v1_generated_topicadminclient_createtopic_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopic.java
similarity index 87%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopic.java
index 507cd9e032..ad42c1b649 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopic.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopic.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_createtopic_topic_sync]
+// [START pubsub_v1_generated_topicadminclient_createtopic_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.protobuf.Duration;
 import com.google.pubsub.v1.MessageStoragePolicy;
@@ -25,13 +25,13 @@
 import com.google.pubsub.v1.TopicName;
 import java.util.HashMap;
 
-public class CreateTopicTopic {
+public class SyncCreateTopic {
 
   public static void main(String[] args) throws Exception {
-    createTopicTopic();
+    syncCreateTopic();
   }
 
-  public static void createTopicTopic() throws Exception {
+  public static void syncCreateTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -49,4 +49,4 @@ public static void createTopicTopic() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_createtopic_topic_sync]
+// [END pubsub_v1_generated_topicadminclient_createtopic_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopicString.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopicString.java
index 48f1f57c50..fded47ac1d 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopicString.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Topic;
 import com.google.pubsub.v1.TopicName;
 
-public class CreateTopicString {
+public class SyncCreateTopicString {
 
   public static void main(String[] args) throws Exception {
-    createTopicString();
+    syncCreateTopicString();
   }
 
-  public static void createTopicString() throws Exception {
+  public static void syncCreateTopicString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopicTopicname.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopicTopicname.java
index c8cd15ced2..66a3c9abfb 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/CreateTopicTopicName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/createtopic/SyncCreateTopicTopicname.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Topic;
 import com.google.pubsub.v1.TopicName;
 
-public class CreateTopicTopicName {
+public class SyncCreateTopicTopicname {
 
   public static void main(String[] args) throws Exception {
-    createTopicTopicName();
+    syncCreateTopicTopicname();
   }
 
-  public static void createTopicTopicName() throws Exception {
+  public static void syncCreateTopicTopicname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/AsyncDeleteTopic.java
similarity index 78%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/AsyncDeleteTopic.java
index c946546bf5..6472eb7123 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicCallableFutureCallDeleteTopicRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/AsyncDeleteTopic.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_deletetopic_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.DeleteTopicRequest;
 import com.google.pubsub.v1.TopicName;
 
-public class DeleteTopicCallableFutureCallDeleteTopicRequest {
+public class AsyncDeleteTopic {
 
   public static void main(String[] args) throws Exception {
-    deleteTopicCallableFutureCallDeleteTopicRequest();
+    asyncDeleteTopic();
   }
 
-  public static void deleteTopicCallableFutureCallDeleteTopicRequest() throws Exception {
+  public static void asyncDeleteTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteTopicCallableFutureCallDeleteTopicRequest() throws Exce
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_deletetopic_callablefuturecalldeletetopicrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_deletetopic_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopic.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopic.java
index c8a0514bd9..c64b019021 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicDeleteTopicRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopic.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_deletetopic_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.DeleteTopicRequest;
 import com.google.pubsub.v1.TopicName;
 
-public class DeleteTopicDeleteTopicRequest {
+public class SyncDeleteTopic {
 
   public static void main(String[] args) throws Exception {
-    deleteTopicDeleteTopicRequest();
+    syncDeleteTopic();
   }
 
-  public static void deleteTopicDeleteTopicRequest() throws Exception {
+  public static void syncDeleteTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteTopicDeleteTopicRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_deletetopic_deletetopicrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_deletetopic_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopicString.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopicString.java
index ba3cabff78..a65a97ea56 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopicString.java
@@ -21,13 +21,13 @@
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.TopicName;
 
-public class DeleteTopicString {
+public class SyncDeleteTopicString {
 
   public static void main(String[] args) throws Exception {
-    deleteTopicString();
+    syncDeleteTopicString();
   }
 
-  public static void deleteTopicString() throws Exception {
+  public static void syncDeleteTopicString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopicTopicname.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopicTopicname.java
index 1dde0e3d3a..4e61693dd7 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/DeleteTopicTopicName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/deletetopic/SyncDeleteTopicTopicname.java
@@ -21,13 +21,13 @@
 import com.google.protobuf.Empty;
 import com.google.pubsub.v1.TopicName;
 
-public class DeleteTopicTopicName {
+public class SyncDeleteTopicTopicname {
 
   public static void main(String[] args) throws Exception {
-    deleteTopicTopicName();
+    syncDeleteTopicTopicname();
   }
 
-  public static void deleteTopicTopicName() throws Exception {
+  public static void syncDeleteTopicTopicname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/AsyncDetachSubscription.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/AsyncDetachSubscription.java
index 8fd3697460..96cf59176f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionCallableFutureCallDetachSubscriptionRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/AsyncDetachSubscription.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_detachsubscription_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.DetachSubscriptionRequest;
 import com.google.pubsub.v1.DetachSubscriptionResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class DetachSubscriptionCallableFutureCallDetachSubscriptionRequest {
+public class AsyncDetachSubscription {
 
   public static void main(String[] args) throws Exception {
-    detachSubscriptionCallableFutureCallDetachSubscriptionRequest();
+    asyncDetachSubscription();
   }
 
-  public static void detachSubscriptionCallableFutureCallDetachSubscriptionRequest()
-      throws Exception {
+  public static void asyncDetachSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -45,4 +44,4 @@ public static void detachSubscriptionCallableFutureCallDetachSubscriptionRequest
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_detachsubscription_callablefuturecalldetachsubscriptionrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_detachsubscription_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/SyncDetachSubscription.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/SyncDetachSubscription.java
index 4ca3689969..df0e774a08 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/DetachSubscriptionDetachSubscriptionRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/detachsubscription/SyncDetachSubscription.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_detachsubscription_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.DetachSubscriptionRequest;
 import com.google.pubsub.v1.DetachSubscriptionResponse;
 import com.google.pubsub.v1.SubscriptionName;
 
-public class DetachSubscriptionDetachSubscriptionRequest {
+public class SyncDetachSubscription {
 
   public static void main(String[] args) throws Exception {
-    detachSubscriptionDetachSubscriptionRequest();
+    syncDetachSubscription();
   }
 
-  public static void detachSubscriptionDetachSubscriptionRequest() throws Exception {
+  public static void syncDetachSubscription() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -40,4 +40,4 @@ public static void detachSubscriptionDetachSubscriptionRequest() throws Exceptio
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_detachsubscription_detachsubscriptionrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_detachsubscription_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 79%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/AsyncGetIamPolicy.java
index 1b8dd96aa3..e751df5487 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/AsyncGetIamPolicy.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_getiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.iam.v1.GetIamPolicyRequest;
@@ -24,13 +24,13 @@
 import com.google.iam.v1.Policy;
 import com.google.pubsub.v1.ProjectName;
 
-public class GetIamPolicyCallableFutureCallGetIamPolicyRequest {
+public class AsyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyCallableFutureCallGetIamPolicyRequest();
+    asyncGetIamPolicy();
   }
 
-  public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception {
+  public static void asyncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -45,4 +45,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_getiampolicy_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/SyncGetIamPolicy.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/SyncGetIamPolicy.java
index 5ed710a208..d44235c6d0 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/getiampolicy/SyncGetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_getiampolicy_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.GetPolicyOptions;
 import com.google.iam.v1.Policy;
 import com.google.pubsub.v1.ProjectName;
 
-public class GetIamPolicyGetIamPolicyRequest {
+public class SyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyGetIamPolicyRequest();
+    syncGetIamPolicy();
   }
 
-  public static void getIamPolicyGetIamPolicyRequest() throws Exception {
+  public static void syncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -42,4 +42,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_getiampolicy_getiampolicyrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_getiampolicy_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/AsyncGetTopic.java
similarity index 79%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/AsyncGetTopic.java
index cdc6141e94..7e55e7e304 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicCallableFutureCallGetTopicRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/AsyncGetTopic.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_gettopic_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.GetTopicRequest;
 import com.google.pubsub.v1.Topic;
 import com.google.pubsub.v1.TopicName;
 
-public class GetTopicCallableFutureCallGetTopicRequest {
+public class AsyncGetTopic {
 
   public static void main(String[] args) throws Exception {
-    getTopicCallableFutureCallGetTopicRequest();
+    asyncGetTopic();
   }
 
-  public static void getTopicCallableFutureCallGetTopicRequest() throws Exception {
+  public static void asyncGetTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -43,4 +43,4 @@ public static void getTopicCallableFutureCallGetTopicRequest() throws Exception
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_gettopic_callablefuturecallgettopicrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_gettopic_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopic.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopic.java
index bec8102954..5ac56d2134 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicGetTopicRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopic.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_gettopic_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.GetTopicRequest;
 import com.google.pubsub.v1.Topic;
 import com.google.pubsub.v1.TopicName;
 
-public class GetTopicGetTopicRequest {
+public class SyncGetTopic {
 
   public static void main(String[] args) throws Exception {
-    getTopicGetTopicRequest();
+    syncGetTopic();
   }
 
-  public static void getTopicGetTopicRequest() throws Exception {
+  public static void syncGetTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -40,4 +40,4 @@ public static void getTopicGetTopicRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_gettopic_gettopicrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_gettopic_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopicString.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopicString.java
index 5ab51b9f47..4b550ba881 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicString.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopicString.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Topic;
 import com.google.pubsub.v1.TopicName;
 
-public class GetTopicString {
+public class SyncGetTopicString {
 
   public static void main(String[] args) throws Exception {
-    getTopicString();
+    syncGetTopicString();
   }
 
-  public static void getTopicString() throws Exception {
+  public static void syncGetTopicString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopicTopicname.java
similarity index 91%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopicTopicname.java
index 970754c21c..48e345db28 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/GetTopicTopicName.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/gettopic/SyncGetTopicTopicname.java
@@ -21,13 +21,13 @@
 import com.google.pubsub.v1.Topic;
 import com.google.pubsub.v1.TopicName;
 
-public class GetTopicTopicName {
+public class SyncGetTopicTopicname {
 
   public static void main(String[] args) throws Exception {
-    getTopicTopicName();
+    syncGetTopicTopicname();
   }
 
-  public static void getTopicTopicName() throws Exception {
+  public static void syncGetTopicTopicname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/AsyncListTopicsPagedCallable.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/AsyncListTopicsPagedCallable.java
index 9a9c6302bb..3a59f64ff7 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsPagedCallableFutureCallListTopicsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/AsyncListTopicsPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopics_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.ListTopicsRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Topic;
 
-public class ListTopicsPagedCallableFutureCallListTopicsRequest {
+public class AsyncListTopicsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listTopicsPagedCallableFutureCallListTopicsRequest();
+    asyncListTopicsPagedCallable();
   }
 
-  public static void listTopicsPagedCallableFutureCallListTopicsRequest() throws Exception {
+  public static void asyncListTopicsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -47,4 +47,4 @@ public static void listTopicsPagedCallableFutureCallListTopicsRequest() throws E
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopics_pagedcallablefuturecalllisttopicsrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopics_pagedcallable_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopics.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopics.java
index f61e53a3a9..74a4c01610 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsListTopicsRequestIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopics.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopics_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.ListTopicsRequest;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Topic;
 
-public class ListTopicsListTopicsRequestIterateAll {
+public class SyncListTopics {
 
   public static void main(String[] args) throws Exception {
-    listTopicsListTopicsRequestIterateAll();
+    syncListTopics();
   }
 
-  public static void listTopicsListTopicsRequestIterateAll() throws Exception {
+  public static void syncListTopics() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void listTopicsListTopicsRequestIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopics_listtopicsrequestiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopics_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsPaged.java
similarity index 83%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsPaged.java
index 602f014051..c0284dbcae 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsCallableCallListTopicsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopics_paged_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.common.base.Strings;
 import com.google.pubsub.v1.ListTopicsRequest;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Topic;
 
-public class ListTopicsCallableCallListTopicsRequest {
+public class SyncListTopicsPaged {
 
   public static void main(String[] args) throws Exception {
-    listTopicsCallableCallListTopicsRequest();
+    syncListTopicsPaged();
   }
 
-  public static void listTopicsCallableCallListTopicsRequest() throws Exception {
+  public static void syncListTopicsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -55,4 +55,4 @@ public static void listTopicsCallableCallListTopicsRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopics_callablecalllisttopicsrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopics_paged_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsProjectname.java
similarity index 87%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsProjectname.java
index 94d983c1cf..980f0509f4 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsProjectNameIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopics_projectname_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Topic;
 
-public class ListTopicsProjectNameIterateAll {
+public class SyncListTopicsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listTopicsProjectNameIterateAll();
+    syncListTopicsProjectname();
   }
 
-  public static void listTopicsProjectNameIterateAll() throws Exception {
+  public static void syncListTopicsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -38,4 +38,4 @@ public static void listTopicsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopics_projectnameiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopics_projectname_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsString.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsString.java
index 45f160e20c..670d6552b8 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/ListTopicsStringIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopics/SyncListTopicsString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopics_stringiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopics_string_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.ProjectName;
 import com.google.pubsub.v1.Topic;
 
-public class ListTopicsStringIterateAll {
+public class SyncListTopicsString {
 
   public static void main(String[] args) throws Exception {
-    listTopicsStringIterateAll();
+    syncListTopicsString();
   }
 
-  public static void listTopicsStringIterateAll() throws Exception {
+  public static void syncListTopicsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -38,4 +38,4 @@ public static void listTopicsStringIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopics_stringiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopics_string_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/AsyncListTopicSnapshotsPagedCallable.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/AsyncListTopicSnapshotsPagedCallable.java
index a728e93d67..8842096987 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/AsyncListTopicSnapshotsPagedCallable.java
@@ -16,20 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.ListTopicSnapshotsRequest;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest {
+public class AsyncListTopicSnapshotsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest();
+    asyncListTopicSnapshotsPagedCallable();
   }
 
-  public static void listTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRequest()
-      throws Exception {
+  public static void asyncListTopicSnapshotsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -48,4 +47,4 @@ public static void listTopicSnapshotsPagedCallableFutureCallListTopicSnapshotsRe
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallablefuturecalllisttopicsnapshotsrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_pagedcallable_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshots.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshots.java
index d9b44c6e35..71794f9803 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsListTopicSnapshotsRequestIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshots.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.ListTopicSnapshotsRequest;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSnapshotsListTopicSnapshotsRequestIterateAll {
+public class SyncListTopicSnapshots {
 
   public static void main(String[] args) throws Exception {
-    listTopicSnapshotsListTopicSnapshotsRequestIterateAll();
+    syncListTopicSnapshots();
   }
 
-  public static void listTopicSnapshotsListTopicSnapshotsRequestIterateAll() throws Exception {
+  public static void syncListTopicSnapshots() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -43,4 +43,4 @@ public static void listTopicSnapshotsListTopicSnapshotsRequestIterateAll() throw
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_listtopicsnapshotsrequestiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsPaged.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsPaged.java
index 04d60137d0..6f325925d4 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsCallableCallListTopicSnapshotsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsPaged.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_paged_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.common.base.Strings;
 import com.google.pubsub.v1.ListTopicSnapshotsRequest;
 import com.google.pubsub.v1.ListTopicSnapshotsResponse;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSnapshotsCallableCallListTopicSnapshotsRequest {
+public class SyncListTopicSnapshotsPaged {
 
   public static void main(String[] args) throws Exception {
-    listTopicSnapshotsCallableCallListTopicSnapshotsRequest();
+    syncListTopicSnapshotsPaged();
   }
 
-  public static void listTopicSnapshotsCallableCallListTopicSnapshotsRequest() throws Exception {
+  public static void syncListTopicSnapshotsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -55,4 +55,4 @@ public static void listTopicSnapshotsCallableCallListTopicSnapshotsRequest() thr
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_callablecalllisttopicsnapshotsrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_paged_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsString.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsString.java
index ab6085d90b..3e069480b2 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsStringIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsString.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_string_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSnapshotsStringIterateAll {
+public class SyncListTopicSnapshotsString {
 
   public static void main(String[] args) throws Exception {
-    listTopicSnapshotsStringIterateAll();
+    syncListTopicSnapshotsString();
   }
 
-  public static void listTopicSnapshotsStringIterateAll() throws Exception {
+  public static void syncListTopicSnapshotsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -37,4 +37,4 @@ public static void listTopicSnapshotsStringIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_stringiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_string_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsTopicname.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsTopicname.java
index d710cf121b..eff93a9188 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/ListTopicSnapshotsTopicNameIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/SyncListTopicSnapshotsTopicname.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicname_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSnapshotsTopicNameIterateAll {
+public class SyncListTopicSnapshotsTopicname {
 
   public static void main(String[] args) throws Exception {
-    listTopicSnapshotsTopicNameIterateAll();
+    syncListTopicSnapshotsTopicname();
   }
 
-  public static void listTopicSnapshotsTopicNameIterateAll() throws Exception {
+  public static void syncListTopicSnapshotsTopicname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -37,4 +37,4 @@ public static void listTopicSnapshotsTopicNameIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicnameiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsnapshots_topicname_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/AsyncListTopicSubscriptionsPagedCallable.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/AsyncListTopicSubscriptionsPagedCallable.java
index 6d4218fe9e..b011900c8b 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/AsyncListTopicSubscriptionsPagedCallable.java
@@ -16,20 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.ListTopicSubscriptionsRequest;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest {
+public class AsyncListTopicSubscriptionsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest();
+    asyncListTopicSubscriptionsPagedCallable();
   }
 
-  public static void listTopicSubscriptionsPagedCallableFutureCallListTopicSubscriptionsRequest()
-      throws Exception {
+  public static void asyncListTopicSubscriptionsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -48,4 +47,4 @@ public static void listTopicSubscriptionsPagedCallableFutureCallListTopicSubscri
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallablefuturecalllisttopicsubscriptionsrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_pagedcallable_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptions.java
similarity index 82%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptions.java
index 0dad058052..7420dec7b0 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptions.java
@@ -16,19 +16,18 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.ListTopicSubscriptionsRequest;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSubscriptionsListTopicSubscriptionsRequestIterateAll {
+public class SyncListTopicSubscriptions {
 
   public static void main(String[] args) throws Exception {
-    listTopicSubscriptionsListTopicSubscriptionsRequestIterateAll();
+    syncListTopicSubscriptions();
   }
 
-  public static void listTopicSubscriptionsListTopicSubscriptionsRequestIterateAll()
-      throws Exception {
+  public static void syncListTopicSubscriptions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -44,4 +43,4 @@ public static void listTopicSubscriptionsListTopicSubscriptionsRequestIterateAll
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_listtopicsubscriptionsrequestiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsPaged.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsPaged.java
index 9c128e47ac..cc3ad9ed44 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsPaged.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_paged_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.common.base.Strings;
 import com.google.pubsub.v1.ListTopicSubscriptionsRequest;
 import com.google.pubsub.v1.ListTopicSubscriptionsResponse;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSubscriptionsCallableCallListTopicSubscriptionsRequest {
+public class SyncListTopicSubscriptionsPaged {
 
   public static void main(String[] args) throws Exception {
-    listTopicSubscriptionsCallableCallListTopicSubscriptionsRequest();
+    syncListTopicSubscriptionsPaged();
   }
 
-  public static void listTopicSubscriptionsCallableCallListTopicSubscriptionsRequest()
-      throws Exception {
+  public static void syncListTopicSubscriptionsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -56,4 +55,4 @@ public static void listTopicSubscriptionsCallableCallListTopicSubscriptionsReque
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_callablecalllisttopicsubscriptionsrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_paged_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsString.java
similarity index 85%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsString.java
index b3f33cbf3b..689ca05174 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsStringIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsString.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_string_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSubscriptionsStringIterateAll {
+public class SyncListTopicSubscriptionsString {
 
   public static void main(String[] args) throws Exception {
-    listTopicSubscriptionsStringIterateAll();
+    syncListTopicSubscriptionsString();
   }
 
-  public static void listTopicSubscriptionsStringIterateAll() throws Exception {
+  public static void syncListTopicSubscriptionsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -37,4 +37,4 @@ public static void listTopicSubscriptionsStringIterateAll() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_stringiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_string_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java
index 8eb95659ba..d822739f23 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/ListTopicSubscriptionsTopicNameIterateAll.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall_sync]
+// [START pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicname_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.TopicName;
 
-public class ListTopicSubscriptionsTopicNameIterateAll {
+public class SyncListTopicSubscriptionsTopicname {
 
   public static void main(String[] args) throws Exception {
-    listTopicSubscriptionsTopicNameIterateAll();
+    syncListTopicSubscriptionsTopicname();
   }
 
-  public static void listTopicSubscriptionsTopicNameIterateAll() throws Exception {
+  public static void syncListTopicSubscriptionsTopicname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -37,4 +37,4 @@ public static void listTopicSubscriptionsTopicNameIterateAll() throws Exception
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicnameiterateall_sync]
+// [END pubsub_v1_generated_topicadminclient_listtopicsubscriptions_topicname_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/AsyncPublish.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/AsyncPublish.java
index 918bef15ae..ee9d7bdc7f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishCallableFutureCallPublishRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/AsyncPublish.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_publish_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.PublishRequest;
@@ -25,13 +25,13 @@
 import com.google.pubsub.v1.TopicName;
 import java.util.ArrayList;
 
-public class PublishCallableFutureCallPublishRequest {
+public class AsyncPublish {
 
   public static void main(String[] args) throws Exception {
-    publishCallableFutureCallPublishRequest();
+    asyncPublish();
   }
 
-  public static void publishCallableFutureCallPublishRequest() throws Exception {
+  public static void asyncPublish() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -46,4 +46,4 @@ public static void publishCallableFutureCallPublishRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_publish_callablefuturecallpublishrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_publish_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublish.java
similarity index 84%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublish.java
index 1944487eb6..0bd715cf18 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishPublishRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublish.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_publish_publishrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_publish_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.pubsub.v1.PublishRequest;
 import com.google.pubsub.v1.PublishResponse;
@@ -24,13 +24,13 @@
 import com.google.pubsub.v1.TopicName;
 import java.util.ArrayList;
 
-public class PublishPublishRequest {
+public class SyncPublish {
 
   public static void main(String[] args) throws Exception {
-    publishPublishRequest();
+    syncPublish();
   }
 
-  public static void publishPublishRequest() throws Exception {
+  public static void syncPublish() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -43,4 +43,4 @@ public static void publishPublishRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_publish_publishrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_publish_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublishStringListpubsubmessage.java
similarity index 90%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublishStringListpubsubmessage.java
index 3ffcfa7ec6..dbb931e5f6 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishStringListPubsubMessage.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublishStringListpubsubmessage.java
@@ -24,13 +24,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class PublishStringListPubsubMessage {
+public class SyncPublishStringListpubsubmessage {
 
   public static void main(String[] args) throws Exception {
-    publishStringListPubsubMessage();
+    syncPublishStringListpubsubmessage();
   }
 
-  public static void publishStringListPubsubMessage() throws Exception {
+  public static void syncPublishStringListpubsubmessage() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublishTopicnameListpubsubmessage.java
similarity index 89%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublishTopicnameListpubsubmessage.java
index 2781bf26c8..66eecb8a39 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/PublishTopicNameListPubsubMessage.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/publish/SyncPublishTopicnameListpubsubmessage.java
@@ -24,13 +24,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class PublishTopicNameListPubsubMessage {
+public class SyncPublishTopicnameListpubsubmessage {
 
   public static void main(String[] args) throws Exception {
-    publishTopicNameListPubsubMessage();
+    syncPublishTopicnameListpubsubmessage();
   }
 
-  public static void publishTopicNameListPubsubMessage() throws Exception {
+  public static void syncPublishTopicnameListpubsubmessage() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 78%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/AsyncSetIamPolicy.java
index 9c8de3009a..943213ce6a 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/AsyncSetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_setiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 import com.google.pubsub.v1.ProjectName;
 
-public class SetIamPolicyCallableFutureCallSetIamPolicyRequest {
+public class AsyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicyCallableFutureCallSetIamPolicyRequest();
+    asyncSetIamPolicy();
   }
 
-  public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception {
+  public static void asyncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_setiampolicy_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SyncSetIamPolicy.java
similarity index 80%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SyncSetIamPolicy.java
index 9ee4cbadfb..52f912fdaf 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/setiampolicy/SyncSetIamPolicy.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_setiampolicy_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 import com.google.pubsub.v1.ProjectName;
 
-public class SetIamPolicySetIamPolicyRequest {
+public class SyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicySetIamPolicyRequest();
+    syncSetIamPolicy();
   }
 
-  public static void setIamPolicySetIamPolicyRequest() throws Exception {
+  public static void syncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -41,4 +41,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_setiampolicy_setiampolicyrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_setiampolicy_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 83%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/AsyncTestIamPermissions.java
index 3592876f47..d1c2ce8934 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/AsyncTestIamPermissions.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_testiampermissions_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
@@ -24,14 +24,13 @@
 import com.google.pubsub.v1.ProjectName;
 import java.util.ArrayList;
 
-public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest {
+public class AsyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsCallableFutureCallTestIamPermissionsRequest();
+    asyncTestIamPermissions();
   }
 
-  public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest()
-      throws Exception {
+  public static void asyncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -47,4 +46,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_testiampermissions_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/SyncTestIamPermissions.java
similarity index 86%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/SyncTestIamPermissions.java
index c7eac2cfe9..2de0c18bbe 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/testiampermissions/SyncTestIamPermissions.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_testiampermissions_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.pubsub.v1.ProjectName;
 import java.util.ArrayList;
 
-public class TestIamPermissionsTestIamPermissionsRequest {
+public class SyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsTestIamPermissionsRequest();
+    syncTestIamPermissions();
   }
 
-  public static void testIamPermissionsTestIamPermissionsRequest() throws Exception {
+  public static void syncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -42,4 +42,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_testiampermissions_testiampermissionsrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_testiampermissions_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/AsyncUpdateTopic.java
similarity index 78%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/AsyncUpdateTopic.java
index 42c561735d..b935bb2f7f 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicCallableFutureCallUpdateTopicRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/AsyncUpdateTopic.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_updatetopic_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.protobuf.FieldMask;
 import com.google.pubsub.v1.Topic;
 import com.google.pubsub.v1.UpdateTopicRequest;
 
-public class UpdateTopicCallableFutureCallUpdateTopicRequest {
+public class AsyncUpdateTopic {
 
   public static void main(String[] args) throws Exception {
-    updateTopicCallableFutureCallUpdateTopicRequest();
+    asyncUpdateTopic();
   }
 
-  public static void updateTopicCallableFutureCallUpdateTopicRequest() throws Exception {
+  public static void asyncUpdateTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -44,4 +44,4 @@ public static void updateTopicCallableFutureCallUpdateTopicRequest() throws Exce
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_updatetopic_callablefuturecallupdatetopicrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_updatetopic_async]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/SyncUpdateTopic.java
similarity index 81%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/SyncUpdateTopic.java
index 4671203186..6f1b6ed2c7 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/UpdateTopicUpdateTopicRequest.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminclient/updatetopic/SyncUpdateTopic.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest_sync]
+// [START pubsub_v1_generated_topicadminclient_updatetopic_sync]
 import com.google.cloud.pubsub.v1.TopicAdminClient;
 import com.google.protobuf.FieldMask;
 import com.google.pubsub.v1.Topic;
 import com.google.pubsub.v1.UpdateTopicRequest;
 
-public class UpdateTopicUpdateTopicRequest {
+public class SyncUpdateTopic {
 
   public static void main(String[] args) throws Exception {
-    updateTopicUpdateTopicRequest();
+    syncUpdateTopic();
   }
 
-  public static void updateTopicUpdateTopicRequest() throws Exception {
+  public static void syncUpdateTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
@@ -41,4 +41,4 @@ public static void updateTopicUpdateTopicRequest() throws Exception {
     }
   }
 }
-// [END pubsub_v1_generated_topicadminclient_updatetopic_updatetopicrequest_sync]
+// [END pubsub_v1_generated_topicadminclient_updatetopic_sync]
diff --git a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/SyncCreateTopic.java
similarity index 76%
rename from test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java
rename to test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/SyncCreateTopic.java
index 9e7112458f..23c6aa40c7 100644
--- a/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/CreateTopicSettingsSetRetrySettingsTopicAdminSettings.java
+++ b/test/integration/goldens/pubsub/samples/generated/src/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/SyncCreateTopic.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.pubsub.v1.samples;
 
-// [START pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings_sync]
+// [START pubsub_v1_generated_topicadminsettings_createtopic_sync]
 import com.google.cloud.pubsub.v1.TopicAdminSettings;
 import java.time.Duration;
 
-public class CreateTopicSettingsSetRetrySettingsTopicAdminSettings {
+public class SyncCreateTopic {
 
   public static void main(String[] args) throws Exception {
-    createTopicSettingsSetRetrySettingsTopicAdminSettings();
+    syncCreateTopic();
   }
 
-  public static void createTopicSettingsSetRetrySettingsTopicAdminSettings() throws Exception {
+  public static void syncCreateTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void createTopicSettingsSetRetrySettingsTopicAdminSettings() throw
     TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build();
   }
 }
-// [END pubsub_v1_generated_topicadminsettings_createtopic_settingssetretrysettingstopicadminsettings_sync]
+// [END pubsub_v1_generated_topicadminsettings_createtopic_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
index e981627dcd..cfd9fc80f7 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings1.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1_sync]
+// [START redis_v1beta1_generated_cloudredisclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.CloudRedisSettings;
 import com.google.cloud.redis.v1beta1.myCredentials;
 
-public class CreateCloudRedisSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createCloudRedisSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createCloudRedisSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     CloudRedisSettings cloudRedisSettings =
@@ -38,4 +38,4 @@ public static void createCloudRedisSettings1() throws Exception {
     CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings);
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings1_sync]
+// [END redis_v1beta1_generated_cloudredisclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
similarity index 80%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
index 9dbd82682a..b6234a302c 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/CreateCloudRedisSettings2.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2_sync]
+// [START redis_v1beta1_generated_cloudredisclient_create_setendpoint_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.CloudRedisSettings;
 import com.google.cloud.redis.v1beta1.myEndpoint;
 
-public class CreateCloudRedisSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createCloudRedisSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createCloudRedisSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     CloudRedisSettings cloudRedisSettings =
@@ -35,4 +35,4 @@ public static void createCloudRedisSettings2() throws Exception {
     CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings);
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_create_cloudredissettings2_sync]
+// [END redis_v1beta1_generated_cloudredisclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
index 9b4a6e648d..59c4f0fd66 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceCallableFutureCallCreateInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_createinstance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.CreateInstanceRequest;
@@ -24,13 +24,13 @@
 import com.google.cloud.redis.v1beta1.LocationName;
 import com.google.longrunning.Operation;
 
-public class CreateInstanceCallableFutureCallCreateInstanceRequest {
+public class AsyncCreateInstance {
 
   public static void main(String[] args) throws Exception {
-    createInstanceCallableFutureCallCreateInstanceRequest();
+    asyncCreateInstance();
   }
 
-  public static void createInstanceCallableFutureCallCreateInstanceRequest() throws Exception {
+  public static void asyncCreateInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -46,4 +46,4 @@ public static void createInstanceCallableFutureCallCreateInstanceRequest() throw
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_createinstance_callablefuturecallcreateinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_createinstance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceOperationCallable.java
similarity index 83%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceOperationCallable.java
index dbcf6350ee..13f0e1c91c 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceOperationCallableFutureCallCreateInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_createinstance_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.CreateInstanceRequest;
@@ -24,14 +24,13 @@
 import com.google.cloud.redis.v1beta1.LocationName;
 import com.google.protobuf.Any;
 
-public class CreateInstanceOperationCallableFutureCallCreateInstanceRequest {
+public class AsyncCreateInstanceOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    createInstanceOperationCallableFutureCallCreateInstanceRequest();
+    asyncCreateInstanceOperationCallable();
   }
 
-  public static void createInstanceOperationCallableFutureCallCreateInstanceRequest()
-      throws Exception {
+  public static void asyncCreateInstanceOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -48,4 +47,4 @@ public static void createInstanceOperationCallableFutureCallCreateInstanceReques
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_createinstance_operationcallablefuturecallcreateinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_createinstance_operationcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
similarity index 86%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
index 139d0d56cc..fedb0e4ddb 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncCreateInstanceRequestGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_createinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.CreateInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.LocationName;
 
-public class CreateInstanceAsyncCreateInstanceRequestGet {
+public class SyncCreateInstance {
 
   public static void main(String[] args) throws Exception {
-    createInstanceAsyncCreateInstanceRequestGet();
+    syncCreateInstance();
   }
 
-  public static void createInstanceAsyncCreateInstanceRequestGet() throws Exception {
+  public static void syncCreateInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -42,4 +42,4 @@ public static void createInstanceAsyncCreateInstanceRequestGet() throws Exceptio
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynccreateinstancerequestget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_createinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
similarity index 83%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
index 66c30b6bc8..55af3c168b 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncLocationNameStringInstanceGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_createinstance_locationnamestringinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.LocationName;
 
-public class CreateInstanceAsyncLocationNameStringInstanceGet {
+public class SyncCreateInstanceLocationnameStringInstance {
 
   public static void main(String[] args) throws Exception {
-    createInstanceAsyncLocationNameStringInstanceGet();
+    syncCreateInstanceLocationnameStringInstance();
   }
 
-  public static void createInstanceAsyncLocationNameStringInstanceGet() throws Exception {
+  public static void syncCreateInstanceLocationnameStringInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -38,4 +38,4 @@ public static void createInstanceAsyncLocationNameStringInstanceGet() throws Exc
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_createinstance_asynclocationnamestringinstanceget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_createinstance_locationnamestringinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
index 5a2f78bff4..1e777a7015 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/CreateInstanceAsyncStringStringInstanceGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_createinstance_stringstringinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.LocationName;
 
-public class CreateInstanceAsyncStringStringInstanceGet {
+public class SyncCreateInstanceStringStringInstance {
 
   public static void main(String[] args) throws Exception {
-    createInstanceAsyncStringStringInstanceGet();
+    syncCreateInstanceStringStringInstance();
   }
 
-  public static void createInstanceAsyncStringStringInstanceGet() throws Exception {
+  public static void syncCreateInstanceStringStringInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -38,4 +38,4 @@ public static void createInstanceAsyncStringStringInstanceGet() throws Exception
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_createinstance_asyncstringstringinstanceget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_createinstance_stringstringinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
similarity index 83%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
index 0da9b1fb7a..b7fb20b691 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceCallableFutureCallDeleteInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.DeleteInstanceRequest;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.longrunning.Operation;
 
-public class DeleteInstanceCallableFutureCallDeleteInstanceRequest {
+public class AsyncDeleteInstance {
 
   public static void main(String[] args) throws Exception {
-    deleteInstanceCallableFutureCallDeleteInstanceRequest();
+    asyncDeleteInstance();
   }
 
-  public static void deleteInstanceCallableFutureCallDeleteInstanceRequest() throws Exception {
+  public static void asyncDeleteInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteInstanceCallableFutureCallDeleteInstanceRequest() throw
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_callablefuturecalldeleteinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceOperationCallable.java
similarity index 82%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceOperationCallable.java
index aef472e9e9..422995b878 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.DeleteInstanceRequest;
@@ -24,14 +24,13 @@
 import com.google.protobuf.Any;
 import com.google.protobuf.Empty;
 
-public class DeleteInstanceOperationCallableFutureCallDeleteInstanceRequest {
+public class AsyncDeleteInstanceOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    deleteInstanceOperationCallableFutureCallDeleteInstanceRequest();
+    asyncDeleteInstanceOperationCallable();
   }
 
-  public static void deleteInstanceOperationCallableFutureCallDeleteInstanceRequest()
-      throws Exception {
+  public static void asyncDeleteInstanceOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -46,4 +45,4 @@ public static void deleteInstanceOperationCallableFutureCallDeleteInstanceReques
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallablefuturecalldeleteinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_operationcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
index 1119062f79..c8916d3582 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncDeleteInstanceRequestGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.DeleteInstanceRequest;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.protobuf.Empty;
 
-public class DeleteInstanceAsyncDeleteInstanceRequestGet {
+public class SyncDeleteInstance {
 
   public static void main(String[] args) throws Exception {
-    deleteInstanceAsyncDeleteInstanceRequestGet();
+    syncDeleteInstance();
   }
 
-  public static void deleteInstanceAsyncDeleteInstanceRequestGet() throws Exception {
+  public static void syncDeleteInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteInstanceAsyncDeleteInstanceRequestGet() throws Exceptio
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncdeleteinstancerequestget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
index f16b0d2b3f..2e63ba9fed 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncInstanceNameGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_instancename_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.protobuf.Empty;
 
-public class DeleteInstanceAsyncInstanceNameGet {
+public class SyncDeleteInstanceInstancename {
 
   public static void main(String[] args) throws Exception {
-    deleteInstanceAsyncInstanceNameGet();
+    syncDeleteInstanceInstancename();
   }
 
-  public static void deleteInstanceAsyncInstanceNameGet() throws Exception {
+  public static void syncDeleteInstanceInstancename() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -36,4 +36,4 @@ public static void deleteInstanceAsyncInstanceNameGet() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncinstancenameget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_instancename_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
similarity index 87%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
index 4b5916b104..51230d5a24 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/DeleteInstanceAsyncStringGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_deleteinstance_string_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.protobuf.Empty;
 
-public class DeleteInstanceAsyncStringGet {
+public class SyncDeleteInstanceString {
 
   public static void main(String[] args) throws Exception {
-    deleteInstanceAsyncStringGet();
+    syncDeleteInstanceString();
   }
 
-  public static void deleteInstanceAsyncStringGet() throws Exception {
+  public static void syncDeleteInstanceString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -36,4 +36,4 @@ public static void deleteInstanceAsyncStringGet() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_asyncstringget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_deleteinstance_string_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
index fc45de2b5c..ad57c58e7e 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceCallableFutureCallExportInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_exportinstance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.ExportInstanceRequest;
 import com.google.cloud.redis.v1beta1.OutputConfig;
 import com.google.longrunning.Operation;
 
-public class ExportInstanceCallableFutureCallExportInstanceRequest {
+public class AsyncExportInstance {
 
   public static void main(String[] args) throws Exception {
-    exportInstanceCallableFutureCallExportInstanceRequest();
+    asyncExportInstance();
   }
 
-  public static void exportInstanceCallableFutureCallExportInstanceRequest() throws Exception {
+  public static void asyncExportInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -44,4 +44,4 @@ public static void exportInstanceCallableFutureCallExportInstanceRequest() throw
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_exportinstance_callablefuturecallexportinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_exportinstance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceOperationCallable.java
similarity index 82%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceOperationCallable.java
index 84c2380ee6..652e9962ac 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceOperationCallableFutureCallExportInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.ExportInstanceRequest;
@@ -24,14 +24,13 @@
 import com.google.cloud.redis.v1beta1.OutputConfig;
 import com.google.protobuf.Any;
 
-public class ExportInstanceOperationCallableFutureCallExportInstanceRequest {
+public class AsyncExportInstanceOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    exportInstanceOperationCallableFutureCallExportInstanceRequest();
+    asyncExportInstanceOperationCallable();
   }
 
-  public static void exportInstanceOperationCallableFutureCallExportInstanceRequest()
-      throws Exception {
+  public static void asyncExportInstanceOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -47,4 +46,4 @@ public static void exportInstanceOperationCallableFutureCallExportInstanceReques
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallablefuturecallexportinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_exportinstance_operationcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
index 9db2185f30..3f2cc0e566 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncExportInstanceRequestGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_exportinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.ExportInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.OutputConfig;
 
-public class ExportInstanceAsyncExportInstanceRequestGet {
+public class SyncExportInstance {
 
   public static void main(String[] args) throws Exception {
-    exportInstanceAsyncExportInstanceRequestGet();
+    syncExportInstance();
   }
 
-  public static void exportInstanceAsyncExportInstanceRequestGet() throws Exception {
+  public static void syncExportInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -41,4 +41,4 @@ public static void exportInstanceAsyncExportInstanceRequestGet() throws Exceptio
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncexportinstancerequestget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_exportinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
index f83cae133c..d2b36f90a1 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/ExportInstanceAsyncStringOutputConfigGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_exportinstance_stringoutputconfig_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.OutputConfig;
 
-public class ExportInstanceAsyncStringOutputConfigGet {
+public class SyncExportInstanceStringOutputconfig {
 
   public static void main(String[] args) throws Exception {
-    exportInstanceAsyncStringOutputConfigGet();
+    syncExportInstanceStringOutputconfig();
   }
 
-  public static void exportInstanceAsyncStringOutputConfigGet() throws Exception {
+  public static void syncExportInstanceStringOutputconfig() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -37,4 +37,4 @@ public static void exportInstanceAsyncStringOutputConfigGet() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_exportinstance_asyncstringoutputconfigget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_exportinstance_stringoutputconfig_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
similarity index 83%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
index 4dca72048d..908d016b7e 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceCallableFutureCallFailoverInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.FailoverInstanceRequest;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.longrunning.Operation;
 
-public class FailoverInstanceCallableFutureCallFailoverInstanceRequest {
+public class AsyncFailoverInstance {
 
   public static void main(String[] args) throws Exception {
-    failoverInstanceCallableFutureCallFailoverInstanceRequest();
+    asyncFailoverInstance();
   }
 
-  public static void failoverInstanceCallableFutureCallFailoverInstanceRequest() throws Exception {
+  public static void asyncFailoverInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -43,4 +43,4 @@ public static void failoverInstanceCallableFutureCallFailoverInstanceRequest() t
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_callablefuturecallfailoverinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceOperationCallable.java
similarity index 81%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceOperationCallable.java
index cf697f1197..39af482570 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.FailoverInstanceRequest;
@@ -24,14 +24,13 @@
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.protobuf.Any;
 
-public class FailoverInstanceOperationCallableFutureCallFailoverInstanceRequest {
+public class AsyncFailoverInstanceOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    failoverInstanceOperationCallableFutureCallFailoverInstanceRequest();
+    asyncFailoverInstanceOperationCallable();
   }
 
-  public static void failoverInstanceOperationCallableFutureCallFailoverInstanceRequest()
-      throws Exception {
+  public static void asyncFailoverInstanceOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -46,4 +45,4 @@ public static void failoverInstanceOperationCallableFutureCallFailoverInstanceRe
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallablefuturecallfailoverinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_operationcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
index 576df6e67d..845c470c4d 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncFailoverInstanceRequestGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.FailoverInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class FailoverInstanceAsyncFailoverInstanceRequestGet {
+public class SyncFailoverInstance {
 
   public static void main(String[] args) throws Exception {
-    failoverInstanceAsyncFailoverInstanceRequestGet();
+    syncFailoverInstance();
   }
 
-  public static void failoverInstanceAsyncFailoverInstanceRequestGet() throws Exception {
+  public static void syncFailoverInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -40,4 +40,4 @@ public static void failoverInstanceAsyncFailoverInstanceRequestGet() throws Exce
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncfailoverinstancerequestget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
similarity index 79%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
index 1abdb9ea10..3a534cd444 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.FailoverInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class FailoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet {
+public class SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode {
 
   public static void main(String[] args) throws Exception {
-    failoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet();
+    syncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode();
   }
 
-  public static void failoverInstanceAsyncInstanceNameFailoverInstanceRequestDataProtectionModeGet()
+  public static void syncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
@@ -40,4 +40,4 @@ public static void failoverInstanceAsyncInstanceNameFailoverInstanceRequestDataP
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncinstancenamefailoverinstancerequestdataprotectionmodeget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_instancenamefailoverinstancerequestdataprotectionmode_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
similarity index 80%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
index 403b274c84..af21b9309f 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.FailoverInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class FailoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet {
+public class SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode {
 
   public static void main(String[] args) throws Exception {
-    failoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet();
+    syncFailoverInstanceStringFailoverinstancerequestdataprotectionmode();
   }
 
-  public static void failoverInstanceAsyncStringFailoverInstanceRequestDataProtectionModeGet()
+  public static void syncFailoverInstanceStringFailoverinstancerequestdataprotectionmode()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
@@ -40,4 +40,4 @@ public static void failoverInstanceAsyncStringFailoverInstanceRequestDataProtect
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_asyncstringfailoverinstancerequestdataprotectionmodeget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_failoverinstance_stringfailoverinstancerequestdataprotectionmode_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
similarity index 78%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
index ca4e5dd4ed..b2147500ef 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceCallableFutureCallGetInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_getinstance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.GetInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class GetInstanceCallableFutureCallGetInstanceRequest {
+public class AsyncGetInstance {
 
   public static void main(String[] args) throws Exception {
-    getInstanceCallableFutureCallGetInstanceRequest();
+    asyncGetInstance();
   }
 
-  public static void getInstanceCallableFutureCallGetInstanceRequest() throws Exception {
+  public static void asyncGetInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -43,4 +43,4 @@ public static void getInstanceCallableFutureCallGetInstanceRequest() throws Exce
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_getinstance_callablefuturecallgetinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_getinstance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
similarity index 81%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
index 58458fb98b..d68e05277b 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceGetInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_getinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.GetInstanceRequest;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class GetInstanceGetInstanceRequest {
+public class SyncGetInstance {
 
   public static void main(String[] args) throws Exception {
-    getInstanceGetInstanceRequest();
+    syncGetInstance();
   }
 
-  public static void getInstanceGetInstanceRequest() throws Exception {
+  public static void syncGetInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -40,4 +40,4 @@ public static void getInstanceGetInstanceRequest() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_getinstance_getinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_getinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
similarity index 90%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
index 0ed87e3d44..97b5990568 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceInstanceName.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java
@@ -21,13 +21,13 @@
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class GetInstanceInstanceName {
+public class SyncGetInstanceInstancename {
 
   public static void main(String[] args) throws Exception {
-    getInstanceInstanceName();
+    syncGetInstanceInstancename();
   }
 
-  public static void getInstanceInstanceName() throws Exception {
+  public static void syncGetInstanceInstancename() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
similarity index 91%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
index fb16a408f7..92ff58b94d 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/GetInstanceString.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class GetInstanceString {
+public class SyncGetInstanceString {
 
   public static void main(String[] args) throws Exception {
-    getInstanceString();
+    syncGetInstanceString();
   }
 
-  public static void getInstanceString() throws Exception {
+  public static void syncGetInstanceString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
similarity index 81%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
index bf5cd08f1d..1adc84838e 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java
@@ -16,21 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest;
 import com.google.cloud.redis.v1beta1.InstanceAuthString;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class GetInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest {
+public class AsyncGetInstanceAuthString {
 
   public static void main(String[] args) throws Exception {
-    getInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest();
+    asyncGetInstanceAuthString();
   }
 
-  public static void getInstanceAuthStringCallableFutureCallGetInstanceAuthStringRequest()
-      throws Exception {
+  public static void asyncGetInstanceAuthString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -45,4 +44,4 @@ public static void getInstanceAuthStringCallableFutureCallGetInstanceAuthStringR
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_callablefuturecallgetinstanceauthstringrequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
index 07561ba960..44666a4cc9 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringGetInstanceAuthStringRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest;
 import com.google.cloud.redis.v1beta1.InstanceAuthString;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class GetInstanceAuthStringGetInstanceAuthStringRequest {
+public class SyncGetInstanceAuthString {
 
   public static void main(String[] args) throws Exception {
-    getInstanceAuthStringGetInstanceAuthStringRequest();
+    syncGetInstanceAuthString();
   }
 
-  public static void getInstanceAuthStringGetInstanceAuthStringRequest() throws Exception {
+  public static void syncGetInstanceAuthString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -40,4 +40,4 @@ public static void getInstanceAuthStringGetInstanceAuthStringRequest() throws Ex
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_getinstanceauthstringrequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_getinstanceauthstring_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
similarity index 89%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
index 1dd591ac75..9aab155d90 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringInstanceName.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java
@@ -21,13 +21,13 @@
 import com.google.cloud.redis.v1beta1.InstanceAuthString;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class GetInstanceAuthStringInstanceName {
+public class SyncGetInstanceAuthStringInstancename {
 
   public static void main(String[] args) throws Exception {
-    getInstanceAuthStringInstanceName();
+    syncGetInstanceAuthStringInstancename();
   }
 
-  public static void getInstanceAuthStringInstanceName() throws Exception {
+  public static void syncGetInstanceAuthStringInstancename() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
similarity index 90%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
index e821ea4f9d..b9ffffca54 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/GetInstanceAuthStringString.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java
@@ -21,13 +21,13 @@
 import com.google.cloud.redis.v1beta1.InstanceAuthString;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class GetInstanceAuthStringString {
+public class SyncGetInstanceAuthStringString {
 
   public static void main(String[] args) throws Exception {
-    getInstanceAuthStringString();
+    syncGetInstanceAuthStringString();
   }
 
-  public static void getInstanceAuthStringString() throws Exception {
+  public static void syncGetInstanceAuthStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
index 1c51338b26..cdf2776d77 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceCallableFutureCallImportInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_importinstance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.ImportInstanceRequest;
 import com.google.cloud.redis.v1beta1.InputConfig;
 import com.google.longrunning.Operation;
 
-public class ImportInstanceCallableFutureCallImportInstanceRequest {
+public class AsyncImportInstance {
 
   public static void main(String[] args) throws Exception {
-    importInstanceCallableFutureCallImportInstanceRequest();
+    asyncImportInstance();
   }
 
-  public static void importInstanceCallableFutureCallImportInstanceRequest() throws Exception {
+  public static void asyncImportInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -44,4 +44,4 @@ public static void importInstanceCallableFutureCallImportInstanceRequest() throw
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_importinstance_callablefuturecallimportinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_importinstance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceOperationCallable.java
similarity index 82%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceOperationCallable.java
index 68620ecc29..b8442ac301 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceOperationCallableFutureCallImportInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_importinstance_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.ImportInstanceRequest;
@@ -24,14 +24,13 @@
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.protobuf.Any;
 
-public class ImportInstanceOperationCallableFutureCallImportInstanceRequest {
+public class AsyncImportInstanceOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    importInstanceOperationCallableFutureCallImportInstanceRequest();
+    asyncImportInstanceOperationCallable();
   }
 
-  public static void importInstanceOperationCallableFutureCallImportInstanceRequest()
-      throws Exception {
+  public static void asyncImportInstanceOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -47,4 +46,4 @@ public static void importInstanceOperationCallableFutureCallImportInstanceReques
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_importinstance_operationcallablefuturecallimportinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_importinstance_operationcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
index 6c8d614e2c..4482b68059 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncImportInstanceRequestGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_importinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.ImportInstanceRequest;
 import com.google.cloud.redis.v1beta1.InputConfig;
 import com.google.cloud.redis.v1beta1.Instance;
 
-public class ImportInstanceAsyncImportInstanceRequestGet {
+public class SyncImportInstance {
 
   public static void main(String[] args) throws Exception {
-    importInstanceAsyncImportInstanceRequestGet();
+    syncImportInstance();
   }
 
-  public static void importInstanceAsyncImportInstanceRequestGet() throws Exception {
+  public static void syncImportInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -41,4 +41,4 @@ public static void importInstanceAsyncImportInstanceRequestGet() throws Exceptio
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncimportinstancerequestget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_importinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
index 44543267ce..bc0092ca15 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/ImportInstanceAsyncStringInputConfigGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_importinstance_stringinputconfig_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.InputConfig;
 import com.google.cloud.redis.v1beta1.Instance;
 
-public class ImportInstanceAsyncStringInputConfigGet {
+public class SyncImportInstanceStringInputconfig {
 
   public static void main(String[] args) throws Exception {
-    importInstanceAsyncStringInputConfigGet();
+    syncImportInstanceStringInputconfig();
   }
 
-  public static void importInstanceAsyncStringInputConfigGet() throws Exception {
+  public static void syncImportInstanceStringInputconfig() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -37,4 +37,4 @@ public static void importInstanceAsyncStringInputConfigGet() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_importinstance_asyncstringinputconfigget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_importinstance_stringinputconfig_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPagedCallable.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPagedCallable.java
index e2494a6cc9..d410ac42af 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesPagedCallableFutureCallListInstancesRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPagedCallable.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.ListInstancesRequest;
 import com.google.cloud.redis.v1beta1.LocationName;
 
-public class ListInstancesPagedCallableFutureCallListInstancesRequest {
+public class AsyncListInstancesPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listInstancesPagedCallableFutureCallListInstancesRequest();
+    asyncListInstancesPagedCallable();
   }
 
-  public static void listInstancesPagedCallableFutureCallListInstancesRequest() throws Exception {
+  public static void asyncListInstancesPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -48,4 +48,4 @@ public static void listInstancesPagedCallableFutureCallListInstancesRequest() th
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallablefuturecalllistinstancesrequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_listinstances_pagedcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
similarity index 82%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
index 7ea68ff126..c76dc3b7a7 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesListInstancesRequestIterateAll.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall_sync]
+// [START redis_v1beta1_generated_cloudredisclient_listinstances_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.ListInstancesRequest;
 import com.google.cloud.redis.v1beta1.LocationName;
 
-public class ListInstancesListInstancesRequestIterateAll {
+public class SyncListInstances {
 
   public static void main(String[] args) throws Exception {
-    listInstancesListInstancesRequestIterateAll();
+    syncListInstances();
   }
 
-  public static void listInstancesListInstancesRequestIterateAll() throws Exception {
+  public static void syncListInstances() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -44,4 +44,4 @@ public static void listInstancesListInstancesRequestIterateAll() throws Exceptio
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_listinstances_listinstancesrequestiterateall_sync]
+// [END redis_v1beta1_generated_cloudredisclient_listinstances_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
similarity index 86%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
index 34963fa9f8..3b16874b2f 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesLocationNameIterateAll.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall_sync]
+// [START redis_v1beta1_generated_cloudredisclient_listinstances_locationname_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.LocationName;
 
-public class ListInstancesLocationNameIterateAll {
+public class SyncListInstancesLocationname {
 
   public static void main(String[] args) throws Exception {
-    listInstancesLocationNameIterateAll();
+    syncListInstancesLocationname();
   }
 
-  public static void listInstancesLocationNameIterateAll() throws Exception {
+  public static void syncListInstancesLocationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -38,4 +38,4 @@ public static void listInstancesLocationNameIterateAll() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_listinstances_locationnameiterateall_sync]
+// [END redis_v1beta1_generated_cloudredisclient_listinstances_locationname_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesPaged.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesPaged.java
index e46b7e3b69..bf1752ce3c 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesCallableCallListInstancesRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_listinstances_paged_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.ListInstancesRequest;
@@ -24,13 +24,13 @@
 import com.google.cloud.redis.v1beta1.LocationName;
 import com.google.common.base.Strings;
 
-public class ListInstancesCallableCallListInstancesRequest {
+public class SyncListInstancesPaged {
 
   public static void main(String[] args) throws Exception {
-    listInstancesCallableCallListInstancesRequest();
+    syncListInstancesPaged();
   }
 
-  public static void listInstancesCallableCallListInstancesRequest() throws Exception {
+  public static void syncListInstancesPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -55,4 +55,4 @@ public static void listInstancesCallableCallListInstancesRequest() throws Except
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_listinstances_callablecalllistinstancesrequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_listinstances_paged_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
similarity index 87%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
index e595dd3c81..fd896631ab 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/ListInstancesStringIterateAll.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall_sync]
+// [START redis_v1beta1_generated_cloudredisclient_listinstances_string_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.LocationName;
 
-public class ListInstancesStringIterateAll {
+public class SyncListInstancesString {
 
   public static void main(String[] args) throws Exception {
-    listInstancesStringIterateAll();
+    syncListInstancesString();
   }
 
-  public static void listInstancesStringIterateAll() throws Exception {
+  public static void syncListInstancesString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -38,4 +38,4 @@ public static void listInstancesStringIterateAll() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_listinstances_stringiterateall_sync]
+// [END redis_v1beta1_generated_cloudredisclient_listinstances_string_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
similarity index 82%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
index 20e05d3419..6da21f92b4 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.InstanceName;
@@ -24,14 +24,13 @@
 import com.google.longrunning.Operation;
 import com.google.protobuf.Timestamp;
 
-public class RescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest {
+public class AsyncRescheduleMaintenance {
 
   public static void main(String[] args) throws Exception {
-    rescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest();
+    asyncRescheduleMaintenance();
   }
 
-  public static void rescheduleMaintenanceCallableFutureCallRescheduleMaintenanceRequest()
-      throws Exception {
+  public static void asyncRescheduleMaintenance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -47,4 +46,4 @@ public static void rescheduleMaintenanceCallableFutureCallRescheduleMaintenanceR
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_callablefuturecallreschedulemaintenancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceOperationCallable.java
similarity index 81%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceOperationCallable.java
index b0cdced39a..4fa1568fb7 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
@@ -25,14 +25,13 @@
 import com.google.protobuf.Any;
 import com.google.protobuf.Timestamp;
 
-public class RescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest {
+public class AsyncRescheduleMaintenanceOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    rescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest();
+    asyncRescheduleMaintenanceOperationCallable();
   }
 
-  public static void rescheduleMaintenanceOperationCallableFutureCallRescheduleMaintenanceRequest()
-      throws Exception {
+  public static void asyncRescheduleMaintenanceOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -48,4 +47,4 @@ public static void rescheduleMaintenanceOperationCallableFutureCallRescheduleMai
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallablefuturecallreschedulemaintenancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_operationcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
similarity index 83%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
index a23e989949..e5aa6c3438 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest;
 import com.google.protobuf.Timestamp;
 
-public class RescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet {
+public class SyncRescheduleMaintenance {
 
   public static void main(String[] args) throws Exception {
-    rescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet();
+    syncRescheduleMaintenance();
   }
 
-  public static void rescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet() throws Exception {
+  public static void syncRescheduleMaintenance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -42,4 +42,4 @@ public static void rescheduleMaintenanceAsyncRescheduleMaintenanceRequestGet() t
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncreschedulemaintenancerequestget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 79%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
index 2634f0d10e..8e4e5e99ec 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
@@ -24,14 +24,14 @@
 import com.google.protobuf.Timestamp;
 
 public
-class RescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet {
+class SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp {
 
   public static void main(String[] args) throws Exception {
-    rescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet();
+    syncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp();
   }
 
   public static void
-      rescheduleMaintenanceAsyncInstanceNameRescheduleMaintenanceRequestRescheduleTypeTimestampGet()
+      syncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp()
           throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
@@ -45,4 +45,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncinstancenamereschedulemaintenancerequestrescheduletypetimestampget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_instancenamereschedulemaintenancerequestrescheduletypetimestamp_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
similarity index 79%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
index 67ca1f540c..686b3760c8 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java
@@ -16,22 +16,21 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest;
 import com.google.protobuf.Timestamp;
 
-public
-class RescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet {
+public class SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp {
 
   public static void main(String[] args) throws Exception {
-    rescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet();
+    syncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp();
   }
 
   public static void
-      rescheduleMaintenanceAsyncStringRescheduleMaintenanceRequestRescheduleTypeTimestampGet()
+      syncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp()
           throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
@@ -45,4 +44,4 @@ public static void main(String[] args) throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_asyncstringreschedulemaintenancerequestrescheduletypetimestampget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_reschedulemaintenance_stringreschedulemaintenancerequestrescheduletypetimestamp_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
index af12196f0d..a8250d4dae 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceCallableFutureCallUpdateInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_updateinstance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
@@ -24,13 +24,13 @@
 import com.google.longrunning.Operation;
 import com.google.protobuf.FieldMask;
 
-public class UpdateInstanceCallableFutureCallUpdateInstanceRequest {
+public class AsyncUpdateInstance {
 
   public static void main(String[] args) throws Exception {
-    updateInstanceCallableFutureCallUpdateInstanceRequest();
+    asyncUpdateInstance();
   }
 
-  public static void updateInstanceCallableFutureCallUpdateInstanceRequest() throws Exception {
+  public static void asyncUpdateInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -45,4 +45,4 @@ public static void updateInstanceCallableFutureCallUpdateInstanceRequest() throw
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_updateinstance_callablefuturecallupdateinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_updateinstance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceOperationCallable.java
similarity index 82%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceOperationCallable.java
index d100b8e74e..364b47824b 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
@@ -24,14 +24,13 @@
 import com.google.protobuf.Any;
 import com.google.protobuf.FieldMask;
 
-public class UpdateInstanceOperationCallableFutureCallUpdateInstanceRequest {
+public class AsyncUpdateInstanceOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    updateInstanceOperationCallableFutureCallUpdateInstanceRequest();
+    asyncUpdateInstanceOperationCallable();
   }
 
-  public static void updateInstanceOperationCallableFutureCallUpdateInstanceRequest()
-      throws Exception {
+  public static void asyncUpdateInstanceOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -47,4 +46,4 @@ public static void updateInstanceOperationCallableFutureCallUpdateInstanceReques
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallablefuturecallupdateinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_updateinstance_operationcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
index 254ebc5d8a..3e2e71b820 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncUpdateInstanceRequestGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_updateinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.UpdateInstanceRequest;
 import com.google.protobuf.FieldMask;
 
-public class UpdateInstanceAsyncUpdateInstanceRequestGet {
+public class SyncUpdateInstance {
 
   public static void main(String[] args) throws Exception {
-    updateInstanceAsyncUpdateInstanceRequestGet();
+    syncUpdateInstance();
   }
 
-  public static void updateInstanceAsyncUpdateInstanceRequestGet() throws Exception {
+  public static void syncUpdateInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -41,4 +41,4 @@ public static void updateInstanceAsyncUpdateInstanceRequestGet() throws Exceptio
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncupdateinstancerequestget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_updateinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
index 22ae881539..2580dcde7b 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/UpdateInstanceAsyncFieldMaskInstanceGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_updateinstance_fieldmaskinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.protobuf.FieldMask;
 
-public class UpdateInstanceAsyncFieldMaskInstanceGet {
+public class SyncUpdateInstanceFieldmaskInstance {
 
   public static void main(String[] args) throws Exception {
-    updateInstanceAsyncFieldMaskInstanceGet();
+    syncUpdateInstanceFieldmaskInstance();
   }
 
-  public static void updateInstanceAsyncFieldMaskInstanceGet() throws Exception {
+  public static void syncUpdateInstanceFieldmaskInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -37,4 +37,4 @@ public static void updateInstanceAsyncFieldMaskInstanceGet() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_updateinstance_asyncfieldmaskinstanceget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_updateinstance_fieldmaskinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
index 4c7e301d7a..e94e34c920 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceCallableFutureCallUpgradeInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java
@@ -16,20 +16,20 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.cloud.redis.v1beta1.UpgradeInstanceRequest;
 import com.google.longrunning.Operation;
 
-public class UpgradeInstanceCallableFutureCallUpgradeInstanceRequest {
+public class AsyncUpgradeInstance {
 
   public static void main(String[] args) throws Exception {
-    upgradeInstanceCallableFutureCallUpgradeInstanceRequest();
+    asyncUpgradeInstance();
   }
 
-  public static void upgradeInstanceCallableFutureCallUpgradeInstanceRequest() throws Exception {
+  public static void asyncUpgradeInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -44,4 +44,4 @@ public static void upgradeInstanceCallableFutureCallUpgradeInstanceRequest() thr
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_callablefuturecallupgradeinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceOperationCallable.java
similarity index 82%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceOperationCallable.java
index fff1f5ce5b..f962b14959 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceOperationCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest_sync]
+// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
@@ -24,14 +24,13 @@
 import com.google.cloud.redis.v1beta1.UpgradeInstanceRequest;
 import com.google.protobuf.Any;
 
-public class UpgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest {
+public class AsyncUpgradeInstanceOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    upgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest();
+    asyncUpgradeInstanceOperationCallable();
   }
 
-  public static void upgradeInstanceOperationCallableFutureCallUpgradeInstanceRequest()
-      throws Exception {
+  public static void asyncUpgradeInstanceOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -47,4 +46,4 @@ public static void upgradeInstanceOperationCallableFutureCallUpgradeInstanceRequ
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallablefuturecallupgradeinstancerequest_sync]
+// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_operationcallable_async]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
similarity index 85%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
index 0aaec38b4e..2860730b58 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncUpgradeInstanceRequestGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java
@@ -16,19 +16,19 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 import com.google.cloud.redis.v1beta1.UpgradeInstanceRequest;
 
-public class UpgradeInstanceAsyncUpgradeInstanceRequestGet {
+public class SyncUpgradeInstance {
 
   public static void main(String[] args) throws Exception {
-    upgradeInstanceAsyncUpgradeInstanceRequestGet();
+    syncUpgradeInstance();
   }
 
-  public static void upgradeInstanceAsyncUpgradeInstanceRequestGet() throws Exception {
+  public static void syncUpgradeInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -41,4 +41,4 @@ public static void upgradeInstanceAsyncUpgradeInstanceRequestGet() throws Except
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncupgradeinstancerequestget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
similarity index 84%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
index 2b640bc927..20bc73d1df 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncInstanceNameStringGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_instancenamestring_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class UpgradeInstanceAsyncInstanceNameStringGet {
+public class SyncUpgradeInstanceInstancenameString {
 
   public static void main(String[] args) throws Exception {
-    upgradeInstanceAsyncInstanceNameStringGet();
+    syncUpgradeInstanceInstancenameString();
   }
 
-  public static void upgradeInstanceAsyncInstanceNameStringGet() throws Exception {
+  public static void syncUpgradeInstanceInstancenameString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -37,4 +37,4 @@ public static void upgradeInstanceAsyncInstanceNameStringGet() throws Exception
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncinstancenamestringget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_instancenamestring_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
similarity index 86%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
index 0c41c14024..d5e491b2aa 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/UpgradeInstanceAsyncStringStringGet.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java
@@ -16,18 +16,18 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget_sync]
+// [START redis_v1beta1_generated_cloudredisclient_upgradeinstance_stringstring_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisClient;
 import com.google.cloud.redis.v1beta1.Instance;
 import com.google.cloud.redis.v1beta1.InstanceName;
 
-public class UpgradeInstanceAsyncStringStringGet {
+public class SyncUpgradeInstanceStringString {
 
   public static void main(String[] args) throws Exception {
-    upgradeInstanceAsyncStringStringGet();
+    syncUpgradeInstanceStringString();
   }
 
-  public static void upgradeInstanceAsyncStringStringGet() throws Exception {
+  public static void syncUpgradeInstanceStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
@@ -37,4 +37,4 @@ public static void upgradeInstanceAsyncStringStringGet() throws Exception {
     }
   }
 }
-// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_asyncstringstringget_sync]
+// [END redis_v1beta1_generated_cloudredisclient_upgradeinstance_stringstring_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
similarity index 82%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
index 40f28c9c06..83c8035482 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisSettings.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.redis.v1beta1.samples;
 
-// [START redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings_sync]
+// [START redis_v1beta1_generated_cloudredissettings_getinstance_sync]
 import com.google.cloud.redis.v1beta1.CloudRedisSettings;
 import java.time.Duration;
 
-public class GetInstanceSettingsSetRetrySettingsCloudRedisSettings {
+public class SyncGetInstance {
 
   public static void main(String[] args) throws Exception {
-    getInstanceSettingsSetRetrySettingsCloudRedisSettings();
+    syncGetInstance();
   }
 
-  public static void getInstanceSettingsSetRetrySettingsCloudRedisSettings() throws Exception {
+  public static void syncGetInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     CloudRedisSettings.Builder cloudRedisSettingsBuilder = CloudRedisSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void getInstanceSettingsSetRetrySettingsCloudRedisSettings() throw
     CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build();
   }
 }
-// [END redis_v1beta1_generated_cloudredissettings_getinstance_settingssetretrysettingscloudredissettings_sync]
+// [END redis_v1beta1_generated_cloudredissettings_getinstance_sync]
diff --git a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
similarity index 81%
rename from test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java
rename to test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
index 516728c056..3721e3591d 100644
--- a/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings.java
+++ b/test/integration/goldens/redis/samples/generated/src/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java
@@ -16,17 +16,17 @@
 
 package com.google.cloud.redis.v1beta1.stub.samples;
 
-// [START redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings_sync]
+// [START redis_v1beta1_generated_cloudredisstubsettings_getinstance_sync]
 import com.google.cloud.redis.v1beta1.stub.CloudRedisStubSettings;
 import java.time.Duration;
 
-public class GetInstanceSettingsSetRetrySettingsCloudRedisStubSettings {
+public class SyncGetInstance {
 
   public static void main(String[] args) throws Exception {
-    getInstanceSettingsSetRetrySettingsCloudRedisStubSettings();
+    syncGetInstance();
   }
 
-  public static void getInstanceSettingsSetRetrySettingsCloudRedisStubSettings() throws Exception {
+  public static void syncGetInstance() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void getInstanceSettingsSetRetrySettingsCloudRedisStubSettings() t
     CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build();
   }
 }
-// [END redis_v1beta1_generated_cloudredisstubsettings_getinstance_settingssetretrysettingscloudredisstubsettings_sync]
+// [END redis_v1beta1_generated_cloudredisstubsettings_getinstance_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/AsyncComposeObject.java
similarity index 83%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/AsyncComposeObject.java
index a889160b08..4934b8f0ff 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectCallableFutureCallComposeObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/AsyncComposeObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest_sync]
+// [START storage_v2_generated_storageclient_composeobject_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
@@ -27,13 +27,13 @@
 import com.google.storage.v2.StorageClient;
 import java.util.ArrayList;
 
-public class ComposeObjectCallableFutureCallComposeObjectRequest {
+public class AsyncComposeObject {
 
   public static void main(String[] args) throws Exception {
-    composeObjectCallableFutureCallComposeObjectRequest();
+    asyncComposeObject();
   }
 
-  public static void composeObjectCallableFutureCallComposeObjectRequest() throws Exception {
+  public static void asyncComposeObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -56,4 +56,4 @@ public static void composeObjectCallableFutureCallComposeObjectRequest() throws
     }
   }
 }
-// [END storage_v2_generated_storageclient_composeobject_callablefuturecallcomposeobjectrequest_sync]
+// [END storage_v2_generated_storageclient_composeobject_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/SyncComposeObject.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/SyncComposeObject.java
index dbf77e1a66..8c6cdaed89 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/ComposeObjectComposeObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/composeobject/SyncComposeObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_composeobject_composeobjectrequest_sync]
+// [START storage_v2_generated_storageclient_composeobject_sync]
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.ComposeObjectRequest;
@@ -26,13 +26,13 @@
 import com.google.storage.v2.StorageClient;
 import java.util.ArrayList;
 
-public class ComposeObjectComposeObjectRequest {
+public class SyncComposeObject {
 
   public static void main(String[] args) throws Exception {
-    composeObjectComposeObjectRequest();
+    syncComposeObject();
   }
 
-  public static void composeObjectComposeObjectRequest() throws Exception {
+  public static void syncComposeObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -53,4 +53,4 @@ public static void composeObjectComposeObjectRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_composeobject_composeobjectrequest_sync]
+// [END storage_v2_generated_storageclient_composeobject_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/SyncCreateSetCredentialsProvider.java
similarity index 80%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/SyncCreateSetCredentialsProvider.java
index bccbb92eea..39d638fed7 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings1.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,19 +16,19 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_create_storagesettings1_sync]
+// [START storage_v2_generated_storageclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.StorageSettings;
 import com.google.storage.v2.myCredentials;
 
-public class CreateStorageSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createStorageSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createStorageSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     StorageSettings storageSettings =
@@ -38,4 +38,4 @@ public static void createStorageSettings1() throws Exception {
     StorageClient storageClient = StorageClient.create(storageSettings);
   }
 }
-// [END storage_v2_generated_storageclient_create_storagesettings1_sync]
+// [END storage_v2_generated_storageclient_create_setcredentialsprovider_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/SyncCreateSetEndpoint.java
similarity index 80%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/SyncCreateSetEndpoint.java
index d65b4cf90a..5f2737eff9 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/CreateStorageSettings2.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/create/SyncCreateSetEndpoint.java
@@ -16,22 +16,22 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_create_storagesettings2_sync]
+// [START storage_v2_generated_storageclient_create_setendpoint_sync]
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.StorageSettings;
 import com.google.storage.v2.myEndpoint;
 
-public class CreateStorageSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createStorageSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createStorageSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     StorageSettings storageSettings = StorageSettings.newBuilder().setEndpoint(myEndpoint).build();
     StorageClient storageClient = StorageClient.create(storageSettings);
   }
 }
-// [END storage_v2_generated_storageclient_create_storagesettings2_sync]
+// [END storage_v2_generated_storageclient_create_setendpoint_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/AsyncCreateBucket.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/AsyncCreateBucket.java
index bae755a1f5..ea02b71efd 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCallableFutureCallCreateBucketRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/AsyncCreateBucket.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest_sync]
+// [START storage_v2_generated_storageclient_createbucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.CreateBucketRequest;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateBucketCallableFutureCallCreateBucketRequest {
+public class AsyncCreateBucket {
 
   public static void main(String[] args) throws Exception {
-    createBucketCallableFutureCallCreateBucketRequest();
+    asyncCreateBucket();
   }
 
-  public static void createBucketCallableFutureCallCreateBucketRequest() throws Exception {
+  public static void asyncCreateBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -49,4 +49,4 @@ public static void createBucketCallableFutureCallCreateBucketRequest() throws Ex
     }
   }
 }
-// [END storage_v2_generated_storageclient_createbucket_callablefuturecallcreatebucketrequest_sync]
+// [END storage_v2_generated_storageclient_createbucket_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucket.java
similarity index 83%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucket.java
index ed5f49969c..d6169862a6 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketCreateBucketRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucket.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_createbucket_createbucketrequest_sync]
+// [START storage_v2_generated_storageclient_createbucket_sync]
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.CreateBucketRequest;
 import com.google.storage.v2.PredefinedBucketAcl;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateBucketCreateBucketRequest {
+public class SyncCreateBucket {
 
   public static void main(String[] args) throws Exception {
-    createBucketCreateBucketRequest();
+    syncCreateBucket();
   }
 
-  public static void createBucketCreateBucketRequest() throws Exception {
+  public static void syncCreateBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -46,4 +46,4 @@ public static void createBucketCreateBucketRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_createbucket_createbucketrequest_sync]
+// [END storage_v2_generated_storageclient_createbucket_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucketProjectnameBucketString.java
similarity index 88%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucketProjectnameBucketString.java
index cd5aabb34b..e54fcfa9de 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketProjectNameBucketString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucketProjectnameBucketString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateBucketProjectNameBucketString {
+public class SyncCreateBucketProjectnameBucketString {
 
   public static void main(String[] args) throws Exception {
-    createBucketProjectNameBucketString();
+    syncCreateBucketProjectnameBucketString();
   }
 
-  public static void createBucketProjectNameBucketString() throws Exception {
+  public static void syncCreateBucketProjectnameBucketString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucketStringBucketString.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucketStringBucketString.java
index dabaf6018f..5986132c21 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/CreateBucketStringBucketString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createbucket/SyncCreateBucketStringBucketString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateBucketStringBucketString {
+public class SyncCreateBucketStringBucketString {
 
   public static void main(String[] args) throws Exception {
-    createBucketStringBucketString();
+    syncCreateBucketStringBucketString();
   }
 
-  public static void createBucketStringBucketString() throws Exception {
+  public static void syncCreateBucketStringBucketString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/AsyncCreateHmacKey.java
similarity index 80%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/AsyncCreateHmacKey.java
index 39259de200..4bff0acd46 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCallableFutureCallCreateHmacKeyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/AsyncCreateHmacKey.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest_sync]
+// [START storage_v2_generated_storageclient_createhmackey_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.CreateHmacKeyRequest;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateHmacKeyCallableFutureCallCreateHmacKeyRequest {
+public class AsyncCreateHmacKey {
 
   public static void main(String[] args) throws Exception {
-    createHmacKeyCallableFutureCallCreateHmacKeyRequest();
+    asyncCreateHmacKey();
   }
 
-  public static void createHmacKeyCallableFutureCallCreateHmacKeyRequest() throws Exception {
+  public static void asyncCreateHmacKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -47,4 +47,4 @@ public static void createHmacKeyCallableFutureCallCreateHmacKeyRequest() throws
     }
   }
 }
-// [END storage_v2_generated_storageclient_createhmackey_callablefuturecallcreatehmackeyrequest_sync]
+// [END storage_v2_generated_storageclient_createhmackey_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKey.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKey.java
index 09e672ce20..c113cd9966 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyCreateHmacKeyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKey.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_createhmackey_createhmackeyrequest_sync]
+// [START storage_v2_generated_storageclient_createhmackey_sync]
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.CreateHmacKeyRequest;
 import com.google.storage.v2.CreateHmacKeyResponse;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateHmacKeyCreateHmacKeyRequest {
+public class SyncCreateHmacKey {
 
   public static void main(String[] args) throws Exception {
-    createHmacKeyCreateHmacKeyRequest();
+    syncCreateHmacKey();
   }
 
-  public static void createHmacKeyCreateHmacKeyRequest() throws Exception {
+  public static void syncCreateHmacKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -43,4 +43,4 @@ public static void createHmacKeyCreateHmacKeyRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_createhmackey_createhmackeyrequest_sync]
+// [END storage_v2_generated_storageclient_createhmackey_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKeyProjectnameString.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKeyProjectnameString.java
index ad30509dee..a11dec2391 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyProjectNameString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKeyProjectnameString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateHmacKeyProjectNameString {
+public class SyncCreateHmacKeyProjectnameString {
 
   public static void main(String[] args) throws Exception {
-    createHmacKeyProjectNameString();
+    syncCreateHmacKeyProjectnameString();
   }
 
-  public static void createHmacKeyProjectNameString() throws Exception {
+  public static void syncCreateHmacKeyProjectnameString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKeyStringString.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKeyStringString.java
index d333e96421..037a2842f4 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/CreateHmacKeyStringString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createhmackey/SyncCreateHmacKeyStringString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateHmacKeyStringString {
+public class SyncCreateHmacKeyStringString {
 
   public static void main(String[] args) throws Exception {
-    createHmacKeyStringString();
+    syncCreateHmacKeyStringString();
   }
 
-  public static void createHmacKeyStringString() throws Exception {
+  public static void syncCreateHmacKeyStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/AsyncCreateNotification.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/AsyncCreateNotification.java
index d5b50989a4..b98aeb1974 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCallableFutureCallCreateNotificationRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/AsyncCreateNotification.java
@@ -16,21 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest_sync]
+// [START storage_v2_generated_storageclient_createnotification_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.CreateNotificationRequest;
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateNotificationCallableFutureCallCreateNotificationRequest {
+public class AsyncCreateNotification {
 
   public static void main(String[] args) throws Exception {
-    createNotificationCallableFutureCallCreateNotificationRequest();
+    asyncCreateNotification();
   }
 
-  public static void createNotificationCallableFutureCallCreateNotificationRequest()
-      throws Exception {
+  public static void asyncCreateNotification() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -46,4 +45,4 @@ public static void createNotificationCallableFutureCallCreateNotificationRequest
     }
   }
 }
-// [END storage_v2_generated_storageclient_createnotification_callablefuturecallcreatenotificationrequest_sync]
+// [END storage_v2_generated_storageclient_createnotification_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotification.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotification.java
index 27199ed121..cc9cb48b0c 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationCreateNotificationRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotification.java
@@ -16,19 +16,19 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_createnotification_createnotificationrequest_sync]
+// [START storage_v2_generated_storageclient_createnotification_sync]
 import com.google.storage.v2.CreateNotificationRequest;
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateNotificationCreateNotificationRequest {
+public class SyncCreateNotification {
 
   public static void main(String[] args) throws Exception {
-    createNotificationCreateNotificationRequest();
+    syncCreateNotification();
   }
 
-  public static void createNotificationCreateNotificationRequest() throws Exception {
+  public static void syncCreateNotification() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -41,4 +41,4 @@ public static void createNotificationCreateNotificationRequest() throws Exceptio
     }
   }
 }
-// [END storage_v2_generated_storageclient_createnotification_createnotificationrequest_sync]
+// [END storage_v2_generated_storageclient_createnotification_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotificationProjectnameNotification.java
similarity index 87%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotificationProjectnameNotification.java
index c2eb1535fc..36a23dcf6b 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationProjectNameNotification.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotificationProjectnameNotification.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateNotificationProjectNameNotification {
+public class SyncCreateNotificationProjectnameNotification {
 
   public static void main(String[] args) throws Exception {
-    createNotificationProjectNameNotification();
+    syncCreateNotificationProjectnameNotification();
   }
 
-  public static void createNotificationProjectNameNotification() throws Exception {
+  public static void syncCreateNotificationProjectnameNotification() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotificationStringNotification.java
similarity index 88%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotificationStringNotification.java
index 81f739e7fe..f76deb03d7 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/CreateNotificationStringNotification.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/createnotification/SyncCreateNotificationStringNotification.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class CreateNotificationStringNotification {
+public class SyncCreateNotificationStringNotification {
 
   public static void main(String[] args) throws Exception {
-    createNotificationStringNotification();
+    syncCreateNotificationStringNotification();
   }
 
-  public static void createNotificationStringNotification() throws Exception {
+  public static void syncCreateNotificationStringNotification() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/AsyncDeleteBucket.java
similarity index 80%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/AsyncDeleteBucket.java
index 8aa7bbe17e..05d02266e3 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketCallableFutureCallDeleteBucketRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/AsyncDeleteBucket.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest_sync]
+// [START storage_v2_generated_storageclient_deletebucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.storage.v2.BucketName;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.DeleteBucketRequest;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteBucketCallableFutureCallDeleteBucketRequest {
+public class AsyncDeleteBucket {
 
   public static void main(String[] args) throws Exception {
-    deleteBucketCallableFutureCallDeleteBucketRequest();
+    asyncDeleteBucket();
   }
 
-  public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Exception {
+  public static void asyncDeleteBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -47,4 +47,4 @@ public static void deleteBucketCallableFutureCallDeleteBucketRequest() throws Ex
     }
   }
 }
-// [END storage_v2_generated_storageclient_deletebucket_callablefuturecalldeletebucketrequest_sync]
+// [END storage_v2_generated_storageclient_deletebucket_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucket.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucket.java
index b4010abe92..abdcf19bd2 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketDeleteBucketRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucket.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_deletebucket_deletebucketrequest_sync]
+// [START storage_v2_generated_storageclient_deletebucket_sync]
 import com.google.protobuf.Empty;
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.DeleteBucketRequest;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteBucketDeleteBucketRequest {
+public class SyncDeleteBucket {
 
   public static void main(String[] args) throws Exception {
-    deleteBucketDeleteBucketRequest();
+    syncDeleteBucket();
   }
 
-  public static void deleteBucketDeleteBucketRequest() throws Exception {
+  public static void syncDeleteBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -44,4 +44,4 @@ public static void deleteBucketDeleteBucketRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_deletebucket_deletebucketrequest_sync]
+// [END storage_v2_generated_storageclient_deletebucket_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucketBucketname.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucketBucketname.java
index 3b74f167cd..a37ccb07f0 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketBucketName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucketBucketname.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteBucketBucketName {
+public class SyncDeleteBucketBucketname {
 
   public static void main(String[] args) throws Exception {
-    deleteBucketBucketName();
+    syncDeleteBucketBucketname();
   }
 
-  public static void deleteBucketBucketName() throws Exception {
+  public static void syncDeleteBucketBucketname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucketString.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucketString.java
index e5c3cdaf1e..0cff727dbe 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/DeleteBucketString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletebucket/SyncDeleteBucketString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteBucketString {
+public class SyncDeleteBucketString {
 
   public static void main(String[] args) throws Exception {
-    deleteBucketString();
+    syncDeleteBucketString();
   }
 
-  public static void deleteBucketString() throws Exception {
+  public static void syncDeleteBucketString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/AsyncDeleteHmacKey.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/AsyncDeleteHmacKey.java
index 2f90ac2a20..32c206616e 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/AsyncDeleteHmacKey.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest_sync]
+// [START storage_v2_generated_storageclient_deletehmackey_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.storage.v2.CommonRequestParams;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteHmacKeyCallableFutureCallDeleteHmacKeyRequest {
+public class AsyncDeleteHmacKey {
 
   public static void main(String[] args) throws Exception {
-    deleteHmacKeyCallableFutureCallDeleteHmacKeyRequest();
+    asyncDeleteHmacKey();
   }
 
-  public static void deleteHmacKeyCallableFutureCallDeleteHmacKeyRequest() throws Exception {
+  public static void asyncDeleteHmacKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -46,4 +46,4 @@ public static void deleteHmacKeyCallableFutureCallDeleteHmacKeyRequest() throws
     }
   }
 }
-// [END storage_v2_generated_storageclient_deletehmackey_callablefuturecalldeletehmackeyrequest_sync]
+// [END storage_v2_generated_storageclient_deletehmackey_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKey.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKey.java
index 7f488bf9b4..ca9d6bdd85 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyDeleteHmacKeyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKey.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest_sync]
+// [START storage_v2_generated_storageclient_deletehmackey_sync]
 import com.google.protobuf.Empty;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.DeleteHmacKeyRequest;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteHmacKeyDeleteHmacKeyRequest {
+public class SyncDeleteHmacKey {
 
   public static void main(String[] args) throws Exception {
-    deleteHmacKeyDeleteHmacKeyRequest();
+    syncDeleteHmacKey();
   }
 
-  public static void deleteHmacKeyDeleteHmacKeyRequest() throws Exception {
+  public static void syncDeleteHmacKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -43,4 +43,4 @@ public static void deleteHmacKeyDeleteHmacKeyRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_deletehmackey_deletehmackeyrequest_sync]
+// [END storage_v2_generated_storageclient_deletehmackey_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKeyStringProjectname.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKeyStringProjectname.java
index 63069197a1..d8fd8d0a67 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringProjectName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKeyStringProjectname.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteHmacKeyStringProjectName {
+public class SyncDeleteHmacKeyStringProjectname {
 
   public static void main(String[] args) throws Exception {
-    deleteHmacKeyStringProjectName();
+    syncDeleteHmacKeyStringProjectname();
   }
 
-  public static void deleteHmacKeyStringProjectName() throws Exception {
+  public static void syncDeleteHmacKeyStringProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKeyStringString.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKeyStringString.java
index 24bca87d7b..b908249211 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/DeleteHmacKeyStringString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletehmackey/SyncDeleteHmacKeyStringString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteHmacKeyStringString {
+public class SyncDeleteHmacKeyStringString {
 
   public static void main(String[] args) throws Exception {
-    deleteHmacKeyStringString();
+    syncDeleteHmacKeyStringString();
   }
 
-  public static void deleteHmacKeyStringString() throws Exception {
+  public static void syncDeleteHmacKeyStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/AsyncDeleteNotification.java
similarity index 78%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/AsyncDeleteNotification.java
index 0a2921cba7..7efc95b1ec 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationCallableFutureCallDeleteNotificationRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/AsyncDeleteNotification.java
@@ -16,21 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest_sync]
+// [START storage_v2_generated_storageclient_deletenotification_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.storage.v2.DeleteNotificationRequest;
 import com.google.storage.v2.NotificationName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteNotificationCallableFutureCallDeleteNotificationRequest {
+public class AsyncDeleteNotification {
 
   public static void main(String[] args) throws Exception {
-    deleteNotificationCallableFutureCallDeleteNotificationRequest();
+    asyncDeleteNotification();
   }
 
-  public static void deleteNotificationCallableFutureCallDeleteNotificationRequest()
-      throws Exception {
+  public static void asyncDeleteNotification() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -44,4 +43,4 @@ public static void deleteNotificationCallableFutureCallDeleteNotificationRequest
     }
   }
 }
-// [END storage_v2_generated_storageclient_deletenotification_callablefuturecalldeletenotificationrequest_sync]
+// [END storage_v2_generated_storageclient_deletenotification_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotification.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotification.java
index 918053acd9..bbbc6a6165 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationDeleteNotificationRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotification.java
@@ -16,19 +16,19 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_deletenotification_deletenotificationrequest_sync]
+// [START storage_v2_generated_storageclient_deletenotification_sync]
 import com.google.protobuf.Empty;
 import com.google.storage.v2.DeleteNotificationRequest;
 import com.google.storage.v2.NotificationName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteNotificationDeleteNotificationRequest {
+public class SyncDeleteNotification {
 
   public static void main(String[] args) throws Exception {
-    deleteNotificationDeleteNotificationRequest();
+    syncDeleteNotification();
   }
 
-  public static void deleteNotificationDeleteNotificationRequest() throws Exception {
+  public static void syncDeleteNotification() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -40,4 +40,4 @@ public static void deleteNotificationDeleteNotificationRequest() throws Exceptio
     }
   }
 }
-// [END storage_v2_generated_storageclient_deletenotification_deletenotificationrequest_sync]
+// [END storage_v2_generated_storageclient_deletenotification_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotificationNotificationname.java
similarity index 88%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotificationNotificationname.java
index 9bf9dc5654..4055adfefa 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationNotificationName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotificationNotificationname.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.NotificationName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteNotificationNotificationName {
+public class SyncDeleteNotificationNotificationname {
 
   public static void main(String[] args) throws Exception {
-    deleteNotificationNotificationName();
+    syncDeleteNotificationNotificationname();
   }
 
-  public static void deleteNotificationNotificationName() throws Exception {
+  public static void syncDeleteNotificationNotificationname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotificationString.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotificationString.java
index a5e5dc3748..9551ed80e0 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/DeleteNotificationString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deletenotification/SyncDeleteNotificationString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.NotificationName;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteNotificationString {
+public class SyncDeleteNotificationString {
 
   public static void main(String[] args) throws Exception {
-    deleteNotificationString();
+    syncDeleteNotificationString();
   }
 
-  public static void deleteNotificationString() throws Exception {
+  public static void syncDeleteNotificationString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/AsyncDeleteObject.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/AsyncDeleteObject.java
index 65c8b2182e..dd3d88b048 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectCallableFutureCallDeleteObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/AsyncDeleteObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest_sync]
+// [START storage_v2_generated_storageclient_deleteobject_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.storage.v2.CommonObjectRequestParams;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.DeleteObjectRequest;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteObjectCallableFutureCallDeleteObjectRequest {
+public class AsyncDeleteObject {
 
   public static void main(String[] args) throws Exception {
-    deleteObjectCallableFutureCallDeleteObjectRequest();
+    asyncDeleteObject();
   }
 
-  public static void deleteObjectCallableFutureCallDeleteObjectRequest() throws Exception {
+  public static void asyncDeleteObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -53,4 +53,4 @@ public static void deleteObjectCallableFutureCallDeleteObjectRequest() throws Ex
     }
   }
 }
-// [END storage_v2_generated_storageclient_deleteobject_callablefuturecalldeleteobjectrequest_sync]
+// [END storage_v2_generated_storageclient_deleteobject_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObject.java
similarity index 85%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObject.java
index db2fe0727a..e8c6168707 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectDeleteObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObject.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_deleteobject_deleteobjectrequest_sync]
+// [START storage_v2_generated_storageclient_deleteobject_sync]
 import com.google.protobuf.Empty;
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.DeleteObjectRequest;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteObjectDeleteObjectRequest {
+public class SyncDeleteObject {
 
   public static void main(String[] args) throws Exception {
-    deleteObjectDeleteObjectRequest();
+    syncDeleteObject();
   }
 
-  public static void deleteObjectDeleteObjectRequest() throws Exception {
+  public static void syncDeleteObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -50,4 +50,4 @@ public static void deleteObjectDeleteObjectRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_deleteobject_deleteobjectrequest_sync]
+// [END storage_v2_generated_storageclient_deleteobject_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObjectStringString.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObjectStringString.java
index 012ee94827..2e5fb4844a 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObjectStringString.java
@@ -20,13 +20,13 @@
 import com.google.protobuf.Empty;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteObjectStringString {
+public class SyncDeleteObjectStringString {
 
   public static void main(String[] args) throws Exception {
-    deleteObjectStringString();
+    syncDeleteObjectStringString();
   }
 
-  public static void deleteObjectStringString() throws Exception {
+  public static void syncDeleteObjectStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObjectStringStringLong.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObjectStringStringLong.java
index c8f217ce41..fef1b74707 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/DeleteObjectStringStringLong.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/deleteobject/SyncDeleteObjectStringStringLong.java
@@ -20,13 +20,13 @@
 import com.google.protobuf.Empty;
 import com.google.storage.v2.StorageClient;
 
-public class DeleteObjectStringStringLong {
+public class SyncDeleteObjectStringStringLong {
 
   public static void main(String[] args) throws Exception {
-    deleteObjectStringStringLong();
+    syncDeleteObjectStringStringLong();
   }
 
-  public static void deleteObjectStringStringLong() throws Exception {
+  public static void syncDeleteObjectStringStringLong() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/AsyncGetBucket.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/AsyncGetBucket.java
index 0b8529fa4b..0c98dbf933 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketCallableFutureCallGetBucketRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/AsyncGetBucket.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest_sync]
+// [START storage_v2_generated_storageclient_getbucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.Bucket;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.GetBucketRequest;
 import com.google.storage.v2.StorageClient;
 
-public class GetBucketCallableFutureCallGetBucketRequest {
+public class AsyncGetBucket {
 
   public static void main(String[] args) throws Exception {
-    getBucketCallableFutureCallGetBucketRequest();
+    asyncGetBucket();
   }
 
-  public static void getBucketCallableFutureCallGetBucketRequest() throws Exception {
+  public static void asyncGetBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -49,4 +49,4 @@ public static void getBucketCallableFutureCallGetBucketRequest() throws Exceptio
     }
   }
 }
-// [END storage_v2_generated_storageclient_getbucket_callablefuturecallgetbucketrequest_sync]
+// [END storage_v2_generated_storageclient_getbucket_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucket.java
similarity index 84%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucket.java
index 37daf7be41..b137e5f52e 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketGetBucketRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucket.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getbucket_getbucketrequest_sync]
+// [START storage_v2_generated_storageclient_getbucket_sync]
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.BucketName;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.GetBucketRequest;
 import com.google.storage.v2.StorageClient;
 
-public class GetBucketGetBucketRequest {
+public class SyncGetBucket {
 
   public static void main(String[] args) throws Exception {
-    getBucketGetBucketRequest();
+    syncGetBucket();
   }
 
-  public static void getBucketGetBucketRequest() throws Exception {
+  public static void syncGetBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -46,4 +46,4 @@ public static void getBucketGetBucketRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_getbucket_getbucketrequest_sync]
+// [END storage_v2_generated_storageclient_getbucket_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucketBucketname.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucketBucketname.java
index 2997703948..c71a2aa933 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketBucketName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucketBucketname.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.StorageClient;
 
-public class GetBucketBucketName {
+public class SyncGetBucketBucketname {
 
   public static void main(String[] args) throws Exception {
-    getBucketBucketName();
+    syncGetBucketBucketname();
   }
 
-  public static void getBucketBucketName() throws Exception {
+  public static void syncGetBucketBucketname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucketString.java
similarity index 91%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucketString.java
index a78a7aaff6..0dbf1fdc6a 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/GetBucketString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getbucket/SyncGetBucketString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.StorageClient;
 
-public class GetBucketString {
+public class SyncGetBucketString {
 
   public static void main(String[] args) throws Exception {
-    getBucketString();
+    syncGetBucketString();
   }
 
-  public static void getBucketString() throws Exception {
+  public static void syncGetBucketString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/AsyncGetHmacKey.java
similarity index 80%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/AsyncGetHmacKey.java
index 342b9adb78..6c1de14778 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyCallableFutureCallGetHmacKeyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/AsyncGetHmacKey.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest_sync]
+// [START storage_v2_generated_storageclient_gethmackey_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.GetHmacKeyRequest;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class GetHmacKeyCallableFutureCallGetHmacKeyRequest {
+public class AsyncGetHmacKey {
 
   public static void main(String[] args) throws Exception {
-    getHmacKeyCallableFutureCallGetHmacKeyRequest();
+    asyncGetHmacKey();
   }
 
-  public static void getHmacKeyCallableFutureCallGetHmacKeyRequest() throws Exception {
+  public static void asyncGetHmacKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -46,4 +46,4 @@ public static void getHmacKeyCallableFutureCallGetHmacKeyRequest() throws Except
     }
   }
 }
-// [END storage_v2_generated_storageclient_gethmackey_callablefuturecallgethmackeyrequest_sync]
+// [END storage_v2_generated_storageclient_gethmackey_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKey.java
similarity index 83%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKey.java
index d9d75b6946..eb2822d18c 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyGetHmacKeyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKey.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_gethmackey_gethmackeyrequest_sync]
+// [START storage_v2_generated_storageclient_gethmackey_sync]
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.GetHmacKeyRequest;
 import com.google.storage.v2.HmacKeyMetadata;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class GetHmacKeyGetHmacKeyRequest {
+public class SyncGetHmacKey {
 
   public static void main(String[] args) throws Exception {
-    getHmacKeyGetHmacKeyRequest();
+    syncGetHmacKey();
   }
 
-  public static void getHmacKeyGetHmacKeyRequest() throws Exception {
+  public static void syncGetHmacKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -43,4 +43,4 @@ public static void getHmacKeyGetHmacKeyRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_gethmackey_gethmackeyrequest_sync]
+// [END storage_v2_generated_storageclient_gethmackey_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKeyStringProjectname.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKeyStringProjectname.java
index 5170e912fd..96d6a9cbdf 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringProjectName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKeyStringProjectname.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class GetHmacKeyStringProjectName {
+public class SyncGetHmacKeyStringProjectname {
 
   public static void main(String[] args) throws Exception {
-    getHmacKeyStringProjectName();
+    syncGetHmacKeyStringProjectname();
   }
 
-  public static void getHmacKeyStringProjectName() throws Exception {
+  public static void syncGetHmacKeyStringProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKeyStringString.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKeyStringString.java
index 71e41b2e1a..f67a737176 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/GetHmacKeyStringString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/gethmackey/SyncGetHmacKeyStringString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class GetHmacKeyStringString {
+public class SyncGetHmacKeyStringString {
 
   public static void main(String[] args) throws Exception {
-    getHmacKeyStringString();
+    syncGetHmacKeyStringString();
   }
 
-  public static void getHmacKeyStringString() throws Exception {
+  public static void syncGetHmacKeyStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/AsyncGetIamPolicy.java
index fb1c39cf4a..5cf6cd70b7 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyCallableFutureCallGetIamPolicyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/AsyncGetIamPolicy.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [START storage_v2_generated_storageclient_getiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.GetPolicyOptions;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 
-public class GetIamPolicyCallableFutureCallGetIamPolicyRequest {
+public class AsyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyCallableFutureCallGetIamPolicyRequest();
+    asyncGetIamPolicy();
   }
 
-  public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Exception {
+  public static void asyncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -47,4 +47,4 @@ public static void getIamPolicyCallableFutureCallGetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END storage_v2_generated_storageclient_getiampolicy_callablefuturecallgetiampolicyrequest_sync]
+// [END storage_v2_generated_storageclient_getiampolicy_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicy.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicy.java
index 5eaf9b9019..157160a4d3 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyGetIamPolicyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest_sync]
+// [START storage_v2_generated_storageclient_getiampolicy_sync]
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.GetPolicyOptions;
 import com.google.iam.v1.Policy;
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 
-public class GetIamPolicyGetIamPolicyRequest {
+public class SyncGetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyGetIamPolicyRequest();
+    syncGetIamPolicy();
   }
 
-  public static void getIamPolicyGetIamPolicyRequest() throws Exception {
+  public static void syncGetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -44,4 +44,4 @@ public static void getIamPolicyGetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_getiampolicy_getiampolicyrequest_sync]
+// [END storage_v2_generated_storageclient_getiampolicy_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicyResourcename.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicyResourcename.java
index 88195e2290..9d7f2c0ef4 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyResourceName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -22,13 +22,13 @@
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 
-public class GetIamPolicyResourceName {
+public class SyncGetIamPolicyResourcename {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyResourceName();
+    syncGetIamPolicyResourcename();
   }
 
-  public static void getIamPolicyResourceName() throws Exception {
+  public static void syncGetIamPolicyResourcename() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicyString.java
similarity index 91%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicyString.java
index d060630cc9..f31117d1c1 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/GetIamPolicyString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getiampolicy/SyncGetIamPolicyString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 
-public class GetIamPolicyString {
+public class SyncGetIamPolicyString {
 
   public static void main(String[] args) throws Exception {
-    getIamPolicyString();
+    syncGetIamPolicyString();
   }
 
-  public static void getIamPolicyString() throws Exception {
+  public static void syncGetIamPolicyString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/AsyncGetNotification.java
similarity index 77%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/AsyncGetNotification.java
index 6e8b08035a..b95fbda727 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationCallableFutureCallGetNotificationRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/AsyncGetNotification.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest_sync]
+// [START storage_v2_generated_storageclient_getnotification_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.GetNotificationRequest;
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.StorageClient;
 
-public class GetNotificationCallableFutureCallGetNotificationRequest {
+public class AsyncGetNotification {
 
   public static void main(String[] args) throws Exception {
-    getNotificationCallableFutureCallGetNotificationRequest();
+    asyncGetNotification();
   }
 
-  public static void getNotificationCallableFutureCallGetNotificationRequest() throws Exception {
+  public static void asyncGetNotification() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -43,4 +43,4 @@ public static void getNotificationCallableFutureCallGetNotificationRequest() thr
     }
   }
 }
-// [END storage_v2_generated_storageclient_getnotification_callablefuturecallgetnotificationrequest_sync]
+// [END storage_v2_generated_storageclient_getnotification_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotification.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotification.java
index 28125d4ff4..43f6015982 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationGetNotificationRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotification.java
@@ -16,19 +16,19 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getnotification_getnotificationrequest_sync]
+// [START storage_v2_generated_storageclient_getnotification_sync]
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.GetNotificationRequest;
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.StorageClient;
 
-public class GetNotificationGetNotificationRequest {
+public class SyncGetNotification {
 
   public static void main(String[] args) throws Exception {
-    getNotificationGetNotificationRequest();
+    syncGetNotification();
   }
 
-  public static void getNotificationGetNotificationRequest() throws Exception {
+  public static void syncGetNotification() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -40,4 +40,4 @@ public static void getNotificationGetNotificationRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_getnotification_getnotificationrequest_sync]
+// [END storage_v2_generated_storageclient_getnotification_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotificationBucketname.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotificationBucketname.java
index e3a6940f6b..e70b2c9779 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationBucketName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotificationBucketname.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.StorageClient;
 
-public class GetNotificationBucketName {
+public class SyncGetNotificationBucketname {
 
   public static void main(String[] args) throws Exception {
-    getNotificationBucketName();
+    syncGetNotificationBucketname();
   }
 
-  public static void getNotificationBucketName() throws Exception {
+  public static void syncGetNotificationBucketname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotificationString.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotificationString.java
index 5e28766c52..36660dcea3 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/GetNotificationString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getnotification/SyncGetNotificationString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.StorageClient;
 
-public class GetNotificationString {
+public class SyncGetNotificationString {
 
   public static void main(String[] args) throws Exception {
-    getNotificationString();
+    syncGetNotificationString();
   }
 
-  public static void getNotificationString() throws Exception {
+  public static void syncGetNotificationString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/AsyncGetObject.java
similarity index 84%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/AsyncGetObject.java
index 1627789f15..fc76193bbf 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectCallableFutureCallGetObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/AsyncGetObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest_sync]
+// [START storage_v2_generated_storageclient_getobject_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonObjectRequestParams;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.Object;
 import com.google.storage.v2.StorageClient;
 
-public class GetObjectCallableFutureCallGetObjectRequest {
+public class AsyncGetObject {
 
   public static void main(String[] args) throws Exception {
-    getObjectCallableFutureCallGetObjectRequest();
+    asyncGetObject();
   }
 
-  public static void getObjectCallableFutureCallGetObjectRequest() throws Exception {
+  public static void asyncGetObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -54,4 +54,4 @@ public static void getObjectCallableFutureCallGetObjectRequest() throws Exceptio
     }
   }
 }
-// [END storage_v2_generated_storageclient_getobject_callablefuturecallgetobjectrequest_sync]
+// [END storage_v2_generated_storageclient_getobject_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObject.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObject.java
index d8683971dd..67d11d18c4 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectGetObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getobject_getobjectrequest_sync]
+// [START storage_v2_generated_storageclient_getobject_sync]
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.Object;
 import com.google.storage.v2.StorageClient;
 
-public class GetObjectGetObjectRequest {
+public class SyncGetObject {
 
   public static void main(String[] args) throws Exception {
-    getObjectGetObjectRequest();
+    syncGetObject();
   }
 
-  public static void getObjectGetObjectRequest() throws Exception {
+  public static void syncGetObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -51,4 +51,4 @@ public static void getObjectGetObjectRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_getobject_getobjectrequest_sync]
+// [END storage_v2_generated_storageclient_getobject_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObjectStringString.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObjectStringString.java
index ae509eba19..3abb96277d 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObjectStringString.java
@@ -20,13 +20,13 @@
 import com.google.storage.v2.Object;
 import com.google.storage.v2.StorageClient;
 
-public class GetObjectStringString {
+public class SyncGetObjectStringString {
 
   public static void main(String[] args) throws Exception {
-    getObjectStringString();
+    syncGetObjectStringString();
   }
 
-  public static void getObjectStringString() throws Exception {
+  public static void syncGetObjectStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObjectStringStringLong.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObjectStringStringLong.java
index f667eadccc..fed50b246c 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/GetObjectStringStringLong.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getobject/SyncGetObjectStringStringLong.java
@@ -20,13 +20,13 @@
 import com.google.storage.v2.Object;
 import com.google.storage.v2.StorageClient;
 
-public class GetObjectStringStringLong {
+public class SyncGetObjectStringStringLong {
 
   public static void main(String[] args) throws Exception {
-    getObjectStringStringLong();
+    syncGetObjectStringStringLong();
   }
 
-  public static void getObjectStringStringLong() throws Exception {
+  public static void syncGetObjectStringStringLong() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/AsyncGetServiceAccount.java
similarity index 77%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/AsyncGetServiceAccount.java
index c021321df6..b681e02203 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountCallableFutureCallGetServiceAccountRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/AsyncGetServiceAccount.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest_sync]
+// [START storage_v2_generated_storageclient_getserviceaccount_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.GetServiceAccountRequest;
@@ -24,14 +24,13 @@
 import com.google.storage.v2.ServiceAccount;
 import com.google.storage.v2.StorageClient;
 
-public class GetServiceAccountCallableFutureCallGetServiceAccountRequest {
+public class AsyncGetServiceAccount {
 
   public static void main(String[] args) throws Exception {
-    getServiceAccountCallableFutureCallGetServiceAccountRequest();
+    asyncGetServiceAccount();
   }
 
-  public static void getServiceAccountCallableFutureCallGetServiceAccountRequest()
-      throws Exception {
+  public static void asyncGetServiceAccount() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -47,4 +46,4 @@ public static void getServiceAccountCallableFutureCallGetServiceAccountRequest()
     }
   }
 }
-// [END storage_v2_generated_storageclient_getserviceaccount_callablefuturecallgetserviceaccountrequest_sync]
+// [END storage_v2_generated_storageclient_getserviceaccount_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccount.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccount.java
index 4f81927603..952c479994 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountGetServiceAccountRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccount.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest_sync]
+// [START storage_v2_generated_storageclient_getserviceaccount_sync]
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.GetServiceAccountRequest;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.ServiceAccount;
 import com.google.storage.v2.StorageClient;
 
-public class GetServiceAccountGetServiceAccountRequest {
+public class SyncGetServiceAccount {
 
   public static void main(String[] args) throws Exception {
-    getServiceAccountGetServiceAccountRequest();
+    syncGetServiceAccount();
   }
 
-  public static void getServiceAccountGetServiceAccountRequest() throws Exception {
+  public static void syncGetServiceAccount() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -42,4 +42,4 @@ public static void getServiceAccountGetServiceAccountRequest() throws Exception
     }
   }
 }
-// [END storage_v2_generated_storageclient_getserviceaccount_getserviceaccountrequest_sync]
+// [END storage_v2_generated_storageclient_getserviceaccount_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccountProjectname.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccountProjectname.java
index 381496aafb..654ecd32e5 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountProjectName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccountProjectname.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ServiceAccount;
 import com.google.storage.v2.StorageClient;
 
-public class GetServiceAccountProjectName {
+public class SyncGetServiceAccountProjectname {
 
   public static void main(String[] args) throws Exception {
-    getServiceAccountProjectName();
+    syncGetServiceAccountProjectname();
   }
 
-  public static void getServiceAccountProjectName() throws Exception {
+  public static void syncGetServiceAccountProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccountString.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccountString.java
index 69d6872d21..e6709b3e83 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/GetServiceAccountString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/getserviceaccount/SyncGetServiceAccountString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.ServiceAccount;
 import com.google.storage.v2.StorageClient;
 
-public class GetServiceAccountString {
+public class SyncGetServiceAccountString {
 
   public static void main(String[] args) throws Exception {
-    getServiceAccountString();
+    syncGetServiceAccountString();
   }
 
-  public static void getServiceAccountString() throws Exception {
+  public static void syncGetServiceAccountString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/AsyncListBucketsPagedCallable.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/AsyncListBucketsPagedCallable.java
index ce07b1b7fa..1fcc943f65 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsPagedCallableFutureCallListBucketsRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/AsyncListBucketsPagedCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest_sync]
+// [START storage_v2_generated_storageclient_listbuckets_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.Bucket;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListBucketsPagedCallableFutureCallListBucketsRequest {
+public class AsyncListBucketsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listBucketsPagedCallableFutureCallListBucketsRequest();
+    asyncListBucketsPagedCallable();
   }
 
-  public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws Exception {
+  public static void asyncListBucketsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -52,4 +52,4 @@ public static void listBucketsPagedCallableFutureCallListBucketsRequest() throws
     }
   }
 }
-// [END storage_v2_generated_storageclient_listbuckets_pagedcallablefuturecalllistbucketsrequest_sync]
+// [END storage_v2_generated_storageclient_listbuckets_pagedcallable_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBuckets.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBuckets.java
index 2470e7200f..4a0c475259 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsListBucketsRequestIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBuckets.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall_sync]
+// [START storage_v2_generated_storageclient_listbuckets_sync]
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.CommonRequestParams;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListBucketsListBucketsRequestIterateAll {
+public class SyncListBuckets {
 
   public static void main(String[] args) throws Exception {
-    listBucketsListBucketsRequestIterateAll();
+    syncListBuckets();
   }
 
-  public static void listBucketsListBucketsRequestIterateAll() throws Exception {
+  public static void syncListBuckets() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -49,4 +49,4 @@ public static void listBucketsListBucketsRequestIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listbuckets_listbucketsrequestiterateall_sync]
+// [END storage_v2_generated_storageclient_listbuckets_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsPaged.java
similarity index 85%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsPaged.java
index dfee05414e..78f1aacb66 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsCallableCallListBucketsRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest_sync]
+// [START storage_v2_generated_storageclient_listbuckets_paged_sync]
 import com.google.common.base.Strings;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.Bucket;
@@ -26,13 +26,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListBucketsCallableCallListBucketsRequest {
+public class SyncListBucketsPaged {
 
   public static void main(String[] args) throws Exception {
-    listBucketsCallableCallListBucketsRequest();
+    syncListBucketsPaged();
   }
 
-  public static void listBucketsCallableCallListBucketsRequest() throws Exception {
+  public static void syncListBucketsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -60,4 +60,4 @@ public static void listBucketsCallableCallListBucketsRequest() throws Exception
     }
   }
 }
-// [END storage_v2_generated_storageclient_listbuckets_callablecalllistbucketsrequest_sync]
+// [END storage_v2_generated_storageclient_listbuckets_paged_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsProjectname.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsProjectname.java
index 4e50e9ca26..192694085f 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsProjectNameIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listbuckets_projectnameiterateall_sync]
+// [START storage_v2_generated_storageclient_listbuckets_projectname_sync]
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListBucketsProjectNameIterateAll {
+public class SyncListBucketsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listBucketsProjectNameIterateAll();
+    syncListBucketsProjectname();
   }
 
-  public static void listBucketsProjectNameIterateAll() throws Exception {
+  public static void syncListBucketsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -38,4 +38,4 @@ public static void listBucketsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listbuckets_projectnameiterateall_sync]
+// [END storage_v2_generated_storageclient_listbuckets_projectname_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsString.java
similarity index 80%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsString.java
index b12e704409..7a3294a5af 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/ListBucketsStringIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listbuckets/SyncListBucketsString.java
@@ -16,18 +16,18 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listbuckets_stringiterateall_sync]
+// [START storage_v2_generated_storageclient_listbuckets_string_sync]
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListBucketsStringIterateAll {
+public class SyncListBucketsString {
 
   public static void main(String[] args) throws Exception {
-    listBucketsStringIterateAll();
+    syncListBucketsString();
   }
 
-  public static void listBucketsStringIterateAll() throws Exception {
+  public static void syncListBucketsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -38,4 +38,4 @@ public static void listBucketsStringIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listbuckets_stringiterateall_sync]
+// [END storage_v2_generated_storageclient_listbuckets_string_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/AsyncListHmacKeysPagedCallable.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/AsyncListHmacKeysPagedCallable.java
index 8a3db0d2be..52c89f8e1d 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysPagedCallableFutureCallListHmacKeysRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/AsyncListHmacKeysPagedCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest_sync]
+// [START storage_v2_generated_storageclient_listhmackeys_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.HmacKeyMetadata;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListHmacKeysPagedCallableFutureCallListHmacKeysRequest {
+public class AsyncListHmacKeysPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listHmacKeysPagedCallableFutureCallListHmacKeysRequest();
+    asyncListHmacKeysPagedCallable();
   }
 
-  public static void listHmacKeysPagedCallableFutureCallListHmacKeysRequest() throws Exception {
+  public static void asyncListHmacKeysPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -52,4 +52,4 @@ public static void listHmacKeysPagedCallableFutureCallListHmacKeysRequest() thro
     }
   }
 }
-// [END storage_v2_generated_storageclient_listhmackeys_pagedcallablefuturecalllisthmackeysrequest_sync]
+// [END storage_v2_generated_storageclient_listhmackeys_pagedcallable_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeys.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeys.java
index 56aacef9d1..d60762dccc 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysListHmacKeysRequestIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeys.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall_sync]
+// [START storage_v2_generated_storageclient_listhmackeys_sync]
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.HmacKeyMetadata;
 import com.google.storage.v2.ListHmacKeysRequest;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListHmacKeysListHmacKeysRequestIterateAll {
+public class SyncListHmacKeys {
 
   public static void main(String[] args) throws Exception {
-    listHmacKeysListHmacKeysRequestIterateAll();
+    syncListHmacKeys();
   }
 
-  public static void listHmacKeysListHmacKeysRequestIterateAll() throws Exception {
+  public static void syncListHmacKeys() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -48,4 +48,4 @@ public static void listHmacKeysListHmacKeysRequestIterateAll() throws Exception
     }
   }
 }
-// [END storage_v2_generated_storageclient_listhmackeys_listhmackeysrequestiterateall_sync]
+// [END storage_v2_generated_storageclient_listhmackeys_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysPaged.java
similarity index 84%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysPaged.java
index 8e5924263c..54e78acfa3 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysCallableCallListHmacKeysRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest_sync]
+// [START storage_v2_generated_storageclient_listhmackeys_paged_sync]
 import com.google.common.base.Strings;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.HmacKeyMetadata;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListHmacKeysCallableCallListHmacKeysRequest {
+public class SyncListHmacKeysPaged {
 
   public static void main(String[] args) throws Exception {
-    listHmacKeysCallableCallListHmacKeysRequest();
+    syncListHmacKeysPaged();
   }
 
-  public static void listHmacKeysCallableCallListHmacKeysRequest() throws Exception {
+  public static void syncListHmacKeysPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -59,4 +59,4 @@ public static void listHmacKeysCallableCallListHmacKeysRequest() throws Exceptio
     }
   }
 }
-// [END storage_v2_generated_storageclient_listhmackeys_callablecalllisthmackeysrequest_sync]
+// [END storage_v2_generated_storageclient_listhmackeys_paged_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysProjectname.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysProjectname.java
index 49c7b8af4f..cc30567b7a 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysProjectNameIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listhmackeys_projectnameiterateall_sync]
+// [START storage_v2_generated_storageclient_listhmackeys_projectname_sync]
 import com.google.storage.v2.HmacKeyMetadata;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListHmacKeysProjectNameIterateAll {
+public class SyncListHmacKeysProjectname {
 
   public static void main(String[] args) throws Exception {
-    listHmacKeysProjectNameIterateAll();
+    syncListHmacKeysProjectname();
   }
 
-  public static void listHmacKeysProjectNameIterateAll() throws Exception {
+  public static void syncListHmacKeysProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -38,4 +38,4 @@ public static void listHmacKeysProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listhmackeys_projectnameiterateall_sync]
+// [END storage_v2_generated_storageclient_listhmackeys_projectname_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysString.java
similarity index 84%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysString.java
index d7e6df0768..a8d155e052 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/ListHmacKeysStringIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listhmackeys/SyncListHmacKeysString.java
@@ -16,18 +16,18 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listhmackeys_stringiterateall_sync]
+// [START storage_v2_generated_storageclient_listhmackeys_string_sync]
 import com.google.storage.v2.HmacKeyMetadata;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListHmacKeysStringIterateAll {
+public class SyncListHmacKeysString {
 
   public static void main(String[] args) throws Exception {
-    listHmacKeysStringIterateAll();
+    syncListHmacKeysString();
   }
 
-  public static void listHmacKeysStringIterateAll() throws Exception {
+  public static void syncListHmacKeysString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -38,4 +38,4 @@ public static void listHmacKeysStringIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listhmackeys_stringiterateall_sync]
+// [END storage_v2_generated_storageclient_listhmackeys_string_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/AsyncListNotificationsPagedCallable.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/AsyncListNotificationsPagedCallable.java
index 0a3ada6f7b..5b5f2f57ed 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsPagedCallableFutureCallListNotificationsRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/AsyncListNotificationsPagedCallable.java
@@ -16,21 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest_sync]
+// [START storage_v2_generated_storageclient_listnotifications_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.ListNotificationsRequest;
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListNotificationsPagedCallableFutureCallListNotificationsRequest {
+public class AsyncListNotificationsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listNotificationsPagedCallableFutureCallListNotificationsRequest();
+    asyncListNotificationsPagedCallable();
   }
 
-  public static void listNotificationsPagedCallableFutureCallListNotificationsRequest()
-      throws Exception {
+  public static void asyncListNotificationsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -49,4 +48,4 @@ public static void listNotificationsPagedCallableFutureCallListNotificationsRequ
     }
   }
 }
-// [END storage_v2_generated_storageclient_listnotifications_pagedcallablefuturecalllistnotificationsrequest_sync]
+// [END storage_v2_generated_storageclient_listnotifications_pagedcallable_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotifications.java
similarity index 78%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotifications.java
index 039e4ebb56..62227c5974 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsListNotificationsRequestIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotifications.java
@@ -16,19 +16,19 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall_sync]
+// [START storage_v2_generated_storageclient_listnotifications_sync]
 import com.google.storage.v2.ListNotificationsRequest;
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListNotificationsListNotificationsRequestIterateAll {
+public class SyncListNotifications {
 
   public static void main(String[] args) throws Exception {
-    listNotificationsListNotificationsRequestIterateAll();
+    syncListNotifications();
   }
 
-  public static void listNotificationsListNotificationsRequestIterateAll() throws Exception {
+  public static void syncListNotifications() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -44,4 +44,4 @@ public static void listNotificationsListNotificationsRequestIterateAll() throws
     }
   }
 }
-// [END storage_v2_generated_storageclient_listnotifications_listnotificationsrequestiterateall_sync]
+// [END storage_v2_generated_storageclient_listnotifications_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsPaged.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsPaged.java
index 12dfb3ecb5..5c23f936bf 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsCallableCallListNotificationsRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest_sync]
+// [START storage_v2_generated_storageclient_listnotifications_paged_sync]
 import com.google.common.base.Strings;
 import com.google.storage.v2.ListNotificationsRequest;
 import com.google.storage.v2.ListNotificationsResponse;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListNotificationsCallableCallListNotificationsRequest {
+public class SyncListNotificationsPaged {
 
   public static void main(String[] args) throws Exception {
-    listNotificationsCallableCallListNotificationsRequest();
+    syncListNotificationsPaged();
   }
 
-  public static void listNotificationsCallableCallListNotificationsRequest() throws Exception {
+  public static void syncListNotificationsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -56,4 +56,4 @@ public static void listNotificationsCallableCallListNotificationsRequest() throw
     }
   }
 }
-// [END storage_v2_generated_storageclient_listnotifications_callablecalllistnotificationsrequest_sync]
+// [END storage_v2_generated_storageclient_listnotifications_paged_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsProjectname.java
similarity index 85%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsProjectname.java
index 3feb464b24..62153ce077 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsProjectNameIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listnotifications_projectnameiterateall_sync]
+// [START storage_v2_generated_storageclient_listnotifications_projectname_sync]
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListNotificationsProjectNameIterateAll {
+public class SyncListNotificationsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listNotificationsProjectNameIterateAll();
+    syncListNotificationsProjectname();
   }
 
-  public static void listNotificationsProjectNameIterateAll() throws Exception {
+  public static void syncListNotificationsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -38,4 +38,4 @@ public static void listNotificationsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listnotifications_projectnameiterateall_sync]
+// [END storage_v2_generated_storageclient_listnotifications_projectname_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsString.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsString.java
index 7a6485d8eb..7dd05643fb 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/ListNotificationsStringIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listnotifications/SyncListNotificationsString.java
@@ -16,18 +16,18 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listnotifications_stringiterateall_sync]
+// [START storage_v2_generated_storageclient_listnotifications_string_sync]
 import com.google.storage.v2.Notification;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListNotificationsStringIterateAll {
+public class SyncListNotificationsString {
 
   public static void main(String[] args) throws Exception {
-    listNotificationsStringIterateAll();
+    syncListNotificationsString();
   }
 
-  public static void listNotificationsStringIterateAll() throws Exception {
+  public static void syncListNotificationsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -38,4 +38,4 @@ public static void listNotificationsStringIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listnotifications_stringiterateall_sync]
+// [END storage_v2_generated_storageclient_listnotifications_string_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/AsyncListObjectsPagedCallable.java
similarity index 88%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/AsyncListObjectsPagedCallable.java
index 7e79a9fcb2..62362860ef 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsPagedCallableFutureCallListObjectsRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/AsyncListObjectsPagedCallable.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest_sync]
+// [START storage_v2_generated_storageclient_listobjects_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonRequestParams;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListObjectsPagedCallableFutureCallListObjectsRequest {
+public class AsyncListObjectsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listObjectsPagedCallableFutureCallListObjectsRequest();
+    asyncListObjectsPagedCallable();
   }
 
-  public static void listObjectsPagedCallableFutureCallListObjectsRequest() throws Exception {
+  public static void asyncListObjectsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -57,4 +57,4 @@ public static void listObjectsPagedCallableFutureCallListObjectsRequest() throws
     }
   }
 }
-// [END storage_v2_generated_storageclient_listobjects_pagedcallablefuturecalllistobjectsrequest_sync]
+// [END storage_v2_generated_storageclient_listobjects_pagedcallable_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjects.java
similarity index 84%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjects.java
index 511fee9130..a4b7c2cef0 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsListObjectsRequestIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjects.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall_sync]
+// [START storage_v2_generated_storageclient_listobjects_sync]
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.ListObjectsRequest;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListObjectsListObjectsRequestIterateAll {
+public class SyncListObjects {
 
   public static void main(String[] args) throws Exception {
-    listObjectsListObjectsRequestIterateAll();
+    syncListObjects();
   }
 
-  public static void listObjectsListObjectsRequestIterateAll() throws Exception {
+  public static void syncListObjects() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -54,4 +54,4 @@ public static void listObjectsListObjectsRequestIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listobjects_listobjectsrequestiterateall_sync]
+// [END storage_v2_generated_storageclient_listobjects_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsPaged.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsPaged.java
index cee30992cf..973cc73af6 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsCallableCallListObjectsRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsPaged.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest_sync]
+// [START storage_v2_generated_storageclient_listobjects_paged_sync]
 import com.google.common.base.Strings;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonRequestParams;
@@ -26,13 +26,13 @@
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListObjectsCallableCallListObjectsRequest {
+public class SyncListObjectsPaged {
 
   public static void main(String[] args) throws Exception {
-    listObjectsCallableCallListObjectsRequest();
+    syncListObjectsPaged();
   }
 
-  public static void listObjectsCallableCallListObjectsRequest() throws Exception {
+  public static void syncListObjectsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -65,4 +65,4 @@ public static void listObjectsCallableCallListObjectsRequest() throws Exception
     }
   }
 }
-// [END storage_v2_generated_storageclient_listobjects_callablecalllistobjectsrequest_sync]
+// [END storage_v2_generated_storageclient_listobjects_paged_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsProjectname.java
similarity index 86%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsProjectname.java
index 4dfb717dc0..9ee05a71bf 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsProjectNameIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsProjectname.java
@@ -16,18 +16,18 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listobjects_projectnameiterateall_sync]
+// [START storage_v2_generated_storageclient_listobjects_projectname_sync]
 import com.google.storage.v2.Object;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListObjectsProjectNameIterateAll {
+public class SyncListObjectsProjectname {
 
   public static void main(String[] args) throws Exception {
-    listObjectsProjectNameIterateAll();
+    syncListObjectsProjectname();
   }
 
-  public static void listObjectsProjectNameIterateAll() throws Exception {
+  public static void syncListObjectsProjectname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -38,4 +38,4 @@ public static void listObjectsProjectNameIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listobjects_projectnameiterateall_sync]
+// [END storage_v2_generated_storageclient_listobjects_projectname_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsString.java
similarity index 80%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsString.java
index d861d584ea..af5e56af56 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/ListObjectsStringIterateAll.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/listobjects/SyncListObjectsString.java
@@ -16,18 +16,18 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_listobjects_stringiterateall_sync]
+// [START storage_v2_generated_storageclient_listobjects_string_sync]
 import com.google.storage.v2.Object;
 import com.google.storage.v2.ProjectName;
 import com.google.storage.v2.StorageClient;
 
-public class ListObjectsStringIterateAll {
+public class SyncListObjectsString {
 
   public static void main(String[] args) throws Exception {
-    listObjectsStringIterateAll();
+    syncListObjectsString();
   }
 
-  public static void listObjectsStringIterateAll() throws Exception {
+  public static void syncListObjectsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -38,4 +38,4 @@ public static void listObjectsStringIterateAll() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_listobjects_stringiterateall_sync]
+// [END storage_v2_generated_storageclient_listobjects_string_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/AsyncLockBucketRetentionPolicy.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/AsyncLockBucketRetentionPolicy.java
index fb72ae4755..673dff68e4 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/AsyncLockBucketRetentionPolicy.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest_sync]
+// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.BucketName;
@@ -24,14 +24,13 @@
 import com.google.storage.v2.LockBucketRetentionPolicyRequest;
 import com.google.storage.v2.StorageClient;
 
-public class LockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest {
+public class AsyncLockBucketRetentionPolicy {
 
   public static void main(String[] args) throws Exception {
-    lockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest();
+    asyncLockBucketRetentionPolicy();
   }
 
-  public static void lockBucketRetentionPolicyCallableFutureCallLockBucketRetentionPolicyRequest()
-      throws Exception {
+  public static void asyncLockBucketRetentionPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -48,4 +47,4 @@ public static void lockBucketRetentionPolicyCallableFutureCallLockBucketRetentio
     }
   }
 }
-// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_callablefuturecalllockbucketretentionpolicyrequest_sync]
+// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicy.java
similarity index 83%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicy.java
index 891f2da2cb..beccf20906 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyLockBucketRetentionPolicyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest_sync]
+// [START storage_v2_generated_storageclient_lockbucketretentionpolicy_sync]
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.LockBucketRetentionPolicyRequest;
 import com.google.storage.v2.StorageClient;
 
-public class LockBucketRetentionPolicyLockBucketRetentionPolicyRequest {
+public class SyncLockBucketRetentionPolicy {
 
   public static void main(String[] args) throws Exception {
-    lockBucketRetentionPolicyLockBucketRetentionPolicyRequest();
+    syncLockBucketRetentionPolicy();
   }
 
-  public static void lockBucketRetentionPolicyLockBucketRetentionPolicyRequest() throws Exception {
+  public static void syncLockBucketRetentionPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -43,4 +43,4 @@ public static void lockBucketRetentionPolicyLockBucketRetentionPolicyRequest() t
     }
   }
 }
-// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_lockbucketretentionpolicyrequest_sync]
+// [END storage_v2_generated_storageclient_lockbucketretentionpolicy_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyBucketname.java
similarity index 88%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyBucketname.java
index d0c3a07875..12d98648a4 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyBucketName.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyBucketname.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.StorageClient;
 
-public class LockBucketRetentionPolicyBucketName {
+public class SyncLockBucketRetentionPolicyBucketname {
 
   public static void main(String[] args) throws Exception {
-    lockBucketRetentionPolicyBucketName();
+    syncLockBucketRetentionPolicyBucketname();
   }
 
-  public static void lockBucketRetentionPolicyBucketName() throws Exception {
+  public static void syncLockBucketRetentionPolicyBucketname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyString.java
similarity index 88%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyString.java
index c8b5c7c901..c41fb963b9 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/LockBucketRetentionPolicyString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyString.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.StorageClient;
 
-public class LockBucketRetentionPolicyString {
+public class SyncLockBucketRetentionPolicyString {
 
   public static void main(String[] args) throws Exception {
-    lockBucketRetentionPolicyString();
+    syncLockBucketRetentionPolicyString();
   }
 
-  public static void lockBucketRetentionPolicyString() throws Exception {
+  public static void syncLockBucketRetentionPolicyString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/AsyncQueryWriteStatus.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/AsyncQueryWriteStatus.java
index f5827ba358..6bde0ab004 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusCallableFutureCallQueryWriteStatusRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/AsyncQueryWriteStatus.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest_sync]
+// [START storage_v2_generated_storageclient_querywritestatus_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.QueryWriteStatusResponse;
 import com.google.storage.v2.StorageClient;
 
-public class QueryWriteStatusCallableFutureCallQueryWriteStatusRequest {
+public class AsyncQueryWriteStatus {
 
   public static void main(String[] args) throws Exception {
-    queryWriteStatusCallableFutureCallQueryWriteStatusRequest();
+    asyncQueryWriteStatus();
   }
 
-  public static void queryWriteStatusCallableFutureCallQueryWriteStatusRequest() throws Exception {
+  public static void asyncQueryWriteStatus() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -47,4 +47,4 @@ public static void queryWriteStatusCallableFutureCallQueryWriteStatusRequest() t
     }
   }
 }
-// [END storage_v2_generated_storageclient_querywritestatus_callablefuturecallquerywritestatusrequest_sync]
+// [END storage_v2_generated_storageclient_querywritestatus_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/SyncQueryWriteStatus.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/SyncQueryWriteStatus.java
index 31a2b38b7d..6c64cf890d 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusQueryWriteStatusRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/SyncQueryWriteStatus.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest_sync]
+// [START storage_v2_generated_storageclient_querywritestatus_sync]
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.QueryWriteStatusRequest;
 import com.google.storage.v2.QueryWriteStatusResponse;
 import com.google.storage.v2.StorageClient;
 
-public class QueryWriteStatusQueryWriteStatusRequest {
+public class SyncQueryWriteStatus {
 
   public static void main(String[] args) throws Exception {
-    queryWriteStatusQueryWriteStatusRequest();
+    syncQueryWriteStatus();
   }
 
-  public static void queryWriteStatusQueryWriteStatusRequest() throws Exception {
+  public static void syncQueryWriteStatus() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -43,4 +43,4 @@ public static void queryWriteStatusQueryWriteStatusRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_querywritestatus_querywritestatusrequest_sync]
+// [END storage_v2_generated_storageclient_querywritestatus_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/SyncQueryWriteStatusString.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/SyncQueryWriteStatusString.java
index 96f75aa350..1773b3d8dc 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/QueryWriteStatusString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/querywritestatus/SyncQueryWriteStatusString.java
@@ -20,13 +20,13 @@
 import com.google.storage.v2.QueryWriteStatusResponse;
 import com.google.storage.v2.StorageClient;
 
-public class QueryWriteStatusString {
+public class SyncQueryWriteStatusString {
 
   public static void main(String[] args) throws Exception {
-    queryWriteStatusString();
+    syncQueryWriteStatusString();
   }
 
-  public static void queryWriteStatusString() throws Exception {
+  public static void syncQueryWriteStatusString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/AsyncReadObjectStreamServer.java
similarity index 85%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/AsyncReadObjectStreamServer.java
index f83712365c..6a78d51f65 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/ReadObjectCallableCallReadObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/readobject/AsyncReadObjectStreamServer.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest_sync]
+// [START storage_v2_generated_storageclient_readobject_streamserver_async]
 import com.google.api.gax.rpc.ServerStream;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonObjectRequestParams;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.ReadObjectResponse;
 import com.google.storage.v2.StorageClient;
 
-public class ReadObjectCallableCallReadObjectRequest {
+public class AsyncReadObjectStreamServer {
 
   public static void main(String[] args) throws Exception {
-    readObjectCallableCallReadObjectRequest();
+    asyncReadObjectStreamServer();
   }
 
-  public static void readObjectCallableCallReadObjectRequest() throws Exception {
+  public static void asyncReadObjectStreamServer() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -57,4 +57,4 @@ public static void readObjectCallableCallReadObjectRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_readobject_callablecallreadobjectrequest_sync]
+// [END storage_v2_generated_storageclient_readobject_streamserver_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/AsyncRewriteObject.java
similarity index 88%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/AsyncRewriteObject.java
index c5efffccae..1604bfc412 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectCallableFutureCallRewriteObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/AsyncRewriteObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest_sync]
+// [START storage_v2_generated_storageclient_rewriteobject_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.ByteString;
 import com.google.storage.v2.BucketName;
@@ -29,13 +29,13 @@
 import com.google.storage.v2.RewriteResponse;
 import com.google.storage.v2.StorageClient;
 
-public class RewriteObjectCallableFutureCallRewriteObjectRequest {
+public class AsyncRewriteObject {
 
   public static void main(String[] args) throws Exception {
-    rewriteObjectCallableFutureCallRewriteObjectRequest();
+    asyncRewriteObject();
   }
 
-  public static void rewriteObjectCallableFutureCallRewriteObjectRequest() throws Exception {
+  public static void asyncRewriteObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -73,4 +73,4 @@ public static void rewriteObjectCallableFutureCallRewriteObjectRequest() throws
     }
   }
 }
-// [END storage_v2_generated_storageclient_rewriteobject_callablefuturecallrewriteobjectrequest_sync]
+// [END storage_v2_generated_storageclient_rewriteobject_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/SyncRewriteObject.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/SyncRewriteObject.java
index d22069b526..3e7b7daa21 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/RewriteObjectRewriteObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/rewriteobject/SyncRewriteObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest_sync]
+// [START storage_v2_generated_storageclient_rewriteobject_sync]
 import com.google.protobuf.ByteString;
 import com.google.storage.v2.BucketName;
 import com.google.storage.v2.CommonObjectRequestParams;
@@ -28,13 +28,13 @@
 import com.google.storage.v2.RewriteResponse;
 import com.google.storage.v2.StorageClient;
 
-public class RewriteObjectRewriteObjectRequest {
+public class SyncRewriteObject {
 
   public static void main(String[] args) throws Exception {
-    rewriteObjectRewriteObjectRequest();
+    syncRewriteObject();
   }
 
-  public static void rewriteObjectRewriteObjectRequest() throws Exception {
+  public static void syncRewriteObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -70,4 +70,4 @@ public static void rewriteObjectRewriteObjectRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_rewriteobject_rewriteobjectrequest_sync]
+// [END storage_v2_generated_storageclient_rewriteobject_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/AsyncSetIamPolicy.java
index af95756b1d..1eb491322a 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyCallableFutureCallSetIamPolicyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/AsyncSetIamPolicy.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [START storage_v2_generated_storageclient_setiampolicy_async]
 import com.google.api.core.ApiFuture;
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 
-public class SetIamPolicyCallableFutureCallSetIamPolicyRequest {
+public class AsyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicyCallableFutureCallSetIamPolicyRequest();
+    asyncSetIamPolicy();
   }
 
-  public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Exception {
+  public static void asyncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -46,4 +46,4 @@ public static void setIamPolicyCallableFutureCallSetIamPolicyRequest() throws Ex
     }
   }
 }
-// [END storage_v2_generated_storageclient_setiampolicy_callablefuturecallsetiampolicyrequest_sync]
+// [END storage_v2_generated_storageclient_setiampolicy_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicy.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicy.java
index 823993bebc..33d33e821c 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicySetIamPolicyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicy.java
@@ -16,19 +16,19 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest_sync]
+// [START storage_v2_generated_storageclient_setiampolicy_sync]
 import com.google.iam.v1.Policy;
 import com.google.iam.v1.SetIamPolicyRequest;
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 
-public class SetIamPolicySetIamPolicyRequest {
+public class SyncSetIamPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicySetIamPolicyRequest();
+    syncSetIamPolicy();
   }
 
-  public static void setIamPolicySetIamPolicyRequest() throws Exception {
+  public static void syncSetIamPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -43,4 +43,4 @@ public static void setIamPolicySetIamPolicyRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_setiampolicy_setiampolicyrequest_sync]
+// [END storage_v2_generated_storageclient_setiampolicy_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 91cc75d1a3..6080756e39 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyResourceNamePolicy.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -22,13 +22,13 @@
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 
-public class SetIamPolicyResourceNamePolicy {
+public class SyncSetIamPolicyResourcenamePolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicyResourceNamePolicy();
+    syncSetIamPolicyResourcenamePolicy();
   }
 
-  public static void setIamPolicyResourceNamePolicy() throws Exception {
+  public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
similarity index 90%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
index d87e25895f..1a3e3952d6 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SetIamPolicyStringPolicy.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 
-public class SetIamPolicyStringPolicy {
+public class SyncSetIamPolicyStringPolicy {
 
   public static void main(String[] args) throws Exception {
-    setIamPolicyStringPolicy();
+    syncSetIamPolicyStringPolicy();
   }
 
-  public static void setIamPolicyStringPolicy() throws Exception {
+  public static void syncSetIamPolicyStringPolicy() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/AsyncStartResumableWrite.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/AsyncStartResumableWrite.java
index 44e0575ddd..cda98a25c3 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteCallableFutureCallStartResumableWriteRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/AsyncStartResumableWrite.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest_sync]
+// [START storage_v2_generated_storageclient_startresumablewrite_async]
 import com.google.api.core.ApiFuture;
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
@@ -25,14 +25,13 @@
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.WriteObjectSpec;
 
-public class StartResumableWriteCallableFutureCallStartResumableWriteRequest {
+public class AsyncStartResumableWrite {
 
   public static void main(String[] args) throws Exception {
-    startResumableWriteCallableFutureCallStartResumableWriteRequest();
+    asyncStartResumableWrite();
   }
 
-  public static void startResumableWriteCallableFutureCallStartResumableWriteRequest()
-      throws Exception {
+  public static void asyncStartResumableWrite() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -49,4 +48,4 @@ public static void startResumableWriteCallableFutureCallStartResumableWriteReque
     }
   }
 }
-// [END storage_v2_generated_storageclient_startresumablewrite_callablefuturecallstartresumablewriterequest_sync]
+// [END storage_v2_generated_storageclient_startresumablewrite_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/SyncStartResumableWrite.java
similarity index 87%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/SyncStartResumableWrite.java
index ba6db4e037..f42aad7ba1 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/StartResumableWriteStartResumableWriteRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/startresumablewrite/SyncStartResumableWrite.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest_sync]
+// [START storage_v2_generated_storageclient_startresumablewrite_sync]
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.StartResumableWriteRequest;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.WriteObjectSpec;
 
-public class StartResumableWriteStartResumableWriteRequest {
+public class SyncStartResumableWrite {
 
   public static void main(String[] args) throws Exception {
-    startResumableWriteStartResumableWriteRequest();
+    syncStartResumableWrite();
   }
 
-  public static void startResumableWriteStartResumableWriteRequest() throws Exception {
+  public static void syncStartResumableWrite() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -44,4 +44,4 @@ public static void startResumableWriteStartResumableWriteRequest() throws Except
     }
   }
 }
-// [END storage_v2_generated_storageclient_startresumablewrite_startresumablewriterequest_sync]
+// [END storage_v2_generated_storageclient_startresumablewrite_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 81%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/AsyncTestIamPermissions.java
index 1af69074c9..35d7d6ddba 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsCallableFutureCallTestIamPermissionsRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/AsyncTestIamPermissions.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [START storage_v2_generated_storageclient_testiampermissions_async]
 import com.google.api.core.ApiFuture;
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
@@ -24,14 +24,13 @@
 import com.google.storage.v2.StorageClient;
 import java.util.ArrayList;
 
-public class TestIamPermissionsCallableFutureCallTestIamPermissionsRequest {
+public class AsyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsCallableFutureCallTestIamPermissionsRequest();
+    asyncTestIamPermissions();
   }
 
-  public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest()
-      throws Exception {
+  public static void asyncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -49,4 +48,4 @@ public static void testIamPermissionsCallableFutureCallTestIamPermissionsRequest
     }
   }
 }
-// [END storage_v2_generated_storageclient_testiampermissions_callablefuturecalltestiampermissionsrequest_sync]
+// [END storage_v2_generated_storageclient_testiampermissions_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissions.java
similarity index 83%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissions.java
index 4cd1c9c4d7..89f1c42b2f 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsTestIamPermissionsRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissions.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest_sync]
+// [START storage_v2_generated_storageclient_testiampermissions_sync]
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.storage.v2.CryptoKeyName;
 import com.google.storage.v2.StorageClient;
 import java.util.ArrayList;
 
-public class TestIamPermissionsTestIamPermissionsRequest {
+public class SyncTestIamPermissions {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsTestIamPermissionsRequest();
+    syncTestIamPermissions();
   }
 
-  public static void testIamPermissionsTestIamPermissionsRequest() throws Exception {
+  public static void syncTestIamPermissions() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -44,4 +44,4 @@ public static void testIamPermissionsTestIamPermissionsRequest() throws Exceptio
     }
   }
 }
-// [END storage_v2_generated_storageclient_testiampermissions_testiampermissionsrequest_sync]
+// [END storage_v2_generated_storageclient_testiampermissions_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index a819b1c39d..8e70be7ca6 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsResourceNameListString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -24,13 +24,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class TestIamPermissionsResourceNameListString {
+public class SyncTestIamPermissionsResourcenameListstring {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsResourceNameListString();
+    syncTestIamPermissionsResourcenameListstring();
   }
 
-  public static void testIamPermissionsResourceNameListString() throws Exception {
+  public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index 93324f38c9..846349cc06 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/TestIamPermissionsStringListString.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -23,13 +23,13 @@
 import java.util.ArrayList;
 import java.util.List;
 
-public class TestIamPermissionsStringListString {
+public class SyncTestIamPermissionsStringListstring {
 
   public static void main(String[] args) throws Exception {
-    testIamPermissionsStringListString();
+    syncTestIamPermissionsStringListstring();
   }
 
-  public static void testIamPermissionsStringListString() throws Exception {
+  public static void syncTestIamPermissionsStringListstring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/AsyncUpdateBucket.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/AsyncUpdateBucket.java
index a103fbe0db..934973bfe7 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketCallableFutureCallUpdateBucketRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/AsyncUpdateBucket.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest_sync]
+// [START storage_v2_generated_storageclient_updatebucket_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.Bucket;
@@ -26,13 +26,13 @@
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.UpdateBucketRequest;
 
-public class UpdateBucketCallableFutureCallUpdateBucketRequest {
+public class AsyncUpdateBucket {
 
   public static void main(String[] args) throws Exception {
-    updateBucketCallableFutureCallUpdateBucketRequest();
+    asyncUpdateBucket();
   }
 
-  public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Exception {
+  public static void asyncUpdateBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -52,4 +52,4 @@ public static void updateBucketCallableFutureCallUpdateBucketRequest() throws Ex
     }
   }
 }
-// [END storage_v2_generated_storageclient_updatebucket_callablefuturecallupdatebucketrequest_sync]
+// [END storage_v2_generated_storageclient_updatebucket_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/SyncUpdateBucket.java
similarity index 85%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/SyncUpdateBucket.java
index 89436c2c9c..b8afbabbe8 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketUpdateBucketRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/SyncUpdateBucket.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_updatebucket_updatebucketrequest_sync]
+// [START storage_v2_generated_storageclient_updatebucket_sync]
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.CommonRequestParams;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.UpdateBucketRequest;
 
-public class UpdateBucketUpdateBucketRequest {
+public class SyncUpdateBucket {
 
   public static void main(String[] args) throws Exception {
-    updateBucketUpdateBucketRequest();
+    syncUpdateBucket();
   }
 
-  public static void updateBucketUpdateBucketRequest() throws Exception {
+  public static void syncUpdateBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -49,4 +49,4 @@ public static void updateBucketUpdateBucketRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_updatebucket_updatebucketrequest_sync]
+// [END storage_v2_generated_storageclient_updatebucket_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/SyncUpdateBucketBucketFieldmask.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/SyncUpdateBucketBucketFieldmask.java
index 00d74052c0..0372766b0f 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/UpdateBucketBucketFieldMask.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatebucket/SyncUpdateBucketBucketFieldmask.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.Bucket;
 import com.google.storage.v2.StorageClient;
 
-public class UpdateBucketBucketFieldMask {
+public class SyncUpdateBucketBucketFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateBucketBucketFieldMask();
+    syncUpdateBucketBucketFieldmask();
   }
 
-  public static void updateBucketBucketFieldMask() throws Exception {
+  public static void syncUpdateBucketBucketFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/AsyncUpdateHmacKey.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/AsyncUpdateHmacKey.java
index f1d0d2f4a0..d000d53b42 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/AsyncUpdateHmacKey.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest_sync]
+// [START storage_v2_generated_storageclient_updatehmackey_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonRequestParams;
@@ -24,13 +24,13 @@
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.UpdateHmacKeyRequest;
 
-public class UpdateHmacKeyCallableFutureCallUpdateHmacKeyRequest {
+public class AsyncUpdateHmacKey {
 
   public static void main(String[] args) throws Exception {
-    updateHmacKeyCallableFutureCallUpdateHmacKeyRequest();
+    asyncUpdateHmacKey();
   }
 
-  public static void updateHmacKeyCallableFutureCallUpdateHmacKeyRequest() throws Exception {
+  public static void asyncUpdateHmacKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -46,4 +46,4 @@ public static void updateHmacKeyCallableFutureCallUpdateHmacKeyRequest() throws
     }
   }
 }
-// [END storage_v2_generated_storageclient_updatehmackey_callablefuturecallupdatehmackeyrequest_sync]
+// [END storage_v2_generated_storageclient_updatehmackey_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/SyncUpdateHmacKey.java
similarity index 82%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/SyncUpdateHmacKey.java
index a32bda5b83..64ed3fcd93 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyUpdateHmacKeyRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/SyncUpdateHmacKey.java
@@ -16,20 +16,20 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest_sync]
+// [START storage_v2_generated_storageclient_updatehmackey_sync]
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonRequestParams;
 import com.google.storage.v2.HmacKeyMetadata;
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.UpdateHmacKeyRequest;
 
-public class UpdateHmacKeyUpdateHmacKeyRequest {
+public class SyncUpdateHmacKey {
 
   public static void main(String[] args) throws Exception {
-    updateHmacKeyUpdateHmacKeyRequest();
+    syncUpdateHmacKey();
   }
 
-  public static void updateHmacKeyUpdateHmacKeyRequest() throws Exception {
+  public static void syncUpdateHmacKey() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -43,4 +43,4 @@ public static void updateHmacKeyUpdateHmacKeyRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_updatehmackey_updatehmackeyrequest_sync]
+// [END storage_v2_generated_storageclient_updatehmackey_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/SyncUpdateHmacKeyHmackeymetadataFieldmask.java
similarity index 88%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/SyncUpdateHmacKeyHmackeymetadataFieldmask.java
index d54ca614a4..b31e510410 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/UpdateHmacKeyHmacKeyMetadataFieldMask.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updatehmackey/SyncUpdateHmacKeyHmackeymetadataFieldmask.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.HmacKeyMetadata;
 import com.google.storage.v2.StorageClient;
 
-public class UpdateHmacKeyHmacKeyMetadataFieldMask {
+public class SyncUpdateHmacKeyHmackeymetadataFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateHmacKeyHmacKeyMetadataFieldMask();
+    syncUpdateHmacKeyHmackeymetadataFieldmask();
   }
 
-  public static void updateHmacKeyHmacKeyMetadataFieldMask() throws Exception {
+  public static void syncUpdateHmacKeyHmackeymetadataFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/AsyncUpdateObject.java
similarity index 83%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/AsyncUpdateObject.java
index 636aaa368b..c7843492aa 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectCallableFutureCallUpdateObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/AsyncUpdateObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest_sync]
+// [START storage_v2_generated_storageclient_updateobject_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonObjectRequestParams;
@@ -26,13 +26,13 @@
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.UpdateObjectRequest;
 
-public class UpdateObjectCallableFutureCallUpdateObjectRequest {
+public class AsyncUpdateObject {
 
   public static void main(String[] args) throws Exception {
-    updateObjectCallableFutureCallUpdateObjectRequest();
+    asyncUpdateObject();
   }
 
-  public static void updateObjectCallableFutureCallUpdateObjectRequest() throws Exception {
+  public static void asyncUpdateObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -54,4 +54,4 @@ public static void updateObjectCallableFutureCallUpdateObjectRequest() throws Ex
     }
   }
 }
-// [END storage_v2_generated_storageclient_updateobject_callablefuturecallupdateobjectrequest_sync]
+// [END storage_v2_generated_storageclient_updateobject_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/SyncUpdateObject.java
similarity index 85%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/SyncUpdateObject.java
index cd6114ca49..c419c0997e 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectUpdateObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/SyncUpdateObject.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_updateobject_updateobjectrequest_sync]
+// [START storage_v2_generated_storageclient_updateobject_sync]
 import com.google.protobuf.FieldMask;
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.StorageClient;
 import com.google.storage.v2.UpdateObjectRequest;
 
-public class UpdateObjectUpdateObjectRequest {
+public class SyncUpdateObject {
 
   public static void main(String[] args) throws Exception {
-    updateObjectUpdateObjectRequest();
+    syncUpdateObject();
   }
 
-  public static void updateObjectUpdateObjectRequest() throws Exception {
+  public static void syncUpdateObject() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -51,4 +51,4 @@ public static void updateObjectUpdateObjectRequest() throws Exception {
     }
   }
 }
-// [END storage_v2_generated_storageclient_updateobject_updateobjectrequest_sync]
+// [END storage_v2_generated_storageclient_updateobject_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/SyncUpdateObjectObjectFieldmask.java
similarity index 89%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/SyncUpdateObjectObjectFieldmask.java
index 742765edfe..37be7ce67e 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/UpdateObjectObjectFieldMask.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/updateobject/SyncUpdateObjectObjectFieldmask.java
@@ -21,13 +21,13 @@
 import com.google.storage.v2.Object;
 import com.google.storage.v2.StorageClient;
 
-public class UpdateObjectObjectFieldMask {
+public class SyncUpdateObjectObjectFieldmask {
 
   public static void main(String[] args) throws Exception {
-    updateObjectObjectFieldMask();
+    syncUpdateObjectObjectFieldmask();
   }
 
-  public static void updateObjectObjectFieldMask() throws Exception {
+  public static void syncUpdateObjectObjectFieldmask() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/AsyncWriteObjectStreamClient.java
similarity index 85%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/AsyncWriteObjectStreamClient.java
index dddeab8cc8..d837384c5e 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/WriteObjectClientStreamingCallWriteObjectRequest.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storageclient/writeobject/AsyncWriteObjectStreamClient.java
@@ -16,7 +16,7 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest_sync]
+// [START storage_v2_generated_storageclient_writeobject_streamclient_async]
 import com.google.api.gax.rpc.ApiStreamObserver;
 import com.google.storage.v2.CommonObjectRequestParams;
 import com.google.storage.v2.CommonRequestParams;
@@ -25,13 +25,13 @@
 import com.google.storage.v2.WriteObjectRequest;
 import com.google.storage.v2.WriteObjectResponse;
 
-public class WriteObjectClientStreamingCallWriteObjectRequest {
+public class AsyncWriteObjectStreamClient {
 
   public static void main(String[] args) throws Exception {
-    writeObjectClientStreamingCallWriteObjectRequest();
+    asyncWriteObjectStreamClient();
   }
 
-  public static void writeObjectClientStreamingCallWriteObjectRequest() throws Exception {
+  public static void asyncWriteObjectStreamClient() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (StorageClient storageClient = StorageClient.create()) {
@@ -66,4 +66,4 @@ public void onCompleted() {
     }
   }
 }
-// [END storage_v2_generated_storageclient_writeobject_clientstreamingcallwriteobjectrequest_sync]
+// [END storage_v2_generated_storageclient_writeobject_streamclient_async]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/SyncDeleteBucket.java
similarity index 76%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/SyncDeleteBucket.java
index 9d1c6c552f..c3142e4592 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageSettings.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/storagesettings/deletebucket/SyncDeleteBucket.java
@@ -16,17 +16,17 @@
 
 package com.google.storage.v2.samples;
 
-// [START storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings_sync]
+// [START storage_v2_generated_storagesettings_deletebucket_sync]
 import com.google.storage.v2.StorageSettings;
 import java.time.Duration;
 
-public class DeleteBucketSettingsSetRetrySettingsStorageSettings {
+public class SyncDeleteBucket {
 
   public static void main(String[] args) throws Exception {
-    deleteBucketSettingsSetRetrySettingsStorageSettings();
+    syncDeleteBucket();
   }
 
-  public static void deleteBucketSettingsSetRetrySettingsStorageSettings() throws Exception {
+  public static void syncDeleteBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     StorageSettings.Builder storageSettingsBuilder = StorageSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void deleteBucketSettingsSetRetrySettingsStorageSettings() throws
     StorageSettings storageSettings = storageSettingsBuilder.build();
   }
 }
-// [END storage_v2_generated_storagesettings_deletebucket_settingssetretrysettingsstoragesettings_sync]
+// [END storage_v2_generated_storagesettings_deletebucket_sync]
diff --git a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/SyncDeleteBucket.java
similarity index 79%
rename from test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java
rename to test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/SyncDeleteBucket.java
index 0c09ee6b9a..b5a72564d3 100644
--- a/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/DeleteBucketSettingsSetRetrySettingsStorageStubSettings.java
+++ b/test/integration/goldens/storage/samples/generated/src/com/google/storage/v2/stub/storagestubsettings/deletebucket/SyncDeleteBucket.java
@@ -16,17 +16,17 @@
 
 package com.google.storage.v2.stub.samples;
 
-// [START storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings_sync]
+// [START storage_v2_generated_storagestubsettings_deletebucket_sync]
 import com.google.storage.v2.stub.StorageStubSettings;
 import java.time.Duration;
 
-public class DeleteBucketSettingsSetRetrySettingsStorageStubSettings {
+public class SyncDeleteBucket {
 
   public static void main(String[] args) throws Exception {
-    deleteBucketSettingsSetRetrySettingsStorageStubSettings();
+    syncDeleteBucket();
   }
 
-  public static void deleteBucketSettingsSetRetrySettingsStorageStubSettings() throws Exception {
+  public static void syncDeleteBucket() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     StorageStubSettings.Builder storageSettingsBuilder = StorageStubSettings.newBuilder();
@@ -42,4 +42,4 @@ public static void deleteBucketSettingsSetRetrySettingsStorageStubSettings() thr
     StorageStubSettings storageSettings = storageSettingsBuilder.build();
   }
 }
-// [END storage_v2_generated_storagestubsettings_deletebucket_settingssetretrysettingsstoragestubsettings_sync]
+// [END storage_v2_generated_storagestubsettings_deletebucket_sync]

From 77a4d7d94e329f3cb9813a66ec87c748c27c1ec4 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 12:27:47 -0700
Subject: [PATCH 23/29] refactor: unit goldens - update sample naming, nit
 fixes

---
 .../SyncAddApacheLicenseSample.golden}        |  6 ++--
 .../grpc/ServiceClientClassComposerTest.java  |  6 +---
 .../ServiceSettingsClassComposerTest.java     |  7 ++--
 .../ServiceStubSettingsClassComposerTest.java |  7 ++--
 ...BookRequest.golden => AsyncGetBook.golden} | 10 +++---
 ...> SyncCreateSetCredentialsProvider.golden} | 10 +++---
 ...s2.golden => SyncCreateSetEndpoint.golden} | 10 +++---
 ...tBookRequest.golden => SyncGetBook.golden} | 10 +++---
 ...k.golden => SyncGetBookIntListbook.golden} |  6 ++--
 ...olden => SyncGetBookStringListbook.golden} |  6 ++--
 ...quest.golden => AsyncFastFibonacci.golden} | 10 +++---
 ...quest.golden => AsyncSlowFibonacci.golden} | 10 +++---
 ...> SyncCreateSetCredentialsProvider.golden} | 10 +++---
 ...s2.golden => SyncCreateSetEndpoint.golden} | 10 +++---
 ...equest.golden => SyncFastFibonacci.golden} | 10 +++---
 ...equest.golden => SyncSlowFibonacci.golden} | 10 +++---
 ...lBlockRequest.golden => AsyncBlock.golden} | 10 +++---
 ...golden => AsyncChatAgainStreamBidi.golden} | 10 +++---
 ...uest.golden => AsyncChatStreamBidi.golden} | 10 +++---
 ...golden => AsyncCollectStreamClient.golden} | 10 +++---
 ...Request.golden => AsyncCollideName.golden} | 10 +++---
 ...allEchoRequest.golden => AsyncEcho.golden} | 10 +++---
 ....golden => AsyncExpandStreamServer.golden} | 10 +++---
 ...n => AsyncPagedExpandPagedCallable.golden} | 10 +++---
 ...syncSimplePagedExpandPagedCallable.golden} | 10 +++---
 ...allWaitRequest.golden => AsyncWait.golden} | 10 +++---
 ...lden => AsyncWaitOperationCallable.golden} | 10 +++---
 ...ckBlockRequest.golden => SyncBlock.golden} | 10 +++---
 ...oRequest.golden => SyncCollideName.golden} | 10 +++---
 ...> SyncCreateSetCredentialsProvider.golden} | 10 +++---
 ...s2.golden => SyncCreateSetEndpoint.golden} | 10 +++---
 .../{Echo.golden => SyncEcho.golden}          |  6 ++--
 ...choEchoRequest.golden => SyncEcho1.golden} | 10 +++---
 ...rName.golden => SyncEchoFoobarname.golden} |  6 ++--
 ...ame.golden => SyncEchoResourcename.golden} |  6 ++--
 ...choStatus.golden => SyncEchoStatus.golden} |  6 ++--
 ...hoString1.golden => SyncEchoString.golden} | 10 +++---
 ...oString2.golden => SyncEchoString1.golden} | 10 +++---
 ...oString3.golden => SyncEchoString2.golden} | 10 +++---
 ...y.golden => SyncEchoStringSeverity.golden} |  6 ++--
 ...erateAll.golden => SyncPagedExpand.golden} | 10 +++---
 ...est.golden => SyncPagedExpandPaged.golden} | 10 +++---
 ...ll.golden => SyncSimplePagedExpand.golden} | 10 +++---
 ...l.golden => SyncSimplePagedExpand1.golden} | 10 +++---
 ...lden => SyncSimplePagedExpandPaged.golden} | 10 +++---
 ...cWaitRequestGet.golden => SyncWait.golden} | 10 +++---
 ...tionGet.golden => SyncWaitDuration.golden} | 10 +++---
 ...ampGet.golden => SyncWaitTimestamp.golden} | 10 +++---
 ...rRequest.golden => AsyncCreateUser.golden} | 10 +++---
 ...rRequest.golden => AsyncDeleteUser.golden} | 10 +++---
 ...UserRequest.golden => AsyncGetUser.golden} | 10 +++---
 ...den => AsyncListUsersPagedCallable.golden} | 10 +++---
 ...rRequest.golden => AsyncUpdateUser.golden} | 10 +++---
 ...> SyncCreateSetCredentialsProvider.golden} | 10 +++---
 ...s2.golden => SyncCreateSetEndpoint.golden} | 10 +++---
 ...erRequest.golden => SyncCreateUser.golden} | 10 +++---
 ...> SyncCreateUserStringStringString.golden} |  6 ++--
 ...StringStringIntStringBooleanDouble.golden} |  6 ++--
 ...gStringIntStringStringStringString.golden} |  6 ++--
 ...erRequest.golden => SyncDeleteUser.golden} | 10 +++---
 ...ing.golden => SyncDeleteUserString.golden} |  6 ++--
 ...e.golden => SyncDeleteUserUsername.golden} |  6 ++--
 ...tUserRequest.golden => SyncGetUser.golden} | 10 +++---
 ...String.golden => SyncGetUserString.golden} |  6 ++--
 ...Name.golden => SyncGetUserUsername.golden} |  6 ++--
 ...IterateAll.golden => SyncListUsers.golden} | 10 +++---
 ...quest.golden => SyncListUsersPaged.golden} | 10 +++---
 ...erRequest.golden => SyncUpdateUser.golden} | 10 +++---
 ...t.golden => AsyncConnectStreamBidi.golden} | 10 +++---
 ...Request.golden => AsyncCreateBlurb.golden} | 10 +++---
 ...mRequest.golden => AsyncCreateRoom.golden} | 10 +++---
 ...Request.golden => AsyncDeleteBlurb.golden} | 10 +++---
 ...mRequest.golden => AsyncDeleteRoom.golden} | 10 +++---
 ...urbRequest.golden => AsyncGetBlurb.golden} | 10 +++---
 ...RoomRequest.golden => AsyncGetRoom.golden} | 10 +++---
 ...en => AsyncListBlurbsPagedCallable.golden} | 10 +++---
 ...den => AsyncListRoomsPagedCallable.golden} | 10 +++---
 ...equest.golden => AsyncSearchBlurbs.golden} | 10 +++---
 ...AsyncSearchBlurbsOperationCallable.golden} | 10 +++---
 ...den => AsyncSendBlurbsStreamClient.golden} | 10 +++---
 ...n => AsyncStreamBlurbsStreamServer.golden} | 10 +++---
 ...Request.golden => AsyncUpdateBlurb.golden} | 10 +++---
 ...mRequest.golden => AsyncUpdateRoom.golden} | 10 +++---
 ...bRequest.golden => SyncCreateBlurb.golden} | 10 +++---
 ...ncCreateBlurbProfilenameBytestring.golden} |  6 ++--
 ...> SyncCreateBlurbProfilenameString.golden} |  6 ++--
 ... SyncCreateBlurbRoomnameBytestring.golden} |  6 ++--
 ...n => SyncCreateBlurbRoomnameString.golden} |  6 ++--
 ...=> SyncCreateBlurbStringBytestring.golden} |  6 ++--
 ...den => SyncCreateBlurbStringString.golden} |  6 ++--
 ...omRequest.golden => SyncCreateRoom.golden} | 10 +++---
 ...lden => SyncCreateRoomStringString.golden} |  6 ++--
 ...> SyncCreateSetCredentialsProvider.golden} | 10 +++---
 ...s2.golden => SyncCreateSetEndpoint.golden} | 10 +++---
 ...bRequest.golden => SyncDeleteBlurb.golden} | 10 +++---
 ...golden => SyncDeleteBlurbBlurbname.golden} |  6 ++--
 ...ng.golden => SyncDeleteBlurbString.golden} |  6 ++--
 ...omRequest.golden => SyncDeleteRoom.golden} | 10 +++---
 ...e.golden => SyncDeleteRoomRoomname.golden} |  6 ++--
 ...ing.golden => SyncDeleteRoomString.golden} |  6 ++--
 ...lurbRequest.golden => SyncGetBlurb.golden} | 10 +++---
 ...me.golden => SyncGetBlurbBlurbname.golden} |  6 ++--
 ...tring.golden => SyncGetBlurbString.golden} |  6 ++--
 ...tRoomRequest.golden => SyncGetRoom.golden} | 10 +++---
 ...Name.golden => SyncGetRoomRoomname.golden} |  6 ++--
 ...String.golden => SyncGetRoomString.golden} |  6 ++--
 ...terateAll.golden => SyncListBlurbs.golden} | 10 +++---
 ...uest.golden => SyncListBlurbsPaged.golden} | 10 +++---
 ...olden => SyncListBlurbsProfilename.golden} | 10 +++---
 ...l.golden => SyncListBlurbsRoomname.golden} | 10 +++---
 ...All.golden => SyncListBlurbsString.golden} | 10 +++---
 ...IterateAll.golden => SyncListRooms.golden} | 10 +++---
 ...quest.golden => SyncListRoomsPaged.golden} | 10 +++---
 ...uestGet.golden => SyncSearchBlurbs.golden} | 10 +++---
 ...t.golden => SyncSearchBlurbsString.golden} | 10 +++---
 ...bRequest.golden => SyncUpdateBlurb.golden} | 10 +++---
 ...omRequest.golden => SyncUpdateRoom.golden} | 10 +++---
 ...ngsEchoSettings.golden => SyncEcho.golden} | 10 +++---
 ...ttings.golden => SyncFastFibonacci.golden} | 11 +++----
 .../SyncCreateTopic.golden}                   | 10 +++---
 .../SyncDeleteLog.golden}                     | 11 +++----
 .../SyncEcho.golden}                          | 10 +++---
 .../SyncFastFibonacci.golden}                 | 11 +++----
 .../samplecode/SampleCodeWriterTest.java      |  6 ++--
 .../samplecode/SampleComposerTest.java        | 24 +++++++-------
 ...ceClientUnaryMethodSampleComposerTest.java | 12 +++----
 .../SettingsSampleComposerTest.java           |  9 ++++--
 .../generator/gapic/model/RegionTagTest.java  | 14 ++++----
 .../api/generator/gapic/model/SampleTest.java |  8 +++--
 .../api/generator/test/framework/Assert.java  | 32 ++++++-------------
 .../api/generator/test/framework/Utils.java   | 10 ++++++
 131 files changed, 609 insertions(+), 609 deletions(-)
 rename src/test/java/com/google/api/generator/gapic/composer/goldens/{AddApacheLicenseSample.golden => samples/SyncAddApacheLicenseSample.golden} (87%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/{GetBookCallableFutureCallGetBookRequest.golden => AsyncGetBook.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/{CreateBookshopSettings1.golden => SyncCreateSetCredentialsProvider.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/{CreateBookshopSettings2.golden => SyncCreateSetEndpoint.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/{GetBookGetBookRequest.golden => SyncGetBook.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/{GetBookIntListBook.golden => SyncGetBookIntListbook.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/{GetBookStringListBook.golden => SyncGetBookStringListbook.golden} (90%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/{FastFibonacciCallableFutureCallFibonacciRequest.golden => AsyncFastFibonacci.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/{SlowFibonacciCallableFutureCallFibonacciRequest.golden => AsyncSlowFibonacci.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/{CreateDeprecatedServiceSettings1.golden => SyncCreateSetCredentialsProvider.golden} (84%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/{CreateDeprecatedServiceSettings2.golden => SyncCreateSetEndpoint.golden} (82%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/{FastFibonacciFibonacciRequest.golden => SyncFastFibonacci.golden} (86%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/{SlowFibonacciFibonacciRequest.golden => SyncSlowFibonacci.golden} (86%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{BlockCallableFutureCallBlockRequest.golden => AsyncBlock.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{ChatAgainCallableCallEchoRequest.golden => AsyncChatAgainStreamBidi.golden} (84%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{ChatCallableCallEchoRequest.golden => AsyncChatStreamBidi.golden} (85%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{CollectClientStreamingCallEchoRequest.golden => AsyncCollectStreamClient.golden} (87%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{CollideNameCallableFutureCallEchoRequest.golden => AsyncCollideName.golden} (82%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoCallableFutureCallEchoRequest.golden => AsyncEcho.golden} (84%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{ExpandCallableCallExpandRequest.golden => AsyncExpandStreamServer.golden} (81%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{PagedExpandPagedCallableFutureCallPagedExpandRequest.golden => AsyncPagedExpandPagedCallable.golden} (85%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden => AsyncSimplePagedExpandPagedCallable.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{WaitCallableFutureCallWaitRequest.golden => AsyncWait.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{WaitOperationCallableFutureCallWaitRequest.golden => AsyncWaitOperationCallable.golden} (86%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{BlockBlockRequest.golden => SyncBlock.golden} (82%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{CollideNameEchoRequest.golden => SyncCollideName.golden} (85%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{CreateEchoSettings1.golden => SyncCreateSetCredentialsProvider.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{CreateEchoSettings2.golden => SyncCreateSetEndpoint.golden} (81%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{Echo.golden => SyncEcho.golden} (92%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoEchoRequest.golden => SyncEcho1.golden} (87%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoFoobarName.golden => SyncEchoFoobarname.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoResourceName.golden => SyncEchoResourcename.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoStatus.golden => SyncEchoStatus.golden} (92%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoString1.golden => SyncEchoString.golden} (82%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoString2.golden => SyncEchoString1.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoString3.golden => SyncEchoString2.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{EchoStringSeverity.golden => SyncEchoStringSeverity.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{PagedExpandPagedExpandRequestIterateAll.golden => SyncPagedExpand.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{PagedExpandCallableCallPagedExpandRequest.golden => SyncPagedExpandPaged.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{SimplePagedExpandIterateAll.golden => SyncSimplePagedExpand.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{SimplePagedExpandPagedExpandRequestIterateAll.golden => SyncSimplePagedExpand1.golden} (78%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{SimplePagedExpandCallableCallPagedExpandRequest.golden => SyncSimplePagedExpandPaged.golden} (82%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{WaitAsyncWaitRequestGet.golden => SyncWait.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{WaitAsyncDurationGet.golden => SyncWaitDuration.golden} (81%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/{WaitAsyncTimestampGet.golden => SyncWaitTimestamp.golden} (81%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{CreateUserCallableFutureCallCreateUserRequest.golden => AsyncCreateUser.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{DeleteUserCallableFutureCallDeleteUserRequest.golden => AsyncDeleteUser.golden} (77%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{GetUserCallableFutureCallGetUserRequest.golden => AsyncGetUser.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{ListUsersPagedCallableFutureCallListUsersRequest.golden => AsyncListUsersPagedCallable.golden} (85%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{UpdateUserCallableFutureCallUpdateUserRequest.golden => AsyncUpdateUser.golden} (77%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{CreateIdentitySettings1.golden => SyncCreateSetCredentialsProvider.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{CreateIdentitySettings2.golden => SyncCreateSetEndpoint.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{CreateUserCreateUserRequest.golden => SyncCreateUser.golden} (81%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{CreateUserStringStringString.golden => SyncCreateUserStringStringString.golden} (89%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{CreateUserStringStringStringIntStringBooleanDouble.golden => SyncCreateUserStringStringStringIntStringBooleanDouble.golden} (88%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{CreateUserStringStringStringStringStringIntStringStringStringString.golden => SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden} (89%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{DeleteUserDeleteUserRequest.golden => SyncDeleteUser.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{DeleteUserString.golden => SyncDeleteUserString.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{DeleteUserUserName.golden => SyncDeleteUserUsername.golden} (90%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{GetUserGetUserRequest.golden => SyncGetUser.golden} (82%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{GetUserString.golden => SyncGetUserString.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{GetUserUserName.golden => SyncGetUserUsername.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{ListUsersListUsersRequestIterateAll.golden => SyncListUsers.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{ListUsersCallableCallListUsersRequest.golden => SyncListUsersPaged.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/{UpdateUserUpdateUserRequest.golden => SyncUpdateUser.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ConnectCallableCallConnectRequest.golden => AsyncConnectStreamBidi.golden} (81%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateBlurbCallableFutureCallCreateBlurbRequest.golden => AsyncCreateBlurb.golden} (78%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateRoomCallableFutureCallCreateRoomRequest.golden => AsyncCreateRoom.golden} (77%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden => AsyncDeleteBlurb.golden} (78%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{DeleteRoomCallableFutureCallDeleteRoomRequest.golden => AsyncDeleteRoom.golden} (77%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{GetBlurbCallableFutureCallGetBlurbRequest.golden => AsyncGetBlurb.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{GetRoomCallableFutureCallGetRoomRequest.golden => AsyncGetRoom.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden => AsyncListBlurbsPagedCallable.golden} (85%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListRoomsPagedCallableFutureCallListRoomsRequest.golden => AsyncListRoomsPagedCallable.golden} (85%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden => AsyncSearchBlurbs.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden => AsyncSearchBlurbsOperationCallable.golden} (84%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{SendBlurbsClientStreamingCallCreateBlurbRequest.golden => AsyncSendBlurbsStreamClient.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{StreamBlurbsCallableCallStreamBlurbsRequest.golden => AsyncStreamBlurbsStreamServer.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden => AsyncUpdateBlurb.golden} (77%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{UpdateRoomCallableFutureCallUpdateRoomRequest.golden => AsyncUpdateRoom.golden} (77%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateBlurbCreateBlurbRequest.golden => SyncCreateBlurb.golden} (81%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateBlurbProfileNameByteString.golden => SyncCreateBlurbProfilenameBytestring.golden} (89%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateBlurbProfileNameString.golden => SyncCreateBlurbProfilenameString.golden} (89%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateBlurbRoomNameByteString.golden => SyncCreateBlurbRoomnameBytestring.golden} (89%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateBlurbRoomNameString.golden => SyncCreateBlurbRoomnameString.golden} (90%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateBlurbStringByteString.golden => SyncCreateBlurbStringBytestring.golden} (90%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateBlurbStringString.golden => SyncCreateBlurbStringString.golden} (90%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateRoomCreateRoomRequest.golden => SyncCreateRoom.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateRoomStringString.golden => SyncCreateRoomStringString.golden} (90%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateMessagingSettings1.golden => SyncCreateSetCredentialsProvider.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{CreateMessagingSettings2.golden => SyncCreateSetEndpoint.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{DeleteBlurbDeleteBlurbRequest.golden => SyncDeleteBlurb.golden} (81%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{DeleteBlurbBlurbName.golden => SyncDeleteBlurbBlurbname.golden} (90%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{DeleteBlurbString.golden => SyncDeleteBlurbString.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{DeleteRoomDeleteRoomRequest.golden => SyncDeleteRoom.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{DeleteRoomRoomName.golden => SyncDeleteRoomRoomname.golden} (90%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{DeleteRoomString.golden => SyncDeleteRoomString.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{GetBlurbGetBlurbRequest.golden => SyncGetBlurb.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{GetBlurbBlurbName.golden => SyncGetBlurbBlurbname.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{GetBlurbString.golden => SyncGetBlurbString.golden} (92%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{GetRoomGetRoomRequest.golden => SyncGetRoom.golden} (82%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{GetRoomRoomName.golden => SyncGetRoomRoomname.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{GetRoomString.golden => SyncGetRoomString.golden} (91%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListBlurbsListBlurbsRequestIterateAll.golden => SyncListBlurbs.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListBlurbsCallableCallListBlurbsRequest.golden => SyncListBlurbsPaged.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListBlurbsProfileNameIterateAll.golden => SyncListBlurbsProfilename.golden} (87%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListBlurbsRoomNameIterateAll.golden => SyncListBlurbsRoomname.golden} (87%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListBlurbsStringIterateAll.golden => SyncListBlurbsString.golden} (88%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListRoomsListRoomsRequestIterateAll.golden => SyncListRooms.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{ListRoomsCallableCallListRoomsRequest.golden => SyncListRoomsPaged.golden} (83%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{SearchBlurbsAsyncSearchBlurbsRequestGet.golden => SyncSearchBlurbs.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{SearchBlurbsAsyncStringGet.golden => SyncSearchBlurbsString.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{UpdateBlurbUpdateBlurbRequest.golden => SyncUpdateBlurb.golden} (79%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/{UpdateRoomUpdateRoomRequest.golden => SyncUpdateRoom.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/{EchoSettingsSetRetrySettingsEchoSettings.golden => SyncEcho.golden} (78%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/{FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden => SyncFastFibonacci.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/{CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden => stub/SyncCreateTopic.golden} (82%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/{DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden => stub/SyncDeleteLog.golden} (80%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/{EchoSettingsSetRetrySettingsEchoStubSettings.golden => stub/SyncEcho.golden} (77%)
 rename src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/{FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden => stub/SyncFastFibonacci.golden} (80%)

diff --git a/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden b/src/test/java/com/google/api/generator/gapic/composer/goldens/samples/SyncAddApacheLicenseSample.golden
similarity index 87%
rename from src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden
rename to src/test/java/com/google/api/generator/gapic/composer/goldens/samples/SyncAddApacheLicenseSample.golden
index 9b36124ec7..562fa2e7fa 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/goldens/AddApacheLicenseSample.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/goldens/samples/SyncAddApacheLicenseSample.golden
@@ -17,13 +17,13 @@
 package com.google.showcase.v1beta1.stub.samples;
 
 // [START goldensample_generated_service_addapachelicense_sample_sync]
-public class AddApacheLicenseSample {
+public class SyncAddApacheLicenseSample {
 
   public static void main(String[] args) throws Exception {
-    addApacheLicenseSample();
+    syncAddApacheLicenseSample();
   }
 
-  public static void addApacheLicenseSample() throws Exception {
+  public static void syncAddApacheLicenseSample() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
   }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
index 84f0f95440..fe00c3ca04 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
@@ -18,7 +18,6 @@
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
 import java.util.Arrays;
 import java.util.Collection;
 import org.junit.Test;
@@ -48,12 +47,9 @@ public static Collection data() {
   public void generateServiceClientClasses() {
     Service service = context.services().get(0);
     GapicClass clazz = ServiceClientClassComposer.instance().generate(context, service);
-    String goldenSampleDir =
-        Utils.getGoldenDir(this.getClass()) + "/samples/" + name.toLowerCase() + "/";
 
     Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
-    Assert.assertSampleFileCount(goldenSampleDir, clazz.samples());
     Assert.assertGoldenSamples(
-        clazz.samples(), clazz.classDefinition().packageString(), goldenSampleDir);
+        this.getClass(), name, clazz.classDefinition().packageString(), clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
index 22572668fb..5857ef3352 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
@@ -19,7 +19,6 @@
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
 import java.util.Arrays;
 import java.util.Collection;
 import org.junit.Test;
@@ -46,10 +45,12 @@ public static Collection data() {
   public void generateServiceSettingsClasses() {
     Service service = context.services().get(0);
     GapicClass clazz = ServiceSettingsClassComposer.instance().generate(context, service);
-    String goldenSampleDir = Utils.getGoldenDir(this.getClass()) + "samples/servicesettings/";
 
     Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
     Assert.assertGoldenSamples(
-        clazz.samples(), clazz.classDefinition().packageString(), goldenSampleDir);
+        this.getClass(),
+        "servicesettings",
+        clazz.classDefinition().packageString(),
+        clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
index df0cbac632..9a63099d7d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
@@ -18,7 +18,6 @@
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
 import java.util.Arrays;
 import java.util.Collection;
 import org.junit.Test;
@@ -47,10 +46,12 @@ public static Collection data() {
   public void generateServiceStubSettingsClasses() {
     Service service = context.services().get(0);
     GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, service);
-    String goldenSampleDir = Utils.getGoldenDir(this.getClass()) + "/samples/servicesettings/";
 
     Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
     Assert.assertGoldenSamples(
-        clazz.samples(), clazz.classDefinition().packageString(), goldenSampleDir);
+        this.getClass(),
+        "servicesettings/stub",
+        clazz.classDefinition().packageString(),
+        clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden
index 0159689449..5797b9ea1b 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookCallableFutureCallGetBookRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden
@@ -16,20 +16,20 @@
 
 package com.google.bookshop.v1beta1.samples;
 
-// [START goldensample_generated_bookshopclient_getbook_callablefuturecallgetbookrequest_sync]
+// [START goldensample_generated_bookshopclient_getbook_async]
 import com.google.api.core.ApiFuture;
 import com.google.bookshop.v1beta1.Book;
 import com.google.bookshop.v1beta1.BookshopClient;
 import com.google.bookshop.v1beta1.GetBookRequest;
 import java.util.ArrayList;
 
-public class GetBookCallableFutureCallGetBookRequest {
+public class AsyncGetBook {
 
   public static void main(String[] args) throws Exception {
-    getBookCallableFutureCallGetBookRequest();
+    asyncGetBook();
   }
 
-  public static void getBookCallableFutureCallGetBookRequest() throws Exception {
+  public static void asyncGetBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BookshopClient bookshopClient = BookshopClient.create()) {
@@ -45,4 +45,4 @@ public class GetBookCallableFutureCallGetBookRequest {
     }
   }
 }
-// [END goldensample_generated_bookshopclient_getbook_callablefuturecallgetbookrequest_sync]
+// [END goldensample_generated_bookshopclient_getbook_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden
index 160528108e..6561d22d89 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings1.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden
@@ -16,19 +16,19 @@
 
 package com.google.bookshop.v1beta1.samples;
 
-// [START goldensample_generated_bookshopclient_create_bookshopsettings1_sync]
+// [START goldensample_generated_bookshopclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.bookshop.v1beta1.BookshopClient;
 import com.google.bookshop.v1beta1.BookshopSettings;
 import com.google.bookshop.v1beta1.myCredentials;
 
-public class CreateBookshopSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createBookshopSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createBookshopSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     BookshopSettings bookshopSettings =
@@ -38,4 +38,4 @@ public class CreateBookshopSettings1 {
     BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
   }
 }
-// [END goldensample_generated_bookshopclient_create_bookshopsettings1_sync]
+// [END goldensample_generated_bookshopclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden
index cd738148c7..f1f5dffa33 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/CreateBookshopSettings2.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden
@@ -16,18 +16,18 @@
 
 package com.google.bookshop.v1beta1.samples;
 
-// [START goldensample_generated_bookshopclient_create_bookshopsettings2_sync]
+// [START goldensample_generated_bookshopclient_create_setendpoint_sync]
 import com.google.bookshop.v1beta1.BookshopClient;
 import com.google.bookshop.v1beta1.BookshopSettings;
 import com.google.bookshop.v1beta1.myEndpoint;
 
-public class CreateBookshopSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createBookshopSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createBookshopSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     BookshopSettings bookshopSettings =
@@ -35,4 +35,4 @@ public class CreateBookshopSettings2 {
     BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
   }
 }
-// [END goldensample_generated_bookshopclient_create_bookshopsettings2_sync]
+// [END goldensample_generated_bookshopclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden
index bf9df1e770..8b9a49a334 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookGetBookRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden
@@ -16,19 +16,19 @@
 
 package com.google.bookshop.v1beta1.samples;
 
-// [START goldensample_generated_bookshopclient_getbook_getbookrequest_sync]
+// [START goldensample_generated_bookshopclient_getbook_sync]
 import com.google.bookshop.v1beta1.Book;
 import com.google.bookshop.v1beta1.BookshopClient;
 import com.google.bookshop.v1beta1.GetBookRequest;
 import java.util.ArrayList;
 
-public class GetBookGetBookRequest {
+public class SyncGetBook {
 
   public static void main(String[] args) throws Exception {
-    getBookGetBookRequest();
+    syncGetBook();
   }
 
-  public static void getBookGetBookRequest() throws Exception {
+  public static void syncGetBook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BookshopClient bookshopClient = BookshopClient.create()) {
@@ -42,4 +42,4 @@ public class GetBookGetBookRequest {
     }
   }
 }
-// [END goldensample_generated_bookshopclient_getbook_getbookrequest_sync]
+// [END goldensample_generated_bookshopclient_getbook_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden
index 2a0268c445..3fcba7a522 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookIntListBook.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden
@@ -22,13 +22,13 @@ import com.google.bookshop.v1beta1.BookshopClient;
 import java.util.ArrayList;
 import java.util.List;
 
-public class GetBookIntListBook {
+public class SyncGetBookIntListbook {
 
   public static void main(String[] args) throws Exception {
-    getBookIntListBook();
+    syncGetBookIntListbook();
   }
 
-  public static void getBookIntListBook() throws Exception {
+  public static void syncGetBookIntListbook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BookshopClient bookshopClient = BookshopClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden
similarity index 90%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden
index 0802b5c32f..1cdc59bdfe 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/GetBookStringListBook.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden
@@ -22,13 +22,13 @@ import com.google.bookshop.v1beta1.BookshopClient;
 import java.util.ArrayList;
 import java.util.List;
 
-public class GetBookStringListBook {
+public class SyncGetBookStringListbook {
 
   public static void main(String[] args) throws Exception {
-    getBookStringListBook();
+    syncGetBookStringListbook();
   }
 
-  public static void getBookStringListBook() throws Exception {
+  public static void syncGetBookStringListbook() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (BookshopClient bookshopClient = BookshopClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden
index fdd16f2533..4f22840779 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciCallableFutureCallFibonacciRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden
@@ -16,19 +16,19 @@
 
 package com.google.testdata.v1.samples;
 
-// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest_sync]
+// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.testdata.v1.DeprecatedServiceClient;
 import com.google.testdata.v1.FibonacciRequest;
 
-public class FastFibonacciCallableFutureCallFibonacciRequest {
+public class AsyncFastFibonacci {
 
   public static void main(String[] args) throws Exception {
-    fastFibonacciCallableFutureCallFibonacciRequest();
+    asyncFastFibonacci();
   }
 
-  public static void fastFibonacciCallableFutureCallFibonacciRequest() throws Exception {
+  public static void asyncFastFibonacci() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
@@ -39,4 +39,4 @@ public class FastFibonacciCallableFutureCallFibonacciRequest {
     }
   }
 }
-// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_callablefuturecallfibonaccirequest_sync]
+// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden
index 05a5037da2..f0f6130bf5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciCallableFutureCallFibonacciRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden
@@ -16,19 +16,19 @@
 
 package com.google.testdata.v1.samples;
 
-// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest_sync]
+// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.testdata.v1.DeprecatedServiceClient;
 import com.google.testdata.v1.FibonacciRequest;
 
-public class SlowFibonacciCallableFutureCallFibonacciRequest {
+public class AsyncSlowFibonacci {
 
   public static void main(String[] args) throws Exception {
-    slowFibonacciCallableFutureCallFibonacciRequest();
+    asyncSlowFibonacci();
   }
 
-  public static void slowFibonacciCallableFutureCallFibonacciRequest() throws Exception {
+  public static void asyncSlowFibonacci() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
@@ -39,4 +39,4 @@ public class SlowFibonacciCallableFutureCallFibonacciRequest {
     }
   }
 }
-// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_callablefuturecallfibonaccirequest_sync]
+// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden
similarity index 84%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden
index b756082888..c138703b0b 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings1.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden
@@ -16,19 +16,19 @@
 
 package com.google.testdata.v1.samples;
 
-// [START goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings1_sync]
+// [START goldensample_generated_deprecatedserviceclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.testdata.v1.DeprecatedServiceClient;
 import com.google.testdata.v1.DeprecatedServiceSettings;
 import com.google.testdata.v1.myCredentials;
 
-public class CreateDeprecatedServiceSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createDeprecatedServiceSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createDeprecatedServiceSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     DeprecatedServiceSettings deprecatedServiceSettings =
@@ -39,4 +39,4 @@ public class CreateDeprecatedServiceSettings1 {
         DeprecatedServiceClient.create(deprecatedServiceSettings);
   }
 }
-// [END goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings1_sync]
+// [END goldensample_generated_deprecatedserviceclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden
similarity index 82%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden
index 44d95d0d14..a719126c25 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/CreateDeprecatedServiceSettings2.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden
@@ -16,18 +16,18 @@
 
 package com.google.testdata.v1.samples;
 
-// [START goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings2_sync]
+// [START goldensample_generated_deprecatedserviceclient_create_setendpoint_sync]
 import com.google.testdata.v1.DeprecatedServiceClient;
 import com.google.testdata.v1.DeprecatedServiceSettings;
 import com.google.testdata.v1.myEndpoint;
 
-public class CreateDeprecatedServiceSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createDeprecatedServiceSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createDeprecatedServiceSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     DeprecatedServiceSettings deprecatedServiceSettings =
@@ -36,4 +36,4 @@ public class CreateDeprecatedServiceSettings2 {
         DeprecatedServiceClient.create(deprecatedServiceSettings);
   }
 }
-// [END goldensample_generated_deprecatedserviceclient_create_deprecatedservicesettings2_sync]
+// [END goldensample_generated_deprecatedserviceclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden
similarity index 86%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden
index 265cdae5fd..b2c02d3e7c 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/FastFibonacciFibonacciRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden
@@ -16,18 +16,18 @@
 
 package com.google.testdata.v1.samples;
 
-// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest_sync]
+// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_sync]
 import com.google.protobuf.Empty;
 import com.google.testdata.v1.DeprecatedServiceClient;
 import com.google.testdata.v1.FibonacciRequest;
 
-public class FastFibonacciFibonacciRequest {
+public class SyncFastFibonacci {
 
   public static void main(String[] args) throws Exception {
-    fastFibonacciFibonacciRequest();
+    syncFastFibonacci();
   }
 
-  public static void fastFibonacciFibonacciRequest() throws Exception {
+  public static void syncFastFibonacci() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
@@ -36,4 +36,4 @@ public class FastFibonacciFibonacciRequest {
     }
   }
 }
-// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_fibonaccirequest_sync]
+// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden
similarity index 86%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden
index c1451a0344..8a4e5ac674 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SlowFibonacciFibonacciRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden
@@ -16,18 +16,18 @@
 
 package com.google.testdata.v1.samples;
 
-// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest_sync]
+// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_sync]
 import com.google.protobuf.Empty;
 import com.google.testdata.v1.DeprecatedServiceClient;
 import com.google.testdata.v1.FibonacciRequest;
 
-public class SlowFibonacciFibonacciRequest {
+public class SyncSlowFibonacci {
 
   public static void main(String[] args) throws Exception {
-    slowFibonacciFibonacciRequest();
+    syncSlowFibonacci();
   }
 
-  public static void slowFibonacciFibonacciRequest() throws Exception {
+  public static void syncSlowFibonacci() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
@@ -36,4 +36,4 @@ public class SlowFibonacciFibonacciRequest {
     }
   }
 }
-// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_fibonaccirequest_sync]
+// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden
index 1f9a8efbf4..b186e09e24 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockCallableFutureCallBlockRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_block_callablefuturecallblockrequest_sync]
+// [START goldensample_generated_echoclient_block_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.BlockRequest;
 import com.google.showcase.v1beta1.BlockResponse;
 import com.google.showcase.v1beta1.EchoClient;
 
-public class BlockCallableFutureCallBlockRequest {
+public class AsyncBlock {
 
   public static void main(String[] args) throws Exception {
-    blockCallableFutureCallBlockRequest();
+    asyncBlock();
   }
 
-  public static void blockCallableFutureCallBlockRequest() throws Exception {
+  public static void asyncBlock() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -39,4 +39,4 @@ public class BlockCallableFutureCallBlockRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_block_callablefuturecallblockrequest_sync]
+// [END goldensample_generated_echoclient_block_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgainStreamBidi.golden
similarity index 84%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgainStreamBidi.golden
index 78730bf07d..d095d155d8 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatAgainCallableCallEchoRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgainStreamBidi.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_chatagain_callablecallechorequest_sync]
+// [START goldensample_generated_echoclient_chatagain_streambidi_async]
 import com.google.api.gax.rpc.BidiStream;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoRequest;
@@ -25,13 +25,13 @@ import com.google.showcase.v1beta1.Foobar;
 import com.google.showcase.v1beta1.FoobarName;
 import com.google.showcase.v1beta1.Severity;
 
-public class ChatAgainCallableCallEchoRequest {
+public class AsyncChatAgainStreamBidi {
 
   public static void main(String[] args) throws Exception {
-    chatAgainCallableCallEchoRequest();
+    asyncChatAgainStreamBidi();
   }
 
-  public static void chatAgainCallableCallEchoRequest() throws Exception {
+  public static void asyncChatAgainStreamBidi() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -50,4 +50,4 @@ public class ChatAgainCallableCallEchoRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_chatagain_callablecallechorequest_sync]
+// [END goldensample_generated_echoclient_chatagain_streambidi_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatStreamBidi.golden
similarity index 85%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatStreamBidi.golden
index 9120ddab20..daa0522787 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ChatCallableCallEchoRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatStreamBidi.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_chat_callablecallechorequest_sync]
+// [START goldensample_generated_echoclient_chat_streambidi_async]
 import com.google.api.gax.rpc.BidiStream;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoRequest;
@@ -25,13 +25,13 @@ import com.google.showcase.v1beta1.Foobar;
 import com.google.showcase.v1beta1.FoobarName;
 import com.google.showcase.v1beta1.Severity;
 
-public class ChatCallableCallEchoRequest {
+public class AsyncChatStreamBidi {
 
   public static void main(String[] args) throws Exception {
-    chatCallableCallEchoRequest();
+    asyncChatStreamBidi();
   }
 
-  public static void chatCallableCallEchoRequest() throws Exception {
+  public static void asyncChatStreamBidi() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -50,4 +50,4 @@ public class ChatCallableCallEchoRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_chat_callablecallechorequest_sync]
+// [END goldensample_generated_echoclient_chat_streambidi_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollectStreamClient.golden
similarity index 87%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollectStreamClient.golden
index aa39a4f200..a214ab6662 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollectClientStreamingCallEchoRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollectStreamClient.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_collect_clientstreamingcallechorequest_sync]
+// [START goldensample_generated_echoclient_collect_streamclient_async]
 import com.google.api.gax.rpc.ApiStreamObserver;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoRequest;
@@ -25,13 +25,13 @@ import com.google.showcase.v1beta1.Foobar;
 import com.google.showcase.v1beta1.FoobarName;
 import com.google.showcase.v1beta1.Severity;
 
-public class CollectClientStreamingCallEchoRequest {
+public class AsyncCollectStreamClient {
 
   public static void main(String[] args) throws Exception {
-    collectClientStreamingCallEchoRequest();
+    asyncCollectStreamClient();
   }
 
-  public static void collectClientStreamingCallEchoRequest() throws Exception {
+  public static void asyncCollectStreamClient() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -65,4 +65,4 @@ public class CollectClientStreamingCallEchoRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_collect_clientstreamingcallechorequest_sync]
+// [END goldensample_generated_echoclient_collect_streamclient_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden
similarity index 82%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden
index 049792f07a..7e85f18fbf 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameCallableFutureCallEchoRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_collidename_callablefuturecallechorequest_sync]
+// [START goldensample_generated_echoclient_collidename_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoRequest;
@@ -25,13 +25,13 @@ import com.google.showcase.v1beta1.FoobarName;
 import com.google.showcase.v1beta1.Object;
 import com.google.showcase.v1beta1.Severity;
 
-public class CollideNameCallableFutureCallEchoRequest {
+public class AsyncCollideName {
 
   public static void main(String[] args) throws Exception {
-    collideNameCallableFutureCallEchoRequest();
+    asyncCollideName();
   }
 
-  public static void collideNameCallableFutureCallEchoRequest() throws Exception {
+  public static void asyncCollideName() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -48,4 +48,4 @@ public class CollideNameCallableFutureCallEchoRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_collidename_callablefuturecallechorequest_sync]
+// [END goldensample_generated_echoclient_collidename_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden
similarity index 84%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden
index 50ecd65138..859347ff50 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoCallableFutureCallEchoRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_echo_callablefuturecallechorequest_sync]
+// [START goldensample_generated_echoclient_echo_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoRequest;
@@ -25,13 +25,13 @@ import com.google.showcase.v1beta1.Foobar;
 import com.google.showcase.v1beta1.FoobarName;
 import com.google.showcase.v1beta1.Severity;
 
-public class EchoCallableFutureCallEchoRequest {
+public class AsyncEcho {
 
   public static void main(String[] args) throws Exception {
-    echoCallableFutureCallEchoRequest();
+    asyncEcho();
   }
 
-  public static void echoCallableFutureCallEchoRequest() throws Exception {
+  public static void asyncEcho() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -48,4 +48,4 @@ public class EchoCallableFutureCallEchoRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_echo_callablefuturecallechorequest_sync]
+// [END goldensample_generated_echoclient_echo_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpandStreamServer.golden
similarity index 81%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpandStreamServer.golden
index e62ffc20b2..6a016acb49 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/ExpandCallableCallExpandRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpandStreamServer.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_expand_callablecallexpandrequest_sync]
+// [START goldensample_generated_echoclient_expand_streamserver_async]
 import com.google.api.gax.rpc.ServerStream;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.ExpandRequest;
 
-public class ExpandCallableCallExpandRequest {
+public class AsyncExpandStreamServer {
 
   public static void main(String[] args) throws Exception {
-    expandCallableCallExpandRequest();
+    asyncExpandStreamServer();
   }
 
-  public static void expandCallableCallExpandRequest() throws Exception {
+  public static void asyncExpandStreamServer() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -41,4 +41,4 @@ public class ExpandCallableCallExpandRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_expand_callablecallexpandrequest_sync]
+// [END goldensample_generated_echoclient_expand_streamserver_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPagedCallable.golden
similarity index 85%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPagedCallable.golden
index 93217aafd7..d6afae5452 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedCallableFutureCallPagedExpandRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPagedCallable.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest_sync]
+// [START goldensample_generated_echoclient_pagedexpand_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.PagedExpandRequest;
 
-public class PagedExpandPagedCallableFutureCallPagedExpandRequest {
+public class AsyncPagedExpandPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    pagedExpandPagedCallableFutureCallPagedExpandRequest();
+    asyncPagedExpandPagedCallable();
   }
 
-  public static void pagedExpandPagedCallableFutureCallPagedExpandRequest() throws Exception {
+  public static void asyncPagedExpandPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -46,4 +46,4 @@ public class PagedExpandPagedCallableFutureCallPagedExpandRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_pagedexpand_pagedcallablefuturecallpagedexpandrequest_sync]
+// [END goldensample_generated_echoclient_pagedexpand_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPagedCallable.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPagedCallable.golden
index 124011449a..30067b1ca0 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedCallableFutureCallPagedExpandRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPagedCallable.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest_sync]
+// [START goldensample_generated_echoclient_simplepagedexpand_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.PagedExpandRequest;
 
-public class SimplePagedExpandPagedCallableFutureCallPagedExpandRequest {
+public class AsyncSimplePagedExpandPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    simplePagedExpandPagedCallableFutureCallPagedExpandRequest();
+    asyncSimplePagedExpandPagedCallable();
   }
 
-  public static void simplePagedExpandPagedCallableFutureCallPagedExpandRequest() throws Exception {
+  public static void asyncSimplePagedExpandPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -47,4 +47,4 @@ public class SimplePagedExpandPagedCallableFutureCallPagedExpandRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_simplepagedexpand_pagedcallablefuturecallpagedexpandrequest_sync]
+// [END goldensample_generated_echoclient_simplepagedexpand_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden
index 3a706aab82..6fe7262fcd 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitCallableFutureCallWaitRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_wait_callablefuturecallwaitrequest_sync]
+// [START goldensample_generated_echoclient_wait_async]
 import com.google.api.core.ApiFuture;
 import com.google.longrunning.Operation;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.WaitRequest;
 
-public class WaitCallableFutureCallWaitRequest {
+public class AsyncWait {
 
   public static void main(String[] args) throws Exception {
-    waitCallableFutureCallWaitRequest();
+    asyncWait();
   }
 
-  public static void waitCallableFutureCallWaitRequest() throws Exception {
+  public static void asyncWait() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -39,4 +39,4 @@ public class WaitCallableFutureCallWaitRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_wait_callablefuturecallwaitrequest_sync]
+// [END goldensample_generated_echoclient_wait_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitOperationCallable.golden
similarity index 86%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitOperationCallable.golden
index 96e4558d06..665d3c73a8 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitOperationCallableFutureCallWaitRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitOperationCallable.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_wait_operationcallablefuturecallwaitrequest_sync]
+// [START goldensample_generated_echoclient_wait_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.WaitMetadata;
 import com.google.showcase.v1beta1.WaitRequest;
 import com.google.showcase.v1beta1.WaitResponse;
 
-public class WaitOperationCallableFutureCallWaitRequest {
+public class AsyncWaitOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    waitOperationCallableFutureCallWaitRequest();
+    asyncWaitOperationCallable();
   }
 
-  public static void waitOperationCallableFutureCallWaitRequest() throws Exception {
+  public static void asyncWaitOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -41,4 +41,4 @@ public class WaitOperationCallableFutureCallWaitRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_wait_operationcallablefuturecallwaitrequest_sync]
+// [END goldensample_generated_echoclient_wait_operationcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden
similarity index 82%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden
index 05ccb4471c..a4f343bf79 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/BlockBlockRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_block_blockrequest_sync]
+// [START goldensample_generated_echoclient_block_sync]
 import com.google.showcase.v1beta1.BlockRequest;
 import com.google.showcase.v1beta1.BlockResponse;
 import com.google.showcase.v1beta1.EchoClient;
 
-public class BlockBlockRequest {
+public class SyncBlock {
 
   public static void main(String[] args) throws Exception {
-    blockBlockRequest();
+    syncBlock();
   }
 
-  public static void blockBlockRequest() throws Exception {
+  public static void syncBlock() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -36,4 +36,4 @@ public class BlockBlockRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_block_blockrequest_sync]
+// [END goldensample_generated_echoclient_block_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden
similarity index 85%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden
index 97eb3cbe8c..77bd8ff45a 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CollideNameEchoRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_collidename_echorequest_sync]
+// [START goldensample_generated_echoclient_collidename_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoRequest;
 import com.google.showcase.v1beta1.Foobar;
@@ -24,13 +24,13 @@ import com.google.showcase.v1beta1.FoobarName;
 import com.google.showcase.v1beta1.Object;
 import com.google.showcase.v1beta1.Severity;
 
-public class CollideNameEchoRequest {
+public class SyncCollideName {
 
   public static void main(String[] args) throws Exception {
-    collideNameEchoRequest();
+    syncCollideName();
   }
 
-  public static void collideNameEchoRequest() throws Exception {
+  public static void syncCollideName() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -45,4 +45,4 @@ public class CollideNameEchoRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_collidename_echorequest_sync]
+// [END goldensample_generated_echoclient_collidename_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden
index aebc0f2381..b867d8de33 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings1.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_create_echosettings1_sync]
+// [START goldensample_generated_echoclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoSettings;
 import com.google.showcase.v1beta1.myCredentials;
 
-public class CreateEchoSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createEchoSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createEchoSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     EchoSettings echoSettings =
@@ -38,4 +38,4 @@ public class CreateEchoSettings1 {
     EchoClient echoClient = EchoClient.create(echoSettings);
   }
 }
-// [END goldensample_generated_echoclient_create_echosettings1_sync]
+// [END goldensample_generated_echoclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden
similarity index 81%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden
index c7b26b0880..046c0083e1 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/CreateEchoSettings2.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden
@@ -16,22 +16,22 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_create_echosettings2_sync]
+// [START goldensample_generated_echoclient_create_setendpoint_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoSettings;
 import com.google.showcase.v1beta1.myEndpoint;
 
-public class CreateEchoSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createEchoSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createEchoSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build();
     EchoClient echoClient = EchoClient.create(echoSettings);
   }
 }
-// [END goldensample_generated_echoclient_create_echosettings2_sync]
+// [END goldensample_generated_echoclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden
similarity index 92%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden
index 0dd520c078..4700422010 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/Echo.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden
@@ -20,13 +20,13 @@ package com.google.showcase.v1beta1.samples;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 
-public class Echo {
+public class SyncEcho {
 
   public static void main(String[] args) throws Exception {
-    echo();
+    syncEcho();
   }
 
-  public static void echo() throws Exception {
+  public static void syncEcho() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho1.golden
similarity index 87%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho1.golden
index 8b5a021ee9..20644b2920 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoEchoRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho1.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_echo_echorequest_sync]
+// [START goldensample_generated_echoclient_echo_1_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoRequest;
 import com.google.showcase.v1beta1.EchoResponse;
@@ -24,13 +24,13 @@ import com.google.showcase.v1beta1.Foobar;
 import com.google.showcase.v1beta1.FoobarName;
 import com.google.showcase.v1beta1.Severity;
 
-public class EchoEchoRequest {
+public class SyncEcho1 {
 
   public static void main(String[] args) throws Exception {
-    echoEchoRequest();
+    syncEcho1();
   }
 
-  public static void echoEchoRequest() throws Exception {
+  public static void syncEcho1() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -45,4 +45,4 @@ public class EchoEchoRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_echo_echorequest_sync]
+// [END goldensample_generated_echoclient_echo_1_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden
index 0be1db2992..a998ecaa0d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoFoobarName.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.FoobarName;
 
-public class EchoFoobarName {
+public class SyncEchoFoobarname {
 
   public static void main(String[] args) throws Exception {
-    echoFoobarName();
+    syncEchoFoobarname();
   }
 
-  public static void echoFoobarName() throws Exception {
+  public static void syncEchoFoobarname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden
index 941b2093e3..b352a6f215 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoResourceName.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden
@@ -22,13 +22,13 @@ import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.FoobarName;
 
-public class EchoResourceName {
+public class SyncEchoResourcename {
 
   public static void main(String[] args) throws Exception {
-    echoResourceName();
+    syncEchoResourcename();
   }
 
-  public static void echoResourceName() throws Exception {
+  public static void syncEchoResourcename() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden
similarity index 92%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden
index 1fa6c44670..2d1e7fd96e 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStatus.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden
@@ -21,13 +21,13 @@ import com.google.rpc.Status;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 
-public class EchoStatus {
+public class SyncEchoStatus {
 
   public static void main(String[] args) throws Exception {
-    echoStatus();
+    syncEchoStatus();
   }
 
-  public static void echoStatus() throws Exception {
+  public static void syncEchoStatus() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden
similarity index 82%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden
index 7eccf3c49d..8f8737d11a 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString1.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden
@@ -16,17 +16,17 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_echo_string1_sync]
+// [START goldensample_generated_echoclient_echo_string_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 
-public class EchoString1 {
+public class SyncEchoString {
 
   public static void main(String[] args) throws Exception {
-    echoString1();
+    syncEchoString();
   }
 
-  public static void echoString1() throws Exception {
+  public static void syncEchoString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -35,4 +35,4 @@ public class EchoString1 {
     }
   }
 }
-// [END goldensample_generated_echoclient_echo_string1_sync]
+// [END goldensample_generated_echoclient_echo_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden
index 6e042be317..e15958515c 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString2.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_echo_string2_sync]
+// [START goldensample_generated_echoclient_echo_string1_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.FoobarName;
 
-public class EchoString2 {
+public class SyncEchoString1 {
 
   public static void main(String[] args) throws Exception {
-    echoString2();
+    syncEchoString1();
   }
 
-  public static void echoString2() throws Exception {
+  public static void syncEchoString1() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -36,4 +36,4 @@ public class EchoString2 {
     }
   }
 }
-// [END goldensample_generated_echoclient_echo_string2_sync]
+// [END goldensample_generated_echoclient_echo_string1_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden
index 9b4f1788f0..44d9413448 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoString3.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_echo_string3_sync]
+// [START goldensample_generated_echoclient_echo_string2_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.FoobarName;
 
-public class EchoString3 {
+public class SyncEchoString2 {
 
   public static void main(String[] args) throws Exception {
-    echoString3();
+    syncEchoString2();
   }
 
-  public static void echoString3() throws Exception {
+  public static void syncEchoString2() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -36,4 +36,4 @@ public class EchoString3 {
     }
   }
 }
-// [END goldensample_generated_echoclient_echo_string3_sync]
+// [END goldensample_generated_echoclient_echo_string2_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden
index 7f98339e1d..30b06aaba0 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/EchoStringSeverity.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.Severity;
 
-public class EchoStringSeverity {
+public class SyncEchoStringSeverity {
 
   public static void main(String[] args) throws Exception {
-    echoStringSeverity();
+    syncEchoStringSeverity();
   }
 
-  public static void echoStringSeverity() throws Exception {
+  public static void syncEchoStringSeverity() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden
index 55735493ab..7f0b48f0f7 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandPagedExpandRequestIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_pagedexpand_pagedexpandrequestiterateall_sync]
+// [START goldensample_generated_echoclient_pagedexpand_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.PagedExpandRequest;
 
-public class PagedExpandPagedExpandRequestIterateAll {
+public class SyncPagedExpand {
 
   public static void main(String[] args) throws Exception {
-    pagedExpandPagedExpandRequestIterateAll();
+    syncPagedExpand();
   }
 
-  public static void pagedExpandPagedExpandRequestIterateAll() throws Exception {
+  public static void syncPagedExpand() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -43,4 +43,4 @@ public class PagedExpandPagedExpandRequestIterateAll {
     }
   }
 }
-// [END goldensample_generated_echoclient_pagedexpand_pagedexpandrequestiterateall_sync]
+// [END goldensample_generated_echoclient_pagedexpand_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpandPaged.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpandPaged.golden
index 7aed8f30b1..78aae13121 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/PagedExpandCallableCallPagedExpandRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpandPaged.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_pagedexpand_callablecallpagedexpandrequest_sync]
+// [START goldensample_generated_echoclient_pagedexpand_paged_sync]
 import com.google.common.base.Strings;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.PagedExpandRequest;
 import com.google.showcase.v1beta1.PagedExpandResponse;
 
-public class PagedExpandCallableCallPagedExpandRequest {
+public class SyncPagedExpandPaged {
 
   public static void main(String[] args) throws Exception {
-    pagedExpandCallableCallPagedExpandRequest();
+    syncPagedExpandPaged();
   }
 
-  public static void pagedExpandCallableCallPagedExpandRequest() throws Exception {
+  public static void syncPagedExpandPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -54,4 +54,4 @@ public class PagedExpandCallableCallPagedExpandRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_pagedexpand_callablecallpagedexpandrequest_sync]
+// [END goldensample_generated_echoclient_pagedexpand_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden
index 42b3537a66..6820c71ba6 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden
@@ -16,17 +16,17 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_simplepagedexpand_iterateall_sync]
+// [START goldensample_generated_echoclient_simplepagedexpand_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 
-public class SimplePagedExpandIterateAll {
+public class SyncSimplePagedExpand {
 
   public static void main(String[] args) throws Exception {
-    simplePagedExpandIterateAll();
+    syncSimplePagedExpand();
   }
 
-  public static void simplePagedExpandIterateAll() throws Exception {
+  public static void syncSimplePagedExpand() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -36,4 +36,4 @@ public class SimplePagedExpandIterateAll {
     }
   }
 }
-// [END goldensample_generated_echoclient_simplepagedexpand_iterateall_sync]
+// [END goldensample_generated_echoclient_simplepagedexpand_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand1.golden
similarity index 78%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand1.golden
index 5c20551486..43fd9ef79b 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandPagedExpandRequestIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand1.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall_sync]
+// [START goldensample_generated_echoclient_simplepagedexpand_1_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.PagedExpandRequest;
 
-public class SimplePagedExpandPagedExpandRequestIterateAll {
+public class SyncSimplePagedExpand1 {
 
   public static void main(String[] args) throws Exception {
-    simplePagedExpandPagedExpandRequestIterateAll();
+    syncSimplePagedExpand1();
   }
 
-  public static void simplePagedExpandPagedExpandRequestIterateAll() throws Exception {
+  public static void syncSimplePagedExpand1() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -43,4 +43,4 @@ public class SimplePagedExpandPagedExpandRequestIterateAll {
     }
   }
 }
-// [END goldensample_generated_echoclient_simplepagedexpand_pagedexpandrequestiterateall_sync]
+// [END goldensample_generated_echoclient_simplepagedexpand_1_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandPaged.golden
similarity index 82%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandPaged.golden
index 93ef55b0ba..d0eef50d9c 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SimplePagedExpandCallableCallPagedExpandRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandPaged.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest_sync]
+// [START goldensample_generated_echoclient_simplepagedexpand_paged_sync]
 import com.google.common.base.Strings;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.EchoResponse;
 import com.google.showcase.v1beta1.PagedExpandRequest;
 import com.google.showcase.v1beta1.PagedExpandResponse;
 
-public class SimplePagedExpandCallableCallPagedExpandRequest {
+public class SyncSimplePagedExpandPaged {
 
   public static void main(String[] args) throws Exception {
-    simplePagedExpandCallableCallPagedExpandRequest();
+    syncSimplePagedExpandPaged();
   }
 
-  public static void simplePagedExpandCallableCallPagedExpandRequest() throws Exception {
+  public static void syncSimplePagedExpandPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -54,4 +54,4 @@ public class SimplePagedExpandCallableCallPagedExpandRequest {
     }
   }
 }
-// [END goldensample_generated_echoclient_simplepagedexpand_callablecallpagedexpandrequest_sync]
+// [END goldensample_generated_echoclient_simplepagedexpand_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden
index cd12412408..3f463f0e69 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncWaitRequestGet.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_wait_asyncwaitrequestget_sync]
+// [START goldensample_generated_echoclient_wait_sync]
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.WaitRequest;
 import com.google.showcase.v1beta1.WaitResponse;
 
-public class WaitAsyncWaitRequestGet {
+public class SyncWait {
 
   public static void main(String[] args) throws Exception {
-    waitAsyncWaitRequestGet();
+    syncWait();
   }
 
-  public static void waitAsyncWaitRequestGet() throws Exception {
+  public static void syncWait() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -36,4 +36,4 @@ public class WaitAsyncWaitRequestGet {
     }
   }
 }
-// [END goldensample_generated_echoclient_wait_asyncwaitrequestget_sync]
+// [END goldensample_generated_echoclient_wait_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden
similarity index 81%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden
index ccad9b7083..e9e3c49dce 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncDurationGet.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_wait_asyncdurationget_sync]
+// [START goldensample_generated_echoclient_wait_duration_sync]
 import com.google.protobuf.Duration;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.WaitResponse;
 
-public class WaitAsyncDurationGet {
+public class SyncWaitDuration {
 
   public static void main(String[] args) throws Exception {
-    waitAsyncDurationGet();
+    syncWaitDuration();
   }
 
-  public static void waitAsyncDurationGet() throws Exception {
+  public static void syncWaitDuration() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -36,4 +36,4 @@ public class WaitAsyncDurationGet {
     }
   }
 }
-// [END goldensample_generated_echoclient_wait_asyncdurationget_sync]
+// [END goldensample_generated_echoclient_wait_duration_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden
similarity index 81%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden
index 741fb3e079..f7e5e9dfe5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/WaitAsyncTimestampGet.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echoclient_wait_asynctimestampget_sync]
+// [START goldensample_generated_echoclient_wait_timestamp_sync]
 import com.google.protobuf.Timestamp;
 import com.google.showcase.v1beta1.EchoClient;
 import com.google.showcase.v1beta1.WaitResponse;
 
-public class WaitAsyncTimestampGet {
+public class SyncWaitTimestamp {
 
   public static void main(String[] args) throws Exception {
-    waitAsyncTimestampGet();
+    syncWaitTimestamp();
   }
 
-  public static void waitAsyncTimestampGet() throws Exception {
+  public static void syncWaitTimestamp() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (EchoClient echoClient = EchoClient.create()) {
@@ -36,4 +36,4 @@ public class WaitAsyncTimestampGet {
     }
   }
 }
-// [END goldensample_generated_echoclient_wait_asynctimestampget_sync]
+// [END goldensample_generated_echoclient_wait_timestamp_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden
index f8474c4fdb..f5c58710a7 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCallableFutureCallCreateUserRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_createuser_callablefuturecallcreateuserrequest_sync]
+// [START goldensample_generated_identityclient_createuser_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.CreateUserRequest;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class CreateUserCallableFutureCallCreateUserRequest {
+public class AsyncCreateUser {
 
   public static void main(String[] args) throws Exception {
-    createUserCallableFutureCallCreateUserRequest();
+    asyncCreateUser();
   }
 
-  public static void createUserCallableFutureCallCreateUserRequest() throws Exception {
+  public static void asyncCreateUser() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -44,4 +44,4 @@ public class CreateUserCallableFutureCallCreateUserRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_createuser_callablefuturecallcreateuserrequest_sync]
+// [END goldensample_generated_identityclient_createuser_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden
similarity index 77%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden
index e5c6f13349..6ca7457c4d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserCallableFutureCallDeleteUserRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest_sync]
+// [START goldensample_generated_identityclient_deleteuser_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.DeleteUserRequest;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.UserName;
 
-public class DeleteUserCallableFutureCallDeleteUserRequest {
+public class AsyncDeleteUser {
 
   public static void main(String[] args) throws Exception {
-    deleteUserCallableFutureCallDeleteUserRequest();
+    asyncDeleteUser();
   }
 
-  public static void deleteUserCallableFutureCallDeleteUserRequest() throws Exception {
+  public static void asyncDeleteUser() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -41,4 +41,4 @@ public class DeleteUserCallableFutureCallDeleteUserRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_deleteuser_callablefuturecalldeleteuserrequest_sync]
+// [END goldensample_generated_identityclient_deleteuser_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden
index 84c5952c03..f3d3e87c1c 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserCallableFutureCallGetUserRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_getuser_callablefuturecallgetuserrequest_sync]
+// [START goldensample_generated_identityclient_getuser_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.GetUserRequest;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class GetUserCallableFutureCallGetUserRequest {
+public class AsyncGetUser {
 
   public static void main(String[] args) throws Exception {
-    getUserCallableFutureCallGetUserRequest();
+    asyncGetUser();
   }
 
-  public static void getUserCallableFutureCallGetUserRequest() throws Exception {
+  public static void asyncGetUser() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -41,4 +41,4 @@ public class GetUserCallableFutureCallGetUserRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_getuser_callablefuturecallgetuserrequest_sync]
+// [END goldensample_generated_identityclient_getuser_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPagedCallable.golden
similarity index 85%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPagedCallable.golden
index 782a138721..c6b8ab04e4 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersPagedCallableFutureCallListUsersRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPagedCallable.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest_sync]
+// [START goldensample_generated_identityclient_listusers_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.ListUsersRequest;
 import com.google.showcase.v1beta1.User;
 
-public class ListUsersPagedCallableFutureCallListUsersRequest {
+public class AsyncListUsersPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listUsersPagedCallableFutureCallListUsersRequest();
+    asyncListUsersPagedCallable();
   }
 
-  public static void listUsersPagedCallableFutureCallListUsersRequest() throws Exception {
+  public static void asyncListUsersPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -45,4 +45,4 @@ public class ListUsersPagedCallableFutureCallListUsersRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_listusers_pagedcallablefuturecalllistusersrequest_sync]
+// [END goldensample_generated_identityclient_listusers_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden
similarity index 77%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden
index ead47f3bff..511e7188ed 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserCallableFutureCallUpdateUserRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_updateuser_callablefuturecallupdateuserrequest_sync]
+// [START goldensample_generated_identityclient_updateuser_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.UpdateUserRequest;
 import com.google.showcase.v1beta1.User;
 
-public class UpdateUserCallableFutureCallUpdateUserRequest {
+public class AsyncUpdateUser {
 
   public static void main(String[] args) throws Exception {
-    updateUserCallableFutureCallUpdateUserRequest();
+    asyncUpdateUser();
   }
 
-  public static void updateUserCallableFutureCallUpdateUserRequest() throws Exception {
+  public static void asyncUpdateUser() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -40,4 +40,4 @@ public class UpdateUserCallableFutureCallUpdateUserRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_updateuser_callablefuturecallupdateuserrequest_sync]
+// [END goldensample_generated_identityclient_updateuser_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden
index 9dc4e92633..7950320dbb 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings1.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_create_identitysettings1_sync]
+// [START goldensample_generated_identityclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.IdentitySettings;
 import com.google.showcase.v1beta1.myCredentials;
 
-public class CreateIdentitySettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createIdentitySettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createIdentitySettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IdentitySettings identitySettings =
@@ -38,4 +38,4 @@ public class CreateIdentitySettings1 {
     IdentityClient identityClient = IdentityClient.create(identitySettings);
   }
 }
-// [END goldensample_generated_identityclient_create_identitysettings1_sync]
+// [END goldensample_generated_identityclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden
index 455817ed85..b1b7add9db 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateIdentitySettings2.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_create_identitysettings2_sync]
+// [START goldensample_generated_identityclient_create_setendpoint_sync]
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.IdentitySettings;
 import com.google.showcase.v1beta1.myEndpoint;
 
-public class CreateIdentitySettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createIdentitySettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createIdentitySettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     IdentitySettings identitySettings =
@@ -35,4 +35,4 @@ public class CreateIdentitySettings2 {
     IdentityClient identityClient = IdentityClient.create(identitySettings);
   }
 }
-// [END goldensample_generated_identityclient_create_identitysettings2_sync]
+// [END goldensample_generated_identityclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden
similarity index 81%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden
index 1ce14cbba3..dbd8badb47 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserCreateUserRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_createuser_createuserrequest_sync]
+// [START goldensample_generated_identityclient_createuser_sync]
 import com.google.showcase.v1beta1.CreateUserRequest;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class CreateUserCreateUserRequest {
+public class SyncCreateUser {
 
   public static void main(String[] args) throws Exception {
-    createUserCreateUserRequest();
+    syncCreateUser();
   }
 
-  public static void createUserCreateUserRequest() throws Exception {
+  public static void syncCreateUser() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -41,4 +41,4 @@ public class CreateUserCreateUserRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_createuser_createuserrequest_sync]
+// [END goldensample_generated_identityclient_createuser_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden
similarity index 89%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden
index 608d8ffca8..953dc0706b 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class CreateUserStringStringString {
+public class SyncCreateUserStringStringString {
 
   public static void main(String[] args) throws Exception {
-    createUserStringStringString();
+    syncCreateUserStringStringString();
   }
 
-  public static void createUserStringStringString() throws Exception {
+  public static void syncCreateUserStringStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden
similarity index 88%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden
index dd07782313..85d9ab1960 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringIntStringBooleanDouble.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class CreateUserStringStringStringIntStringBooleanDouble {
+public class SyncCreateUserStringStringStringIntStringBooleanDouble {
 
   public static void main(String[] args) throws Exception {
-    createUserStringStringStringIntStringBooleanDouble();
+    syncCreateUserStringStringStringIntStringBooleanDouble();
   }
 
-  public static void createUserStringStringStringIntStringBooleanDouble() throws Exception {
+  public static void syncCreateUserStringStringStringIntStringBooleanDouble() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden
similarity index 89%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden
index b7cb9406f3..d222f048a8 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/CreateUserStringStringStringStringStringIntStringStringStringString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class CreateUserStringStringStringStringStringIntStringStringStringString {
+public class SyncCreateUserStringStringStringStringStringIntStringStringStringString {
 
   public static void main(String[] args) throws Exception {
-    createUserStringStringStringStringStringIntStringStringStringString();
+    syncCreateUserStringStringStringStringStringIntStringStringStringString();
   }
 
-  public static void createUserStringStringStringStringStringIntStringStringStringString()
+  public static void syncCreateUserStringStringStringStringStringIntStringStringStringString()
       throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden
index bcd122074c..1c836c26f8 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserDeleteUserRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_deleteuser_deleteuserrequest_sync]
+// [START goldensample_generated_identityclient_deleteuser_sync]
 import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.DeleteUserRequest;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.UserName;
 
-public class DeleteUserDeleteUserRequest {
+public class SyncDeleteUser {
 
   public static void main(String[] args) throws Exception {
-    deleteUserDeleteUserRequest();
+    syncDeleteUser();
   }
 
-  public static void deleteUserDeleteUserRequest() throws Exception {
+  public static void syncDeleteUser() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -38,4 +38,4 @@ public class DeleteUserDeleteUserRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_deleteuser_deleteuserrequest_sync]
+// [END goldensample_generated_identityclient_deleteuser_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden
index 1ebcd0f790..22e00a180f 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden
@@ -21,13 +21,13 @@ import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.UserName;
 
-public class DeleteUserString {
+public class SyncDeleteUserString {
 
   public static void main(String[] args) throws Exception {
-    deleteUserString();
+    syncDeleteUserString();
   }
 
-  public static void deleteUserString() throws Exception {
+  public static void syncDeleteUserString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden
similarity index 90%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden
index 5a4a89106d..55d2b6fb29 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/DeleteUserUserName.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden
@@ -21,13 +21,13 @@ import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.UserName;
 
-public class DeleteUserUserName {
+public class SyncDeleteUserUsername {
 
   public static void main(String[] args) throws Exception {
-    deleteUserUserName();
+    syncDeleteUserUsername();
   }
 
-  public static void deleteUserUserName() throws Exception {
+  public static void syncDeleteUserUsername() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden
similarity index 82%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden
index 1b26d41d3d..972382be7f 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserGetUserRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_getuser_getuserrequest_sync]
+// [START goldensample_generated_identityclient_getuser_sync]
 import com.google.showcase.v1beta1.GetUserRequest;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class GetUserGetUserRequest {
+public class SyncGetUser {
 
   public static void main(String[] args) throws Exception {
-    getUserGetUserRequest();
+    syncGetUser();
   }
 
-  public static void getUserGetUserRequest() throws Exception {
+  public static void syncGetUser() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -38,4 +38,4 @@ public class GetUserGetUserRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_getuser_getuserrequest_sync]
+// [END goldensample_generated_identityclient_getuser_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden
index e67b732955..8ccf1245c0 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class GetUserString {
+public class SyncGetUserString {
 
   public static void main(String[] args) throws Exception {
-    getUserString();
+    syncGetUserString();
   }
 
-  public static void getUserString() throws Exception {
+  public static void syncGetUserString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden
index b3dde74628..5d7441c7bc 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/GetUserUserName.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.User;
 import com.google.showcase.v1beta1.UserName;
 
-public class GetUserUserName {
+public class SyncGetUserUsername {
 
   public static void main(String[] args) throws Exception {
-    getUserUserName();
+    syncGetUserUsername();
   }
 
-  public static void getUserUserName() throws Exception {
+  public static void syncGetUserUsername() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden
index e083f44030..e70025e5a2 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersListUsersRequestIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_listusers_listusersrequestiterateall_sync]
+// [START goldensample_generated_identityclient_listusers_sync]
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.ListUsersRequest;
 import com.google.showcase.v1beta1.User;
 
-public class ListUsersListUsersRequestIterateAll {
+public class SyncListUsers {
 
   public static void main(String[] args) throws Exception {
-    listUsersListUsersRequestIterateAll();
+    syncListUsers();
   }
 
-  public static void listUsersListUsersRequestIterateAll() throws Exception {
+  public static void syncListUsers() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -42,4 +42,4 @@ public class ListUsersListUsersRequestIterateAll {
     }
   }
 }
-// [END goldensample_generated_identityclient_listusers_listusersrequestiterateall_sync]
+// [END goldensample_generated_identityclient_listusers_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsersPaged.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsersPaged.golden
index 9fa7de6618..354c02f986 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/ListUsersCallableCallListUsersRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsersPaged.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_listusers_callablecalllistusersrequest_sync]
+// [START goldensample_generated_identityclient_listusers_paged_sync]
 import com.google.common.base.Strings;
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.ListUsersRequest;
 import com.google.showcase.v1beta1.ListUsersResponse;
 import com.google.showcase.v1beta1.User;
 
-public class ListUsersCallableCallListUsersRequest {
+public class SyncListUsersPaged {
 
   public static void main(String[] args) throws Exception {
-    listUsersCallableCallListUsersRequest();
+    syncListUsersPaged();
   }
 
-  public static void listUsersCallableCallListUsersRequest() throws Exception {
+  public static void syncListUsersPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -53,4 +53,4 @@ public class ListUsersCallableCallListUsersRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_listusers_callablecalllistusersrequest_sync]
+// [END goldensample_generated_identityclient_listusers_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden
index 394ca00442..32b476711d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/UpdateUserUpdateUserRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_identityclient_updateuser_updateuserrequest_sync]
+// [START goldensample_generated_identityclient_updateuser_sync]
 import com.google.showcase.v1beta1.IdentityClient;
 import com.google.showcase.v1beta1.UpdateUserRequest;
 import com.google.showcase.v1beta1.User;
 
-public class UpdateUserUpdateUserRequest {
+public class SyncUpdateUser {
 
   public static void main(String[] args) throws Exception {
-    updateUserUpdateUserRequest();
+    syncUpdateUser();
   }
 
-  public static void updateUserUpdateUserRequest() throws Exception {
+  public static void syncUpdateUser() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (IdentityClient identityClient = IdentityClient.create()) {
@@ -37,4 +37,4 @@ public class UpdateUserUpdateUserRequest {
     }
   }
 }
-// [END goldensample_generated_identityclient_updateuser_updateuserrequest_sync]
+// [END goldensample_generated_identityclient_updateuser_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnectStreamBidi.golden
similarity index 81%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnectStreamBidi.golden
index 9c1f97f09c..525c4736a7 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ConnectCallableCallConnectRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnectStreamBidi.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_connect_callablecallconnectrequest_sync]
+// [START goldensample_generated_messagingclient_connect_streambidi_async]
 import com.google.api.gax.rpc.BidiStream;
 import com.google.showcase.v1beta1.ConnectRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.StreamBlurbsResponse;
 
-public class ConnectCallableCallConnectRequest {
+public class AsyncConnectStreamBidi {
 
   public static void main(String[] args) throws Exception {
-    connectCallableCallConnectRequest();
+    asyncConnectStreamBidi();
   }
 
-  public static void connectCallableCallConnectRequest() throws Exception {
+  public static void asyncConnectStreamBidi() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -42,4 +42,4 @@ public class ConnectCallableCallConnectRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_connect_callablecallconnectrequest_sync]
+// [END goldensample_generated_messagingclient_connect_streambidi_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden
similarity index 78%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden
index a5be9abb1e..f3029462c4 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCallableFutureCallCreateBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest_sync]
+// [START goldensample_generated_messagingclient_createblurb_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.CreateBlurbRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class CreateBlurbCallableFutureCallCreateBlurbRequest {
+public class AsyncCreateBlurb {
 
   public static void main(String[] args) throws Exception {
-    createBlurbCallableFutureCallCreateBlurbRequest();
+    asyncCreateBlurb();
   }
 
-  public static void createBlurbCallableFutureCallCreateBlurbRequest() throws Exception {
+  public static void asyncCreateBlurb() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -44,4 +44,4 @@ public class CreateBlurbCallableFutureCallCreateBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_createblurb_callablefuturecallcreateblurbrequest_sync]
+// [END goldensample_generated_messagingclient_createblurb_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden
similarity index 77%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden
index 8144d67c0d..8d924fe7f8 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCallableFutureCallCreateRoomRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_createroom_callablefuturecallcreateroomrequest_sync]
+// [START goldensample_generated_messagingclient_createroom_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.CreateRoomRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 
-public class CreateRoomCallableFutureCallCreateRoomRequest {
+public class AsyncCreateRoom {
 
   public static void main(String[] args) throws Exception {
-    createRoomCallableFutureCallCreateRoomRequest();
+    asyncCreateRoom();
   }
 
-  public static void createRoomCallableFutureCallCreateRoomRequest() throws Exception {
+  public static void asyncCreateRoom() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -40,4 +40,4 @@ public class CreateRoomCallableFutureCallCreateRoomRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_createroom_callablefuturecallcreateroomrequest_sync]
+// [END goldensample_generated_messagingclient_createroom_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden
similarity index 78%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden
index eb48cfa721..21cd62ee46 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbCallableFutureCallDeleteBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest_sync]
+// [START goldensample_generated_messagingclient_deleteblurb_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.BlurbName;
 import com.google.showcase.v1beta1.DeleteBlurbRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 
-public class DeleteBlurbCallableFutureCallDeleteBlurbRequest {
+public class AsyncDeleteBlurb {
 
   public static void main(String[] args) throws Exception {
-    deleteBlurbCallableFutureCallDeleteBlurbRequest();
+    asyncDeleteBlurb();
   }
 
-  public static void deleteBlurbCallableFutureCallDeleteBlurbRequest() throws Exception {
+  public static void asyncDeleteBlurb() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -45,4 +45,4 @@ public class DeleteBlurbCallableFutureCallDeleteBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_deleteblurb_callablefuturecalldeleteblurbrequest_sync]
+// [END goldensample_generated_messagingclient_deleteblurb_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden
similarity index 77%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden
index e462cb267b..1e23c521e8 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomCallableFutureCallDeleteRoomRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest_sync]
+// [START goldensample_generated_messagingclient_deleteroom_async]
 import com.google.api.core.ApiFuture;
 import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.DeleteRoomRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.RoomName;
 
-public class DeleteRoomCallableFutureCallDeleteRoomRequest {
+public class AsyncDeleteRoom {
 
   public static void main(String[] args) throws Exception {
-    deleteRoomCallableFutureCallDeleteRoomRequest();
+    asyncDeleteRoom();
   }
 
-  public static void deleteRoomCallableFutureCallDeleteRoomRequest() throws Exception {
+  public static void asyncDeleteRoom() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -41,4 +41,4 @@ public class DeleteRoomCallableFutureCallDeleteRoomRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_deleteroom_callablefuturecalldeleteroomrequest_sync]
+// [END goldensample_generated_messagingclient_deleteroom_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden
index 2b30f902b2..1a2a94c0fe 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbCallableFutureCallGetBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest_sync]
+// [START goldensample_generated_messagingclient_getblurb_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.BlurbName;
 import com.google.showcase.v1beta1.GetBlurbRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 
-public class GetBlurbCallableFutureCallGetBlurbRequest {
+public class AsyncGetBlurb {
 
   public static void main(String[] args) throws Exception {
-    getBlurbCallableFutureCallGetBlurbRequest();
+    asyncGetBlurb();
   }
 
-  public static void getBlurbCallableFutureCallGetBlurbRequest() throws Exception {
+  public static void asyncGetBlurb() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -45,4 +45,4 @@ public class GetBlurbCallableFutureCallGetBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_getblurb_callablefuturecallgetblurbrequest_sync]
+// [END goldensample_generated_messagingclient_getblurb_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden
index e8fd708c47..a1a9b7fb06 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomCallableFutureCallGetRoomRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_getroom_callablefuturecallgetroomrequest_sync]
+// [START goldensample_generated_messagingclient_getroom_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.GetRoomRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 import com.google.showcase.v1beta1.RoomName;
 
-public class GetRoomCallableFutureCallGetRoomRequest {
+public class AsyncGetRoom {
 
   public static void main(String[] args) throws Exception {
-    getRoomCallableFutureCallGetRoomRequest();
+    asyncGetRoom();
   }
 
-  public static void getRoomCallableFutureCallGetRoomRequest() throws Exception {
+  public static void asyncGetRoom() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -41,4 +41,4 @@ public class GetRoomCallableFutureCallGetRoomRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_getroom_callablefuturecallgetroomrequest_sync]
+// [END goldensample_generated_messagingclient_getroom_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPagedCallable.golden
similarity index 85%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPagedCallable.golden
index 725c0a19c3..2e0f9f14cc 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsPagedCallableFutureCallListBlurbsRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPagedCallable.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest_sync]
+// [START goldensample_generated_messagingclient_listblurbs_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.ListBlurbsRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class ListBlurbsPagedCallableFutureCallListBlurbsRequest {
+public class AsyncListBlurbsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listBlurbsPagedCallableFutureCallListBlurbsRequest();
+    asyncListBlurbsPagedCallable();
   }
 
-  public static void listBlurbsPagedCallableFutureCallListBlurbsRequest() throws Exception {
+  public static void asyncListBlurbsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -47,4 +47,4 @@ public class ListBlurbsPagedCallableFutureCallListBlurbsRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listblurbs_pagedcallablefuturecalllistblurbsrequest_sync]
+// [END goldensample_generated_messagingclient_listblurbs_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPagedCallable.golden
similarity index 85%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPagedCallable.golden
index e1353e34fa..48125e4fc5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsPagedCallableFutureCallListRoomsRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPagedCallable.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest_sync]
+// [START goldensample_generated_messagingclient_listrooms_pagedcallable_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.ListRoomsRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 
-public class ListRoomsPagedCallableFutureCallListRoomsRequest {
+public class AsyncListRoomsPagedCallable {
 
   public static void main(String[] args) throws Exception {
-    listRoomsPagedCallableFutureCallListRoomsRequest();
+    asyncListRoomsPagedCallable();
   }
 
-  public static void listRoomsPagedCallableFutureCallListRoomsRequest() throws Exception {
+  public static void asyncListRoomsPagedCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -45,4 +45,4 @@ public class ListRoomsPagedCallableFutureCallListRoomsRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listrooms_pagedcallablefuturecalllistroomsrequest_sync]
+// [END goldensample_generated_messagingclient_listrooms_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden
index 4e89ce7649..55b6198dab 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsCallableFutureCallSearchBlurbsRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest_sync]
+// [START goldensample_generated_messagingclient_searchblurbs_async]
 import com.google.api.core.ApiFuture;
 import com.google.longrunning.Operation;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 import com.google.showcase.v1beta1.SearchBlurbsRequest;
 
-public class SearchBlurbsCallableFutureCallSearchBlurbsRequest {
+public class AsyncSearchBlurbs {
 
   public static void main(String[] args) throws Exception {
-    searchBlurbsCallableFutureCallSearchBlurbsRequest();
+    asyncSearchBlurbs();
   }
 
-  public static void searchBlurbsCallableFutureCallSearchBlurbsRequest() throws Exception {
+  public static void asyncSearchBlurbs() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -46,4 +46,4 @@ public class SearchBlurbsCallableFutureCallSearchBlurbsRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_searchblurbs_callablefuturecallsearchblurbsrequest_sync]
+// [END goldensample_generated_messagingclient_searchblurbs_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsOperationCallable.golden
similarity index 84%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsOperationCallable.golden
index 5233e85da6..a6d202c7fb 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsOperationCallable.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest_sync]
+// [START goldensample_generated_messagingclient_searchblurbs_operationcallable_async]
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
@@ -24,13 +24,13 @@ import com.google.showcase.v1beta1.SearchBlurbsMetadata;
 import com.google.showcase.v1beta1.SearchBlurbsRequest;
 import com.google.showcase.v1beta1.SearchBlurbsResponse;
 
-public class SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest {
+public class AsyncSearchBlurbsOperationCallable {
 
   public static void main(String[] args) throws Exception {
-    searchBlurbsOperationCallableFutureCallSearchBlurbsRequest();
+    asyncSearchBlurbsOperationCallable();
   }
 
-  public static void searchBlurbsOperationCallableFutureCallSearchBlurbsRequest() throws Exception {
+  public static void asyncSearchBlurbsOperationCallable() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -48,4 +48,4 @@ public class SearchBlurbsOperationCallableFutureCallSearchBlurbsRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_searchblurbs_operationcallablefuturecallsearchblurbsrequest_sync]
+// [END goldensample_generated_messagingclient_searchblurbs_operationcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbsStreamClient.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbsStreamClient.golden
index 5cf2484780..3b22bb119e 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SendBlurbsClientStreamingCallCreateBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbsStreamClient.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest_sync]
+// [START goldensample_generated_messagingclient_sendblurbs_streamclient_async]
 import com.google.api.gax.rpc.ApiStreamObserver;
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.CreateBlurbRequest;
@@ -24,13 +24,13 @@ import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 import com.google.showcase.v1beta1.SendBlurbsResponse;
 
-public class SendBlurbsClientStreamingCallCreateBlurbRequest {
+public class AsyncSendBlurbsStreamClient {
 
   public static void main(String[] args) throws Exception {
-    sendBlurbsClientStreamingCallCreateBlurbRequest();
+    asyncSendBlurbsStreamClient();
   }
 
-  public static void sendBlurbsClientStreamingCallCreateBlurbRequest() throws Exception {
+  public static void asyncSendBlurbsStreamClient() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -62,4 +62,4 @@ public class SendBlurbsClientStreamingCallCreateBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_sendblurbs_clientstreamingcallcreateblurbrequest_sync]
+// [END goldensample_generated_messagingclient_sendblurbs_streamclient_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbsStreamServer.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbsStreamServer.golden
index c264041cb0..648fb7a8c8 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/StreamBlurbsCallableCallStreamBlurbsRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbsStreamServer.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest_sync]
+// [START goldensample_generated_messagingclient_streamblurbs_streamserver_async]
 import com.google.api.gax.rpc.ServerStream;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 import com.google.showcase.v1beta1.StreamBlurbsRequest;
 import com.google.showcase.v1beta1.StreamBlurbsResponse;
 
-public class StreamBlurbsCallableCallStreamBlurbsRequest {
+public class AsyncStreamBlurbsStreamServer {
 
   public static void main(String[] args) throws Exception {
-    streamBlurbsCallableCallStreamBlurbsRequest();
+    asyncStreamBlurbsStreamServer();
   }
 
-  public static void streamBlurbsCallableCallStreamBlurbsRequest() throws Exception {
+  public static void asyncStreamBlurbsStreamServer() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -43,4 +43,4 @@ public class StreamBlurbsCallableCallStreamBlurbsRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_streamblurbs_callablecallstreamblurbsrequest_sync]
+// [END goldensample_generated_messagingclient_streamblurbs_streamserver_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden
similarity index 77%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden
index 26f84132b3..a3ce5f6f77 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbCallableFutureCallUpdateBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest_sync]
+// [START goldensample_generated_messagingclient_updateblurb_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.UpdateBlurbRequest;
 
-public class UpdateBlurbCallableFutureCallUpdateBlurbRequest {
+public class AsyncUpdateBlurb {
 
   public static void main(String[] args) throws Exception {
-    updateBlurbCallableFutureCallUpdateBlurbRequest();
+    asyncUpdateBlurb();
   }
 
-  public static void updateBlurbCallableFutureCallUpdateBlurbRequest() throws Exception {
+  public static void asyncUpdateBlurb() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -40,4 +40,4 @@ public class UpdateBlurbCallableFutureCallUpdateBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_updateblurb_callablefuturecallupdateblurbrequest_sync]
+// [END goldensample_generated_messagingclient_updateblurb_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden
similarity index 77%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden
index ca80454b4a..779495250c 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomCallableFutureCallUpdateRoomRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest_sync]
+// [START goldensample_generated_messagingclient_updateroom_async]
 import com.google.api.core.ApiFuture;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 import com.google.showcase.v1beta1.UpdateRoomRequest;
 
-public class UpdateRoomCallableFutureCallUpdateRoomRequest {
+public class AsyncUpdateRoom {
 
   public static void main(String[] args) throws Exception {
-    updateRoomCallableFutureCallUpdateRoomRequest();
+    asyncUpdateRoom();
   }
 
-  public static void updateRoomCallableFutureCallUpdateRoomRequest() throws Exception {
+  public static void asyncUpdateRoom() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -40,4 +40,4 @@ public class UpdateRoomCallableFutureCallUpdateRoomRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_updateroom_callablefuturecallupdateroomrequest_sync]
+// [END goldensample_generated_messagingclient_updateroom_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden
similarity index 81%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden
index 23dcbc7221..bddecdeb46 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbCreateBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_createblurb_createblurbrequest_sync]
+// [START goldensample_generated_messagingclient_createblurb_sync]
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.CreateBlurbRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class CreateBlurbCreateBlurbRequest {
+public class SyncCreateBlurb {
 
   public static void main(String[] args) throws Exception {
-    createBlurbCreateBlurbRequest();
+    syncCreateBlurb();
   }
 
-  public static void createBlurbCreateBlurbRequest() throws Exception {
+  public static void syncCreateBlurb() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -41,4 +41,4 @@ public class CreateBlurbCreateBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_createblurb_createblurbrequest_sync]
+// [END goldensample_generated_messagingclient_createblurb_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden
similarity index 89%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden
index a576e2fdc4..7e202c5c41 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameByteString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden
@@ -22,13 +22,13 @@ import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class CreateBlurbProfileNameByteString {
+public class SyncCreateBlurbProfilenameBytestring {
 
   public static void main(String[] args) throws Exception {
-    createBlurbProfileNameByteString();
+    syncCreateBlurbProfilenameBytestring();
   }
 
-  public static void createBlurbProfileNameByteString() throws Exception {
+  public static void syncCreateBlurbProfilenameBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden
similarity index 89%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden
index f18f919b01..0dfe1f3abc 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbProfileNameString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class CreateBlurbProfileNameString {
+public class SyncCreateBlurbProfilenameString {
 
   public static void main(String[] args) throws Exception {
-    createBlurbProfileNameString();
+    syncCreateBlurbProfilenameString();
   }
 
-  public static void createBlurbProfileNameString() throws Exception {
+  public static void syncCreateBlurbProfilenameString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden
similarity index 89%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden
index 5784ab64b5..194ee34998 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameByteString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden
@@ -22,13 +22,13 @@ import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.RoomName;
 
-public class CreateBlurbRoomNameByteString {
+public class SyncCreateBlurbRoomnameBytestring {
 
   public static void main(String[] args) throws Exception {
-    createBlurbRoomNameByteString();
+    syncCreateBlurbRoomnameBytestring();
   }
 
-  public static void createBlurbRoomNameByteString() throws Exception {
+  public static void syncCreateBlurbRoomnameBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden
similarity index 90%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden
index 5584074988..994d16b1a3 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbRoomNameString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.RoomName;
 
-public class CreateBlurbRoomNameString {
+public class SyncCreateBlurbRoomnameString {
 
   public static void main(String[] args) throws Exception {
-    createBlurbRoomNameString();
+    syncCreateBlurbRoomnameString();
   }
 
-  public static void createBlurbRoomNameString() throws Exception {
+  public static void syncCreateBlurbRoomnameString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden
similarity index 90%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden
index c9b346ee30..0c8f22dca3 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringByteString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden
@@ -22,13 +22,13 @@ import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class CreateBlurbStringByteString {
+public class SyncCreateBlurbStringBytestring {
 
   public static void main(String[] args) throws Exception {
-    createBlurbStringByteString();
+    syncCreateBlurbStringBytestring();
   }
 
-  public static void createBlurbStringByteString() throws Exception {
+  public static void syncCreateBlurbStringBytestring() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden
similarity index 90%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden
index 58dc934fe4..19e8b3e33f 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateBlurbStringString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class CreateBlurbStringString {
+public class SyncCreateBlurbStringString {
 
   public static void main(String[] args) throws Exception {
-    createBlurbStringString();
+    syncCreateBlurbStringString();
   }
 
-  public static void createBlurbStringString() throws Exception {
+  public static void syncCreateBlurbStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden
index 5c5aa13513..6dd645ee49 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomCreateRoomRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_createroom_createroomrequest_sync]
+// [START goldensample_generated_messagingclient_createroom_sync]
 import com.google.showcase.v1beta1.CreateRoomRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 
-public class CreateRoomCreateRoomRequest {
+public class SyncCreateRoom {
 
   public static void main(String[] args) throws Exception {
-    createRoomCreateRoomRequest();
+    syncCreateRoom();
   }
 
-  public static void createRoomCreateRoomRequest() throws Exception {
+  public static void syncCreateRoom() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -37,4 +37,4 @@ public class CreateRoomCreateRoomRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_createroom_createroomrequest_sync]
+// [END goldensample_generated_messagingclient_createroom_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden
similarity index 90%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden
index 382d566986..5d47cfb6e3 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateRoomStringString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden
@@ -20,13 +20,13 @@ package com.google.showcase.v1beta1.samples;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 
-public class CreateRoomStringString {
+public class SyncCreateRoomStringString {
 
   public static void main(String[] args) throws Exception {
-    createRoomStringString();
+    syncCreateRoomStringString();
   }
 
-  public static void createRoomStringString() throws Exception {
+  public static void syncCreateRoomStringString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden
index 4db21095bb..4ac54cdfb9 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings1.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_create_messagingsettings1_sync]
+// [START goldensample_generated_messagingclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.MessagingSettings;
 import com.google.showcase.v1beta1.myCredentials;
 
-public class CreateMessagingSettings1 {
+public class SyncCreateSetCredentialsProvider {
 
   public static void main(String[] args) throws Exception {
-    createMessagingSettings1();
+    syncCreateSetCredentialsProvider();
   }
 
-  public static void createMessagingSettings1() throws Exception {
+  public static void syncCreateSetCredentialsProvider() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     MessagingSettings messagingSettings =
@@ -38,4 +38,4 @@ public class CreateMessagingSettings1 {
     MessagingClient messagingClient = MessagingClient.create(messagingSettings);
   }
 }
-// [END goldensample_generated_messagingclient_create_messagingsettings1_sync]
+// [END goldensample_generated_messagingclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden
index ae17f16372..45f567766d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/CreateMessagingSettings2.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_create_messagingsettings2_sync]
+// [START goldensample_generated_messagingclient_create_setendpoint_sync]
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.MessagingSettings;
 import com.google.showcase.v1beta1.myEndpoint;
 
-public class CreateMessagingSettings2 {
+public class SyncCreateSetEndpoint {
 
   public static void main(String[] args) throws Exception {
-    createMessagingSettings2();
+    syncCreateSetEndpoint();
   }
 
-  public static void createMessagingSettings2() throws Exception {
+  public static void syncCreateSetEndpoint() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     MessagingSettings messagingSettings =
@@ -35,4 +35,4 @@ public class CreateMessagingSettings2 {
     MessagingClient messagingClient = MessagingClient.create(messagingSettings);
   }
 }
-// [END goldensample_generated_messagingclient_create_messagingsettings2_sync]
+// [END goldensample_generated_messagingclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden
similarity index 81%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden
index 04c48c3529..abedec6cc9 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbDeleteBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_deleteblurb_deleteblurbrequest_sync]
+// [START goldensample_generated_messagingclient_deleteblurb_sync]
 import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.BlurbName;
 import com.google.showcase.v1beta1.DeleteBlurbRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 
-public class DeleteBlurbDeleteBlurbRequest {
+public class SyncDeleteBlurb {
 
   public static void main(String[] args) throws Exception {
-    deleteBlurbDeleteBlurbRequest();
+    syncDeleteBlurb();
   }
 
-  public static void deleteBlurbDeleteBlurbRequest() throws Exception {
+  public static void syncDeleteBlurb() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -42,4 +42,4 @@ public class DeleteBlurbDeleteBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_deleteblurb_deleteblurbrequest_sync]
+// [END goldensample_generated_messagingclient_deleteblurb_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden
similarity index 90%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden
index e3983487c0..fbab080ec4 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbBlurbName.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden
@@ -21,13 +21,13 @@ import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.BlurbName;
 import com.google.showcase.v1beta1.MessagingClient;
 
-public class DeleteBlurbBlurbName {
+public class SyncDeleteBlurbBlurbname {
 
   public static void main(String[] args) throws Exception {
-    deleteBlurbBlurbName();
+    syncDeleteBlurbBlurbname();
   }
 
-  public static void deleteBlurbBlurbName() throws Exception {
+  public static void syncDeleteBlurbBlurbname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden
index 019dabee5f..4d64e0889e 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteBlurbString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden
@@ -21,13 +21,13 @@ import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.BlurbName;
 import com.google.showcase.v1beta1.MessagingClient;
 
-public class DeleteBlurbString {
+public class SyncDeleteBlurbString {
 
   public static void main(String[] args) throws Exception {
-    deleteBlurbString();
+    syncDeleteBlurbString();
   }
 
-  public static void deleteBlurbString() throws Exception {
+  public static void syncDeleteBlurbString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden
index dcf0a13941..76dcad4782 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomDeleteRoomRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_deleteroom_deleteroomrequest_sync]
+// [START goldensample_generated_messagingclient_deleteroom_sync]
 import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.DeleteRoomRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.RoomName;
 
-public class DeleteRoomDeleteRoomRequest {
+public class SyncDeleteRoom {
 
   public static void main(String[] args) throws Exception {
-    deleteRoomDeleteRoomRequest();
+    syncDeleteRoom();
   }
 
-  public static void deleteRoomDeleteRoomRequest() throws Exception {
+  public static void syncDeleteRoom() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -38,4 +38,4 @@ public class DeleteRoomDeleteRoomRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_deleteroom_deleteroomrequest_sync]
+// [END goldensample_generated_messagingclient_deleteroom_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden
similarity index 90%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden
index 62da07d7ff..37658c32c6 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomRoomName.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden
@@ -21,13 +21,13 @@ import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.RoomName;
 
-public class DeleteRoomRoomName {
+public class SyncDeleteRoomRoomname {
 
   public static void main(String[] args) throws Exception {
-    deleteRoomRoomName();
+    syncDeleteRoomRoomname();
   }
 
-  public static void deleteRoomRoomName() throws Exception {
+  public static void syncDeleteRoomRoomname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden
index 9d145ae564..1e6ede1865 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/DeleteRoomString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden
@@ -21,13 +21,13 @@ import com.google.protobuf.Empty;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.RoomName;
 
-public class DeleteRoomString {
+public class SyncDeleteRoomString {
 
   public static void main(String[] args) throws Exception {
-    deleteRoomString();
+    syncDeleteRoomString();
   }
 
-  public static void deleteRoomString() throws Exception {
+  public static void syncDeleteRoomString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden
index 2212f43a89..cc1ae967ba 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbGetBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_getblurb_getblurbrequest_sync]
+// [START goldensample_generated_messagingclient_getblurb_sync]
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.BlurbName;
 import com.google.showcase.v1beta1.GetBlurbRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 
-public class GetBlurbGetBlurbRequest {
+public class SyncGetBlurb {
 
   public static void main(String[] args) throws Exception {
-    getBlurbGetBlurbRequest();
+    syncGetBlurb();
   }
 
-  public static void getBlurbGetBlurbRequest() throws Exception {
+  public static void syncGetBlurb() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -42,4 +42,4 @@ public class GetBlurbGetBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_getblurb_getblurbrequest_sync]
+// [END goldensample_generated_messagingclient_getblurb_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden
index 689a9d82ea..4696adc0ca 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbBlurbName.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.BlurbName;
 import com.google.showcase.v1beta1.MessagingClient;
 
-public class GetBlurbBlurbName {
+public class SyncGetBlurbBlurbname {
 
   public static void main(String[] args) throws Exception {
-    getBlurbBlurbName();
+    syncGetBlurbBlurbname();
   }
 
-  public static void getBlurbBlurbName() throws Exception {
+  public static void syncGetBlurbBlurbname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden
similarity index 92%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden
index ed07595390..e7d8f4cfc3 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetBlurbString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.BlurbName;
 import com.google.showcase.v1beta1.MessagingClient;
 
-public class GetBlurbString {
+public class SyncGetBlurbString {
 
   public static void main(String[] args) throws Exception {
-    getBlurbString();
+    syncGetBlurbString();
   }
 
-  public static void getBlurbString() throws Exception {
+  public static void syncGetBlurbString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden
similarity index 82%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden
index e17640564c..41c0ca166f 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomGetRoomRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_getroom_getroomrequest_sync]
+// [START goldensample_generated_messagingclient_getroom_sync]
 import com.google.showcase.v1beta1.GetRoomRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 import com.google.showcase.v1beta1.RoomName;
 
-public class GetRoomGetRoomRequest {
+public class SyncGetRoom {
 
   public static void main(String[] args) throws Exception {
-    getRoomGetRoomRequest();
+    syncGetRoom();
   }
 
-  public static void getRoomGetRoomRequest() throws Exception {
+  public static void syncGetRoom() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -38,4 +38,4 @@ public class GetRoomGetRoomRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_getroom_getroomrequest_sync]
+// [END goldensample_generated_messagingclient_getroom_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden
index 1207ea8ae7..f4485469ee 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomRoomName.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 import com.google.showcase.v1beta1.RoomName;
 
-public class GetRoomRoomName {
+public class SyncGetRoomRoomname {
 
   public static void main(String[] args) throws Exception {
-    getRoomRoomName();
+    syncGetRoomRoomname();
   }
 
-  public static void getRoomRoomName() throws Exception {
+  public static void syncGetRoomRoomname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden
similarity index 91%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden
index 5e06997655..469e674fcf 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/GetRoomString.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden
@@ -21,13 +21,13 @@ import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 import com.google.showcase.v1beta1.RoomName;
 
-public class GetRoomString {
+public class SyncGetRoomString {
 
   public static void main(String[] args) throws Exception {
-    getRoomString();
+    syncGetRoomString();
   }
 
-  public static void getRoomString() throws Exception {
+  public static void syncGetRoomString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden
index 2811911fed..be32bec612 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsListBlurbsRequestIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listblurbs_listblurbsrequestiterateall_sync]
+// [START goldensample_generated_messagingclient_listblurbs_sync]
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.ListBlurbsRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class ListBlurbsListBlurbsRequestIterateAll {
+public class SyncListBlurbs {
 
   public static void main(String[] args) throws Exception {
-    listBlurbsListBlurbsRequestIterateAll();
+    syncListBlurbs();
   }
 
-  public static void listBlurbsListBlurbsRequestIterateAll() throws Exception {
+  public static void syncListBlurbs() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -44,4 +44,4 @@ public class ListBlurbsListBlurbsRequestIterateAll {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listblurbs_listblurbsrequestiterateall_sync]
+// [END goldensample_generated_messagingclient_listblurbs_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsPaged.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsPaged.golden
index 312784ed13..c24daf9bfc 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsCallableCallListBlurbsRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsPaged.golden
@@ -16,7 +16,7 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listblurbs_callablecalllistblurbsrequest_sync]
+// [START goldensample_generated_messagingclient_listblurbs_paged_sync]
 import com.google.common.base.Strings;
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.ListBlurbsRequest;
@@ -24,13 +24,13 @@ import com.google.showcase.v1beta1.ListBlurbsResponse;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class ListBlurbsCallableCallListBlurbsRequest {
+public class SyncListBlurbsPaged {
 
   public static void main(String[] args) throws Exception {
-    listBlurbsCallableCallListBlurbsRequest();
+    syncListBlurbsPaged();
   }
 
-  public static void listBlurbsCallableCallListBlurbsRequest() throws Exception {
+  public static void syncListBlurbsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -55,4 +55,4 @@ public class ListBlurbsCallableCallListBlurbsRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listblurbs_callablecalllistblurbsrequest_sync]
+// [END goldensample_generated_messagingclient_listblurbs_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden
similarity index 87%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden
index 215f3d5a33..9156c3e956 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsProfileNameIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listblurbs_profilenameiterateall_sync]
+// [START goldensample_generated_messagingclient_listblurbs_profilename_sync]
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class ListBlurbsProfileNameIterateAll {
+public class SyncListBlurbsProfilename {
 
   public static void main(String[] args) throws Exception {
-    listBlurbsProfileNameIterateAll();
+    syncListBlurbsProfilename();
   }
 
-  public static void listBlurbsProfileNameIterateAll() throws Exception {
+  public static void syncListBlurbsProfilename() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -38,4 +38,4 @@ public class ListBlurbsProfileNameIterateAll {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listblurbs_profilenameiterateall_sync]
+// [END goldensample_generated_messagingclient_listblurbs_profilename_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden
similarity index 87%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden
index 85f8b17ba8..1fed75fdfc 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsRoomNameIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listblurbs_roomnameiterateall_sync]
+// [START goldensample_generated_messagingclient_listblurbs_roomname_sync]
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.RoomName;
 
-public class ListBlurbsRoomNameIterateAll {
+public class SyncListBlurbsRoomname {
 
   public static void main(String[] args) throws Exception {
-    listBlurbsRoomNameIterateAll();
+    syncListBlurbsRoomname();
   }
 
-  public static void listBlurbsRoomNameIterateAll() throws Exception {
+  public static void syncListBlurbsRoomname() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -38,4 +38,4 @@ public class ListBlurbsRoomNameIterateAll {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listblurbs_roomnameiterateall_sync]
+// [END goldensample_generated_messagingclient_listblurbs_roomname_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden
similarity index 88%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden
index 7d7c094256..8fe9080264 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListBlurbsStringIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listblurbs_stringiterateall_sync]
+// [START goldensample_generated_messagingclient_listblurbs_string_sync]
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 
-public class ListBlurbsStringIterateAll {
+public class SyncListBlurbsString {
 
   public static void main(String[] args) throws Exception {
-    listBlurbsStringIterateAll();
+    syncListBlurbsString();
   }
 
-  public static void listBlurbsStringIterateAll() throws Exception {
+  public static void syncListBlurbsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -38,4 +38,4 @@ public class ListBlurbsStringIterateAll {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listblurbs_stringiterateall_sync]
+// [END goldensample_generated_messagingclient_listblurbs_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden
index c5186e0b20..f3a8abc711 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsListRoomsRequestIterateAll.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listrooms_listroomsrequestiterateall_sync]
+// [START goldensample_generated_messagingclient_listrooms_sync]
 import com.google.showcase.v1beta1.ListRoomsRequest;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 
-public class ListRoomsListRoomsRequestIterateAll {
+public class SyncListRooms {
 
   public static void main(String[] args) throws Exception {
-    listRoomsListRoomsRequestIterateAll();
+    syncListRooms();
   }
 
-  public static void listRoomsListRoomsRequestIterateAll() throws Exception {
+  public static void syncListRooms() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -42,4 +42,4 @@ public class ListRoomsListRoomsRequestIterateAll {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listrooms_listroomsrequestiterateall_sync]
+// [END goldensample_generated_messagingclient_listrooms_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRoomsPaged.golden
similarity index 83%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRoomsPaged.golden
index fe1021ca3c..96bcc331bc 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/ListRoomsCallableCallListRoomsRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRoomsPaged.golden
@@ -16,20 +16,20 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_listrooms_callablecalllistroomsrequest_sync]
+// [START goldensample_generated_messagingclient_listrooms_paged_sync]
 import com.google.common.base.Strings;
 import com.google.showcase.v1beta1.ListRoomsRequest;
 import com.google.showcase.v1beta1.ListRoomsResponse;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 
-public class ListRoomsCallableCallListRoomsRequest {
+public class SyncListRoomsPaged {
 
   public static void main(String[] args) throws Exception {
-    listRoomsCallableCallListRoomsRequest();
+    syncListRoomsPaged();
   }
 
-  public static void listRoomsCallableCallListRoomsRequest() throws Exception {
+  public static void syncListRoomsPaged() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -53,4 +53,4 @@ public class ListRoomsCallableCallListRoomsRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_listrooms_callablecalllistroomsrequest_sync]
+// [END goldensample_generated_messagingclient_listrooms_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden
index f35ed2d526..a52299a511 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncSearchBlurbsRequestGet.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden
@@ -16,19 +16,19 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget_sync]
+// [START goldensample_generated_messagingclient_searchblurbs_sync]
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.ProfileName;
 import com.google.showcase.v1beta1.SearchBlurbsRequest;
 import com.google.showcase.v1beta1.SearchBlurbsResponse;
 
-public class SearchBlurbsAsyncSearchBlurbsRequestGet {
+public class SyncSearchBlurbs {
 
   public static void main(String[] args) throws Exception {
-    searchBlurbsAsyncSearchBlurbsRequestGet();
+    syncSearchBlurbs();
   }
 
-  public static void searchBlurbsAsyncSearchBlurbsRequestGet() throws Exception {
+  public static void syncSearchBlurbs() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -43,4 +43,4 @@ public class SearchBlurbsAsyncSearchBlurbsRequestGet {
     }
   }
 }
-// [END goldensample_generated_messagingclient_searchblurbs_asyncsearchblurbsrequestget_sync]
+// [END goldensample_generated_messagingclient_searchblurbs_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden
index 86916f0acd..53366c2f0a 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SearchBlurbsAsyncStringGet.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden
@@ -16,17 +16,17 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_searchblurbs_asyncstringget_sync]
+// [START goldensample_generated_messagingclient_searchblurbs_string_sync]
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.SearchBlurbsResponse;
 
-public class SearchBlurbsAsyncStringGet {
+public class SyncSearchBlurbsString {
 
   public static void main(String[] args) throws Exception {
-    searchBlurbsAsyncStringGet();
+    syncSearchBlurbsString();
   }
 
-  public static void searchBlurbsAsyncStringGet() throws Exception {
+  public static void syncSearchBlurbsString() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -35,4 +35,4 @@ public class SearchBlurbsAsyncStringGet {
     }
   }
 }
-// [END goldensample_generated_messagingclient_searchblurbs_asyncstringget_sync]
+// [END goldensample_generated_messagingclient_searchblurbs_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden
similarity index 79%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden
index 023d8c8aa0..c13e6d97a8 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateBlurbUpdateBlurbRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_updateblurb_updateblurbrequest_sync]
+// [START goldensample_generated_messagingclient_updateblurb_sync]
 import com.google.showcase.v1beta1.Blurb;
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.UpdateBlurbRequest;
 
-public class UpdateBlurbUpdateBlurbRequest {
+public class SyncUpdateBlurb {
 
   public static void main(String[] args) throws Exception {
-    updateBlurbUpdateBlurbRequest();
+    syncUpdateBlurb();
   }
 
-  public static void updateBlurbUpdateBlurbRequest() throws Exception {
+  public static void syncUpdateBlurb() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -37,4 +37,4 @@ public class UpdateBlurbUpdateBlurbRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_updateblurb_updateblurbrequest_sync]
+// [END goldensample_generated_messagingclient_updateblurb_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden
index 646580846a..66fb9b7c41 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/UpdateRoomUpdateRoomRequest.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden
@@ -16,18 +16,18 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_messagingclient_updateroom_updateroomrequest_sync]
+// [START goldensample_generated_messagingclient_updateroom_sync]
 import com.google.showcase.v1beta1.MessagingClient;
 import com.google.showcase.v1beta1.Room;
 import com.google.showcase.v1beta1.UpdateRoomRequest;
 
-public class UpdateRoomUpdateRoomRequest {
+public class SyncUpdateRoom {
 
   public static void main(String[] args) throws Exception {
-    updateRoomUpdateRoomRequest();
+    syncUpdateRoom();
   }
 
-  public static void updateRoomUpdateRoomRequest() throws Exception {
+  public static void syncUpdateRoom() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     try (MessagingClient messagingClient = MessagingClient.create()) {
@@ -37,4 +37,4 @@ public class UpdateRoomUpdateRoomRequest {
     }
   }
 }
-// [END goldensample_generated_messagingclient_updateroom_updateroomrequest_sync]
+// [END goldensample_generated_messagingclient_updateroom_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden
similarity index 78%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden
index 9c57072e7f..4b4458d46c 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden
@@ -16,17 +16,17 @@
 
 package com.google.showcase.v1beta1.samples;
 
-// [START goldensample_generated_echosettings_echo_settingssetretrysettingsechosettings_sync]
+// [START goldensample_generated_echosettings_echo_sync]
 import com.google.showcase.v1beta1.EchoSettings;
 import java.time.Duration;
 
-public class EchoSettingsSetRetrySettingsEchoSettings {
+public class SyncEcho {
 
   public static void main(String[] args) throws Exception {
-    echoSettingsSetRetrySettingsEchoSettings();
+    syncEcho();
   }
 
-  public static void echoSettingsSetRetrySettingsEchoSettings() throws Exception {
+  public static void syncEcho() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();
@@ -42,4 +42,4 @@ public class EchoSettingsSetRetrySettingsEchoSettings {
     EchoSettings echoSettings = echoSettingsBuilder.build();
   }
 }
-// [END goldensample_generated_echosettings_echo_settingssetretrysettingsechosettings_sync]
+// [END goldensample_generated_echosettings_echo_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden
index 7b9180f62a..60745906df 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden
@@ -16,18 +16,17 @@
 
 package com.google.testdata.v1.samples;
 
-// [START goldensample_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings_sync]
+// [START goldensample_generated_deprecatedservicesettings_fastfibonacci_sync]
 import com.google.testdata.v1.DeprecatedServiceSettings;
 import java.time.Duration;
 
-public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings {
+public class SyncFastFibonacci {
 
   public static void main(String[] args) throws Exception {
-    fastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings();
+    syncFastFibonacci();
   }
 
-  public static void fastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings()
-      throws Exception {
+  public static void syncFastFibonacci() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     DeprecatedServiceSettings.Builder deprecatedServiceSettingsBuilder =
@@ -44,4 +43,4 @@ public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceSettings {
     DeprecatedServiceSettings deprecatedServiceSettings = deprecatedServiceSettingsBuilder.build();
   }
 }
-// [END goldensample_generated_deprecatedservicesettings_fastfibonacci_settingssetretrysettingsdeprecatedservicesettings_sync]
+// [END goldensample_generated_deprecatedservicesettings_fastfibonacci_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden
similarity index 82%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden
index 1255ad84fa..750f0115f6 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/CreateTopicSettingsSetRetrySettingsPublisherStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden
@@ -16,17 +16,17 @@
 
 package com.google.pubsub.v1.stub.samples;
 
-// [START goldensample_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings_sync]
+// [START goldensample_generated_publisherstubsettings_createtopic_sync]
 import com.google.pubsub.v1.stub.PublisherStubSettings;
 import java.time.Duration;
 
-public class CreateTopicSettingsSetRetrySettingsPublisherStubSettings {
+public class SyncCreateTopic {
 
   public static void main(String[] args) throws Exception {
-    createTopicSettingsSetRetrySettingsPublisherStubSettings();
+    syncCreateTopic();
   }
 
-  public static void createTopicSettingsSetRetrySettingsPublisherStubSettings() throws Exception {
+  public static void syncCreateTopic() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     PublisherStubSettings.Builder publisherSettingsBuilder = PublisherStubSettings.newBuilder();
@@ -42,4 +42,4 @@ public class CreateTopicSettingsSetRetrySettingsPublisherStubSettings {
     PublisherStubSettings publisherSettings = publisherSettingsBuilder.build();
   }
 }
-// [END goldensample_generated_publisherstubsettings_createtopic_settingssetretrysettingspublisherstubsettings_sync]
+// [END goldensample_generated_publisherstubsettings_createtopic_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden
index 618bcfb26d..b2bdd9b49d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden
@@ -16,18 +16,17 @@
 
 package com.google.logging.v2.stub.samples;
 
-// [START goldensample_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings_sync]
+// [START goldensample_generated_loggingservicev2stubsettings_deletelog_sync]
 import com.google.logging.v2.stub.LoggingServiceV2StubSettings;
 import java.time.Duration;
 
-public class DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings {
+public class SyncDeleteLog {
 
   public static void main(String[] args) throws Exception {
-    deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings();
+    syncDeleteLog();
   }
 
-  public static void deleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings()
-      throws Exception {
+  public static void syncDeleteLog() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     LoggingServiceV2StubSettings.Builder loggingServiceV2SettingsBuilder =
@@ -44,4 +43,4 @@ public class DeleteLogSettingsSetRetrySettingsLoggingServiceV2StubSettings {
     LoggingServiceV2StubSettings loggingServiceV2Settings = loggingServiceV2SettingsBuilder.build();
   }
 }
-// [END goldensample_generated_loggingservicev2stubsettings_deletelog_settingssetretrysettingsloggingservicev2stubsettings_sync]
+// [END goldensample_generated_loggingservicev2stubsettings_deletelog_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden
similarity index 77%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden
index 5232f488b2..fb15d47b6c 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/EchoSettingsSetRetrySettingsEchoStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden
@@ -16,17 +16,17 @@
 
 package com.google.showcase.v1beta1.stub.samples;
 
-// [START goldensample_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings_sync]
+// [START goldensample_generated_echostubsettings_echo_sync]
 import com.google.showcase.v1beta1.stub.EchoStubSettings;
 import java.time.Duration;
 
-public class EchoSettingsSetRetrySettingsEchoStubSettings {
+public class SyncEcho {
 
   public static void main(String[] args) throws Exception {
-    echoSettingsSetRetrySettingsEchoStubSettings();
+    syncEcho();
   }
 
-  public static void echoSettingsSetRetrySettingsEchoStubSettings() throws Exception {
+  public static void syncEcho() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();
@@ -42,4 +42,4 @@ public class EchoSettingsSetRetrySettingsEchoStubSettings {
     EchoStubSettings echoSettings = echoSettingsBuilder.build();
   }
 }
-// [END goldensample_generated_echostubsettings_echo_settingssetretrysettingsechostubsettings_sync]
+// [END goldensample_generated_echostubsettings_echo_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden
similarity index 80%
rename from src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden
rename to src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden
index 28e8c12e18..8a00e1431b 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden
@@ -16,18 +16,17 @@
 
 package com.google.testdata.v1.stub.samples;
 
-// [START goldensample_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings_sync]
+// [START goldensample_generated_deprecatedservicestubsettings_fastfibonacci_sync]
 import com.google.testdata.v1.stub.DeprecatedServiceStubSettings;
 import java.time.Duration;
 
-public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings {
+public class SyncFastFibonacci {
 
   public static void main(String[] args) throws Exception {
-    fastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings();
+    syncFastFibonacci();
   }
 
-  public static void fastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings()
-      throws Exception {
+  public static void syncFastFibonacci() throws Exception {
     // This snippet has been automatically generated for illustrative purposes only.
     // It may require modifications to work in your environment.
     DeprecatedServiceStubSettings.Builder deprecatedServiceSettingsBuilder =
@@ -45,4 +44,4 @@ public class FastFibonacciSettingsSetRetrySettingsDeprecatedServiceStubSettings
         deprecatedServiceSettingsBuilder.build();
   }
 }
-// [END goldensample_generated_deprecatedservicestubsettings_fastfibonacci_settingssetretrysettingsdeprecatedservicestubsettings_sync]
+// [END goldensample_generated_deprecatedservicestubsettings_fastfibonacci_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java
index 7b5bdeaa5a..21012be3c5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java
@@ -132,13 +132,13 @@ public void writeExecutableSample() {
             "// [START testing_v1_generated_samples_write_executablesample_sync]\n",
             "import com.google.api.gax.rpc.ClientSettings;\n",
             "\n",
-            "public class WriteExecutableSample {\n",
+            "public class SyncWriteExecutableSample {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
-            "    writeExecutableSample();\n",
+            "    syncWriteExecutableSample();\n",
             "  }\n",
             "\n",
-            "  public static void writeExecutableSample() throws Exception {\n",
+            "  public static void syncWriteExecutableSample() throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
             "    ClientSettings clientSettings = ClientSettings.newBuilder().build();\n",
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
index 9a4cd72a98..72062753b5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
@@ -72,13 +72,13 @@ public void createExecutableSampleEmptyStatementSample() {
             "package com.google.example;\n",
             "\n",
             "// [START apiname_generated_echo_createexecutablesample_emptystatementsample_sync]\n",
-            "public class CreateExecutableSampleEmptyStatementSample {\n",
+            "public class SyncCreateExecutableSampleEmptyStatementSample {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
-            "    createExecutableSampleEmptyStatementSample();\n",
+            "    syncCreateExecutableSampleEmptyStatementSample();\n",
             "  }\n",
             "\n",
-            "  public static void createExecutableSampleEmptyStatementSample() throws Exception {\n",
+            "  public static void syncCreateExecutableSampleEmptyStatementSample() throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
             "  }\n",
@@ -108,13 +108,13 @@ public void createExecutableSampleMethodArgsNoVar() {
             "package com.google.example;\n",
             "\n",
             "// [START apiname_generated_echo_createexecutablesample_methodargsnovar_sync]\n",
-            "public class CreateExecutableSampleMethodArgsNoVar {\n",
+            "public class SyncCreateExecutableSampleMethodArgsNoVar {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
-            "    createExecutableSampleMethodArgsNoVar();\n",
+            "    syncCreateExecutableSampleMethodArgsNoVar();\n",
             "  }\n",
             "\n",
-            "  public static void createExecutableSampleMethodArgsNoVar() throws Exception {\n",
+            "  public static void syncCreateExecutableSampleMethodArgsNoVar() throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
             "    System.out.println(\"Testing CreateExecutableSampleMethodArgsNoVar\");\n",
@@ -153,14 +153,14 @@ public void createExecutableSampleMethod() {
             "package com.google.example;\n",
             "\n",
             "// [START apiname_generated_echo_createexecutablesample_sync]\n",
-            "public class CreateExecutableSample {\n",
+            "public class SyncCreateExecutableSample {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
             "    String content = \"Testing CreateExecutableSampleMethod\";\n",
-            "    createExecutableSample(content);\n",
+            "    syncCreateExecutableSample(content);\n",
             "  }\n",
             "\n",
-            "  public static void createExecutableSample(String content) throws Exception {\n",
+            "  public static void syncCreateExecutableSample(String content) throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
             "    System.out.println(content);\n",
@@ -236,16 +236,16 @@ public void createExecutableSampleMethodMultipleStatements() {
             "package com.google.example;\n",
             "\n",
             "// [START apiname_generated_echo_createexecutablesample_methodmultiplestatements_sync]\n",
-            "public class CreateExecutableSampleMethodMultipleStatements {\n",
+            "public class SyncCreateExecutableSampleMethodMultipleStatements {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
             "    String content = \"Testing CreateExecutableSampleMethodMultipleStatements\";\n",
             "    int num = 2;\n",
             "    Object thing = new Object();\n",
-            "    createExecutableSampleMethodMultipleStatements(content, num, thing);\n",
+            "    syncCreateExecutableSampleMethodMultipleStatements(content, num, thing);\n",
             "  }\n",
             "\n",
-            "  public static void createExecutableSampleMethodMultipleStatements(\n",
+            "  public static void syncCreateExecutableSampleMethodMultipleStatements(\n",
             "      String content, int num, Object thing) throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposerTest.java
index c2c12b578b..1666dc35c6 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientUnaryMethodSampleComposerTest.java
@@ -69,7 +69,7 @@ public void valid_composeDefaultSample_isPagedMethod() {
             .build();
     String results =
         writeStatements(
-            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
                 method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
@@ -121,7 +121,7 @@ public void invalid_composeDefaultSample_isPagedMethod() {
     Assert.assertThrows(
         NullPointerException.class,
         () ->
-            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
                 method, clientType, resourceNames, messageTypes));
   }
 
@@ -169,7 +169,7 @@ public void valid_composeDefaultSample_hasLroMethodWithReturnResponse() {
             .build();
     String results =
         writeStatements(
-            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
                 method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
@@ -227,7 +227,7 @@ public void valid_composeDefaultSample_hasLroMethodWithReturnVoid() {
             .build();
     String results =
         writeStatements(
-            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
                 method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
@@ -267,7 +267,7 @@ public void valid_composeDefaultSample_pureUnaryReturnVoid() {
             .build();
     String results =
         writeStatements(
-            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
                 method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
@@ -318,7 +318,7 @@ public void valid_composeDefaultSample_pureUnaryReturnResponse() {
             .build();
     String results =
         writeStatements(
-            ServiceClientUnaryMethodSampleComposer.composeDefaultSample(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
                 method, clientType, resourceNames, messageTypes));
     String expected =
         LineFormatter.lines(
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
index 0947e8ca3e..33e428efeb 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
@@ -34,7 +34,8 @@ public void composeSettingsSample_noMethods() {
                 .build());
     Optional results =
         writeSample(
-            SettingsSampleComposer.composeSettingsSample(Optional.empty(), "EchoSettings", classType));
+            SettingsSampleComposer.composeSettingsSample(
+                Optional.empty(), "EchoSettings", classType));
     assertEquals(results, Optional.empty());
   }
 
@@ -48,7 +49,8 @@ public void composeSettingsSample_serviceSettingsClass() {
                 .build());
     Optional results =
         writeSample(
-            SettingsSampleComposer.composeSettingsSample(Optional.of("Echo"), "EchoSettings", classType));
+            SettingsSampleComposer.composeSettingsSample(
+                Optional.of("Echo"), "EchoSettings", classType));
     String expected =
         LineFormatter.lines(
             "EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();\n",
@@ -75,7 +77,8 @@ public void composeSettingsSample_serviceStubClass() {
                 .build());
     Optional results =
         writeSample(
-            SettingsSampleComposer.composeSettingsSample(Optional.of("Echo"), "EchoSettings", classType));
+            SettingsSampleComposer.composeSettingsSample(
+                Optional.of("Echo"), "EchoSettings", classType));
     String expected =
         LineFormatter.lines(
             "EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();\n",
diff --git a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java
index 248905add4..a45d206de9 100644
--- a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java
+++ b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java
@@ -37,7 +37,7 @@ public void regionTagNoRpcName() {
                 .setApiShortName(apiShortName)
                 .setServiceName(serviceName)
                 .setOverloadDisambiguation(disambiguation)
-                .setIsSynchronous(true)
+                .setIsAsynchronous(true)
                 .build());
   }
 
@@ -51,7 +51,7 @@ public void regionTagNoServiceName() {
                 .setApiShortName(apiShortName)
                 .setRpcName(rpcName)
                 .setOverloadDisambiguation(disambiguation)
-                .setIsSynchronous(true)
+                .setIsAsynchronous(true)
                 .build());
   }
 
@@ -63,7 +63,7 @@ public void regionTagValidMissingFields() {
     Assert.assertEquals("", regionTag.apiShortName());
     Assert.assertEquals("", regionTag.apiVersion());
     Assert.assertEquals("", regionTag.overloadDisambiguation());
-    Assert.assertEquals(true, regionTag.isSynchronous());
+    Assert.assertEquals(false, regionTag.isAsynchronous());
   }
 
   @Test
@@ -78,9 +78,9 @@ public void regionTagSanitizeAttributes() {
             .setRpcName(rpcName)
             .build();
 
-    Assert.assertEquals("1.4.0Version", regionTag.apiVersion());
-    Assert.assertEquals("serviceNameString", regionTag.serviceName());
-    Assert.assertEquals("rpcNameString10", regionTag.rpcName());
+    Assert.assertEquals("140Version", regionTag.apiVersion());
+    Assert.assertEquals("ServiceNameString", regionTag.serviceName());
+    Assert.assertEquals("RpcNameString10", regionTag.rpcName());
   }
 
   @Test
@@ -117,7 +117,7 @@ public void generateRegionTagsAllFields() {
             .setServiceName(serviceName)
             .setRpcName(rpcName)
             .setOverloadDisambiguation(disambiguation)
-            .setIsSynchronous(false)
+            .setIsAsynchronous(true)
             .build();
 
     String result = regionTag.generate();
diff --git a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java
index aeef996606..566c4f37d6 100644
--- a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java
+++ b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java
@@ -60,10 +60,14 @@ public void sampleWithHeader() {
   @Test
   public void sampleNameWithRegionTag() {
     Sample sample = Sample.builder().setRegionTag(regionTag).build();
-    Assert.assertEquals("rpcName", sample.name());
+    Assert.assertEquals("SyncRpcName", sample.name());
 
     RegionTag rt = regionTag.toBuilder().setOverloadDisambiguation("disambiguation").build();
     sample = sample.withRegionTag(rt);
-    Assert.assertEquals("rpcNameDisambiguation", sample.name());
+    Assert.assertEquals("SyncRpcNameDisambiguation", sample.name());
+
+    rt = rt.toBuilder().setIsAsynchronous(true).build();
+    sample = sample.withRegionTag(rt);
+    Assert.assertEquals("AsyncRpcNameDisambiguation", sample.name());
   }
 }
diff --git a/src/test/java/com/google/api/generator/test/framework/Assert.java b/src/test/java/com/google/api/generator/test/framework/Assert.java
index fe1fdb9d79..99a0adf1f6 100644
--- a/src/test/java/com/google/api/generator/test/framework/Assert.java
+++ b/src/test/java/com/google/api/generator/test/framework/Assert.java
@@ -20,7 +20,6 @@
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.utils.JavaStyle;
-import java.io.File;
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.util.Arrays;
@@ -59,23 +58,6 @@ public static void assertEmptySamples(List samples) {
     }
   }
 
-  public static void assertSampleFileCount(String goldenDir, List samples) {
-    File directory = new File(goldenDir);
-    if (directory.list().length != samples.size()) {
-      List fileNames =
-          Arrays.stream(directory.listFiles()).map(File::getName).collect(Collectors.toList());
-      List sampleNames =
-          samples.stream()
-              .map(s -> String.format("%s.golden", JavaStyle.toUpperCamelCase(s.name())))
-              .collect(Collectors.toList());
-      List diffList = Differ.diffTwoStringLists(fileNames, sampleNames);
-      if (!diffList.isEmpty()) {
-        String d = "Differences found: \n" + String.join("\n", diffList);
-        throw new AssertionFailedError("Differences found: \n" + String.join("\n", diffList));
-      }
-    }
-  }
-
   public static void assertGoldenClass(Class clazz, GapicClass gapicClass, String fileName) {
     JavaWriterVisitor visitor = new JavaWriterVisitor();
     gapicClass.classDefinition().accept(visitor);
@@ -84,16 +66,22 @@ public static void assertGoldenClass(Class clazz, GapicClass gapicClass, Stri
     Assert.assertCodeEquals(goldenFilePath, visitor.write());
   }
 
-  public static void assertGoldenSamples(List samples, String packkage, String goldenDir) {
+  public static void assertGoldenSamples(
+      Class clazz, String sampleDirName, String packkage, List samples) {
     for (Sample sample : samples) {
       String fileName = JavaStyle.toUpperCamelCase(sample.name()).concat(".golden");
-      Path goldenFilePath = Paths.get(goldenDir, fileName);
+      String goldenSampleDir =
+          Utils.getGoldenDir(clazz) + "/samples/" + sampleDirName.toLowerCase() + "/";
+      Path goldenFilePath = Paths.get(goldenSampleDir, fileName);
       sample =
           sample
               .withHeader(Arrays.asList(CommentComposer.APACHE_LICENSE_COMMENT))
               .withRegionTag(sample.regionTag().withApiShortName("goldenSample"));
-      assertCodeEquals(
-          goldenFilePath, SampleCodeWriter.writeExecutableSample(sample, packkage + ".samples"));
+
+      String sampleString = SampleCodeWriter.writeExecutableSample(sample, packkage + ".samples");
+
+      Utils.saveSampleCodegenToFile(clazz, sampleDirName, fileName, sampleString);
+      assertCodeEquals(goldenFilePath, sampleString);
     }
   }
 }
diff --git a/src/test/java/com/google/api/generator/test/framework/Utils.java b/src/test/java/com/google/api/generator/test/framework/Utils.java
index 3d5a4359ab..cb423046fb 100644
--- a/src/test/java/com/google/api/generator/test/framework/Utils.java
+++ b/src/test/java/com/google/api/generator/test/framework/Utils.java
@@ -34,6 +34,16 @@ public class Utils {
    */
   public static void saveCodegenToFile(Class clazz, String fileName, String codegen) {
     String relativeGoldenDir = getTestoutGoldenDir(clazz);
+    saveCodeToFile(relativeGoldenDir, fileName, codegen);
+  }
+
+  public static void saveSampleCodegenToFile(
+      Class clazz, String sampleDir, String fileName, String codegen) {
+    String relativeGoldenDir = getTestoutGoldenDir(clazz) + "/samples/" + sampleDir;
+    saveCodeToFile(relativeGoldenDir, fileName, codegen);
+  }
+
+  private static void saveCodeToFile(String relativeGoldenDir, String fileName, String codegen) {
     Path testOutputDir = Paths.get("src", "test", "java", relativeGoldenDir);
 
     // Auto-detect project workspace when running `bazel run //:update_TargetTest`.

From 59a59d6ef22132536dc340f4520f58d086cb4a40 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 12:43:56 -0700
Subject: [PATCH 24/29] refactor: naming updates

---
 .../composer/samplecode/SampleComposer.java   |  4 ++--
 .../api/generator/gapic/model/RegionTag.java  | 20 ++++++++-----------
 .../api/generator/gapic/model/Sample.java     | 17 ++++++++--------
 3 files changed, 19 insertions(+), 22 deletions(-)

diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java
index 3bc22ef4bc..86eb187fd1 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleComposer.java
@@ -63,12 +63,12 @@ private static List bodyWithComment(
   private static ClassDefinition createExecutableSample(
       List fileHeader,
       String packageName,
-      String sampleMethodName,
+      String sampleClassName,
       List sampleVariableAssignments,
       List sampleBody,
       RegionTag regionTag) {
 
-    String sampleClassName = JavaStyle.toUpperCamelCase(sampleMethodName);
+    String sampleMethodName = JavaStyle.toLowerCamelCase(sampleClassName);
     List sampleMethodArgs = composeSampleMethodArgs(sampleVariableAssignments);
     MethodDefinition mainMethod =
         composeMainMethod(
diff --git a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java
index 39997dae82..cc740ec33e 100644
--- a/src/main/java/com/google/api/generator/gapic/model/RegionTag.java
+++ b/src/main/java/com/google/api/generator/gapic/model/RegionTag.java
@@ -32,14 +32,14 @@ public abstract class RegionTag {
 
   public abstract String overloadDisambiguation();
 
-  public abstract Boolean isSynchronous();
+  public abstract Boolean isAsynchronous();
 
   public static Builder builder() {
     return new AutoValue_RegionTag.Builder()
         .setApiVersion("")
         .setApiShortName("")
         .setOverloadDisambiguation("")
-        .setIsSynchronous(true);
+        .setIsAsynchronous(false);
   }
 
   abstract RegionTag.Builder toBuilder();
@@ -68,7 +68,7 @@ public abstract static class Builder {
 
     public abstract Builder setOverloadDisambiguation(String overloadDisambiguation);
 
-    public abstract Builder setIsSynchronous(Boolean isSynchronous);
+    public abstract Builder setIsAsynchronous(Boolean isAsynchronous);
 
     abstract String apiVersion();
 
@@ -83,7 +83,7 @@ public abstract static class Builder {
     abstract RegionTag autoBuild();
 
     public final RegionTag build() {
-      setApiVersion(sanitizeVersion(apiVersion()));
+      setApiVersion(sanitizeAttributes(apiVersion()));
       setApiShortName(sanitizeAttributes(apiShortName()));
       setServiceName(sanitizeAttributes(serviceName()));
       setRpcName(sanitizeAttributes(rpcName()));
@@ -92,11 +92,7 @@ public final RegionTag build() {
     }
 
     private final String sanitizeAttributes(String attribute) {
-      return JavaStyle.toLowerCamelCase(attribute.replaceAll("[^a-zA-Z0-9]", ""));
-    }
-
-    private final String sanitizeVersion(String version) {
-      return JavaStyle.toLowerCamelCase(version.replaceAll("[^a-zA-Z0-9.]", ""));
+      return JavaStyle.toUpperCamelCase(attribute.replaceAll("[^a-zA-Z0-9]", ""));
     }
   }
 
@@ -118,10 +114,10 @@ public String generate() {
     if (!overloadDisambiguation().isEmpty()) {
       rt = rt + "_" + overloadDisambiguation();
     }
-    if (isSynchronous()) {
-      rt = rt + "_sync";
-    } else {
+    if (isAsynchronous()) {
       rt = rt + "_async";
+    } else {
+      rt = rt + "_sync";
     }
 
     return rt.toLowerCase();
diff --git a/src/main/java/com/google/api/generator/gapic/model/Sample.java b/src/main/java/com/google/api/generator/gapic/model/Sample.java
index 53666ad0fc..5e5458a54d 100644
--- a/src/main/java/com/google/api/generator/gapic/model/Sample.java
+++ b/src/main/java/com/google/api/generator/gapic/model/Sample.java
@@ -17,7 +17,6 @@
 import com.google.api.generator.engine.ast.AssignmentExpr;
 import com.google.api.generator.engine.ast.CommentStatement;
 import com.google.api.generator.engine.ast.Statement;
-import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.auto.value.AutoValue;
 import com.google.common.collect.ImmutableList;
 import java.util.List;
@@ -48,7 +47,10 @@ public final Sample withHeader(List header) {
   }
 
   public final Sample withRegionTag(RegionTag regionTag) {
-    return toBuilder().setRegionTag(regionTag).build();
+    return toBuilder()
+        .setName(generateSampleClassName(regionTag()))
+        .setRegionTag(regionTag)
+        .build();
   }
 
   @AutoValue.Builder
@@ -68,15 +70,14 @@ public abstract static class Builder {
     abstract RegionTag regionTag();
 
     public final Sample build() {
-      setName(generateSampleName(regionTag()));
+      setName(generateSampleClassName(regionTag()));
       return autoBuild();
     }
   }
 
-  private static String generateSampleName(RegionTag regionTag) {
-    return String.format(
-        "%s%s",
-        JavaStyle.toLowerCamelCase(regionTag.rpcName()),
-        JavaStyle.toUpperCamelCase(regionTag.overloadDisambiguation()));
+  private static String generateSampleClassName(RegionTag regionTag) {
+    return (regionTag.isAsynchronous() ? "Async" : "Sync")
+        + regionTag.rpcName()
+        + regionTag.overloadDisambiguation();
   }
 }

From 525f7c731229976d7d6048030cc288919a727861 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 12:45:44 -0700
Subject: [PATCH 25/29] refactor: update naming - tests

---
 .../samplecode/SampleCodeWriterTest.java      |  6 ++---
 .../samplecode/SampleComposerTest.java        | 24 +++++++++----------
 .../generator/gapic/model/RegionTagTest.java  | 14 +++++------
 .../api/generator/gapic/model/SampleTest.java |  8 +++++--
 4 files changed, 28 insertions(+), 24 deletions(-)

diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java
index 7b5bdeaa5a..21012be3c5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java
@@ -132,13 +132,13 @@ public void writeExecutableSample() {
             "// [START testing_v1_generated_samples_write_executablesample_sync]\n",
             "import com.google.api.gax.rpc.ClientSettings;\n",
             "\n",
-            "public class WriteExecutableSample {\n",
+            "public class SyncWriteExecutableSample {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
-            "    writeExecutableSample();\n",
+            "    syncWriteExecutableSample();\n",
             "  }\n",
             "\n",
-            "  public static void writeExecutableSample() throws Exception {\n",
+            "  public static void syncWriteExecutableSample() throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
             "    ClientSettings clientSettings = ClientSettings.newBuilder().build();\n",
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
index 9a4cd72a98..72062753b5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
@@ -72,13 +72,13 @@ public void createExecutableSampleEmptyStatementSample() {
             "package com.google.example;\n",
             "\n",
             "// [START apiname_generated_echo_createexecutablesample_emptystatementsample_sync]\n",
-            "public class CreateExecutableSampleEmptyStatementSample {\n",
+            "public class SyncCreateExecutableSampleEmptyStatementSample {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
-            "    createExecutableSampleEmptyStatementSample();\n",
+            "    syncCreateExecutableSampleEmptyStatementSample();\n",
             "  }\n",
             "\n",
-            "  public static void createExecutableSampleEmptyStatementSample() throws Exception {\n",
+            "  public static void syncCreateExecutableSampleEmptyStatementSample() throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
             "  }\n",
@@ -108,13 +108,13 @@ public void createExecutableSampleMethodArgsNoVar() {
             "package com.google.example;\n",
             "\n",
             "// [START apiname_generated_echo_createexecutablesample_methodargsnovar_sync]\n",
-            "public class CreateExecutableSampleMethodArgsNoVar {\n",
+            "public class SyncCreateExecutableSampleMethodArgsNoVar {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
-            "    createExecutableSampleMethodArgsNoVar();\n",
+            "    syncCreateExecutableSampleMethodArgsNoVar();\n",
             "  }\n",
             "\n",
-            "  public static void createExecutableSampleMethodArgsNoVar() throws Exception {\n",
+            "  public static void syncCreateExecutableSampleMethodArgsNoVar() throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
             "    System.out.println(\"Testing CreateExecutableSampleMethodArgsNoVar\");\n",
@@ -153,14 +153,14 @@ public void createExecutableSampleMethod() {
             "package com.google.example;\n",
             "\n",
             "// [START apiname_generated_echo_createexecutablesample_sync]\n",
-            "public class CreateExecutableSample {\n",
+            "public class SyncCreateExecutableSample {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
             "    String content = \"Testing CreateExecutableSampleMethod\";\n",
-            "    createExecutableSample(content);\n",
+            "    syncCreateExecutableSample(content);\n",
             "  }\n",
             "\n",
-            "  public static void createExecutableSample(String content) throws Exception {\n",
+            "  public static void syncCreateExecutableSample(String content) throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
             "    System.out.println(content);\n",
@@ -236,16 +236,16 @@ public void createExecutableSampleMethodMultipleStatements() {
             "package com.google.example;\n",
             "\n",
             "// [START apiname_generated_echo_createexecutablesample_methodmultiplestatements_sync]\n",
-            "public class CreateExecutableSampleMethodMultipleStatements {\n",
+            "public class SyncCreateExecutableSampleMethodMultipleStatements {\n",
             "\n",
             "  public static void main(String[] args) throws Exception {\n",
             "    String content = \"Testing CreateExecutableSampleMethodMultipleStatements\";\n",
             "    int num = 2;\n",
             "    Object thing = new Object();\n",
-            "    createExecutableSampleMethodMultipleStatements(content, num, thing);\n",
+            "    syncCreateExecutableSampleMethodMultipleStatements(content, num, thing);\n",
             "  }\n",
             "\n",
-            "  public static void createExecutableSampleMethodMultipleStatements(\n",
+            "  public static void syncCreateExecutableSampleMethodMultipleStatements(\n",
             "      String content, int num, Object thing) throws Exception {\n",
             "    // This snippet has been automatically generated for illustrative purposes only.\n",
             "    // It may require modifications to work in your environment.\n",
diff --git a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java
index 248905add4..a45d206de9 100644
--- a/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java
+++ b/src/test/java/com/google/api/generator/gapic/model/RegionTagTest.java
@@ -37,7 +37,7 @@ public void regionTagNoRpcName() {
                 .setApiShortName(apiShortName)
                 .setServiceName(serviceName)
                 .setOverloadDisambiguation(disambiguation)
-                .setIsSynchronous(true)
+                .setIsAsynchronous(true)
                 .build());
   }
 
@@ -51,7 +51,7 @@ public void regionTagNoServiceName() {
                 .setApiShortName(apiShortName)
                 .setRpcName(rpcName)
                 .setOverloadDisambiguation(disambiguation)
-                .setIsSynchronous(true)
+                .setIsAsynchronous(true)
                 .build());
   }
 
@@ -63,7 +63,7 @@ public void regionTagValidMissingFields() {
     Assert.assertEquals("", regionTag.apiShortName());
     Assert.assertEquals("", regionTag.apiVersion());
     Assert.assertEquals("", regionTag.overloadDisambiguation());
-    Assert.assertEquals(true, regionTag.isSynchronous());
+    Assert.assertEquals(false, regionTag.isAsynchronous());
   }
 
   @Test
@@ -78,9 +78,9 @@ public void regionTagSanitizeAttributes() {
             .setRpcName(rpcName)
             .build();
 
-    Assert.assertEquals("1.4.0Version", regionTag.apiVersion());
-    Assert.assertEquals("serviceNameString", regionTag.serviceName());
-    Assert.assertEquals("rpcNameString10", regionTag.rpcName());
+    Assert.assertEquals("140Version", regionTag.apiVersion());
+    Assert.assertEquals("ServiceNameString", regionTag.serviceName());
+    Assert.assertEquals("RpcNameString10", regionTag.rpcName());
   }
 
   @Test
@@ -117,7 +117,7 @@ public void generateRegionTagsAllFields() {
             .setServiceName(serviceName)
             .setRpcName(rpcName)
             .setOverloadDisambiguation(disambiguation)
-            .setIsSynchronous(false)
+            .setIsAsynchronous(true)
             .build();
 
     String result = regionTag.generate();
diff --git a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java
index aeef996606..566c4f37d6 100644
--- a/src/test/java/com/google/api/generator/gapic/model/SampleTest.java
+++ b/src/test/java/com/google/api/generator/gapic/model/SampleTest.java
@@ -60,10 +60,14 @@ public void sampleWithHeader() {
   @Test
   public void sampleNameWithRegionTag() {
     Sample sample = Sample.builder().setRegionTag(regionTag).build();
-    Assert.assertEquals("rpcName", sample.name());
+    Assert.assertEquals("SyncRpcName", sample.name());
 
     RegionTag rt = regionTag.toBuilder().setOverloadDisambiguation("disambiguation").build();
     sample = sample.withRegionTag(rt);
-    Assert.assertEquals("rpcNameDisambiguation", sample.name());
+    Assert.assertEquals("SyncRpcNameDisambiguation", sample.name());
+
+    rt = rt.toBuilder().setIsAsynchronous(true).build();
+    sample = sample.withRegionTag(rt);
+    Assert.assertEquals("AsyncRpcNameDisambiguation", sample.name());
   }
 }

From de803499dbf8cb86aec3aecf8415c67c54608e91 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 13:48:48 -0700
Subject: [PATCH 26/29] feat: update inline samples

---
 .../ClientLibraryPackageInfoComposer.java     |  11 +-
 .../AbstractServiceClientClassComposer.java   | 139 ++++++++++++------
 .../AbstractServiceSettingsClassComposer.java |  28 ++--
 ...tractServiceStubSettingsClassComposer.java |  27 ++--
 .../api/generator/gapic/model/GapicClass.java |  69 ++++++++-
 5 files changed, 203 insertions(+), 71 deletions(-)

diff --git a/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java b/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java
index 9fe1ff6eca..d268a60299 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/ClientLibraryPackageInfoComposer.java
@@ -21,10 +21,12 @@
 import com.google.api.generator.engine.ast.PackageInfoDefinition;
 import com.google.api.generator.engine.ast.TypeNode;
 import com.google.api.generator.engine.ast.VaporReference;
-import com.google.api.generator.gapic.composer.samplecode.ServiceClientSampleCodeComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter;
+import com.google.api.generator.gapic.composer.samplecode.ServiceClientHeaderSampleComposer;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.GapicPackageInfo;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.common.base.Preconditions;
 import com.google.common.base.Strings;
@@ -119,10 +121,11 @@ private static CommentStatement createPackageInfoJavadoc(GapicContext context) {
                   .setPakkage(service.pakkage())
                   .setName(ClassNames.getServiceClientClassName(service))
                   .build());
-      String packageInfoSampleCode =
-          ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
+      Sample packageInfoSampleCode =
+          ServiceClientHeaderSampleComposer.composeClassHeaderSample(
               service, clientType, context.resourceNames(), context.messages());
-      javaDocCommentBuilder.addSampleCode(packageInfoSampleCode);
+      javaDocCommentBuilder.addSampleCode(
+          SampleCodeWriter.writeInlineSample(packageInfoSampleCode.body()));
     }
 
     return CommentStatement.withComment(javaDocCommentBuilder.build());
diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
index beb777f543..5be14c5f8e 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java
@@ -55,7 +55,10 @@
 import com.google.api.generator.engine.ast.Variable;
 import com.google.api.generator.engine.ast.VariableExpr;
 import com.google.api.generator.gapic.composer.comment.ServiceClientCommentComposer;
-import com.google.api.generator.gapic.composer.samplecode.ServiceClientSampleCodeComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter;
+import com.google.api.generator.gapic.composer.samplecode.ServiceClientCallableMethodSampleComposer;
+import com.google.api.generator.gapic.composer.samplecode.ServiceClientHeaderSampleComposer;
+import com.google.api.generator.gapic.composer.samplecode.ServiceClientMethodSampleComposer;
 import com.google.api.generator.gapic.composer.store.TypeStore;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
 import com.google.api.generator.gapic.composer.utils.PackageChecker;
@@ -69,6 +72,7 @@
 import com.google.api.generator.gapic.model.Method.Stream;
 import com.google.api.generator.gapic.model.MethodArgument;
 import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.api.generator.util.TriFunction;
@@ -134,12 +138,13 @@ public GapicClass generate(GapicContext context, Service service) {
     String pakkage = service.pakkage();
     boolean hasLroClient = service.hasStandardLroMethods();
 
+    List samples = new ArrayList<>();
     Map> grpcRpcsToJavaMethodNames = new HashMap<>();
 
     ClassDefinition classDef =
         ClassDefinition.builder()
             .setHeaderCommentStatements(
-                createClassHeaderComments(service, typeStore, resourceNames, messageTypes))
+                createClassHeaderComments(service, typeStore, resourceNames, messageTypes, samples))
             .setPackageString(pakkage)
             .setAnnotations(createClassAnnotations(service, typeStore))
             .setScope(ScopeNode.PUBLIC)
@@ -153,12 +158,13 @@ public GapicClass generate(GapicContext context, Service service) {
                     typeStore,
                     resourceNames,
                     hasLroClient,
-                    grpcRpcsToJavaMethodNames))
+                    grpcRpcsToJavaMethodNames,
+                    samples))
             .setNestedClasses(createNestedPagingClasses(service, messageTypes, typeStore))
             .build();
 
     updateGapicMetadata(context, service, className, grpcRpcsToJavaMethodNames);
-    return GapicClass.create(kind, classDef);
+    return GapicClass.create(kind, classDef, samples);
   }
 
   private static List createClassAnnotations(Service service, TypeStore typeStore) {
@@ -185,20 +191,23 @@ private static List createClassHeaderComments(
       Service service,
       TypeStore typeStore,
       Map resourceNames,
-      Map messageTypes) {
+      Map messageTypes,
+      List samples) {
     TypeNode clientType = typeStore.get(ClassNames.getServiceClientClassName(service));
     TypeNode settingsType = typeStore.get(ClassNames.getServiceSettingsClassName(service));
-    String classMethodSampleCode =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
+    Sample classMethodSampleCode =
+        ServiceClientHeaderSampleComposer.composeClassHeaderSample(
             service, clientType, resourceNames, messageTypes);
-    String credentialsSampleCode =
-        ServiceClientSampleCodeComposer.composeClassHeaderCredentialsSampleCode(
-            clientType, settingsType);
-    String endpointSampleCode =
-        ServiceClientSampleCodeComposer.composeClassHeaderEndpointSampleCode(
-            clientType, settingsType);
+    Sample credentialsSampleCode =
+        ServiceClientHeaderSampleComposer.composeSetCredentialsSample(clientType, settingsType);
+    Sample endpointSampleCode =
+        ServiceClientHeaderSampleComposer.composeSetEndpointSample(clientType, settingsType);
+    samples.addAll(Arrays.asList(classMethodSampleCode, credentialsSampleCode, endpointSampleCode));
     return ServiceClientCommentComposer.createClassHeaderComments(
-        service, classMethodSampleCode, credentialsSampleCode, endpointSampleCode);
+        service,
+        SampleCodeWriter.writeInlineSample(classMethodSampleCode.body()),
+        SampleCodeWriter.writeInlineSample(credentialsSampleCode.body()),
+        SampleCodeWriter.writeInlineSample(endpointSampleCode.body()));
   }
 
   private List createClassMethods(
@@ -207,14 +216,15 @@ private List createClassMethods(
       TypeStore typeStore,
       Map resourceNames,
       boolean hasLroClient,
-      Map> grpcRpcToJavaMethodMetadata) {
+      Map> grpcRpcToJavaMethodMetadata,
+      List samples) {
     List methods = new ArrayList<>();
     methods.addAll(createStaticCreatorMethods(service, typeStore));
     methods.addAll(createConstructorMethods(service, typeStore, hasLroClient));
     methods.addAll(createGetterMethods(service, typeStore, hasLroClient));
     methods.addAll(
         createServiceMethods(
-            service, messageTypes, typeStore, resourceNames, grpcRpcToJavaMethodMetadata));
+            service, messageTypes, typeStore, resourceNames, grpcRpcToJavaMethodMetadata, samples));
     methods.addAll(createBackgroundResourceMethods(service, typeStore));
     return methods;
   }
@@ -566,7 +576,8 @@ private static List createServiceMethods(
       Map messageTypes,
       TypeStore typeStore,
       Map resourceNames,
-      Map> grpcRpcToJavaMethodMetadata) {
+      Map> grpcRpcToJavaMethodMetadata,
+      List samples) {
     List javaMethods = new ArrayList<>();
     Function javaMethodNameFn = m -> m.methodIdentifier().name();
     for (Method method : service.methods()) {
@@ -580,7 +591,8 @@ private static List createServiceMethods(
                 ClassNames.getServiceClientClassName(service),
                 messageTypes,
                 typeStore,
-                resourceNames);
+                resourceNames,
+                samples);
 
         // Collect data for gapic_metadata.json.
         grpcRpcToJavaMethodMetadata
@@ -597,7 +609,8 @@ private static List createServiceMethods(
                 ClassNames.getServiceClientClassName(service),
                 messageTypes,
                 typeStore,
-                resourceNames);
+                resourceNames,
+                samples);
 
         // Collect data for gapic_metadata.json.
         grpcRpcToJavaMethodMetadata.get(method.name()).add(javaMethodNameFn.apply(generatedMethod));
@@ -605,7 +618,8 @@ private static List createServiceMethods(
       }
       if (method.hasLro()) {
         MethodDefinition generatedMethod =
-            createLroCallableMethod(service, method, typeStore, messageTypes, resourceNames);
+            createLroCallableMethod(
+                service, method, typeStore, messageTypes, resourceNames, samples);
 
         // Collect data for gapic_metadata.json.
         grpcRpcToJavaMethodMetadata.get(method.name()).add(javaMethodNameFn.apply(generatedMethod));
@@ -613,14 +627,15 @@ private static List createServiceMethods(
       }
       if (method.isPaged()) {
         MethodDefinition generatedMethod =
-            createPagedCallableMethod(service, method, typeStore, messageTypes, resourceNames);
+            createPagedCallableMethod(
+                service, method, typeStore, messageTypes, resourceNames, samples);
 
         // Collect data for gapic_metadata.json.
         grpcRpcToJavaMethodMetadata.get(method.name()).add(javaMethodNameFn.apply(generatedMethod));
         javaMethods.add(generatedMethod);
       }
       MethodDefinition generatedMethod =
-          createCallableMethod(service, method, typeStore, messageTypes, resourceNames);
+          createCallableMethod(service, method, typeStore, messageTypes, resourceNames, samples);
 
       // Collect data for the gapic_metadata.json file.
       grpcRpcToJavaMethodMetadata.get(method.name()).add(javaMethodNameFn.apply(generatedMethod));
@@ -634,7 +649,8 @@ private static List createMethodVariants(
       String clientName,
       Map messageTypes,
       TypeStore typeStore,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     List javaMethods = new ArrayList<>();
     String methodName = JavaStyle.toLowerCamelCase(method.name());
     TypeNode methodInputType = method.inputType();
@@ -695,15 +711,22 @@ private static List createMethodVariants(
               .setReturnType(methodOutputType)
               .build();
 
-      Optional methodSampleCode =
+      Optional methodSample =
           Optional.of(
-              ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
+              ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
                   method, typeStore.get(clientName), signature, resourceNames, messageTypes));
+      Optional methodDocSample = Optional.empty();
+      if (methodSample.isPresent()) {
+        samples.add(methodSample.get());
+        methodDocSample =
+            Optional.of(SampleCodeWriter.writeInlineSample(methodSample.get().body()));
+      }
+
       MethodDefinition.Builder methodVariantBuilder =
           MethodDefinition.builder()
               .setHeaderCommentStatements(
                   ServiceClientCommentComposer.createRpcMethodHeaderComment(
-                      method, signature, methodSampleCode))
+                      method, signature, methodDocSample))
               .setScope(ScopeNode.PUBLIC)
               .setIsFinal(true)
               .setName(String.format(method.hasLro() ? "%sAsync" : "%s", methodName))
@@ -734,7 +757,8 @@ private static MethodDefinition createMethodDefaultMethod(
       String clientName,
       Map messageTypes,
       TypeStore typeStore,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     String methodName = JavaStyle.toLowerCamelCase(method.name());
     TypeNode methodInputType = method.inputType();
     TypeNode methodOutputType =
@@ -775,10 +799,16 @@ private static MethodDefinition createMethodDefaultMethod(
       callableMethodName = String.format(OPERATION_CALLABLE_NAME_PATTERN, methodName);
     }
 
-    Optional defaultMethodSampleCode =
+    Optional defaultMethodSample =
         Optional.of(
-            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
                 method, typeStore.get(clientName), resourceNames, messageTypes));
+    Optional defaultMethodDocSample = Optional.empty();
+    if (defaultMethodSample.isPresent()) {
+      samples.add(defaultMethodSample.get());
+      defaultMethodDocSample =
+          Optional.of(SampleCodeWriter.writeInlineSample(defaultMethodSample.get().body()));
+    }
 
     MethodInvocationExpr callableMethodExpr =
         MethodInvocationExpr.builder().setMethodName(callableMethodName).build();
@@ -793,7 +823,7 @@ private static MethodDefinition createMethodDefaultMethod(
         MethodDefinition.builder()
             .setHeaderCommentStatements(
                 ServiceClientCommentComposer.createRpcMethodHeaderComment(
-                    method, defaultMethodSampleCode))
+                    method, defaultMethodDocSample))
             .setScope(ScopeNode.PUBLIC)
             .setIsFinal(true)
             .setName(String.format(method.hasLro() ? "%sAsync" : "%s", methodName))
@@ -823,9 +853,10 @@ private static MethodDefinition createLroCallableMethod(
       Method method,
       TypeStore typeStore,
       Map messageTypes,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     return createCallableMethod(
-        service, method, CallableMethodKind.LRO, typeStore, messageTypes, resourceNames);
+        service, method, CallableMethodKind.LRO, typeStore, messageTypes, resourceNames, samples);
   }
 
   private static MethodDefinition createCallableMethod(
@@ -833,9 +864,16 @@ private static MethodDefinition createCallableMethod(
       Method method,
       TypeStore typeStore,
       Map messageTypes,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     return createCallableMethod(
-        service, method, CallableMethodKind.REGULAR, typeStore, messageTypes, resourceNames);
+        service,
+        method,
+        CallableMethodKind.REGULAR,
+        typeStore,
+        messageTypes,
+        resourceNames,
+        samples);
   }
 
   private static MethodDefinition createPagedCallableMethod(
@@ -843,9 +881,10 @@ private static MethodDefinition createPagedCallableMethod(
       Method method,
       TypeStore typeStore,
       Map messageTypes,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     return createCallableMethod(
-        service, method, CallableMethodKind.PAGED, typeStore, messageTypes, resourceNames);
+        service, method, CallableMethodKind.PAGED, typeStore, messageTypes, resourceNames, samples);
   }
 
   private static MethodDefinition createCallableMethod(
@@ -854,7 +893,8 @@ private static MethodDefinition createCallableMethod(
       CallableMethodKind callableMethodKind,
       TypeStore typeStore,
       Map messageTypes,
-      Map resourceNames) {
+      Map resourceNames,
+      List samples) {
     TypeNode rawCallableReturnType = null;
     if (callableMethodKind.equals(CallableMethodKind.LRO)) {
       rawCallableReturnType = typeStore.get("OperationCallable");
@@ -896,42 +936,47 @@ private static MethodDefinition createCallableMethod(
             .setReturnType(returnType)
             .build();
 
-    Optional sampleCodeOpt = Optional.empty();
+    Optional sampleCode = Optional.empty();
     if (callableMethodKind.equals(CallableMethodKind.LRO)) {
-      sampleCodeOpt =
+      sampleCode =
           Optional.of(
-              ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
+              ServiceClientCallableMethodSampleComposer.composeLroCallableMethod(
                   method,
                   typeStore.get(ClassNames.getServiceClientClassName(service)),
                   resourceNames,
                   messageTypes));
     } else if (callableMethodKind.equals(CallableMethodKind.PAGED)) {
-      sampleCodeOpt =
+      sampleCode =
           Optional.of(
-              ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
+              ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
                   method,
                   typeStore.get(ClassNames.getServiceClientClassName(service)),
                   resourceNames,
                   messageTypes));
     } else if (callableMethodKind.equals(CallableMethodKind.REGULAR)) {
       if (method.stream().equals(Stream.NONE)) {
-        sampleCodeOpt =
+        sampleCode =
             Optional.of(
-                ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
+                ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
                     method,
                     typeStore.get(ClassNames.getServiceClientClassName(service)),
                     resourceNames,
                     messageTypes));
       } else {
-        sampleCodeOpt =
+        sampleCode =
             Optional.of(
-                ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
+                ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
                     method,
                     typeStore.get(ClassNames.getServiceClientClassName(service)),
                     resourceNames,
                     messageTypes));
       }
     }
+    Optional sampleDocCode = Optional.empty();
+    if (sampleCode.isPresent()) {
+      samples.add(sampleCode.get());
+      sampleDocCode = Optional.of(SampleCodeWriter.writeInlineSample(sampleCode.get().body()));
+    }
 
     MethodDefinition.Builder methodDefBuilder = MethodDefinition.builder();
     if (method.isDeprecated()) {
@@ -943,7 +988,7 @@ private static MethodDefinition createCallableMethod(
     return methodDefBuilder
         .setHeaderCommentStatements(
             ServiceClientCommentComposer.createRpcCallableMethodHeaderComment(
-                method, sampleCodeOpt))
+                method, sampleDocCode))
         .setScope(ScopeNode.PUBLIC)
         .setIsFinal(true)
         .setName(methodName)
diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java
index ccf15a1d64..f5e34f9397 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java
@@ -50,7 +50,8 @@
 import com.google.api.generator.engine.ast.Variable;
 import com.google.api.generator.engine.ast.VariableExpr;
 import com.google.api.generator.gapic.composer.comment.SettingsCommentComposer;
-import com.google.api.generator.gapic.composer.samplecode.SettingsSampleCodeComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter;
+import com.google.api.generator.gapic.composer.samplecode.SettingsSampleComposer;
 import com.google.api.generator.gapic.composer.store.TypeStore;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
 import com.google.api.generator.gapic.composer.utils.PackageChecker;
@@ -59,6 +60,7 @@
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Method;
 import com.google.api.generator.gapic.model.Method.Stream;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.common.base.Preconditions;
@@ -100,12 +102,13 @@ public GapicClass generate(GapicContext context, Service service) {
     TypeStore typeStore = createDynamicTypes(service);
     String className = ClassNames.getServiceSettingsClassName(service);
     GapicClass.Kind kind = Kind.MAIN;
-
+    List samples = new ArrayList<>();
+    List classHeaderComments =
+        createClassHeaderComments(service, typeStore.get(className), samples);
     ClassDefinition classDef =
         ClassDefinition.builder()
             .setPackageString(pakkage)
-            .setHeaderCommentStatements(
-                createClassHeaderComments(service, typeStore.get(className)))
+            .setHeaderCommentStatements(classHeaderComments)
             .setAnnotations(createClassAnnotations(service))
             .setScope(ScopeNode.PUBLIC)
             .setName(className)
@@ -122,11 +125,11 @@ public GapicClass generate(GapicContext context, Service service) {
             .setMethods(createClassMethods(service, typeStore))
             .setNestedClasses(Arrays.asList(createNestedBuilderClass(service, typeStore)))
             .build();
-    return GapicClass.create(kind, classDef);
+    return GapicClass.create(kind, classDef, samples);
   }
 
   private static List createClassHeaderComments(
-      Service service, TypeNode classType) {
+      Service service, TypeNode classType, List samples) {
     // Pick the first pure unary rpc method, if no such method exists, then pick the first in the
     // list.
     Optional methodOpt =
@@ -139,15 +142,22 @@ private static List createClassHeaderComments(
                     .orElse(service.methods().get(0)));
     Optional methodNameOpt =
         methodOpt.isPresent() ? Optional.of(methodOpt.get().name()) : Optional.empty();
-    Optional sampleCodeOpt =
-        SettingsSampleCodeComposer.composeSampleCode(
+    Optional sampleCode =
+        SettingsSampleComposer.composeSettingsSample(
             methodNameOpt, ClassNames.getServiceSettingsClassName(service), classType);
+
+    Optional docSampleCode = Optional.empty();
+    if (sampleCode.isPresent()) {
+      samples.add(sampleCode.get());
+      docSampleCode = Optional.of(SampleCodeWriter.writeInlineSample(sampleCode.get().body()));
+    }
+
     return SettingsCommentComposer.createClassHeaderComments(
         ClassNames.getServiceClientClassName(service),
         service.defaultHost(),
         service.isDeprecated(),
         methodNameOpt,
-        sampleCodeOpt,
+        docSampleCode,
         classType);
   }
 
diff --git a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java
index 0ba5da2e49..82d8fd0e9e 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java
@@ -79,7 +79,8 @@
 import com.google.api.generator.engine.ast.Variable;
 import com.google.api.generator.engine.ast.VariableExpr;
 import com.google.api.generator.gapic.composer.comment.SettingsCommentComposer;
-import com.google.api.generator.gapic.composer.samplecode.SettingsSampleCodeComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter;
+import com.google.api.generator.gapic.composer.samplecode.SettingsSampleComposer;
 import com.google.api.generator.gapic.composer.store.TypeStore;
 import com.google.api.generator.gapic.composer.utils.ClassNames;
 import com.google.api.generator.gapic.composer.utils.PackageChecker;
@@ -91,6 +92,7 @@
 import com.google.api.generator.gapic.model.Message;
 import com.google.api.generator.gapic.model.Method;
 import com.google.api.generator.gapic.model.Method.Stream;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.gapic.utils.JavaStyle;
 import com.google.common.base.Preconditions;
@@ -168,6 +170,7 @@ public GapicClass generate(GapicContext context, Service service) {
     String pakkage = String.format("%s.stub", service.pakkage());
     TypeStore typeStore = createDynamicTypes(service, pakkage);
 
+    List samples = new ArrayList<>();
     Set deprecatedSettingVarNames = new HashSet<>();
     Map methodSettingsMemberVarExprs =
         createMethodSettingsClassMemberVarExprs(
@@ -177,12 +180,12 @@ public GapicClass generate(GapicContext context, Service service) {
             /* isNestedClass= */ false,
             deprecatedSettingVarNames);
     String className = ClassNames.getServiceStubSettingsClassName(service);
-
+    List classHeaderComments =
+        createClassHeaderComments(service, typeStore.get(className), samples);
     ClassDefinition classDef =
         ClassDefinition.builder()
             .setPackageString(pakkage)
-            .setHeaderCommentStatements(
-                createClassHeaderComments(service, typeStore.get(className)))
+            .setHeaderCommentStatements(classHeaderComments)
             .setAnnotations(createClassAnnotations(service))
             .setScope(ScopeNode.PUBLIC)
             .setName(className)
@@ -196,7 +199,7 @@ public GapicClass generate(GapicContext context, Service service) {
             .setNestedClasses(
                 Arrays.asList(createNestedBuilderClass(service, serviceConfig, typeStore)))
             .build();
-    return GapicClass.create(GapicClass.Kind.STUB, classDef);
+    return GapicClass.create(GapicClass.Kind.STUB, classDef, samples);
   }
 
   protected MethodDefinition createDefaultCredentialsProviderBuilderMethod() {
@@ -376,7 +379,7 @@ private List createClassAnnotations(Service service) {
   }
 
   private static List createClassHeaderComments(
-      Service service, TypeNode classType) {
+      Service service, TypeNode classType, List samples) {
     // Pick the first pure unary rpc method, if no such method exists, then pick the first in the
     // list.
     Optional methodOpt =
@@ -389,16 +392,22 @@ private static List createClassHeaderComments(
                     .orElse(service.methods().get(0)));
     Optional methodNameOpt =
         methodOpt.isPresent() ? Optional.of(methodOpt.get().name()) : Optional.empty();
-    Optional sampleCodeOpt =
-        SettingsSampleCodeComposer.composeSampleCode(
+    Optional sampleCode =
+        SettingsSampleComposer.composeSettingsSample(
             methodNameOpt, ClassNames.getServiceSettingsClassName(service), classType);
 
+    Optional docSampleCode = Optional.empty();
+    if (sampleCode.isPresent()) {
+      samples.add(sampleCode.get());
+      docSampleCode = Optional.of(SampleCodeWriter.writeInlineSample(sampleCode.get().body()));
+    }
+
     return SettingsCommentComposer.createClassHeaderComments(
         ClassNames.getServiceStubClassName(service),
         service.defaultHost(),
         service.isDeprecated(),
         methodNameOpt,
-        sampleCodeOpt,
+        docSampleCode,
         classType);
   }
 
diff --git a/src/main/java/com/google/api/generator/gapic/model/GapicClass.java b/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
index 8ae0376efc..bc2c8bb858 100644
--- a/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
+++ b/src/main/java/com/google/api/generator/gapic/model/GapicClass.java
@@ -16,6 +16,10 @@
 
 import com.google.api.generator.engine.ast.ClassDefinition;
 import com.google.auto.value.AutoValue;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
 
 @AutoValue
 public abstract class GapicClass {
@@ -31,12 +35,25 @@ public enum Kind {
 
   public abstract ClassDefinition classDefinition();
 
+  public abstract List samples();
+
   public static GapicClass create(Kind kind, ClassDefinition classDefinition) {
     return builder().setKind(kind).setClassDefinition(classDefinition).build();
   }
 
+  public static GapicClass create(
+      Kind kind, ClassDefinition classDefinition, List samples) {
+    return builder().setKind(kind).setClassDefinition(classDefinition).setSamples(samples).build();
+  }
+
   static Builder builder() {
-    return new AutoValue_GapicClass.Builder();
+    return new AutoValue_GapicClass.Builder().setSamples(Collections.emptyList());
+  }
+
+  abstract Builder toBuilder();
+
+  public final GapicClass withSamples(List samples) {
+    return toBuilder().setSamples(samples).build();
   }
 
   @AutoValue.Builder
@@ -45,6 +62,54 @@ abstract static class Builder {
 
     abstract Builder setClassDefinition(ClassDefinition classDefinition);
 
-    abstract GapicClass build();
+    abstract Builder setSamples(List samples);
+
+    abstract GapicClass autoBuild();
+
+    abstract List samples();
+
+    public final GapicClass build() {
+      setSamples(handleDuplicateSamples(samples()));
+      return autoBuild();
+    }
+  }
+
+  private static List handleDuplicateSamples(List samples) {
+    //  filter out any duplicate samples and group by sample name
+    Map> distinctSamplesGroupedByName =
+        samples.stream().distinct().collect(Collectors.groupingBy(s -> s.name()));
+
+    // grab unique samples
+    List uniqueSamples =
+        distinctSamplesGroupedByName.entrySet().stream()
+            .filter(entry -> entry.getValue().size() < 2)
+            .map(entry -> entry.getValue().get(0))
+            .collect(Collectors.toList());
+
+    // grab distinct samples with same name - similar version of same sample
+    List>> duplicateDistinctSamples =
+        distinctSamplesGroupedByName.entrySet().stream()
+            .filter(entry -> entry.getValue().size() > 1)
+            .collect(Collectors.toList());
+
+    // update similar samples regionTag/name so filesname/regiontag are unique
+    for (Map.Entry> entry : duplicateDistinctSamples) {
+      int sampleNum = 0;
+      for (Sample sample : entry.getValue()) {
+        //  first sample will be canonical, not updating disambiguation
+        Sample uniqueSample = sample;
+        if (sampleNum != 0) {
+          uniqueSample =
+              sample.withRegionTag(
+                  sample
+                      .regionTag()
+                      .withOverloadDisambiguation(
+                          sample.regionTag().overloadDisambiguation() + sampleNum));
+        }
+        uniqueSamples.add(uniqueSample);
+        sampleNum++;
+      }
+    }
+    return uniqueSamples;
   }
 }

From 51dd0d59014c4d0a8b3f06b0601905dd2da0f734 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 14:02:49 -0700
Subject: [PATCH 27/29] test: integration goldens - update inline sample
 comment

---
 .../cloud/asset/v1/AssetServiceClient.java    |  90 ++++++++
 .../cloud/asset/v1/AssetServiceSettings.java  |   2 +
 .../google/cloud/asset/v1/package-info.java   |   2 +
 .../v1/stub/AssetServiceStubSettings.java     |   2 +
 .../data/v2/BaseBigtableDataClient.java       |  48 ++++
 .../data/v2/BaseBigtableDataSettings.java     |   2 +
 .../cloud/bigtable/data/v2/package-info.java  |   2 +
 .../data/v2/stub/BigtableStubSettings.java    |   2 +
 .../compute/v1small/AddressesClient.java      |  38 ++++
 .../compute/v1small/AddressesSettings.java    |   2 +
 .../v1small/RegionOperationsClient.java       |  18 ++
 .../v1small/RegionOperationsSettings.java     |   2 +
 .../cloud/compute/v1small/package-info.java   |   4 +
 .../v1small/stub/AddressesStubSettings.java   |   2 +
 .../stub/RegionOperationsStubSettings.java    |   2 +
 .../credentials/v1/IamCredentialsClient.java  |  38 ++++
 .../v1/IamCredentialsSettings.java            |   2 +
 .../iam/credentials/v1/package-info.java      |   2 +
 .../v1/stub/IamCredentialsStubSettings.java   |   2 +
 .../com/google/iam/v1/IAMPolicyClient.java    |  18 ++
 .../com/google/iam/v1/IAMPolicySettings.java  |   2 +
 .../iam/com/google/iam/v1/package-info.java   |   2 +
 .../iam/v1/stub/IAMPolicyStubSettings.java    |   2 +
 .../kms/v1/KeyManagementServiceClient.java    | 208 +++++++++++++++++
 .../kms/v1/KeyManagementServiceSettings.java  |   2 +
 .../com/google/cloud/kms/v1/package-info.java |   2 +
 .../KeyManagementServiceStubSettings.java     |   2 +
 .../library/v1/LibraryServiceClient.java      |  98 ++++++++
 .../library/v1/LibraryServiceSettings.java    |   2 +
 .../example/library/v1/package-info.java      |   2 +
 .../v1/stub/LibraryServiceStubSettings.java   |   2 +
 .../google/cloud/logging/v2/ConfigClient.java | 186 +++++++++++++++
 .../cloud/logging/v2/ConfigSettings.java      |   2 +
 .../cloud/logging/v2/LoggingClient.java       |  54 +++++
 .../cloud/logging/v2/LoggingSettings.java     |   2 +
 .../cloud/logging/v2/MetricsClient.java       |  48 ++++
 .../cloud/logging/v2/MetricsSettings.java     |   2 +
 .../google/cloud/logging/v2/package-info.java |   6 +
 .../v2/stub/ConfigServiceV2StubSettings.java  |   2 +
 .../v2/stub/LoggingServiceV2StubSettings.java |   2 +
 .../v2/stub/MetricsServiceV2StubSettings.java |   2 +
 .../cloud/pubsub/v1/SchemaServiceClient.java  |  64 ++++++
 .../pubsub/v1/SchemaServiceSettings.java      |   2 +
 .../pubsub/v1/SubscriptionAdminClient.java    | 144 ++++++++++++
 .../pubsub/v1/SubscriptionAdminSettings.java  |   2 +
 .../cloud/pubsub/v1/TopicAdminClient.java     |  88 +++++++
 .../cloud/pubsub/v1/TopicAdminSettings.java   |   2 +
 .../google/cloud/pubsub/v1/package-info.java  |   6 +
 .../pubsub/v1/stub/PublisherStubSettings.java |   2 +
 .../v1/stub/SchemaServiceStubSettings.java    |   2 +
 .../v1/stub/SubscriberStubSettings.java       |   2 +
 .../cloud/redis/v1beta1/CloudRedisClient.java | 106 +++++++++
 .../redis/v1beta1/CloudRedisSettings.java     |   2 +
 .../cloud/redis/v1beta1/package-info.java     |   2 +
 .../v1beta1/stub/CloudRedisStubSettings.java  |   2 +
 .../com/google/storage/v2/StorageClient.java  | 214 ++++++++++++++++++
 .../google/storage/v2/StorageSettings.java    |   2 +
 .../com/google/storage/v2/package-info.java   |   2 +
 .../storage/v2/stub/StorageStubSettings.java  |   2 +
 59 files changed, 1556 insertions(+)

diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java b/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java
index 872d51b763..501a2c124d 100644
--- a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java
+++ b/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java
@@ -47,6 +47,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
  *   BatchGetAssetsHistoryRequest request =
  *       BatchGetAssetsHistoryRequest.newBuilder()
@@ -89,6 +91,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AssetServiceSettings assetServiceSettings =
  *     AssetServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -99,6 +103,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AssetServiceSettings assetServiceSettings =
  *     AssetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings);
@@ -183,6 +189,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ExportAssetsRequest request =
    *       ExportAssetsRequest.newBuilder()
@@ -219,6 +227,8 @@ public final OperationFuture exportAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ExportAssetsRequest request =
    *       ExportAssetsRequest.newBuilder()
@@ -255,6 +265,8 @@ public final OperationFuture exportAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ExportAssetsRequest request =
    *       ExportAssetsRequest.newBuilder()
@@ -282,6 +294,8 @@ public final UnaryCallable exportAssetsCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ResourceName parent = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
    *   for (Asset element : assetServiceClient.listAssets(parent).iterateAll()) {
@@ -309,6 +323,8 @@ public final ListAssetsPagedResponse listAssets(ResourceName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String parent = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
    *   for (Asset element : assetServiceClient.listAssets(parent).iterateAll()) {
@@ -335,6 +351,8 @@ public final ListAssetsPagedResponse listAssets(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListAssetsRequest request =
    *       ListAssetsRequest.newBuilder()
@@ -366,6 +384,8 @@ public final ListAssetsPagedResponse listAssets(ListAssetsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListAssetsRequest request =
    *       ListAssetsRequest.newBuilder()
@@ -396,6 +416,8 @@ public final UnaryCallable listAsset
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListAssetsRequest request =
    *       ListAssetsRequest.newBuilder()
@@ -437,6 +459,8 @@ public final UnaryCallable listAssetsCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   BatchGetAssetsHistoryRequest request =
    *       BatchGetAssetsHistoryRequest.newBuilder()
@@ -469,6 +493,8 @@ public final BatchGetAssetsHistoryResponse batchGetAssetsHistory(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   BatchGetAssetsHistoryRequest request =
    *       BatchGetAssetsHistoryRequest.newBuilder()
@@ -497,6 +523,8 @@ public final BatchGetAssetsHistoryResponse batchGetAssetsHistory(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String parent = "parent-995424086";
    *   Feed response = assetServiceClient.createFeed(parent);
@@ -521,6 +549,8 @@ public final Feed createFeed(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   CreateFeedRequest request =
    *       CreateFeedRequest.newBuilder()
@@ -546,6 +576,8 @@ public final Feed createFeed(CreateFeedRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   CreateFeedRequest request =
    *       CreateFeedRequest.newBuilder()
@@ -570,6 +602,8 @@ public final UnaryCallable createFeedCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
    *   Feed response = assetServiceClient.getFeed(name);
@@ -594,6 +628,8 @@ public final Feed getFeed(FeedName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
    *   Feed response = assetServiceClient.getFeed(name);
@@ -617,6 +653,8 @@ public final Feed getFeed(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   GetFeedRequest request =
    *       GetFeedRequest.newBuilder()
@@ -640,6 +678,8 @@ public final Feed getFeed(GetFeedRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   GetFeedRequest request =
    *       GetFeedRequest.newBuilder()
@@ -662,6 +702,8 @@ public final UnaryCallable getFeedCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String parent = "parent-995424086";
    *   ListFeedsResponse response = assetServiceClient.listFeeds(parent);
@@ -685,6 +727,8 @@ public final ListFeedsResponse listFeeds(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListFeedsRequest request =
    *       ListFeedsRequest.newBuilder().setParent("parent-995424086").build();
@@ -706,6 +750,8 @@ public final ListFeedsResponse listFeeds(ListFeedsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   ListFeedsRequest request =
    *       ListFeedsRequest.newBuilder().setParent("parent-995424086").build();
@@ -727,6 +773,8 @@ public final UnaryCallable listFeedsCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   Feed feed = Feed.newBuilder().build();
    *   Feed response = assetServiceClient.updateFeed(feed);
@@ -750,6 +798,8 @@ public final Feed updateFeed(Feed feed) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   UpdateFeedRequest request =
    *       UpdateFeedRequest.newBuilder()
@@ -774,6 +824,8 @@ public final Feed updateFeed(UpdateFeedRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   UpdateFeedRequest request =
    *       UpdateFeedRequest.newBuilder()
@@ -797,6 +849,8 @@ public final UnaryCallable updateFeedCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]");
    *   assetServiceClient.deleteFeed(name);
@@ -821,6 +875,8 @@ public final void deleteFeed(FeedName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString();
    *   assetServiceClient.deleteFeed(name);
@@ -844,6 +900,8 @@ public final void deleteFeed(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   DeleteFeedRequest request =
    *       DeleteFeedRequest.newBuilder()
@@ -867,6 +925,8 @@ public final void deleteFeed(DeleteFeedRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   DeleteFeedRequest request =
    *       DeleteFeedRequest.newBuilder()
@@ -891,6 +951,8 @@ public final UnaryCallable deleteFeedCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String scope = "scope109264468";
    *   String query = "query107944136";
@@ -985,6 +1047,8 @@ public final SearchAllResourcesPagedResponse searchAllResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllResourcesRequest request =
    *       SearchAllResourcesRequest.newBuilder()
@@ -1020,6 +1084,8 @@ public final SearchAllResourcesPagedResponse searchAllResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllResourcesRequest request =
    *       SearchAllResourcesRequest.newBuilder()
@@ -1054,6 +1120,8 @@ public final SearchAllResourcesPagedResponse searchAllResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllResourcesRequest request =
    *       SearchAllResourcesRequest.newBuilder()
@@ -1095,6 +1163,8 @@ public final SearchAllResourcesPagedResponse searchAllResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   String scope = "scope109264468";
    *   String query = "query107944136";
@@ -1171,6 +1241,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllIamPoliciesRequest request =
    *       SearchAllIamPoliciesRequest.newBuilder()
@@ -1205,6 +1277,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllIamPoliciesRequest request =
    *       SearchAllIamPoliciesRequest.newBuilder()
@@ -1238,6 +1312,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   SearchAllIamPoliciesRequest request =
    *       SearchAllIamPoliciesRequest.newBuilder()
@@ -1276,6 +1352,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyRequest request =
    *       AnalyzeIamPolicyRequest.newBuilder()
@@ -1300,6 +1378,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyRequest request =
    *       AnalyzeIamPolicyRequest.newBuilder()
@@ -1332,6 +1412,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyLongrunningRequest request =
    *       AnalyzeIamPolicyLongrunningRequest.newBuilder()
@@ -1366,6 +1448,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyLongrunningRequest request =
    *       AnalyzeIamPolicyLongrunningRequest.newBuilder()
@@ -1402,6 +1486,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeIamPolicyLongrunningRequest request =
    *       AnalyzeIamPolicyLongrunningRequest.newBuilder()
@@ -1430,6 +1516,8 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeMoveRequest request =
    *       AnalyzeMoveRequest.newBuilder()
@@ -1457,6 +1545,8 @@ public final AnalyzeMoveResponse analyzeMove(AnalyzeMoveRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
    *   AnalyzeMoveRequest request =
    *       AnalyzeMoveRequest.newBuilder()
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java b/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java
index 7fa69d5191..24fe05b9e5 100644
--- a/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java
+++ b/test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java
@@ -58,6 +58,8 @@
  * 

For example, to set the total timeout of batchGetAssetsHistory to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder();
  * assetServiceSettingsBuilder
  *     .batchGetAssetsHistorySettings()
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java b/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java
index cb0c5531a1..e98658c5b0 100644
--- a/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java
+++ b/test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java
@@ -24,6 +24,8 @@
  * 

Sample for AssetServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
  *   BatchGetAssetsHistoryRequest request =
  *       BatchGetAssetsHistoryRequest.newBuilder()
diff --git a/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
index 4b5ca31957..842073522f 100644
--- a/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
+++ b/test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
@@ -102,6 +102,8 @@
  * 

For example, to set the total timeout of batchGetAssetsHistory to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AssetServiceStubSettings.Builder assetServiceSettingsBuilder =
  *     AssetServiceStubSettings.newBuilder();
  * assetServiceSettingsBuilder
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
index f7ab00af96..b1543dcdca 100644
--- a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
+++ b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java
@@ -52,6 +52,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
  *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
  *   ByteString rowKey = ByteString.EMPTY;
@@ -90,6 +92,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BaseBigtableDataSettings baseBigtableDataSettings =
  *     BaseBigtableDataSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -101,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BaseBigtableDataSettings baseBigtableDataSettings =
  *     BaseBigtableDataSettings.newBuilder().setEndpoint(myEndpoint).build();
  * BaseBigtableDataClient baseBigtableDataClient =
@@ -172,6 +178,8 @@ public BigtableStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   ReadRowsRequest request =
    *       ReadRowsRequest.newBuilder()
@@ -202,6 +210,8 @@ public final ServerStreamingCallable readRows
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   SampleRowKeysRequest request =
    *       SampleRowKeysRequest.newBuilder()
@@ -229,6 +239,8 @@ public final ServerStreamingCallable readRows
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -265,6 +277,8 @@ public final MutateRowResponse mutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -301,6 +315,8 @@ public final MutateRowResponse mutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -342,6 +358,8 @@ public final MutateRowResponse mutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -383,6 +401,8 @@ public final MutateRowResponse mutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   MutateRowRequest request =
    *       MutateRowRequest.newBuilder()
@@ -410,6 +430,8 @@ public final MutateRowResponse mutateRow(MutateRowRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   MutateRowRequest request =
    *       MutateRowRequest.newBuilder()
@@ -437,6 +459,8 @@ public final UnaryCallable mutateRowCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   MutateRowsRequest request =
    *       MutateRowsRequest.newBuilder()
@@ -463,6 +487,8 @@ public final ServerStreamingCallable muta
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -516,6 +542,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -569,6 +597,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -627,6 +657,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -685,6 +717,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   CheckAndMutateRowRequest request =
    *       CheckAndMutateRowRequest.newBuilder()
@@ -713,6 +747,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(CheckAndMutateRowReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   CheckAndMutateRowRequest request =
    *       CheckAndMutateRowRequest.newBuilder()
@@ -745,6 +781,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(CheckAndMutateRowReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -785,6 +823,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -825,6 +865,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
    *   ByteString rowKey = ByteString.EMPTY;
@@ -872,6 +914,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
    *   ByteString rowKey = ByteString.EMPTY;
@@ -916,6 +960,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   ReadModifyWriteRowRequest request =
    *       ReadModifyWriteRowRequest.newBuilder()
@@ -945,6 +991,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(ReadModifyWriteRowReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
    *   ReadModifyWriteRowRequest request =
    *       ReadModifyWriteRowRequest.newBuilder()
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
index b363e2367e..d98451c60b 100644
--- a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
+++ b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java
@@ -63,6 +63,8 @@
  * 

For example, to set the total timeout of mutateRow to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BaseBigtableDataSettings.Builder baseBigtableDataSettingsBuilder =
  *     BaseBigtableDataSettings.newBuilder();
  * baseBigtableDataSettingsBuilder
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java
index 8053595e28..5796a99103 100644
--- a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java
+++ b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java
@@ -24,6 +24,8 @@
  * 

Sample for BaseBigtableDataClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
  *   TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
  *   ByteString rowKey = ByteString.EMPTY;
diff --git a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
index a901956a22..9489b80f91 100644
--- a/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
+++ b/test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java
@@ -71,6 +71,8 @@
  * 

For example, to set the total timeout of mutateRow to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BigtableStubSettings.Builder baseBigtableDataSettingsBuilder =
  *     BigtableStubSettings.newBuilder();
  * baseBigtableDataSettingsBuilder
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java
index f1af094dab..579e8a9336 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesClient.java
@@ -46,6 +46,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AddressesClient addressesClient = AddressesClient.create()) {
  *   String project = "project-309310695";
  *   for (Map.Entry element :
@@ -84,6 +86,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AddressesSettings addressesSettings =
  *     AddressesSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +98,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AddressesSettings addressesSettings =
  *     AddressesSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AddressesClient addressesClient = AddressesClient.create(addressesSettings);
@@ -159,6 +165,8 @@ public AddressesStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   String project = "project-309310695";
    *   for (Map.Entry element :
@@ -184,6 +192,8 @@ public final AggregatedListPagedResponse aggregatedList(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   AggregatedListAddressesRequest request =
    *       AggregatedListAddressesRequest.newBuilder()
@@ -215,6 +225,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   AggregatedListAddressesRequest request =
    *       AggregatedListAddressesRequest.newBuilder()
@@ -246,6 +258,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   AggregatedListAddressesRequest request =
    *       AggregatedListAddressesRequest.newBuilder()
@@ -283,6 +297,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -314,6 +330,8 @@ public final OperationFuture deleteAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   DeleteAddressRequest request =
    *       DeleteAddressRequest.newBuilder()
@@ -342,6 +360,8 @@ public final OperationFuture deleteAsync(DeleteAddressRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   DeleteAddressRequest request =
    *       DeleteAddressRequest.newBuilder()
@@ -369,6 +389,8 @@ public final OperationFuture deleteAsync(DeleteAddressRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   DeleteAddressRequest request =
    *       DeleteAddressRequest.newBuilder()
@@ -394,6 +416,8 @@ public final UnaryCallable deleteCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -425,6 +449,8 @@ public final OperationFuture insertAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   InsertAddressRequest request =
    *       InsertAddressRequest.newBuilder()
@@ -453,6 +479,8 @@ public final OperationFuture insertAsync(InsertAddressRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   InsertAddressRequest request =
    *       InsertAddressRequest.newBuilder()
@@ -480,6 +508,8 @@ public final OperationFuture insertAsync(InsertAddressRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   InsertAddressRequest request =
    *       InsertAddressRequest.newBuilder()
@@ -505,6 +535,8 @@ public final UnaryCallable insertCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -543,6 +575,8 @@ public final ListPagedResponse list(String project, String region, String orderB
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   ListAddressesRequest request =
    *       ListAddressesRequest.newBuilder()
@@ -573,6 +607,8 @@ public final ListPagedResponse list(ListAddressesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   ListAddressesRequest request =
    *       ListAddressesRequest.newBuilder()
@@ -602,6 +638,8 @@ public final UnaryCallable listPagedCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AddressesClient addressesClient = AddressesClient.create()) {
    *   ListAddressesRequest request =
    *       ListAddressesRequest.newBuilder()
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java
index 7023bdafb8..d5c799453b 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/AddressesSettings.java
@@ -55,6 +55,8 @@
  * 

For example, to set the total timeout of aggregatedList to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AddressesSettings.Builder addressesSettingsBuilder = AddressesSettings.newBuilder();
  * addressesSettingsBuilder
  *     .aggregatedListSettings()
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java
index b5b07641ad..dcec18f5b3 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsClient.java
@@ -33,6 +33,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
  *   String project = "project-309310695";
  *   String region = "region-934795532";
@@ -71,6 +73,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * RegionOperationsSettings regionOperationsSettings =
  *     RegionOperationsSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -82,6 +86,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * RegionOperationsSettings regionOperationsSettings =
  *     RegionOperationsSettings.newBuilder().setEndpoint(myEndpoint).build();
  * RegionOperationsClient regionOperationsClient =
@@ -150,6 +156,8 @@ public RegionOperationsStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -180,6 +188,8 @@ public final Operation get(String project, String region, String operation) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   GetRegionOperationRequest request =
    *       GetRegionOperationRequest.newBuilder()
@@ -205,6 +215,8 @@ public final Operation get(GetRegionOperationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   GetRegionOperationRequest request =
    *       GetRegionOperationRequest.newBuilder()
@@ -238,6 +250,8 @@ public final UnaryCallable getCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   String project = "project-309310695";
    *   String region = "region-934795532";
@@ -277,6 +291,8 @@ public final Operation wait(String project, String region, String operation) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   WaitRegionOperationRequest request =
    *       WaitRegionOperationRequest.newBuilder()
@@ -311,6 +327,8 @@ public final Operation wait(WaitRegionOperationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
    *   WaitRegionOperationRequest request =
    *       WaitRegionOperationRequest.newBuilder()
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java
index 6972d21b7a..7481512b16 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/RegionOperationsSettings.java
@@ -50,6 +50,8 @@
  * 

For example, to set the total timeout of get to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * RegionOperationsSettings.Builder regionOperationsSettingsBuilder =
  *     RegionOperationsSettings.newBuilder();
  * regionOperationsSettingsBuilder
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java
index a50a95d460..7f945ac078 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/package-info.java
@@ -26,6 +26,8 @@
  * 

Sample for AddressesClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AddressesClient addressesClient = AddressesClient.create()) {
  *   String project = "project-309310695";
  *   for (Map.Entry element :
@@ -42,6 +44,8 @@
  * 

Sample for RegionOperationsClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
  *   String project = "project-309310695";
  *   String region = "region-934795532";
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java
index 29a32cc6b1..d870e63477 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java
@@ -83,6 +83,8 @@
  * 

For example, to set the total timeout of aggregatedList to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AddressesStubSettings.Builder addressesSettingsBuilder = AddressesStubSettings.newBuilder();
  * addressesSettingsBuilder
  *     .aggregatedListSettings()
diff --git a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java b/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java
index 8e64114336..83ba9319e1 100644
--- a/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java
+++ b/test/integration/goldens/compute/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java
@@ -61,6 +61,8 @@
  * 

For example, to set the total timeout of get to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * RegionOperationsStubSettings.Builder regionOperationsSettingsBuilder =
  *     RegionOperationsStubSettings.newBuilder();
  * regionOperationsSettingsBuilder
diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java
index ccb4b7cc2f..5c1dd677c3 100644
--- a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java
+++ b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java
@@ -43,6 +43,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
  *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
  *   List delegates = new ArrayList<>();
@@ -82,6 +84,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IamCredentialsSettings iamCredentialsSettings =
  *     IamCredentialsSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,6 +96,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IamCredentialsSettings iamCredentialsSettings =
  *     IamCredentialsSettings.newBuilder().setEndpoint(myEndpoint).build();
  * IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings);
@@ -159,6 +165,8 @@ public IamCredentialsStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    *   List delegates = new ArrayList<>();
@@ -208,6 +216,8 @@ public final GenerateAccessTokenResponse generateAccessToken(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    *   List delegates = new ArrayList<>();
@@ -257,6 +267,8 @@ public final GenerateAccessTokenResponse generateAccessToken(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   GenerateAccessTokenRequest request =
    *       GenerateAccessTokenRequest.newBuilder()
@@ -283,6 +295,8 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   GenerateAccessTokenRequest request =
    *       GenerateAccessTokenRequest.newBuilder()
@@ -310,6 +324,8 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    *   List delegates = new ArrayList<>();
@@ -357,6 +373,8 @@ public final GenerateIdTokenResponse generateIdToken(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    *   List delegates = new ArrayList<>();
@@ -404,6 +422,8 @@ public final GenerateIdTokenResponse generateIdToken(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   GenerateIdTokenRequest request =
    *       GenerateIdTokenRequest.newBuilder()
@@ -430,6 +450,8 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   GenerateIdTokenRequest request =
    *       GenerateIdTokenRequest.newBuilder()
@@ -457,6 +479,8 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    *   List delegates = new ArrayList<>();
@@ -498,6 +522,8 @@ public final SignBlobResponse signBlob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    *   List delegates = new ArrayList<>();
@@ -538,6 +564,8 @@ public final SignBlobResponse signBlob(String name, List delegates, Byte
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   SignBlobRequest request =
    *       SignBlobRequest.newBuilder()
@@ -563,6 +591,8 @@ public final SignBlobResponse signBlob(SignBlobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   SignBlobRequest request =
    *       SignBlobRequest.newBuilder()
@@ -588,6 +618,8 @@ public final UnaryCallable signBlobCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    *   List delegates = new ArrayList<>();
@@ -629,6 +661,8 @@ public final SignJwtResponse signJwt(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    *   List delegates = new ArrayList<>();
@@ -669,6 +703,8 @@ public final SignJwtResponse signJwt(String name, List delegates, String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   SignJwtRequest request =
    *       SignJwtRequest.newBuilder()
@@ -694,6 +730,8 @@ public final SignJwtResponse signJwt(SignJwtRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
    *   SignJwtRequest request =
    *       SignJwtRequest.newBuilder()
diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java
index 57f32e2dc4..dd2dd1fdef 100644
--- a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java
+++ b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java
@@ -51,6 +51,8 @@
  * 

For example, to set the total timeout of generateAccessToken to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IamCredentialsSettings.Builder iamCredentialsSettingsBuilder =
  *     IamCredentialsSettings.newBuilder();
  * iamCredentialsSettingsBuilder
diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java
index c88c831eba..da4fef9f25 100644
--- a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java
+++ b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/package-info.java
@@ -31,6 +31,8 @@
  * 

Sample for IamCredentialsClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
  *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
  *   List delegates = new ArrayList<>();
diff --git a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java
index 68f633d7d1..c5a188f4fc 100644
--- a/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java
+++ b/test/integration/goldens/credentials/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java
@@ -67,6 +67,8 @@
  * 

For example, to set the total timeout of generateAccessToken to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IamCredentialsStubSettings.Builder iamCredentialsSettingsBuilder =
  *     IamCredentialsStubSettings.newBuilder();
  * iamCredentialsSettingsBuilder
diff --git a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java b/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java
index c8ed891b8f..64444f651d 100644
--- a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java
+++ b/test/integration/goldens/iam/com/google/iam/v1/IAMPolicyClient.java
@@ -54,6 +54,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
  *   SetIamPolicyRequest request =
  *       SetIamPolicyRequest.newBuilder()
@@ -93,6 +95,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IAMPolicySettings iAMPolicySettings =
  *     IAMPolicySettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -103,6 +107,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IAMPolicySettings iAMPolicySettings =
  *     IAMPolicySettings.newBuilder().setEndpoint(myEndpoint).build();
  * IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create(iAMPolicySettings);
@@ -168,6 +174,8 @@ public IAMPolicyStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -192,6 +200,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -216,6 +226,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -241,6 +253,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -269,6 +283,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -298,6 +314,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
diff --git a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java b/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java
index 04b5f1d8b5..342de64f79 100644
--- a/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java
+++ b/test/integration/goldens/iam/com/google/iam/v1/IAMPolicySettings.java
@@ -50,6 +50,8 @@
  * 

For example, to set the total timeout of setIamPolicy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IAMPolicySettings.Builder iAMPolicySettingsBuilder = IAMPolicySettings.newBuilder();
  * iAMPolicySettingsBuilder
  *     .setIamPolicySettings()
diff --git a/test/integration/goldens/iam/com/google/iam/v1/package-info.java b/test/integration/goldens/iam/com/google/iam/v1/package-info.java
index 92ccf1f602..9765ae91e3 100644
--- a/test/integration/goldens/iam/com/google/iam/v1/package-info.java
+++ b/test/integration/goldens/iam/com/google/iam/v1/package-info.java
@@ -45,6 +45,8 @@
  * 

Sample for IAMPolicyClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IAMPolicyClient iAMPolicyClient = IAMPolicyClient.create()) {
  *   SetIamPolicyRequest request =
  *       SetIamPolicyRequest.newBuilder()
diff --git a/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java b/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java
index ebeea7772d..063e2c605d 100644
--- a/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java
+++ b/test/integration/goldens/iam/com/google/iam/v1/stub/IAMPolicyStubSettings.java
@@ -63,6 +63,8 @@
  * 

For example, to set the total timeout of setIamPolicy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IAMPolicyStubSettings.Builder iAMPolicySettingsBuilder = IAMPolicyStubSettings.newBuilder();
  * iAMPolicySettingsBuilder
  *     .setIamPolicySettings()
diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java
index 6dfc6544ea..7edd77bdc4 100644
--- a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java
+++ b/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceClient.java
@@ -65,6 +65,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (KeyManagementServiceClient keyManagementServiceClient =
  *     KeyManagementServiceClient.create()) {
  *   KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -102,6 +104,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * KeyManagementServiceSettings keyManagementServiceSettings =
  *     KeyManagementServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -113,6 +117,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * KeyManagementServiceSettings keyManagementServiceSettings =
  *     KeyManagementServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * KeyManagementServiceClient keyManagementServiceClient =
@@ -181,6 +187,8 @@ public KeyManagementServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -209,6 +217,8 @@ public final ListKeyRingsPagedResponse listKeyRings(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -234,6 +244,8 @@ public final ListKeyRingsPagedResponse listKeyRings(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListKeyRingsRequest request =
@@ -264,6 +276,8 @@ public final ListKeyRingsPagedResponse listKeyRings(ListKeyRingsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListKeyRingsRequest request =
@@ -295,6 +309,8 @@ public final ListKeyRingsPagedResponse listKeyRings(ListKeyRingsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListKeyRingsRequest request =
@@ -332,6 +348,8 @@ public final UnaryCallable listKeyRin
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -360,6 +378,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(KeyRingName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -385,6 +405,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeysRequest request =
@@ -415,6 +437,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeysRequest request =
@@ -446,6 +470,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeysRequest request =
@@ -484,6 +510,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName parent =
@@ -514,6 +542,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(CryptoKeyN
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent =
@@ -542,6 +572,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(String par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeyVersionsRequest request =
@@ -576,6 +608,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeyVersionsRequest request =
@@ -609,6 +643,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListCryptoKeyVersionsRequest request =
@@ -649,6 +685,8 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -677,6 +715,8 @@ public final ListImportJobsPagedResponse listImportJobs(KeyRingName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -702,6 +742,8 @@ public final ListImportJobsPagedResponse listImportJobs(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListImportJobsRequest request =
@@ -732,6 +774,8 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListImportJobsRequest request =
@@ -763,6 +807,8 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListImportJobsRequest request =
@@ -801,6 +847,8 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -825,6 +873,8 @@ public final KeyRing getKeyRing(KeyRingName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -848,6 +898,8 @@ public final KeyRing getKeyRing(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetKeyRingRequest request =
@@ -872,6 +924,8 @@ public final KeyRing getKeyRing(GetKeyRingRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetKeyRingRequest request =
@@ -898,6 +952,8 @@ public final UnaryCallable getKeyRingCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName name =
@@ -925,6 +981,8 @@ public final CryptoKey getCryptoKey(CryptoKeyName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -951,6 +1009,8 @@ public final CryptoKey getCryptoKey(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetCryptoKeyRequest request =
@@ -979,6 +1039,8 @@ public final CryptoKey getCryptoKey(GetCryptoKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetCryptoKeyRequest request =
@@ -1005,6 +1067,8 @@ public final UnaryCallable getCryptoKeyCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -1033,6 +1097,8 @@ public final CryptoKeyVersion getCryptoKeyVersion(CryptoKeyVersionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -1060,6 +1126,8 @@ public final CryptoKeyVersion getCryptoKeyVersion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetCryptoKeyVersionRequest request =
@@ -1091,6 +1159,8 @@ public final CryptoKeyVersion getCryptoKeyVersion(GetCryptoKeyVersionRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetCryptoKeyVersionRequest request =
@@ -1126,6 +1196,8 @@ public final CryptoKeyVersion getCryptoKeyVersion(GetCryptoKeyVersionRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -1155,6 +1227,8 @@ public final PublicKey getPublicKey(CryptoKeyVersionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -1184,6 +1258,8 @@ public final PublicKey getPublicKey(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetPublicKeyRequest request =
@@ -1218,6 +1294,8 @@ public final PublicKey getPublicKey(GetPublicKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetPublicKeyRequest request =
@@ -1249,6 +1327,8 @@ public final UnaryCallable getPublicKeyCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ImportJobName name =
@@ -1274,6 +1354,8 @@ public final ImportJob getImportJob(ImportJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -1298,6 +1380,8 @@ public final ImportJob getImportJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetImportJobRequest request =
@@ -1324,6 +1408,8 @@ public final ImportJob getImportJob(GetImportJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetImportJobRequest request =
@@ -1350,6 +1436,8 @@ public final UnaryCallable getImportJobCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -1383,6 +1471,8 @@ public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRin
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -1416,6 +1506,8 @@ public final KeyRing createKeyRing(String parent, String keyRingId, KeyRing keyR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateKeyRingRequest request =
@@ -1442,6 +1534,8 @@ public final KeyRing createKeyRing(CreateKeyRingRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateKeyRingRequest request =
@@ -1473,6 +1567,8 @@ public final UnaryCallable createKeyRingCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -1514,6 +1610,8 @@ public final CryptoKey createCryptoKey(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -1554,6 +1652,8 @@ public final CryptoKey createCryptoKey(String parent, String cryptoKeyId, Crypto
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateCryptoKeyRequest request =
@@ -1586,6 +1686,8 @@ public final CryptoKey createCryptoKey(CreateCryptoKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateCryptoKeyRequest request =
@@ -1618,6 +1720,8 @@ public final UnaryCallable createCryptoKeyCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName parent =
@@ -1657,6 +1761,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent =
@@ -1696,6 +1802,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateCryptoKeyVersionRequest request =
@@ -1728,6 +1836,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(CreateCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateCryptoKeyVersionRequest request =
@@ -1761,6 +1871,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(CreateCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ImportCryptoKeyVersionRequest request =
@@ -1793,6 +1905,8 @@ public final CryptoKeyVersion importCryptoKeyVersion(ImportCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ImportCryptoKeyVersionRequest request =
@@ -1824,6 +1938,8 @@ public final CryptoKeyVersion importCryptoKeyVersion(ImportCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
@@ -1864,6 +1980,8 @@ public final ImportJob createImportJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString();
@@ -1903,6 +2021,8 @@ public final ImportJob createImportJob(String parent, String importJobId, Import
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateImportJobRequest request =
@@ -1932,6 +2052,8 @@ public final ImportJob createImportJob(CreateImportJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CreateImportJobRequest request =
@@ -1958,6 +2080,8 @@ public final UnaryCallable createImportJobCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKey cryptoKey = CryptoKey.newBuilder().build();
@@ -1986,6 +2110,8 @@ public final CryptoKey updateCryptoKey(CryptoKey cryptoKey, FieldMask updateMask
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyRequest request =
@@ -2011,6 +2137,8 @@ public final CryptoKey updateCryptoKey(UpdateCryptoKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyRequest request =
@@ -2044,6 +2172,8 @@ public final UnaryCallable updateCryptoKeyCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build();
@@ -2083,6 +2213,8 @@ public final CryptoKeyVersion updateCryptoKeyVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyVersionRequest request =
@@ -2116,6 +2248,8 @@ public final CryptoKeyVersion updateCryptoKeyVersion(UpdateCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyVersionRequest request =
@@ -2145,6 +2279,8 @@ public final CryptoKeyVersion updateCryptoKeyVersion(UpdateCryptoKeyVersionReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ResourceName name = CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -2185,6 +2321,8 @@ public final EncryptResponse encrypt(ResourceName name, ByteString plaintext) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2223,6 +2361,8 @@ public final EncryptResponse encrypt(String name, ByteString plaintext) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   EncryptRequest request =
@@ -2256,6 +2396,8 @@ public final EncryptResponse encrypt(EncryptRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   EncryptRequest request =
@@ -2289,6 +2431,8 @@ public final UnaryCallable encryptCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName name =
@@ -2323,6 +2467,8 @@ public final DecryptResponse decrypt(CryptoKeyName name, ByteString ciphertext)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2354,6 +2500,8 @@ public final DecryptResponse decrypt(String name, ByteString ciphertext) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   DecryptRequest request =
@@ -2387,6 +2535,8 @@ public final DecryptResponse decrypt(DecryptRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   DecryptRequest request =
@@ -2420,6 +2570,8 @@ public final UnaryCallable decryptCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -2456,6 +2608,8 @@ public final AsymmetricSignResponse asymmetricSign(CryptoKeyVersionName name, Di
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2490,6 +2644,8 @@ public final AsymmetricSignResponse asymmetricSign(String name, Digest digest) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   AsymmetricSignRequest request =
@@ -2526,6 +2682,8 @@ public final AsymmetricSignResponse asymmetricSign(AsymmetricSignRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   AsymmetricSignRequest request =
@@ -2563,6 +2721,8 @@ public final AsymmetricSignResponse asymmetricSign(AsymmetricSignRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -2600,6 +2760,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2634,6 +2796,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(String name, ByteString
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   AsymmetricDecryptRequest request =
@@ -2670,6 +2834,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(AsymmetricDecryptReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   AsymmetricDecryptRequest request =
@@ -2707,6 +2873,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(AsymmetricDecryptReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyName name =
@@ -2743,6 +2911,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2778,6 +2948,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(String name, String cryptoK
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyPrimaryVersionRequest request =
@@ -2809,6 +2981,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   UpdateCryptoKeyPrimaryVersionRequest request =
@@ -2850,6 +3024,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -2891,6 +3067,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(CryptoKeyVersionName name)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -2931,6 +3109,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   DestroyCryptoKeyVersionRequest request =
@@ -2975,6 +3155,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(DestroyCryptoKeyVersionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   DestroyCryptoKeyVersionRequest request =
@@ -3014,6 +3196,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(DestroyCryptoKeyVersionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   CryptoKeyVersionName name =
@@ -3049,6 +3233,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(CryptoKeyVersionName name)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   String name =
@@ -3083,6 +3269,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   RestoreCryptoKeyVersionRequest request =
@@ -3121,6 +3309,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(RestoreCryptoKeyVersionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   RestoreCryptoKeyVersionRequest request =
@@ -3154,6 +3344,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(RestoreCryptoKeyVersionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetIamPolicyRequest request =
@@ -3182,6 +3374,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetIamPolicyRequest request =
@@ -3209,6 +3403,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -3238,6 +3434,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -3268,6 +3466,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -3304,6 +3504,8 @@ public final UnaryCallable listLoca
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
@@ -3325,6 +3527,8 @@ public final Location getLocation(GetLocationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
@@ -3347,6 +3551,8 @@ public final UnaryCallable getLocationCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   TestIamPermissionsRequest request =
@@ -3375,6 +3581,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (KeyManagementServiceClient keyManagementServiceClient =
    *     KeyManagementServiceClient.create()) {
    *   TestIamPermissionsRequest request =
diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java
index 3d141418d1..2b750af8a7 100644
--- a/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java
+++ b/test/integration/goldens/kms/com/google/cloud/kms/v1/KeyManagementServiceSettings.java
@@ -65,6 +65,8 @@
  * 

For example, to set the total timeout of getKeyRing to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder =
  *     KeyManagementServiceSettings.newBuilder();
  * keyManagementServiceSettingsBuilder
diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java b/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java
index 879e6a2d3a..fc9d5ed30f 100644
--- a/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java
+++ b/test/integration/goldens/kms/com/google/cloud/kms/v1/package-info.java
@@ -39,6 +39,8 @@
  * 

Sample for KeyManagementServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (KeyManagementServiceClient keyManagementServiceClient =
  *     KeyManagementServiceClient.create()) {
  *   KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
diff --git a/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java
index a403a36e42..5c5f66fd26 100644
--- a/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java
+++ b/test/integration/goldens/kms/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java
@@ -115,6 +115,8 @@
  * 

For example, to set the total timeout of getKeyRing to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * KeyManagementServiceStubSettings.Builder keyManagementServiceSettingsBuilder =
  *     KeyManagementServiceStubSettings.newBuilder();
  * keyManagementServiceSettingsBuilder
diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java b/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java
index 5efedbb486..ca7865e600 100644
--- a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java
+++ b/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceClient.java
@@ -67,6 +67,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
  *   Shelf shelf = Shelf.newBuilder().build();
  *   Shelf response = libraryServiceClient.createShelf(shelf);
@@ -102,6 +104,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LibraryServiceSettings libraryServiceSettings =
  *     LibraryServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -112,6 +116,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LibraryServiceSettings libraryServiceSettings =
  *     LibraryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * LibraryServiceClient libraryServiceClient = LibraryServiceClient.create(libraryServiceSettings);
@@ -179,6 +185,8 @@ public LibraryServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   Shelf shelf = Shelf.newBuilder().build();
    *   Shelf response = libraryServiceClient.createShelf(shelf);
@@ -200,6 +208,8 @@ public final Shelf createShelf(Shelf shelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   CreateShelfRequest request =
    *       CreateShelfRequest.newBuilder().setShelf(Shelf.newBuilder().build()).build();
@@ -221,6 +231,8 @@ public final Shelf createShelf(CreateShelfRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   CreateShelfRequest request =
    *       CreateShelfRequest.newBuilder().setShelf(Shelf.newBuilder().build()).build();
@@ -241,6 +253,8 @@ public final UnaryCallable createShelfCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName name = ShelfName.of("[SHELF_ID]");
    *   Shelf response = libraryServiceClient.getShelf(name);
@@ -263,6 +277,8 @@ public final Shelf getShelf(ShelfName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = ShelfName.of("[SHELF_ID]").toString();
    *   Shelf response = libraryServiceClient.getShelf(name);
@@ -284,6 +300,8 @@ public final Shelf getShelf(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   GetShelfRequest request =
    *       GetShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build();
@@ -305,6 +323,8 @@ public final Shelf getShelf(GetShelfRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   GetShelfRequest request =
    *       GetShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build();
@@ -326,6 +346,8 @@ public final UnaryCallable getShelfCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListShelvesRequest request =
    *       ListShelvesRequest.newBuilder()
@@ -353,6 +375,8 @@ public final ListShelvesPagedResponse listShelves(ListShelvesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListShelvesRequest request =
    *       ListShelvesRequest.newBuilder()
@@ -380,6 +404,8 @@ public final ListShelvesPagedResponse listShelves(ListShelvesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListShelvesRequest request =
    *       ListShelvesRequest.newBuilder()
@@ -412,6 +438,8 @@ public final UnaryCallable listShelvesC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName name = ShelfName.of("[SHELF_ID]");
    *   libraryServiceClient.deleteShelf(name);
@@ -434,6 +462,8 @@ public final void deleteShelf(ShelfName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = ShelfName.of("[SHELF_ID]").toString();
    *   libraryServiceClient.deleteShelf(name);
@@ -455,6 +485,8 @@ public final void deleteShelf(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   DeleteShelfRequest request =
    *       DeleteShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build();
@@ -476,6 +508,8 @@ public final void deleteShelf(DeleteShelfRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   DeleteShelfRequest request =
    *       DeleteShelfRequest.newBuilder().setName(ShelfName.of("[SHELF_ID]").toString()).build();
@@ -501,6 +535,8 @@ public final UnaryCallable deleteShelfCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName name = ShelfName.of("[SHELF_ID]");
    *   ShelfName otherShelf = ShelfName.of("[SHELF_ID]");
@@ -533,6 +569,8 @@ public final Shelf mergeShelves(ShelfName name, ShelfName otherShelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName name = ShelfName.of("[SHELF_ID]");
    *   String otherShelf = ShelfName.of("[SHELF_ID]").toString();
@@ -565,6 +603,8 @@ public final Shelf mergeShelves(ShelfName name, String otherShelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = ShelfName.of("[SHELF_ID]").toString();
    *   ShelfName otherShelf = ShelfName.of("[SHELF_ID]");
@@ -597,6 +637,8 @@ public final Shelf mergeShelves(String name, ShelfName otherShelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = ShelfName.of("[SHELF_ID]").toString();
    *   String otherShelf = ShelfName.of("[SHELF_ID]").toString();
@@ -626,6 +668,8 @@ public final Shelf mergeShelves(String name, String otherShelf) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   MergeShelvesRequest request =
    *       MergeShelvesRequest.newBuilder()
@@ -655,6 +699,8 @@ public final Shelf mergeShelves(MergeShelvesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   MergeShelvesRequest request =
    *       MergeShelvesRequest.newBuilder()
@@ -678,6 +724,8 @@ public final UnaryCallable mergeShelvesCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName parent = ShelfName.of("[SHELF_ID]");
    *   Book book = Book.newBuilder().build();
@@ -705,6 +753,8 @@ public final Book createBook(ShelfName parent, Book book) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String parent = ShelfName.of("[SHELF_ID]").toString();
    *   Book book = Book.newBuilder().build();
@@ -729,6 +779,8 @@ public final Book createBook(String parent, Book book) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   CreateBookRequest request =
    *       CreateBookRequest.newBuilder()
@@ -753,6 +805,8 @@ public final Book createBook(CreateBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   CreateBookRequest request =
    *       CreateBookRequest.newBuilder()
@@ -776,6 +830,8 @@ public final UnaryCallable createBookCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   BookName name = BookName.of("[SHELF]", "[BOOK]");
    *   Book response = libraryServiceClient.getBook(name);
@@ -798,6 +854,8 @@ public final Book getBook(BookName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = BookName.of("[SHELF]", "[BOOK]").toString();
    *   Book response = libraryServiceClient.getBook(name);
@@ -819,6 +877,8 @@ public final Book getBook(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   GetBookRequest request =
    *       GetBookRequest.newBuilder().setName(BookName.of("[SHELF]", "[BOOK]").toString()).build();
@@ -840,6 +900,8 @@ public final Book getBook(GetBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   GetBookRequest request =
    *       GetBookRequest.newBuilder().setName(BookName.of("[SHELF]", "[BOOK]").toString()).build();
@@ -862,6 +924,8 @@ public final UnaryCallable getBookCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ShelfName parent = ShelfName.of("[SHELF_ID]");
    *   for (Book element : libraryServiceClient.listBooks(parent).iterateAll()) {
@@ -888,6 +952,8 @@ public final ListBooksPagedResponse listBooks(ShelfName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String parent = ShelfName.of("[SHELF_ID]").toString();
    *   for (Book element : libraryServiceClient.listBooks(parent).iterateAll()) {
@@ -913,6 +979,8 @@ public final ListBooksPagedResponse listBooks(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListBooksRequest request =
    *       ListBooksRequest.newBuilder()
@@ -942,6 +1010,8 @@ public final ListBooksPagedResponse listBooks(ListBooksRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListBooksRequest request =
    *       ListBooksRequest.newBuilder()
@@ -970,6 +1040,8 @@ public final UnaryCallable listBooksPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   ListBooksRequest request =
    *       ListBooksRequest.newBuilder()
@@ -1003,6 +1075,8 @@ public final UnaryCallable listBooksCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   BookName name = BookName.of("[SHELF]", "[BOOK]");
    *   libraryServiceClient.deleteBook(name);
@@ -1025,6 +1099,8 @@ public final void deleteBook(BookName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = BookName.of("[SHELF]", "[BOOK]").toString();
    *   libraryServiceClient.deleteBook(name);
@@ -1046,6 +1122,8 @@ public final void deleteBook(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   DeleteBookRequest request =
    *       DeleteBookRequest.newBuilder()
@@ -1069,6 +1147,8 @@ public final void deleteBook(DeleteBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   DeleteBookRequest request =
    *       DeleteBookRequest.newBuilder()
@@ -1092,6 +1172,8 @@ public final UnaryCallable deleteBookCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   Book book = Book.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1117,6 +1199,8 @@ public final Book updateBook(Book book, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   UpdateBookRequest request =
    *       UpdateBookRequest.newBuilder()
@@ -1142,6 +1226,8 @@ public final Book updateBook(UpdateBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   UpdateBookRequest request =
    *       UpdateBookRequest.newBuilder()
@@ -1166,6 +1252,8 @@ public final UnaryCallable updateBookCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   BookName name = BookName.of("[SHELF]", "[BOOK]");
    *   ShelfName otherShelfName = ShelfName.of("[SHELF_ID]");
@@ -1194,6 +1282,8 @@ public final Book moveBook(BookName name, ShelfName otherShelfName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   BookName name = BookName.of("[SHELF]", "[BOOK]");
    *   String otherShelfName = ShelfName.of("[SHELF_ID]").toString();
@@ -1222,6 +1312,8 @@ public final Book moveBook(BookName name, String otherShelfName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = BookName.of("[SHELF]", "[BOOK]").toString();
    *   ShelfName otherShelfName = ShelfName.of("[SHELF_ID]");
@@ -1250,6 +1342,8 @@ public final Book moveBook(String name, ShelfName otherShelfName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   String name = BookName.of("[SHELF]", "[BOOK]").toString();
    *   String otherShelfName = ShelfName.of("[SHELF_ID]").toString();
@@ -1275,6 +1369,8 @@ public final Book moveBook(String name, String otherShelfName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   MoveBookRequest request =
    *       MoveBookRequest.newBuilder()
@@ -1300,6 +1396,8 @@ public final Book moveBook(MoveBookRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
    *   MoveBookRequest request =
    *       MoveBookRequest.newBuilder()
diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java b/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java
index 990cf2ad5d..7e09a81049 100644
--- a/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java
+++ b/test/integration/goldens/library/com/google/cloud/example/library/v1/LibraryServiceSettings.java
@@ -71,6 +71,8 @@
  * 

For example, to set the total timeout of createShelf to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LibraryServiceSettings.Builder libraryServiceSettingsBuilder =
  *     LibraryServiceSettings.newBuilder();
  * libraryServiceSettingsBuilder
diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java b/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java
index f211c32606..91c711a30b 100644
--- a/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java
+++ b/test/integration/goldens/library/com/google/cloud/example/library/v1/package-info.java
@@ -31,6 +31,8 @@
  * 

Sample for LibraryServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (LibraryServiceClient libraryServiceClient = LibraryServiceClient.create()) {
  *   Shelf shelf = Shelf.newBuilder().build();
  *   Shelf response = libraryServiceClient.createShelf(shelf);
diff --git a/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java b/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java
index 1016c03496..c12c6876f7 100644
--- a/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java
+++ b/test/integration/goldens/library/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java
@@ -85,6 +85,8 @@
  * 

For example, to set the total timeout of createShelf to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LibraryServiceStubSettings.Builder libraryServiceSettingsBuilder =
  *     LibraryServiceStubSettings.newBuilder();
  * libraryServiceSettingsBuilder
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java
index dd94562e23..f4e4fd0932 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigClient.java
@@ -85,6 +85,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ConfigClient configClient = ConfigClient.create()) {
  *   GetBucketRequest request =
  *       GetBucketRequest.newBuilder()
@@ -125,6 +127,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ConfigSettings configSettings =
  *     ConfigSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -135,6 +139,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ConfigSettings configSettings = ConfigSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ConfigClient configClient = ConfigClient.create(configSettings);
  * }
@@ -199,6 +205,8 @@ public ConfigServiceV2Stub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountLocationName parent =
    *       BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]");
@@ -232,6 +240,8 @@ public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
    *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
@@ -264,6 +274,8 @@ public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
@@ -296,6 +308,8 @@ public final ListBucketsPagedResponse listBuckets(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
    *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
@@ -328,6 +342,8 @@ public final ListBucketsPagedResponse listBuckets(OrganizationLocationName paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
@@ -357,6 +373,8 @@ public final ListBucketsPagedResponse listBuckets(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -384,6 +402,8 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -411,6 +431,8 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -444,6 +466,8 @@ public final UnaryCallable listBucketsC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetBucketRequest request =
    *       GetBucketRequest.newBuilder()
@@ -469,6 +493,8 @@ public final LogBucket getBucket(GetBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetBucketRequest request =
    *       GetBucketRequest.newBuilder()
@@ -494,6 +520,8 @@ public final UnaryCallable getBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateBucketRequest request =
    *       CreateBucketRequest.newBuilder()
@@ -520,6 +548,8 @@ public final LogBucket createBucket(CreateBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateBucketRequest request =
    *       CreateBucketRequest.newBuilder()
@@ -553,6 +583,8 @@ public final UnaryCallable createBucketCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateBucketRequest request =
    *       UpdateBucketRequest.newBuilder()
@@ -589,6 +621,8 @@ public final LogBucket updateBucket(UpdateBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateBucketRequest request =
    *       UpdateBucketRequest.newBuilder()
@@ -616,6 +650,8 @@ public final UnaryCallable updateBucketCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteBucketRequest request =
    *       DeleteBucketRequest.newBuilder()
@@ -642,6 +678,8 @@ public final void deleteBucket(DeleteBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteBucketRequest request =
    *       DeleteBucketRequest.newBuilder()
@@ -667,6 +705,8 @@ public final UnaryCallable deleteBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UndeleteBucketRequest request =
    *       UndeleteBucketRequest.newBuilder()
@@ -693,6 +733,8 @@ public final void undeleteBucket(UndeleteBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UndeleteBucketRequest request =
    *       UndeleteBucketRequest.newBuilder()
@@ -717,6 +759,8 @@ public final UnaryCallable undeleteBucketCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = "parent-995424086";
    *   for (LogView element : configClient.listViews(parent).iterateAll()) {
@@ -741,6 +785,8 @@ public final ListViewsPagedResponse listViews(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListViewsRequest request =
    *       ListViewsRequest.newBuilder()
@@ -768,6 +814,8 @@ public final ListViewsPagedResponse listViews(ListViewsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListViewsRequest request =
    *       ListViewsRequest.newBuilder()
@@ -794,6 +842,8 @@ public final UnaryCallable listViewsPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListViewsRequest request =
    *       ListViewsRequest.newBuilder()
@@ -827,6 +877,8 @@ public final UnaryCallable listViewsCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetViewRequest request =
    *       GetViewRequest.newBuilder()
@@ -853,6 +905,8 @@ public final LogView getView(GetViewRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetViewRequest request =
    *       GetViewRequest.newBuilder()
@@ -878,6 +932,8 @@ public final UnaryCallable getViewCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateViewRequest request =
    *       CreateViewRequest.newBuilder()
@@ -903,6 +959,8 @@ public final LogView createView(CreateViewRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateViewRequest request =
    *       CreateViewRequest.newBuilder()
@@ -928,6 +986,8 @@ public final UnaryCallable createViewCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateViewRequest request =
    *       UpdateViewRequest.newBuilder()
@@ -954,6 +1014,8 @@ public final LogView updateView(UpdateViewRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateViewRequest request =
    *       UpdateViewRequest.newBuilder()
@@ -978,6 +1040,8 @@ public final UnaryCallable updateViewCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteViewRequest request =
    *       DeleteViewRequest.newBuilder()
@@ -1004,6 +1068,8 @@ public final void deleteView(DeleteViewRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteViewRequest request =
    *       DeleteViewRequest.newBuilder()
@@ -1029,6 +1095,8 @@ public final UnaryCallable deleteViewCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1055,6 +1123,8 @@ public final ListSinksPagedResponse listSinks(BillingAccountName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1081,6 +1151,8 @@ public final ListSinksPagedResponse listSinks(FolderName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1107,6 +1179,8 @@ public final ListSinksPagedResponse listSinks(OrganizationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1133,6 +1207,8 @@ public final ListSinksPagedResponse listSinks(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
@@ -1158,6 +1234,8 @@ public final ListSinksPagedResponse listSinks(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListSinksRequest request =
    *       ListSinksRequest.newBuilder()
@@ -1185,6 +1263,8 @@ public final ListSinksPagedResponse listSinks(ListSinksRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListSinksRequest request =
    *       ListSinksRequest.newBuilder()
@@ -1211,6 +1291,8 @@ public final UnaryCallable listSinksPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListSinksRequest request =
    *       ListSinksRequest.newBuilder()
@@ -1244,6 +1326,8 @@ public final UnaryCallable listSinksCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
    *   LogSink response = configClient.getSink(sinkName);
@@ -1273,6 +1357,8 @@ public final LogSink getSink(LogSinkName sinkName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
    *   LogSink response = configClient.getSink(sinkName);
@@ -1299,6 +1385,8 @@ public final LogSink getSink(String sinkName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetSinkRequest request =
    *       GetSinkRequest.newBuilder()
@@ -1322,6 +1410,8 @@ public final LogSink getSink(GetSinkRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetSinkRequest request =
    *       GetSinkRequest.newBuilder()
@@ -1347,6 +1437,8 @@ public final UnaryCallable getSinkCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1381,6 +1473,8 @@ public final LogSink createSink(BillingAccountName parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1415,6 +1509,8 @@ public final LogSink createSink(FolderName parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1449,6 +1545,8 @@ public final LogSink createSink(OrganizationName parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1483,6 +1581,8 @@ public final LogSink createSink(ProjectName parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1514,6 +1614,8 @@ public final LogSink createSink(String parent, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateSinkRequest request =
    *       CreateSinkRequest.newBuilder()
@@ -1542,6 +1644,8 @@ public final LogSink createSink(CreateSinkRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateSinkRequest request =
    *       CreateSinkRequest.newBuilder()
@@ -1570,6 +1674,8 @@ public final UnaryCallable createSinkCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1608,6 +1714,8 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1643,6 +1751,8 @@ public final LogSink updateSink(String sinkName, LogSink sink) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1692,6 +1802,8 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask up
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
    *   LogSink sink = LogSink.newBuilder().build();
@@ -1741,6 +1853,8 @@ public final LogSink updateSink(String sinkName, LogSink sink, FieldMask updateM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateSinkRequest request =
    *       UpdateSinkRequest.newBuilder()
@@ -1771,6 +1885,8 @@ public final LogSink updateSink(UpdateSinkRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateSinkRequest request =
    *       UpdateSinkRequest.newBuilder()
@@ -1797,6 +1913,8 @@ public final UnaryCallable updateSinkCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
    *   configClient.deleteSink(sinkName);
@@ -1828,6 +1946,8 @@ public final void deleteSink(LogSinkName sinkName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
    *   configClient.deleteSink(sinkName);
@@ -1856,6 +1976,8 @@ public final void deleteSink(String sinkName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteSinkRequest request =
    *       DeleteSinkRequest.newBuilder()
@@ -1880,6 +2002,8 @@ public final void deleteSink(DeleteSinkRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteSinkRequest request =
    *       DeleteSinkRequest.newBuilder()
@@ -1902,6 +2026,8 @@ public final UnaryCallable deleteSinkCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -1930,6 +2056,8 @@ public final ListExclusionsPagedResponse listExclusions(BillingAccountName paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -1958,6 +2086,8 @@ public final ListExclusionsPagedResponse listExclusions(FolderName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -1986,6 +2116,8 @@ public final ListExclusionsPagedResponse listExclusions(OrganizationName parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -2014,6 +2146,8 @@ public final ListExclusionsPagedResponse listExclusions(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
@@ -2039,6 +2173,8 @@ public final ListExclusionsPagedResponse listExclusions(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListExclusionsRequest request =
    *       ListExclusionsRequest.newBuilder()
@@ -2066,6 +2202,8 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListExclusionsRequest request =
    *       ListExclusionsRequest.newBuilder()
@@ -2094,6 +2232,8 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ListExclusionsRequest request =
    *       ListExclusionsRequest.newBuilder()
@@ -2128,6 +2268,8 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
    *   LogExclusion response = configClient.getExclusion(name);
@@ -2155,6 +2297,8 @@ public final LogExclusion getExclusion(LogExclusionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
    *   LogExclusion response = configClient.getExclusion(name);
@@ -2181,6 +2325,8 @@ public final LogExclusion getExclusion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetExclusionRequest request =
    *       GetExclusionRequest.newBuilder()
@@ -2205,6 +2351,8 @@ public final LogExclusion getExclusion(GetExclusionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetExclusionRequest request =
    *       GetExclusionRequest.newBuilder()
@@ -2229,6 +2377,8 @@ public final UnaryCallable getExclusionCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2261,6 +2411,8 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2293,6 +2445,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2325,6 +2479,8 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2357,6 +2513,8 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2386,6 +2544,8 @@ public final LogExclusion createExclusion(String parent, LogExclusion exclusion)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateExclusionRequest request =
    *       CreateExclusionRequest.newBuilder()
@@ -2411,6 +2571,8 @@ public final LogExclusion createExclusion(CreateExclusionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   CreateExclusionRequest request =
    *       CreateExclusionRequest.newBuilder()
@@ -2434,6 +2596,8 @@ public final UnaryCallable createExclusion
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2476,6 +2640,8 @@ public final LogExclusion updateExclusion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
    *   LogExclusion exclusion = LogExclusion.newBuilder().build();
@@ -2518,6 +2684,8 @@ public final LogExclusion updateExclusion(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateExclusionRequest request =
    *       UpdateExclusionRequest.newBuilder()
@@ -2544,6 +2712,8 @@ public final LogExclusion updateExclusion(UpdateExclusionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateExclusionRequest request =
    *       UpdateExclusionRequest.newBuilder()
@@ -2569,6 +2739,8 @@ public final UnaryCallable updateExclusion
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
    *   configClient.deleteExclusion(name);
@@ -2596,6 +2768,8 @@ public final void deleteExclusion(LogExclusionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
    *   configClient.deleteExclusion(name);
@@ -2622,6 +2796,8 @@ public final void deleteExclusion(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteExclusionRequest request =
    *       DeleteExclusionRequest.newBuilder()
@@ -2646,6 +2822,8 @@ public final void deleteExclusion(DeleteExclusionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   DeleteExclusionRequest request =
    *       DeleteExclusionRequest.newBuilder()
@@ -2675,6 +2853,8 @@ public final UnaryCallable deleteExclusionCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetCmekSettingsRequest request =
    *       GetCmekSettingsRequest.newBuilder()
@@ -2704,6 +2884,8 @@ public final CmekSettings getCmekSettings(GetCmekSettingsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   GetCmekSettingsRequest request =
    *       GetCmekSettingsRequest.newBuilder()
@@ -2737,6 +2919,8 @@ public final UnaryCallable getCmekSettings
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateCmekSettingsRequest request =
    *       UpdateCmekSettingsRequest.newBuilder()
@@ -2773,6 +2957,8 @@ public final CmekSettings updateCmekSettings(UpdateCmekSettingsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ConfigClient configClient = ConfigClient.create()) {
    *   UpdateCmekSettingsRequest request =
    *       UpdateCmekSettingsRequest.newBuilder()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java
index 4f7620cd37..3ad7561d48 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/ConfigSettings.java
@@ -89,6 +89,8 @@
  * 

For example, to set the total timeout of getBucket to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
  * configSettingsBuilder
  *     .getBucketSettings()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java
index cc55e72ca2..e15a4f0960 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingClient.java
@@ -63,6 +63,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (LoggingClient loggingClient = LoggingClient.create()) {
  *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
  *   loggingClient.deleteLog(logName);
@@ -98,6 +100,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingSettings loggingSettings =
  *     LoggingSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -108,6 +112,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingSettings loggingSettings = LoggingSettings.newBuilder().setEndpoint(myEndpoint).build();
  * LoggingClient loggingClient = LoggingClient.create(loggingSettings);
  * }
@@ -174,6 +180,8 @@ public LoggingServiceV2Stub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
    *   loggingClient.deleteLog(logName);
@@ -205,6 +213,8 @@ public final void deleteLog(LogName logName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString();
    *   loggingClient.deleteLog(logName);
@@ -233,6 +243,8 @@ public final void deleteLog(String logName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   DeleteLogRequest request =
    *       DeleteLogRequest.newBuilder()
@@ -258,6 +270,8 @@ public final void deleteLog(DeleteLogRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   DeleteLogRequest request =
    *       DeleteLogRequest.newBuilder()
@@ -283,6 +297,8 @@ public final UnaryCallable deleteLogCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
    *   MonitoredResource resource = MonitoredResource.newBuilder().build();
@@ -358,6 +374,8 @@ public final WriteLogEntriesResponse writeLogEntries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString();
    *   MonitoredResource resource = MonitoredResource.newBuilder().build();
@@ -433,6 +451,8 @@ public final WriteLogEntriesResponse writeLogEntries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   WriteLogEntriesRequest request =
    *       WriteLogEntriesRequest.newBuilder()
@@ -464,6 +484,8 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   WriteLogEntriesRequest request =
    *       WriteLogEntriesRequest.newBuilder()
@@ -495,6 +517,8 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   List resourceNames = new ArrayList<>();
    *   String filter = "filter-1274492040";
@@ -549,6 +573,8 @@ public final ListLogEntriesPagedResponse listLogEntries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogEntriesRequest request =
    *       ListLogEntriesRequest.newBuilder()
@@ -580,6 +606,8 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogEntriesRequest request =
    *       ListLogEntriesRequest.newBuilder()
@@ -611,6 +639,8 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogEntriesRequest request =
    *       ListLogEntriesRequest.newBuilder()
@@ -647,6 +677,8 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
@@ -675,6 +707,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
@@ -703,6 +737,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
@@ -739,6 +775,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -766,6 +804,8 @@ public final ListLogsPagedResponse listLogs(BillingAccountName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -793,6 +833,8 @@ public final ListLogsPagedResponse listLogs(FolderName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -820,6 +862,8 @@ public final ListLogsPagedResponse listLogs(OrganizationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -847,6 +891,8 @@ public final ListLogsPagedResponse listLogs(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
@@ -873,6 +919,8 @@ public final ListLogsPagedResponse listLogs(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogsRequest request =
    *       ListLogsRequest.newBuilder()
@@ -902,6 +950,8 @@ public final ListLogsPagedResponse listLogs(ListLogsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogsRequest request =
    *       ListLogsRequest.newBuilder()
@@ -930,6 +980,8 @@ public final UnaryCallable listLogsPaged
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   ListLogsRequest request =
    *       ListLogsRequest.newBuilder()
@@ -965,6 +1017,8 @@ public final UnaryCallable listLogsCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (LoggingClient loggingClient = LoggingClient.create()) {
    *   BidiStream bidiStream =
    *       loggingClient.tailLogEntriesCallable().call();
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java
index 8643ce5d28..a128b6498e 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/LoggingSettings.java
@@ -69,6 +69,8 @@
  * 

For example, to set the total timeout of deleteLog to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingSettings.Builder loggingSettingsBuilder = LoggingSettings.newBuilder();
  * loggingSettingsBuilder
  *     .deleteLogSettings()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java
index bd686dac22..c74e0a912c 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsClient.java
@@ -51,6 +51,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MetricsClient metricsClient = MetricsClient.create()) {
  *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
  *   LogMetric response = metricsClient.getLogMetric(metricName);
@@ -86,6 +88,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetricsSettings metricsSettings =
  *     MetricsSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,6 +100,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetricsSettings metricsSettings = MetricsSettings.newBuilder().setEndpoint(myEndpoint).build();
  * MetricsClient metricsClient = MetricsClient.create(metricsSettings);
  * }
@@ -160,6 +166,8 @@ public MetricsServiceV2Stub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
@@ -187,6 +195,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
@@ -211,6 +221,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ListLogMetricsRequest request =
    *       ListLogMetricsRequest.newBuilder()
@@ -238,6 +250,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ListLogMetricsRequest request =
    *       ListLogMetricsRequest.newBuilder()
@@ -265,6 +279,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ListLogMetricsRequest request =
    *       ListLogMetricsRequest.newBuilder()
@@ -299,6 +315,8 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
    *   LogMetric response = metricsClient.getLogMetric(metricName);
@@ -324,6 +342,8 @@ public final LogMetric getLogMetric(LogMetricName metricName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
    *   LogMetric response = metricsClient.getLogMetric(metricName);
@@ -347,6 +367,8 @@ public final LogMetric getLogMetric(String metricName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   GetLogMetricRequest request =
    *       GetLogMetricRequest.newBuilder()
@@ -370,6 +392,8 @@ public final LogMetric getLogMetric(GetLogMetricRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   GetLogMetricRequest request =
    *       GetLogMetricRequest.newBuilder()
@@ -392,6 +416,8 @@ public final UnaryCallable getLogMetricCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   LogMetric metric = LogMetric.newBuilder().build();
@@ -422,6 +448,8 @@ public final LogMetric createLogMetric(ProjectName parent, LogMetric metric) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   LogMetric metric = LogMetric.newBuilder().build();
@@ -449,6 +477,8 @@ public final LogMetric createLogMetric(String parent, LogMetric metric) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   CreateLogMetricRequest request =
    *       CreateLogMetricRequest.newBuilder()
@@ -473,6 +503,8 @@ public final LogMetric createLogMetric(CreateLogMetricRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   CreateLogMetricRequest request =
    *       CreateLogMetricRequest.newBuilder()
@@ -496,6 +528,8 @@ public final UnaryCallable createLogMetricCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
    *   LogMetric metric = LogMetric.newBuilder().build();
@@ -527,6 +561,8 @@ public final LogMetric updateLogMetric(LogMetricName metricName, LogMetric metri
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
    *   LogMetric metric = LogMetric.newBuilder().build();
@@ -555,6 +591,8 @@ public final LogMetric updateLogMetric(String metricName, LogMetric metric) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   UpdateLogMetricRequest request =
    *       UpdateLogMetricRequest.newBuilder()
@@ -579,6 +617,8 @@ public final LogMetric updateLogMetric(UpdateLogMetricRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   UpdateLogMetricRequest request =
    *       UpdateLogMetricRequest.newBuilder()
@@ -602,6 +642,8 @@ public final UnaryCallable updateLogMetricCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
    *   metricsClient.deleteLogMetric(metricName);
@@ -627,6 +669,8 @@ public final void deleteLogMetric(LogMetricName metricName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
    *   metricsClient.deleteLogMetric(metricName);
@@ -650,6 +694,8 @@ public final void deleteLogMetric(String metricName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   DeleteLogMetricRequest request =
    *       DeleteLogMetricRequest.newBuilder()
@@ -673,6 +719,8 @@ public final void deleteLogMetric(DeleteLogMetricRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetricsClient metricsClient = MetricsClient.create()) {
    *   DeleteLogMetricRequest request =
    *       DeleteLogMetricRequest.newBuilder()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java
index 1cd15a6aa0..d795fcdd39 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/MetricsSettings.java
@@ -61,6 +61,8 @@
  * 

For example, to set the total timeout of getLogMetric to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetricsSettings.Builder metricsSettingsBuilder = MetricsSettings.newBuilder();
  * metricsSettingsBuilder
  *     .getLogMetricSettings()
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java
index 6de1226da7..291dcca51b 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/package-info.java
@@ -24,6 +24,8 @@
  * 

Sample for LoggingClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (LoggingClient loggingClient = LoggingClient.create()) {
  *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
  *   loggingClient.deleteLog(logName);
@@ -37,6 +39,8 @@
  * 

Sample for ConfigClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ConfigClient configClient = ConfigClient.create()) {
  *   GetBucketRequest request =
  *       GetBucketRequest.newBuilder()
@@ -55,6 +59,8 @@
  * 

Sample for MetricsClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MetricsClient metricsClient = MetricsClient.create()) {
  *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
  *   LogMetric response = metricsClient.getLogMetric(metricName);
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java
index 26115a15fd..456dd597f4 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java
@@ -103,6 +103,8 @@
  * 

For example, to set the total timeout of getBucket to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ConfigServiceV2StubSettings.Builder configSettingsBuilder =
  *     ConfigServiceV2StubSettings.newBuilder();
  * configSettingsBuilder
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java
index 79ba51699e..180ef48c6b 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java
@@ -93,6 +93,8 @@
  * 

For example, to set the total timeout of deleteLog to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingServiceV2StubSettings.Builder loggingSettingsBuilder =
  *     LoggingServiceV2StubSettings.newBuilder();
  * loggingSettingsBuilder
diff --git a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java
index 7c0505427f..5716cdceae 100644
--- a/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java
+++ b/test/integration/goldens/logging/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java
@@ -75,6 +75,8 @@
  * 

For example, to set the total timeout of getLogMetric to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetricsServiceV2StubSettings.Builder metricsSettingsBuilder =
  *     MetricsServiceV2StubSettings.newBuilder();
  * metricsSettingsBuilder
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java
index 27f64bbed8..0efce32a29 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceClient.java
@@ -59,6 +59,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   Schema schema = Schema.newBuilder().build();
@@ -96,6 +98,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings schemaServiceSettings =
  *     SchemaServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -106,6 +110,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings schemaServiceSettings =
  *     SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
@@ -173,6 +179,8 @@ public SchemaServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Schema schema = Schema.newBuilder().build();
@@ -209,6 +217,8 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Schema schema = Schema.newBuilder().build();
@@ -245,6 +255,8 @@ public final Schema createSchema(String parent, Schema schema, String schemaId)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   CreateSchemaRequest request =
    *       CreateSchemaRequest.newBuilder()
@@ -270,6 +282,8 @@ public final Schema createSchema(CreateSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   CreateSchemaRequest request =
    *       CreateSchemaRequest.newBuilder()
@@ -294,6 +308,8 @@ public final UnaryCallable createSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    *   Schema response = schemaServiceClient.getSchema(name);
@@ -317,6 +333,8 @@ public final Schema getSchema(SchemaName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    *   Schema response = schemaServiceClient.getSchema(name);
@@ -339,6 +357,8 @@ public final Schema getSchema(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetSchemaRequest request =
    *       GetSchemaRequest.newBuilder()
@@ -363,6 +383,8 @@ public final Schema getSchema(GetSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetSchemaRequest request =
    *       GetSchemaRequest.newBuilder()
@@ -386,6 +408,8 @@ public final UnaryCallable getSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
@@ -413,6 +437,8 @@ public final ListSchemasPagedResponse listSchemas(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
@@ -437,6 +463,8 @@ public final ListSchemasPagedResponse listSchemas(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -465,6 +493,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -493,6 +523,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -527,6 +559,8 @@ public final UnaryCallable listSchemasC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    *   schemaServiceClient.deleteSchema(name);
@@ -550,6 +584,8 @@ public final void deleteSchema(SchemaName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    *   schemaServiceClient.deleteSchema(name);
@@ -572,6 +608,8 @@ public final void deleteSchema(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   DeleteSchemaRequest request =
    *       DeleteSchemaRequest.newBuilder()
@@ -595,6 +633,8 @@ public final void deleteSchema(DeleteSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   DeleteSchemaRequest request =
    *       DeleteSchemaRequest.newBuilder()
@@ -617,6 +657,8 @@ public final UnaryCallable deleteSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Schema schema = Schema.newBuilder().build();
@@ -645,6 +687,8 @@ public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema sc
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Schema schema = Schema.newBuilder().build();
@@ -670,6 +714,8 @@ public final ValidateSchemaResponse validateSchema(String parent, Schema schema)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateSchemaRequest request =
    *       ValidateSchemaRequest.newBuilder()
@@ -694,6 +740,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateSchemaRequest request =
    *       ValidateSchemaRequest.newBuilder()
@@ -719,6 +767,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateMessageRequest request =
    *       ValidateMessageRequest.newBuilder()
@@ -744,6 +794,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateMessageRequest request =
    *       ValidateMessageRequest.newBuilder()
@@ -772,6 +824,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -798,6 +852,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -822,6 +878,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -847,6 +905,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -875,6 +935,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -904,6 +966,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
index 7fa08f222a..7633464d05 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
@@ -69,6 +69,8 @@
  * 

For example, to set the total timeout of createSchema to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
  * schemaServiceSettingsBuilder
  *     .createSchemaSettings()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
index 17f81341f6..9b31bed522 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
@@ -77,6 +77,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
  *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
  *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -117,6 +119,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings subscriptionAdminSettings =
  *     SubscriptionAdminSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -128,6 +132,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings subscriptionAdminSettings =
  *     SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SubscriptionAdminClient subscriptionAdminClient =
@@ -205,6 +211,8 @@ public SubscriberStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -271,6 +279,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
@@ -337,6 +347,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -403,6 +415,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
@@ -469,6 +483,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   Subscription request =
    *       Subscription.newBuilder()
@@ -515,6 +531,8 @@ public final Subscription createSubscription(Subscription request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   Subscription request =
    *       Subscription.newBuilder()
@@ -552,6 +570,8 @@ public final UnaryCallable createSubscriptionCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
@@ -577,6 +597,8 @@ public final Subscription getSubscription(SubscriptionName subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
@@ -600,6 +622,8 @@ public final Subscription getSubscription(String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSubscriptionRequest request =
    *       GetSubscriptionRequest.newBuilder()
@@ -623,6 +647,8 @@ public final Subscription getSubscription(GetSubscriptionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSubscriptionRequest request =
    *       GetSubscriptionRequest.newBuilder()
@@ -647,6 +673,8 @@ public final UnaryCallable getSubscription
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSubscriptionRequest request =
    *       UpdateSubscriptionRequest.newBuilder()
@@ -672,6 +700,8 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSubscriptionRequest request =
    *       UpdateSubscriptionRequest.newBuilder()
@@ -696,6 +726,8 @@ public final UnaryCallable updateSubscr
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
@@ -723,6 +755,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
@@ -748,6 +782,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -775,6 +811,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -803,6 +841,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -841,6 +881,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   subscriptionAdminClient.deleteSubscription(subscription);
@@ -869,6 +911,8 @@ public final void deleteSubscription(SubscriptionName subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   subscriptionAdminClient.deleteSubscription(subscription);
@@ -895,6 +939,8 @@ public final void deleteSubscription(String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSubscriptionRequest request =
    *       DeleteSubscriptionRequest.newBuilder()
@@ -921,6 +967,8 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSubscriptionRequest request =
    *       DeleteSubscriptionRequest.newBuilder()
@@ -947,6 +995,8 @@ public final UnaryCallable deleteSubscriptionC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   List ackIds = new ArrayList<>();
@@ -988,6 +1038,8 @@ public final void modifyAckDeadline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   List ackIds = new ArrayList<>();
@@ -1029,6 +1081,8 @@ public final void modifyAckDeadline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyAckDeadlineRequest request =
    *       ModifyAckDeadlineRequest.newBuilder()
@@ -1057,6 +1111,8 @@ public final void modifyAckDeadline(ModifyAckDeadlineRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyAckDeadlineRequest request =
    *       ModifyAckDeadlineRequest.newBuilder()
@@ -1086,6 +1142,8 @@ public final UnaryCallable modifyAckDeadlineCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   List ackIds = new ArrayList<>();
@@ -1119,6 +1177,8 @@ public final void acknowledge(SubscriptionName subscription, List ackIds
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   List ackIds = new ArrayList<>();
@@ -1149,6 +1209,8 @@ public final void acknowledge(String subscription, List ackIds) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   AcknowledgeRequest request =
    *       AcknowledgeRequest.newBuilder()
@@ -1177,6 +1239,8 @@ public final void acknowledge(AcknowledgeRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   AcknowledgeRequest request =
    *       AcknowledgeRequest.newBuilder()
@@ -1201,6 +1265,8 @@ public final UnaryCallable acknowledgeCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   int maxMessages = 496131527;
@@ -1231,6 +1297,8 @@ public final PullResponse pull(SubscriptionName subscription, int maxMessages) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   int maxMessages = 496131527;
@@ -1258,6 +1326,8 @@ public final PullResponse pull(String subscription, int maxMessages) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   boolean returnImmediately = true;
@@ -1298,6 +1368,8 @@ public final PullResponse pull(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   boolean returnImmediately = true;
@@ -1337,6 +1409,8 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   PullRequest request =
    *       PullRequest.newBuilder()
@@ -1363,6 +1437,8 @@ public final PullResponse pull(PullRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   PullRequest request =
    *       PullRequest.newBuilder()
@@ -1392,6 +1468,8 @@ public final UnaryCallable pullCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   BidiStream bidiStream =
    *       subscriptionAdminClient.streamingPullCallable().call();
@@ -1430,6 +1508,8 @@ public final UnaryCallable pullCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
@@ -1466,6 +1546,8 @@ public final void modifyPushConfig(SubscriptionName subscription, PushConfig pus
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
@@ -1502,6 +1584,8 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyPushConfigRequest request =
    *       ModifyPushConfigRequest.newBuilder()
@@ -1531,6 +1615,8 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyPushConfigRequest request =
    *       ModifyPushConfigRequest.newBuilder()
@@ -1558,6 +1644,8 @@ public final UnaryCallable modifyPushConfigCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
@@ -1586,6 +1674,8 @@ public final Snapshot getSnapshot(SnapshotName snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
@@ -1611,6 +1701,8 @@ public final Snapshot getSnapshot(String snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSnapshotRequest request =
    *       GetSnapshotRequest.newBuilder()
@@ -1637,6 +1729,8 @@ public final Snapshot getSnapshot(GetSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSnapshotRequest request =
    *       GetSnapshotRequest.newBuilder()
@@ -1663,6 +1757,8 @@ public final UnaryCallable getSnapshotCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
@@ -1693,6 +1789,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
@@ -1720,6 +1818,8 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -1750,6 +1850,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -1781,6 +1883,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -1826,6 +1930,8 @@ public final UnaryCallable listSnap
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
@@ -1874,6 +1980,8 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
@@ -1922,6 +2030,8 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
@@ -1970,6 +2080,8 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
@@ -2015,6 +2127,8 @@ public final Snapshot createSnapshot(String name, String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   CreateSnapshotRequest request =
    *       CreateSnapshotRequest.newBuilder()
@@ -2051,6 +2165,8 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   CreateSnapshotRequest request =
    *       CreateSnapshotRequest.newBuilder()
@@ -2079,6 +2195,8 @@ public final UnaryCallable createSnapshotCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSnapshotRequest request =
    *       UpdateSnapshotRequest.newBuilder()
@@ -2106,6 +2224,8 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSnapshotRequest request =
    *       UpdateSnapshotRequest.newBuilder()
@@ -2136,6 +2256,8 @@ public final UnaryCallable updateSnapshotCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   subscriptionAdminClient.deleteSnapshot(snapshot);
@@ -2167,6 +2289,8 @@ public final void deleteSnapshot(SnapshotName snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   subscriptionAdminClient.deleteSnapshot(snapshot);
@@ -2196,6 +2320,8 @@ public final void deleteSnapshot(String snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSnapshotRequest request =
    *       DeleteSnapshotRequest.newBuilder()
@@ -2225,6 +2351,8 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSnapshotRequest request =
    *       DeleteSnapshotRequest.newBuilder()
@@ -2253,6 +2381,8 @@ public final UnaryCallable deleteSnapshotCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SeekRequest request =
    *       SeekRequest.newBuilder()
@@ -2281,6 +2411,8 @@ public final SeekResponse seek(SeekRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SeekRequest request =
    *       SeekRequest.newBuilder()
@@ -2305,6 +2437,8 @@ public final UnaryCallable seekCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -2331,6 +2465,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -2355,6 +2491,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -2380,6 +2518,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -2408,6 +2548,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -2437,6 +2579,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
index 93ae5556a8..963195e891 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
@@ -83,6 +83,8 @@
  * 

For example, to set the total timeout of createSubscription to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
  *     SubscriptionAdminSettings.newBuilder();
  * subscriptionAdminSettingsBuilder
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java
index a9f3308846..68bf054a86 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminClient.java
@@ -65,6 +65,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
  *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
  *   Topic response = topicAdminClient.createTopic(name);
@@ -100,6 +102,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings topicAdminSettings =
  *     TopicAdminSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -110,6 +114,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings topicAdminSettings =
  *     TopicAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
  * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings);
@@ -176,6 +182,8 @@ public PublisherStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   Topic response = topicAdminClient.createTopic(name);
@@ -202,6 +210,8 @@ public final Topic createTopic(TopicName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   Topic response = topicAdminClient.createTopic(name);
@@ -228,6 +238,8 @@ public final Topic createTopic(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   Topic request =
    *       Topic.newBuilder()
@@ -258,6 +270,8 @@ public final Topic createTopic(Topic request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   Topic request =
    *       Topic.newBuilder()
@@ -286,6 +300,8 @@ public final UnaryCallable createTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   UpdateTopicRequest request =
    *       UpdateTopicRequest.newBuilder()
@@ -310,6 +326,8 @@ public final Topic updateTopic(UpdateTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   UpdateTopicRequest request =
    *       UpdateTopicRequest.newBuilder()
@@ -333,6 +351,8 @@ public final UnaryCallable updateTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   List messages = new ArrayList<>();
@@ -361,6 +381,8 @@ public final PublishResponse publish(TopicName topic, List messag
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   List messages = new ArrayList<>();
@@ -386,6 +408,8 @@ public final PublishResponse publish(String topic, List messages)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   PublishRequest request =
    *       PublishRequest.newBuilder()
@@ -410,6 +434,8 @@ public final PublishResponse publish(PublishRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   PublishRequest request =
    *       PublishRequest.newBuilder()
@@ -433,6 +459,8 @@ public final UnaryCallable publishCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   Topic response = topicAdminClient.getTopic(topic);
@@ -456,6 +484,8 @@ public final Topic getTopic(TopicName topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   Topic response = topicAdminClient.getTopic(topic);
@@ -478,6 +508,8 @@ public final Topic getTopic(String topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetTopicRequest request =
    *       GetTopicRequest.newBuilder()
@@ -501,6 +533,8 @@ public final Topic getTopic(GetTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetTopicRequest request =
    *       GetTopicRequest.newBuilder()
@@ -523,6 +557,8 @@ public final UnaryCallable getTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
@@ -550,6 +586,8 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
@@ -574,6 +612,8 @@ public final ListTopicsPagedResponse listTopics(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -601,6 +641,8 @@ public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -627,6 +669,8 @@ public final UnaryCallable listTopic
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -660,6 +704,8 @@ public final UnaryCallable listTopicsCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
@@ -687,6 +733,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicNam
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
@@ -712,6 +760,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String t
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -740,6 +790,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -768,6 +820,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -806,6 +860,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
@@ -836,6 +892,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
@@ -864,6 +922,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(String topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -895,6 +955,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -926,6 +988,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -964,6 +1028,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   topicAdminClient.deleteTopic(topic);
@@ -990,6 +1056,8 @@ public final void deleteTopic(TopicName topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   topicAdminClient.deleteTopic(topic);
@@ -1015,6 +1083,8 @@ public final void deleteTopic(String topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DeleteTopicRequest request =
    *       DeleteTopicRequest.newBuilder()
@@ -1041,6 +1111,8 @@ public final void deleteTopic(DeleteTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DeleteTopicRequest request =
    *       DeleteTopicRequest.newBuilder()
@@ -1065,6 +1137,8 @@ public final UnaryCallable deleteTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DetachSubscriptionRequest request =
    *       DetachSubscriptionRequest.newBuilder()
@@ -1090,6 +1164,8 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DetachSubscriptionRequest request =
    *       DetachSubscriptionRequest.newBuilder()
@@ -1116,6 +1192,8 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1142,6 +1220,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1166,6 +1246,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1191,6 +1273,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1219,6 +1303,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1248,6 +1334,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java
index 44983d1b49..c3093a8641 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/TopicAdminSettings.java
@@ -76,6 +76,8 @@
  * 

For example, to set the total timeout of createTopic to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder();
  * topicAdminSettingsBuilder
  *     .createTopicSettings()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java
index 5858190904..6e17761f9e 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/package-info.java
@@ -27,6 +27,8 @@
  * 

Sample for TopicAdminClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
  *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
  *   Topic response = topicAdminClient.createTopic(name);
@@ -42,6 +44,8 @@
  * 

Sample for SubscriptionAdminClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
  *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
  *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -59,6 +63,8 @@
  * 

Sample for SchemaServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   Schema schema = Schema.newBuilder().build();
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
index 945ce51e96..aaeb343d30 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
@@ -99,6 +99,8 @@
  * 

For example, to set the total timeout of createTopic to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
  * topicAdminSettingsBuilder
  *     .createTopicSettings()
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
index d97ca4fada..a7d8fc4ae4 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
@@ -82,6 +82,8 @@
  * 

For example, to set the total timeout of createSchema to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
  *     SchemaServiceStubSettings.newBuilder();
  * schemaServiceSettingsBuilder
diff --git a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
index c58c8656d8..bb8299b268 100644
--- a/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
+++ b/test/integration/goldens/pubsub/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
@@ -97,6 +97,8 @@
  * 

For example, to set the total timeout of createSubscription to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
  *     SubscriberStubSettings.newBuilder();
  * subscriptionAdminSettingsBuilder
diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java
index 237e88ff06..da68b2788e 100644
--- a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java
+++ b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisClient.java
@@ -68,6 +68,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
  *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
  *   Instance response = cloudRedisClient.getInstance(name);
@@ -103,6 +105,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudRedisSettings cloudRedisSettings =
  *     CloudRedisSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -113,6 +117,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudRedisSettings cloudRedisSettings =
  *     CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings);
@@ -200,6 +206,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) {
@@ -237,6 +245,8 @@ public final ListInstancesPagedResponse listInstances(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) {
@@ -271,6 +281,8 @@ public final ListInstancesPagedResponse listInstances(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -308,6 +320,8 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -346,6 +360,8 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -379,6 +395,8 @@ public final UnaryCallable listInst
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   Instance response = cloudRedisClient.getInstance(name);
@@ -403,6 +421,8 @@ public final Instance getInstance(InstanceName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   Instance response = cloudRedisClient.getInstance(name);
@@ -426,6 +446,8 @@ public final Instance getInstance(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   GetInstanceRequest request =
    *       GetInstanceRequest.newBuilder()
@@ -449,6 +471,8 @@ public final Instance getInstance(GetInstanceRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   GetInstanceRequest request =
    *       GetInstanceRequest.newBuilder()
@@ -472,6 +496,8 @@ public final UnaryCallable getInstanceCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name);
@@ -499,6 +525,8 @@ public final InstanceAuthString getInstanceAuthString(InstanceName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name);
@@ -524,6 +552,8 @@ public final InstanceAuthString getInstanceAuthString(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   GetInstanceAuthStringRequest request =
    *       GetInstanceAuthStringRequest.newBuilder()
@@ -548,6 +578,8 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   GetInstanceAuthStringRequest request =
    *       GetInstanceAuthStringRequest.newBuilder()
@@ -583,6 +615,8 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   String instanceId = "instanceId902024336";
@@ -635,6 +669,8 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   String instanceId = "instanceId902024336";
@@ -687,6 +723,8 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -723,6 +761,8 @@ public final OperationFuture createInstanceAsync(CreateInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -760,6 +800,8 @@ public final OperationFuture createInstanceAsync(CreateInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -788,6 +830,8 @@ public final UnaryCallable createInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   FieldMask updateMask = FieldMask.newBuilder().build();
    *   Instance instance = Instance.newBuilder().build();
@@ -821,6 +865,8 @@ public final OperationFuture updateInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpdateInstanceRequest request =
    *       UpdateInstanceRequest.newBuilder()
@@ -849,6 +895,8 @@ public final OperationFuture updateInstanceAsync(UpdateInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpdateInstanceRequest request =
    *       UpdateInstanceRequest.newBuilder()
@@ -878,6 +926,8 @@ public final OperationFuture updateInstanceAsync(UpdateInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpdateInstanceRequest request =
    *       UpdateInstanceRequest.newBuilder()
@@ -901,6 +951,8 @@ public final UnaryCallable updateInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   String redisVersion = "redisVersion-1972584739";
@@ -931,6 +983,8 @@ public final OperationFuture upgradeInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   String redisVersion = "redisVersion-1972584739";
@@ -958,6 +1012,8 @@ public final OperationFuture upgradeInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -982,6 +1038,8 @@ public final OperationFuture upgradeInstanceAsync(UpgradeInstance
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -1007,6 +1065,8 @@ public final OperationFuture upgradeInstanceAsync(UpgradeInstance
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -1036,6 +1096,8 @@ public final UnaryCallable upgradeInstanceCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = "name3373707";
    *   InputConfig inputConfig = InputConfig.newBuilder().build();
@@ -1069,6 +1131,8 @@ public final OperationFuture importInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ImportInstanceRequest request =
    *       ImportInstanceRequest.newBuilder()
@@ -1099,6 +1163,8 @@ public final OperationFuture importInstanceAsync(ImportInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ImportInstanceRequest request =
    *       ImportInstanceRequest.newBuilder()
@@ -1130,6 +1196,8 @@ public final OperationFuture importInstanceAsync(ImportInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ImportInstanceRequest request =
    *       ImportInstanceRequest.newBuilder()
@@ -1158,6 +1226,8 @@ public final UnaryCallable importInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = "name3373707";
    *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
@@ -1190,6 +1260,8 @@ public final OperationFuture exportInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ExportInstanceRequest request =
    *       ExportInstanceRequest.newBuilder()
@@ -1219,6 +1291,8 @@ public final OperationFuture exportInstanceAsync(ExportInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ExportInstanceRequest request =
    *       ExportInstanceRequest.newBuilder()
@@ -1249,6 +1323,8 @@ public final OperationFuture exportInstanceAsync(ExportInstanceRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   ExportInstanceRequest request =
    *       ExportInstanceRequest.newBuilder()
@@ -1273,6 +1349,8 @@ public final UnaryCallable exportInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   FailoverInstanceRequest.DataProtectionMode dataProtectionMode =
@@ -1306,6 +1384,8 @@ public final OperationFuture failoverInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   FailoverInstanceRequest.DataProtectionMode dataProtectionMode =
@@ -1339,6 +1419,8 @@ public final OperationFuture failoverInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   FailoverInstanceRequest request =
    *       FailoverInstanceRequest.newBuilder()
@@ -1364,6 +1446,8 @@ public final OperationFuture failoverInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   FailoverInstanceRequest request =
    *       FailoverInstanceRequest.newBuilder()
@@ -1389,6 +1473,8 @@ public final OperationFuture failoverInstanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   FailoverInstanceRequest request =
    *       FailoverInstanceRequest.newBuilder()
@@ -1411,6 +1497,8 @@ public final UnaryCallable failoverInstanceC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   cloudRedisClient.deleteInstanceAsync(name).get();
@@ -1435,6 +1523,8 @@ public final OperationFuture deleteInstanceAsync(InstanceName name)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   cloudRedisClient.deleteInstanceAsync(name).get();
@@ -1458,6 +1548,8 @@ public final OperationFuture deleteInstanceAsync(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder()
@@ -1481,6 +1573,8 @@ public final OperationFuture deleteInstanceAsync(DeleteInstanceReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder()
@@ -1505,6 +1599,8 @@ public final OperationFuture deleteInstanceAsync(DeleteInstanceReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder()
@@ -1527,6 +1623,8 @@ public final UnaryCallable deleteInstanceCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
    *   RescheduleMaintenanceRequest.RescheduleType rescheduleType =
@@ -1566,6 +1664,8 @@ public final OperationFuture rescheduleMaintenanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
    *   RescheduleMaintenanceRequest.RescheduleType rescheduleType =
@@ -1605,6 +1705,8 @@ public final OperationFuture rescheduleMaintenanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   RescheduleMaintenanceRequest request =
    *       RescheduleMaintenanceRequest.newBuilder()
@@ -1630,6 +1732,8 @@ public final OperationFuture rescheduleMaintenanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   RescheduleMaintenanceRequest request =
    *       RescheduleMaintenanceRequest.newBuilder()
@@ -1655,6 +1759,8 @@ public final OperationFuture rescheduleMaintenanceAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
    *   RescheduleMaintenanceRequest request =
    *       RescheduleMaintenanceRequest.newBuilder()
diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java
index 07b8a88495..fc98568148 100644
--- a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java
+++ b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/CloudRedisSettings.java
@@ -57,6 +57,8 @@
  * 

For example, to set the total timeout of getInstance to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudRedisSettings.Builder cloudRedisSettingsBuilder = CloudRedisSettings.newBuilder();
  * cloudRedisSettingsBuilder
  *     .getInstanceSettings()
diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java
index 2e50fe5c8e..9b934c1ddd 100644
--- a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java
+++ b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/package-info.java
@@ -45,6 +45,8 @@
  * 

Sample for CloudRedisClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
  *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
  *   Instance response = cloudRedisClient.getInstance(name);
diff --git a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java
index 47b3185610..05ce9661a9 100644
--- a/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java
+++ b/test/integration/goldens/redis/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java
@@ -88,6 +88,8 @@
  * 

For example, to set the total timeout of getInstance to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder();
  * cloudRedisSettingsBuilder
  *     .getInstanceSettings()
diff --git a/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java b/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java
index 730ab88f39..7ac3053780 100644
--- a/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java
+++ b/test/integration/goldens/storage/com/google/storage/v2/StorageClient.java
@@ -65,6 +65,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (StorageClient storageClient = StorageClient.create()) {
  *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
  *   storageClient.deleteBucket(name);
@@ -100,6 +102,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * StorageSettings storageSettings =
  *     StorageSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -110,6 +114,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * StorageSettings storageSettings = StorageSettings.newBuilder().setEndpoint(myEndpoint).build();
  * StorageClient storageClient = StorageClient.create(storageSettings);
  * }
@@ -174,6 +180,8 @@ public StorageStub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
    *   storageClient.deleteBucket(name);
@@ -196,6 +204,8 @@ public final void deleteBucket(BucketName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
    *   storageClient.deleteBucket(name);
@@ -217,6 +227,8 @@ public final void deleteBucket(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteBucketRequest request =
    *       DeleteBucketRequest.newBuilder()
@@ -243,6 +255,8 @@ public final void deleteBucket(DeleteBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteBucketRequest request =
    *       DeleteBucketRequest.newBuilder()
@@ -268,6 +282,8 @@ public final UnaryCallable deleteBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
    *   Bucket response = storageClient.getBucket(name);
@@ -290,6 +306,8 @@ public final Bucket getBucket(BucketName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
    *   Bucket response = storageClient.getBucket(name);
@@ -311,6 +329,8 @@ public final Bucket getBucket(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetBucketRequest request =
    *       GetBucketRequest.newBuilder()
@@ -338,6 +358,8 @@ public final Bucket getBucket(GetBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetBucketRequest request =
    *       GetBucketRequest.newBuilder()
@@ -364,6 +386,8 @@ public final UnaryCallable getBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Bucket bucket = Bucket.newBuilder().build();
@@ -397,6 +421,8 @@ public final Bucket createBucket(ProjectName parent, Bucket bucket, String bucke
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Bucket bucket = Bucket.newBuilder().build();
@@ -430,6 +456,8 @@ public final Bucket createBucket(String parent, Bucket bucket, String bucketId)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateBucketRequest request =
    *       CreateBucketRequest.newBuilder()
@@ -457,6 +485,8 @@ public final Bucket createBucket(CreateBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateBucketRequest request =
    *       CreateBucketRequest.newBuilder()
@@ -483,6 +513,8 @@ public final UnaryCallable createBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Bucket element : storageClient.listBuckets(parent).iterateAll()) {
@@ -509,6 +541,8 @@ public final ListBucketsPagedResponse listBuckets(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Bucket element : storageClient.listBuckets(parent).iterateAll()) {
@@ -532,6 +566,8 @@ public final ListBucketsPagedResponse listBuckets(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -562,6 +598,8 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -592,6 +630,8 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListBucketsRequest request =
    *       ListBucketsRequest.newBuilder()
@@ -628,6 +668,8 @@ public final UnaryCallable listBucketsC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   BucketName bucket = BucketName.of("[PROJECT]", "[BUCKET]");
    *   Bucket response = storageClient.lockBucketRetentionPolicy(bucket);
@@ -652,6 +694,8 @@ public final Bucket lockBucketRetentionPolicy(BucketName bucket) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = BucketName.of("[PROJECT]", "[BUCKET]").toString();
    *   Bucket response = storageClient.lockBucketRetentionPolicy(bucket);
@@ -674,6 +718,8 @@ public final Bucket lockBucketRetentionPolicy(String bucket) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   LockBucketRetentionPolicyRequest request =
    *       LockBucketRetentionPolicyRequest.newBuilder()
@@ -699,6 +745,8 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   LockBucketRetentionPolicyRequest request =
    *       LockBucketRetentionPolicyRequest.newBuilder()
@@ -725,6 +773,8 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ResourceName resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -751,6 +801,8 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -774,6 +826,8 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -800,6 +854,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -825,6 +881,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ResourceName resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -856,6 +914,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -884,6 +944,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -910,6 +972,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -935,6 +999,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ResourceName resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
@@ -967,6 +1033,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String resource =
    *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
@@ -999,6 +1067,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1025,6 +1095,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1052,6 +1124,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   Bucket bucket = Bucket.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1083,6 +1157,8 @@ public final Bucket updateBucket(Bucket bucket, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateBucketRequest request =
    *       UpdateBucketRequest.newBuilder()
@@ -1112,6 +1188,8 @@ public final Bucket updateBucket(UpdateBucketRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateBucketRequest request =
    *       UpdateBucketRequest.newBuilder()
@@ -1140,6 +1218,8 @@ public final UnaryCallable updateBucketCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   NotificationName name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]");
    *   storageClient.deleteNotification(name);
@@ -1164,6 +1244,8 @@ public final void deleteNotification(NotificationName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]").toString();
    *   storageClient.deleteNotification(name);
@@ -1186,6 +1268,8 @@ public final void deleteNotification(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteNotificationRequest request =
    *       DeleteNotificationRequest.newBuilder()
@@ -1209,6 +1293,8 @@ public final void deleteNotification(DeleteNotificationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteNotificationRequest request =
    *       DeleteNotificationRequest.newBuilder()
@@ -1231,6 +1317,8 @@ public final UnaryCallable deleteNotificationC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
    *   Notification response = storageClient.getNotification(name);
@@ -1254,6 +1342,8 @@ public final Notification getNotification(BucketName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String name = BucketName.of("[PROJECT]", "[BUCKET]").toString();
    *   Notification response = storageClient.getNotification(name);
@@ -1276,6 +1366,8 @@ public final Notification getNotification(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetNotificationRequest request =
    *       GetNotificationRequest.newBuilder()
@@ -1299,6 +1391,8 @@ public final Notification getNotification(GetNotificationRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetNotificationRequest request =
    *       GetNotificationRequest.newBuilder()
@@ -1323,6 +1417,8 @@ public final UnaryCallable getNotification
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Notification notification = Notification.newBuilder().build();
@@ -1352,6 +1448,8 @@ public final Notification createNotification(ProjectName parent, Notification no
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Notification notification = Notification.newBuilder().build();
@@ -1381,6 +1479,8 @@ public final Notification createNotification(String parent, Notification notific
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateNotificationRequest request =
    *       CreateNotificationRequest.newBuilder()
@@ -1407,6 +1507,8 @@ public final Notification createNotification(CreateNotificationRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateNotificationRequest request =
    *       CreateNotificationRequest.newBuilder()
@@ -1431,6 +1533,8 @@ public final UnaryCallable createNotifi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Notification element : storageClient.listNotifications(parent).iterateAll()) {
@@ -1457,6 +1561,8 @@ public final ListNotificationsPagedResponse listNotifications(ProjectName parent
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Notification element : storageClient.listNotifications(parent).iterateAll()) {
@@ -1481,6 +1587,8 @@ public final ListNotificationsPagedResponse listNotifications(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListNotificationsRequest request =
    *       ListNotificationsRequest.newBuilder()
@@ -1508,6 +1616,8 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListNotificationsRequest request =
    *       ListNotificationsRequest.newBuilder()
@@ -1536,6 +1646,8 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListNotificationsRequest request =
    *       ListNotificationsRequest.newBuilder()
@@ -1571,6 +1683,8 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ComposeObjectRequest request =
    *       ComposeObjectRequest.newBuilder()
@@ -1603,6 +1717,8 @@ public final Object composeObject(ComposeObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ComposeObjectRequest request =
    *       ComposeObjectRequest.newBuilder()
@@ -1635,6 +1751,8 @@ public final UnaryCallable composeObjectCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = "bucket-1378203158";
    *   String object = "object-1023368385";
@@ -1660,6 +1778,8 @@ public final void deleteObject(String bucket, String object) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = "bucket-1378203158";
    *   String object = "object-1023368385";
@@ -1692,6 +1812,8 @@ public final void deleteObject(String bucket, String object, long generation) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteObjectRequest request =
    *       DeleteObjectRequest.newBuilder()
@@ -1725,6 +1847,8 @@ public final void deleteObject(DeleteObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteObjectRequest request =
    *       DeleteObjectRequest.newBuilder()
@@ -1756,6 +1880,8 @@ public final UnaryCallable deleteObjectCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = "bucket-1378203158";
    *   String object = "object-1023368385";
@@ -1780,6 +1906,8 @@ public final Object getObject(String bucket, String object) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String bucket = "bucket-1378203158";
    *   String object = "object-1023368385";
@@ -1811,6 +1939,8 @@ public final Object getObject(String bucket, String object, long generation) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetObjectRequest request =
    *       GetObjectRequest.newBuilder()
@@ -1843,6 +1973,8 @@ public final Object getObject(GetObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetObjectRequest request =
    *       GetObjectRequest.newBuilder()
@@ -1874,6 +2006,8 @@ public final UnaryCallable getObjectCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ReadObjectRequest request =
    *       ReadObjectRequest.newBuilder()
@@ -1908,6 +2042,8 @@ public final ServerStreamingCallable read
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   Object object = Object.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1941,6 +2077,8 @@ public final Object updateObject(Object object, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateObjectRequest request =
    *       UpdateObjectRequest.newBuilder()
@@ -1972,6 +2110,8 @@ public final Object updateObject(UpdateObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateObjectRequest request =
    *       UpdateObjectRequest.newBuilder()
@@ -2021,6 +2161,8 @@ public final UnaryCallable updateObjectCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ApiStreamObserver responseObserver =
    *       new ApiStreamObserver() {
@@ -2065,6 +2207,8 @@ public final UnaryCallable updateObjectCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Object element : storageClient.listObjects(parent).iterateAll()) {
@@ -2091,6 +2235,8 @@ public final ListObjectsPagedResponse listObjects(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Object element : storageClient.listObjects(parent).iterateAll()) {
@@ -2114,6 +2260,8 @@ public final ListObjectsPagedResponse listObjects(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListObjectsRequest request =
    *       ListObjectsRequest.newBuilder()
@@ -2149,6 +2297,8 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListObjectsRequest request =
    *       ListObjectsRequest.newBuilder()
@@ -2184,6 +2334,8 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListObjectsRequest request =
    *       ListObjectsRequest.newBuilder()
@@ -2225,6 +2377,8 @@ public final UnaryCallable listObjectsC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   RewriteObjectRequest request =
    *       RewriteObjectRequest.newBuilder()
@@ -2272,6 +2426,8 @@ public final RewriteResponse rewriteObject(RewriteObjectRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   RewriteObjectRequest request =
    *       RewriteObjectRequest.newBuilder()
@@ -2319,6 +2475,8 @@ public final UnaryCallable rewriteObjectC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   StartResumableWriteRequest request =
    *       StartResumableWriteRequest.newBuilder()
@@ -2345,6 +2503,8 @@ public final StartResumableWriteResponse startResumableWrite(StartResumableWrite
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   StartResumableWriteRequest request =
    *       StartResumableWriteRequest.newBuilder()
@@ -2381,6 +2541,8 @@ public final StartResumableWriteResponse startResumableWrite(StartResumableWrite
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String uploadId = "uploadId1563990780";
    *   QueryWriteStatusResponse response = storageClient.queryWriteStatus(uploadId);
@@ -2414,6 +2576,8 @@ public final QueryWriteStatusResponse queryWriteStatus(String uploadId) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   QueryWriteStatusRequest request =
    *       QueryWriteStatusRequest.newBuilder()
@@ -2449,6 +2613,8 @@ public final QueryWriteStatusResponse queryWriteStatus(QueryWriteStatusRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   QueryWriteStatusRequest request =
    *       QueryWriteStatusRequest.newBuilder()
@@ -2475,6 +2641,8 @@ public final QueryWriteStatusResponse queryWriteStatus(QueryWriteStatusRequest r
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   ServiceAccount response = storageClient.getServiceAccount(project);
@@ -2499,6 +2667,8 @@ public final ServiceAccount getServiceAccount(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   ServiceAccount response = storageClient.getServiceAccount(project);
@@ -2521,6 +2691,8 @@ public final ServiceAccount getServiceAccount(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetServiceAccountRequest request =
    *       GetServiceAccountRequest.newBuilder()
@@ -2545,6 +2717,8 @@ public final ServiceAccount getServiceAccount(GetServiceAccountRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetServiceAccountRequest request =
    *       GetServiceAccountRequest.newBuilder()
@@ -2569,6 +2743,8 @@ public final UnaryCallable getServiceA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   String serviceAccountEmail = "serviceAccountEmail1825953988";
@@ -2597,6 +2773,8 @@ public final CreateHmacKeyResponse createHmacKey(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   String serviceAccountEmail = "serviceAccountEmail1825953988";
@@ -2624,6 +2802,8 @@ public final CreateHmacKeyResponse createHmacKey(String project, String serviceA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateHmacKeyRequest request =
    *       CreateHmacKeyRequest.newBuilder()
@@ -2649,6 +2829,8 @@ public final CreateHmacKeyResponse createHmacKey(CreateHmacKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   CreateHmacKeyRequest request =
    *       CreateHmacKeyRequest.newBuilder()
@@ -2674,6 +2856,8 @@ public final UnaryCallable createHm
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String accessId = "accessId-2146437729";
    *   ProjectName project = ProjectName.of("[PROJECT]");
@@ -2701,6 +2885,8 @@ public final void deleteHmacKey(String accessId, ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String accessId = "accessId-2146437729";
    *   String project = ProjectName.of("[PROJECT]").toString();
@@ -2725,6 +2911,8 @@ public final void deleteHmacKey(String accessId, String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteHmacKeyRequest request =
    *       DeleteHmacKeyRequest.newBuilder()
@@ -2750,6 +2938,8 @@ public final void deleteHmacKey(DeleteHmacKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   DeleteHmacKeyRequest request =
    *       DeleteHmacKeyRequest.newBuilder()
@@ -2774,6 +2964,8 @@ public final UnaryCallable deleteHmacKeyCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String accessId = "accessId-2146437729";
    *   ProjectName project = ProjectName.of("[PROJECT]");
@@ -2801,6 +2993,8 @@ public final HmacKeyMetadata getHmacKey(String accessId, ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String accessId = "accessId-2146437729";
    *   String project = ProjectName.of("[PROJECT]").toString();
@@ -2825,6 +3019,8 @@ public final HmacKeyMetadata getHmacKey(String accessId, String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetHmacKeyRequest request =
    *       GetHmacKeyRequest.newBuilder()
@@ -2850,6 +3046,8 @@ public final HmacKeyMetadata getHmacKey(GetHmacKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   GetHmacKeyRequest request =
    *       GetHmacKeyRequest.newBuilder()
@@ -2874,6 +3072,8 @@ public final UnaryCallable getHmacKeyCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (HmacKeyMetadata element : storageClient.listHmacKeys(project).iterateAll()) {
@@ -2900,6 +3100,8 @@ public final ListHmacKeysPagedResponse listHmacKeys(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (HmacKeyMetadata element : storageClient.listHmacKeys(project).iterateAll()) {
@@ -2923,6 +3125,8 @@ public final ListHmacKeysPagedResponse listHmacKeys(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListHmacKeysRequest request =
    *       ListHmacKeysRequest.newBuilder()
@@ -2953,6 +3157,8 @@ public final ListHmacKeysPagedResponse listHmacKeys(ListHmacKeysRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListHmacKeysRequest request =
    *       ListHmacKeysRequest.newBuilder()
@@ -2984,6 +3190,8 @@ public final ListHmacKeysPagedResponse listHmacKeys(ListHmacKeysRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   ListHmacKeysRequest request =
    *       ListHmacKeysRequest.newBuilder()
@@ -3020,6 +3228,8 @@ public final UnaryCallable listHmacKe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   HmacKeyMetadata hmacKey = HmacKeyMetadata.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -3046,6 +3256,8 @@ public final HmacKeyMetadata updateHmacKey(HmacKeyMetadata hmacKey, FieldMask up
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateHmacKeyRequest request =
    *       UpdateHmacKeyRequest.newBuilder()
@@ -3071,6 +3283,8 @@ public final HmacKeyMetadata updateHmacKey(UpdateHmacKeyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (StorageClient storageClient = StorageClient.create()) {
    *   UpdateHmacKeyRequest request =
    *       UpdateHmacKeyRequest.newBuilder()
diff --git a/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java b/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java
index c1c35ab39b..63956a25a7 100644
--- a/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java
+++ b/test/integration/goldens/storage/com/google/storage/v2/StorageSettings.java
@@ -64,6 +64,8 @@
  * 

For example, to set the total timeout of deleteBucket to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * StorageSettings.Builder storageSettingsBuilder = StorageSettings.newBuilder();
  * storageSettingsBuilder
  *     .deleteBucketSettings()
diff --git a/test/integration/goldens/storage/com/google/storage/v2/package-info.java b/test/integration/goldens/storage/com/google/storage/v2/package-info.java
index c9655f85d2..b303dd1e34 100644
--- a/test/integration/goldens/storage/com/google/storage/v2/package-info.java
+++ b/test/integration/goldens/storage/com/google/storage/v2/package-info.java
@@ -38,6 +38,8 @@
  * 

Sample for StorageClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (StorageClient storageClient = StorageClient.create()) {
  *   BucketName name = BucketName.of("[PROJECT]", "[BUCKET]");
  *   storageClient.deleteBucket(name);
diff --git a/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java b/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java
index 25e85c92be..5e786e6bca 100644
--- a/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java
+++ b/test/integration/goldens/storage/com/google/storage/v2/stub/StorageStubSettings.java
@@ -119,6 +119,8 @@
  * 

For example, to set the total timeout of deleteBucket to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * StorageStubSettings.Builder storageSettingsBuilder = StorageStubSettings.newBuilder();
  * storageSettingsBuilder
  *     .deleteBucketSettings()

From 530edd477913f987c642e0084fc8e72ef4ffb459 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 14:18:31 -0700
Subject: [PATCH 28/29] test: update tests

---
 .../composer/samplecode/SampleCodeWriter.java |   10 +-
 ...rviceCallableFactoryClassComposerTest.java |   22 +-
 .../GrpcServiceStubClassComposerTest.java     |   49 +-
 .../grpc/MockServiceClassComposerTest.java    |   47 +-
 .../MockServiceImplClassComposerTest.java     |   47 +-
 .../grpc/ServiceClientClassComposerTest.java  |   89 +-
 .../ServiceClientTestClassComposerTest.java   |  100 +-
 .../ServiceSettingsClassComposerTest.java     |   52 +-
 .../grpc/ServiceStubClassComposerTest.java    |   47 +-
 .../ServiceStubSettingsClassComposerTest.java |   85 +-
 .../SampleBodyJavaFormatterTest.java          |    3 +-
 .../samplecode/SampleComposerTest.java        |    1 +
 ...lientCallableMethodSampleComposerTest.java |  970 ++++++
 ...ServiceClientHeaderSampleComposerTest.java |  813 +++++
 ...ServiceClientMethodSampleComposerTest.java |  343 +++
 .../ServiceClientSampleCodeComposerTest.java  | 2640 -----------------
 ...t.java => SettingsSampleComposerTest.java} |   30 +-
 .../api/generator/test/framework/Assert.java  |   43 +
 .../api/generator/test/framework/Differ.java  |    2 +-
 .../api/generator/test/framework/Utils.java   |   10 +
 20 files changed, 2400 insertions(+), 3003 deletions(-)
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java
 delete mode 100644 src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java
 rename src/test/java/com/google/api/generator/gapic/composer/samplecode/{SettingsSampleCodeComposerTest.java => SettingsSampleComposerTest.java} (77%)

diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java
index 11014ac041..6e78f88d0b 100644
--- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java
+++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriter.java
@@ -19,6 +19,7 @@
 import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.Sample;
 import com.google.common.annotations.VisibleForTesting;
+import java.util.Arrays;
 import java.util.List;
 
 public final class SampleCodeWriter {
@@ -31,6 +32,11 @@ public static String writeExecutableSample(Sample sample, String packkage) {
     return write(SampleComposer.composeExecutableSample(sample, packkage));
   }
 
+  @VisibleForTesting
+  public static String write(Statement... statement) {
+    return write(Arrays.asList(statement));
+  }
+
   @VisibleForTesting
   public static String write(List statements) {
     JavaWriterVisitor visitor = new JavaWriterVisitor();
@@ -48,8 +54,4 @@ public static String write(ClassDefinition classDefinition) {
     classDefinition.accept(visitor);
     return visitor.write();
   }
-
-  public static String write(Statement... statement) {
-    return write(Arrays.asList(statement));
-  }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java
index 3f90ae955f..7269d61140 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceCallableFactoryClassComposerTest.java
@@ -14,14 +14,10 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
 import org.junit.Test;
 
 public class GrpcServiceCallableFactoryClassComposerTest {
@@ -32,12 +28,8 @@ public void generateServiceClasses() {
     GapicClass clazz =
         GrpcServiceCallableFactoryClassComposer.instance().generate(context, echoProtoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcEchoCallableFactory.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcEchoCallableFactory.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcEchoCallableFactory.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -47,13 +39,7 @@ public void generateServiceClasses_deprecated() {
     GapicClass clazz =
         GrpcServiceCallableFactoryClassComposer.instance().generate(context, protoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(
-        this.getClass(), "GrpcDeprecatedServiceCallableFactory.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(
-            Utils.getGoldenDir(this.getClass()), "GrpcDeprecatedServiceCallableFactory.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcDeprecatedServiceCallableFactory.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java
index e26d8696e8..f41143acbe 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java
@@ -14,14 +14,10 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
 import org.junit.Test;
 
 public class GrpcServiceStubClassComposerTest {
@@ -31,11 +27,8 @@ public void generateGrpcServiceStubClass_simple() {
     Service echoProtoService = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, echoProtoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcEchoStub.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcEchoStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcEchoStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -44,12 +37,8 @@ public void generateGrpcServiceStubClass_deprecated() {
     Service protoService = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, protoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcDeprecatedServiceStub.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcDeprecatedServiceStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcDeprecatedServiceStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -58,11 +47,8 @@ public void generateGrpcServiceStubClass_httpBindings() {
     Service service = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcTestingStub.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcTestingStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcTestingStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -72,12 +58,8 @@ public void generateGrpcServiceStubClass_routingHeaders() {
     Service service = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcRoutingHeadersStub.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcRoutingHeadersStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcRoutingHeadersStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -86,12 +68,8 @@ public void generateGrpcServiceStubClass_httpBindingsWithSubMessageFields() {
     Service service = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcPublisherStub.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcPublisherStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcPublisherStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 
   @Test
@@ -100,10 +78,7 @@ public void generateGrpcServiceStubClass_createBatchingCallable() {
     Service service = context.services().get(0);
     GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "GrpcLoggingStub.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "GrpcLoggingStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, "GrpcLoggingStub.golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java
index b8f17b5934..7762c6a4df 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceClassComposerTest.java
@@ -14,41 +14,38 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class MockServiceClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = MockServiceClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MockEcho.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "MockEcho.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"MockEcho", GrpcTestProtoLoader.instance().parseShowcaseEcho()},
+          {"MockDeprecatedService", GrpcTestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
+  @Parameterized.Parameter public String name;
+
+  @Parameterized.Parameter(1)
+  public GapicContext context;
+
   @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = MockServiceClassComposer.instance().generate(context, protoService);
+  public void generateMockServiceClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = MockServiceClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MockDeprecatedService.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "MockDeprecatedService.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java
index 854d0772dd..aa062279ec 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/MockServiceImplClassComposerTest.java
@@ -14,41 +14,38 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class MockServiceImplClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = MockServiceImplClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MockEchoImpl.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "MockEchoImpl.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"MockEchoImpl", GrpcTestProtoLoader.instance().parseShowcaseEcho()},
+          {"MockDeprecatedServiceImpl", GrpcTestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
+  @Parameterized.Parameter public String name;
+
+  @Parameterized.Parameter(1)
+  public GapicContext context;
+
   @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = MockServiceImplClassComposer.instance().generate(context, protoService);
+  public void generateMockServiceImplClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = MockServiceImplClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MockDeprecatedServiceImpl.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "MockDeprecatedServiceImpl.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
index 46134ebff8..fe00c3ca04 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientClassComposerTest.java
@@ -14,81 +14,42 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import static com.google.api.generator.test.framework.Assert.assertCodeEquals;
-
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import com.google.api.generator.test.framework.Assert;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceClientClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoClient.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"EchoClient", GrpcTestProtoLoader.instance().parseShowcaseEcho()},
+          {"DeprecatedServiceClient", GrpcTestProtoLoader.instance().parseDeprecatedService()},
+          {"IdentityClient", GrpcTestProtoLoader.instance().parseShowcaseIdentity()},
+          {"BookshopClient", GrpcTestProtoLoader.instance().parseBookshopService()},
+          {"MessagingClient", GrpcTestProtoLoader.instance().parseShowcaseMessaging()},
+        });
   }
 
-  @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, protoService);
+  @Parameterized.Parameter public String name;
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "DeprecatedServiceClient.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
-
-  @Test
-  public void generateServiceClasses_methodSignatureHasNestedFields() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseIdentity();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "IdentityClient.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "IdentityClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
-
-  @Test
-  public void generateServiceClasses_bookshopNameConflicts() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseBookshopService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "BookshopClient.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "BookshopClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
+  @Parameterized.Parameter(1)
+  public GapicContext context;
 
   @Test
-  public void generateServiceClasses_childTypeParentInJavadoc() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseMessaging();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, protoService);
+  public void generateServiceClientClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = ServiceClientClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "MessagingClient.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "MessagingClient.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertGoldenSamples(
+        this.getClass(), name, clazz.classDefinition().packageString(), clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java
index 9874286d82..0eca4e060d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposerTest.java
@@ -14,89 +14,49 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import static com.google.api.generator.test.framework.Assert.assertCodeEquals;
-import static org.junit.Assert.assertEquals;
-
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import com.google.api.generator.test.framework.Assert;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceClientTestClassComposerTest {
-  @Test
-  public void generateClientTest_echoClient() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz =
-        ServiceClientTestClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoClientTest.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"EchoClientTest", GrpcTestProtoLoader.instance().parseShowcaseEcho(), 0},
+          {
+            "DeprecatedServiceClientTest",
+            GrpcTestProtoLoader.instance().parseDeprecatedService(),
+            0
+          },
+          {"TestingClientTest", GrpcTestProtoLoader.instance().parseShowcaseTesting(), 0},
+          {"SubscriberClientTest", GrpcTestProtoLoader.instance().parsePubSubPublisher(), 1},
+          {"LoggingClientTest", GrpcTestProtoLoader.instance().parseLogging(), 0},
+        });
   }
 
-  @Test
-  public void generateClientTest_deprecatedServiceClient() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceClientTestClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "DeprecatedServiceClientTest.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
+  @Parameterized.Parameter public String name;
 
-  @Test
-  public void generateClientTest_testingClientResnameWithOnePatternWithNonSlashSepNames() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseTesting();
-    Service testingProtoService = context.services().get(0);
-    GapicClass clazz =
-        ServiceClientTestClassComposer.instance().generate(context, testingProtoService);
+  @Parameterized.Parameter(1)
+  public GapicContext context;
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "TestingClientTest.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "TestingClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
+  @Parameterized.Parameter(2)
+  public int serviceIndex;
 
   @Test
-  public void generateClientTest_pubSubPublisherClient() {
-    GapicContext context = GrpcTestProtoLoader.instance().parsePubSubPublisher();
-    Service subscriptionService = context.services().get(1);
-    assertEquals("Subscriber", subscriptionService.name());
+  public void generateServiceClientTestClasses() {
+    Service echoProtoService = context.services().get(serviceIndex);
     GapicClass clazz =
-        ServiceClientTestClassComposer.instance().generate(context, subscriptionService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "SubscriberClientTest.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "SubscriberClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
-  }
-
-  @Test
-  public void generateClientTest_logging() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseLogging();
-    Service loggingService = context.services().get(0);
-    GapicClass clazz = ServiceClientTestClassComposer.instance().generate(context, loggingService);
+        ServiceClientTestClassComposer.instance().generate(context, echoProtoService);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "LoggingClientTest.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "LoggingClientTest.golden");
-    assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
index 622cf85f9c..5857ef3352 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceSettingsClassComposerTest.java
@@ -14,41 +14,43 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
+import com.google.api.generator.gapic.composer.common.TestProtoLoader;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceSettingsClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = ServiceSettingsClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoSettings.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"EchoSettings", TestProtoLoader.instance().parseShowcaseEcho()},
+          {"DeprecatedServiceSettings", TestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
+  @Parameterized.Parameter public String name;
+
+  @Parameterized.Parameter(1)
+  public GapicContext context;
+
   @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceSettingsClassComposer.instance().generate(context, protoService);
+  public void generateServiceSettingsClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = ServiceSettingsClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "DeprecatedServiceSettings.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertGoldenSamples(
+        this.getClass(),
+        "servicesettings",
+        clazz.classDefinition().packageString(),
+        clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java
index bb411b9ad3..bb0619d315 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubClassComposerTest.java
@@ -14,42 +14,39 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.composer.common.TestProtoLoader;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceStubClassComposerTest {
-  @Test
-  public void generateServiceClasses() {
-    GapicContext context = TestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz = ServiceStubClassComposer.instance().generate(context, echoProtoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoStub.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"EchoStub", TestProtoLoader.instance().parseShowcaseEcho()},
+          {"DeprecatedServiceStub", TestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
+  @Parameterized.Parameter public String name;
+
+  @Parameterized.Parameter(1)
+  public GapicContext context;
+
   @Test
-  public void generateServiceClasses_deprecated() {
-    GapicContext context = TestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceStubClassComposer.instance().generate(context, protoService);
+  public void generateServiceStubClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = ServiceStubClassComposer.instance().generate(context, service);
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "DeprecatedServiceStub.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceStub.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertEmptySamples(clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
index 468c2d8219..9a63099d7d 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
@@ -14,75 +14,44 @@
 
 package com.google.api.generator.gapic.composer.grpc;
 
-import static org.junit.Assert.assertEquals;
-
-import com.google.api.generator.engine.writer.JavaWriterVisitor;
 import com.google.api.generator.gapic.model.GapicClass;
 import com.google.api.generator.gapic.model.GapicContext;
 import com.google.api.generator.gapic.model.Service;
 import com.google.api.generator.test.framework.Assert;
-import com.google.api.generator.test.framework.Utils;
-import java.nio.file.Path;
-import java.nio.file.Paths;
+import java.util.Arrays;
+import java.util.Collection;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
 
+@RunWith(Parameterized.class)
 public class ServiceStubSettingsClassComposerTest {
-  @Test
-  public void generateServiceStubSettingsClasses_batchingWithEmptyResponses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseLogging();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(
-        this.getClass(), "LoggingServiceV2StubSettings.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "LoggingServiceV2StubSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
-  }
-
-  @Test
-  public void generateServiceStubSettingsClasses_batchingWithNonemptyResponses() {
-    GapicContext context = GrpcTestProtoLoader.instance().parsePubSubPublisher();
-    Service protoService = context.services().get(0);
-    assertEquals("Publisher", protoService.name());
-    GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "PublisherStubSettings.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "PublisherStubSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  @Parameterized.Parameters
+  public static Collection data() {
+    return Arrays.asList(
+        new Object[][] {
+          {"LoggingServiceV2StubSettings", GrpcTestProtoLoader.instance().parseLogging()},
+          {"PublisherStubSettings", GrpcTestProtoLoader.instance().parsePubSubPublisher()},
+          {"EchoStubSettings", GrpcTestProtoLoader.instance().parseShowcaseEcho()},
+          {"DeprecatedServiceStubSettings", GrpcTestProtoLoader.instance().parseDeprecatedService()}
+        });
   }
 
-  @Test
-  public void generateServiceStubSettingsClasses_basic() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
-    Service echoProtoService = context.services().get(0);
-    GapicClass clazz =
-        ServiceStubSettingsClassComposer.instance().generate(context, echoProtoService);
+  @Parameterized.Parameter public String name;
 
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(this.getClass(), "EchoStubSettings.golden", visitor.write());
-    Path goldenFilePath = Paths.get(Utils.getGoldenDir(this.getClass()), "EchoStubSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
-  }
+  @Parameterized.Parameter(1)
+  public GapicContext context;
 
   @Test
-  public void generateServiceStubSettingsClasses_deprecated() {
-    GapicContext context = GrpcTestProtoLoader.instance().parseDeprecatedService();
-    Service protoService = context.services().get(0);
-    GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, protoService);
-
-    JavaWriterVisitor visitor = new JavaWriterVisitor();
-    clazz.classDefinition().accept(visitor);
-    Utils.saveCodegenToFile(
-        this.getClass(), "DeprecatedServiceStubSettings.golden", visitor.write());
-    Path goldenFilePath =
-        Paths.get(Utils.getGoldenDir(this.getClass()), "DeprecatedServiceStubSettings.golden");
-    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  public void generateServiceStubSettingsClasses() {
+    Service service = context.services().get(0);
+    GapicClass clazz = ServiceStubSettingsClassComposer.instance().generate(context, service);
+
+    Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
+    Assert.assertGoldenSamples(
+        this.getClass(),
+        "servicesettings/stub",
+        clazz.classDefinition().packageString(),
+        clazz.samples());
   }
 }
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java
index 916b1daaf2..3947bb5894 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleBodyJavaFormatterTest.java
@@ -17,7 +17,6 @@
 import static junit.framework.TestCase.assertEquals;
 import static org.junit.Assert.assertThrows;
 
-import com.google.api.generator.gapic.composer.samplecode.SampleBodyJavaFormatter.FormatException;
 import com.google.api.generator.testutils.LineFormatter;
 import org.junit.Test;
 
@@ -69,7 +68,7 @@ public void validFormatSampleCode_longChainMethod() {
   @Test
   public void invalidFormatSampleCode_nonStatement() {
     assertThrows(
-        SampleCodeBodyJavaFormatter.FormatException.class,
+        SampleBodyJavaFormatter.FormatException.class,
         () -> {
           SampleBodyJavaFormatter.format("abc");
         });
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
index 72062753b5..d5e895e115 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java
@@ -11,6 +11,7 @@
 // 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.generator.gapic.composer.samplecode;
 
 import static org.junit.Assert.assertEquals;
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java
new file mode 100644
index 0000000000..2199c2f49d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java
@@ -0,0 +1,970 @@
+// Copyright 2022 Google LLC
+//
+// 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.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.model.Field;
+import com.google.api.generator.gapic.model.LongrunningOperation;
+import com.google.api.generator.gapic.model.Message;
+import com.google.api.generator.gapic.model.Method;
+import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.protoparser.Parser;
+import com.google.api.generator.testutils.LineFormatter;
+import com.google.protobuf.Descriptors;
+import com.google.showcase.v1beta1.EchoOuterClass;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Map;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ServiceClientCallableMethodSampleComposerTest {
+  private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
+  private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
+  private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
+  private static final String PAGINATED_FIELD_NAME = "page_size";
+
+  /*Testing composeLroCallableMethod*/
+  @Test
+  public void valid_composeLroCallableMethod_withReturnResponse() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeLroCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  OperationFuture future =\n",
+            "      echoClient.waitOperationCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  WaitResponse response = future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeLroCallableMethod_withReturnVoid() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeLroCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  OperationFuture future =\n",
+            "      echoClient.waitOperationCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  /*Testing composePagedCallableMethod*/
+  @Test
+  public void valid_composePagedCallableMethod() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  PagedExpandRequest request =\n",
+            "      PagedExpandRequest.newBuilder()\n",
+            "          .setContent(\"content951530617\")\n",
+            "          .setPageSize(883849137)\n",
+            "          .setPageToken(\"pageToken873572522\")\n",
+            "          .build();\n",
+            "  ApiFuture future ="
+                + " echoClient.pagedExpandPagedCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  for (EchoResponse element : future.get().iterateAll()) {\n",
+            "    // doThingsWith(element);\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composePagedCallableMethod_inputTypeNotExistInMessage() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composePagedCallableMethod_noExistMethodResponse() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoExistResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composePagedCallableMethod_noRepeatedResponse() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoRepeatedResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Field responseField = Field.builder().setName("response").setType(TypeNode.STRING).build();
+    Message noRepeatedResponseMessage =
+        Message.builder()
+            .setName("NoRepeatedResponse")
+            .setFullProtoName("google.showcase.v1beta1.NoRepeatedResponse")
+            .setType(
+                TypeNode.withReference(
+                    VaporReference.builder()
+                        .setName("NoRepeatedResponse")
+                        .setPakkage(SHOWCASE_PACKAGE_NAME)
+                        .build()))
+            .setFields(Arrays.asList(responseField))
+            .build();
+    messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage);
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  /*Testing composeStreamCallableMethod*/
+  @Test
+  public void valid_composeStreamCallableMethod_serverStream() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Expand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.SERVER)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  ExpandRequest request =\n",
+            "      ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n",
+            "  ServerStream stream = echoClient.expandCallable().call(request);\n",
+            "  for (EchoResponse response : stream) {\n",
+            "    // Do something when a response is received.\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeStreamCallableMethod_serverStreamNotExistRequest() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Expand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.SERVER)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void valid_composeStreamCallableMethod_bidiStream() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("chat")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.BIDI)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  BidiStream bidiStream ="
+                + " echoClient.chatCallable().call();\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  bidiStream.send(request);\n",
+            "  for (EchoResponse response : bidiStream) {\n",
+            "    // Do something when a response is received.\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeStreamCallableMethod_bidiStreamNotExistRequest() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("chat")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.BIDI)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void valid_composeStreamCallableMethod_clientStream() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Collect")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.CLIENT)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  ApiStreamObserver responseObserver =\n",
+            "      new ApiStreamObserver() {\n",
+            "        {@literal @}Override\n",
+            "        public void onNext(EchoResponse response) {\n",
+            "          // Do something when a response is received.\n",
+            "        }\n",
+            "\n",
+            "        {@literal @}Override\n",
+            "        public void onError(Throwable t) {\n",
+            "          // Add error-handling\n",
+            "        }\n",
+            "\n",
+            "        {@literal @}Override\n",
+            "        public void onCompleted() {\n",
+            "          // Do something when complete.\n",
+            "        }\n",
+            "      };\n",
+            "  ApiStreamObserver requestObserver =\n",
+            "      echoClient.collect().clientStreamingCall(responseObserver);\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  requestObserver.onNext(request);\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeStreamCallableMethod_clientStreamNotExistRequest() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Collect")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.CLIENT)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  /*Testing composeRegularCallableMethod*/
+  @Test
+  public void valid_composeRegularCallableMethod_unaryRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  ApiFuture future = echoClient.echoCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  EchoResponse response = future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeRegularCallableMethod_lroRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  Operation response = future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeRegularCallableMethod_lroRpcWithReturnVoid() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
+            "  // Do something.\n",
+            "  future.get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeRegularCallableMethod_pageRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    String results =
+        writeStatements(
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  PagedExpandRequest request =\n",
+            "      PagedExpandRequest.newBuilder()\n",
+            "          .setContent(\"content951530617\")\n",
+            "          .setPageSize(883849137)\n",
+            "          .setPageToken(\"pageToken873572522\")\n",
+            "          .build();\n",
+            "  while (true) {\n",
+            "    PagedExpandResponse response = echoClient.pagedExpandCallable().call(request);\n",
+            "    for (EchoResponse element : response.getResponsesList()) {\n",
+            "      // doThingsWith(element);\n",
+            "    }\n",
+            "    String nextPageToken = response.getNextPageToken();\n",
+            "    if (!Strings.isNullOrEmpty(nextPageToken)) {\n",
+            "      request = request.toBuilder().setPageToken(nextPageToken).build();\n",
+            "    } else {\n",
+            "      break;\n",
+            "    }\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeRegularCallableMethod_noExistMethodRequest() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composeRegularCallableMethod_noExistMethodResponsePagedRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoExistResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composeRegularCallableMethod_noRepeatedResponsePagedRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NoRepeatedResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Field responseField = Field.builder().setName("response").setType(TypeNode.STRING).build();
+    Message noRepeatedResponseMessage =
+        Message.builder()
+            .setName("NoRepeatedResponse")
+            .setFullProtoName("google.showcase.v1beta1.NoRepeatedResponse")
+            .setType(
+                TypeNode.withReference(
+                    VaporReference.builder()
+                        .setName("NoRepeatedResponse")
+                        .setPakkage(SHOWCASE_PACKAGE_NAME)
+                        .build()))
+            .setFields(Arrays.asList(responseField))
+            .build();
+    messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage);
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(
+                method, clientType, resourceNames, messageTypes));
+  }
+
+  private String writeStatements(Sample sample) {
+    return SampleCodeWriter.write(sample.body());
+  }
+}
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java
new file mode 100644
index 0000000000..32ab486356
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java
@@ -0,0 +1,813 @@
+// Copyright 2022 Google LLC
+//
+// 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.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.ConcreteReference;
+import com.google.api.generator.engine.ast.Reference;
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.model.Field;
+import com.google.api.generator.gapic.model.LongrunningOperation;
+import com.google.api.generator.gapic.model.Message;
+import com.google.api.generator.gapic.model.Method;
+import com.google.api.generator.gapic.model.MethodArgument;
+import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.model.Service;
+import com.google.api.generator.gapic.protoparser.Parser;
+import com.google.api.generator.testutils.LineFormatter;
+import com.google.protobuf.Descriptors;
+import com.google.showcase.v1beta1.EchoOuterClass;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ServiceClientHeaderSampleComposerTest {
+  private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
+  private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
+  private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
+  private static final String PAGINATED_FIELD_NAME = "page_size";
+
+  /*Testing composeClassHeaderSample*/
+  @Test
+  public void composeClassHeaderSample_unaryRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    Set outputResourceNames = new HashSet<>();
+    List services =
+        Parser.parseService(
+            echoFileDescriptor, messageTypes, resourceNames, Optional.empty(), outputResourceNames);
+    Service echoProtoService = services.get(0);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Sample sample =
+        ServiceClientHeaderSampleComposer.composeClassHeaderSample(
+            echoProtoService, clientType, resourceNames, messageTypes);
+    String results = writeStatements(sample);
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoResponse response = echoClient.echo();\n",
+            "}");
+    Assert.assertEquals(expected, results);
+  }
+
+  @Test
+  public void composeClassHeaderSample_firstMethodIsNotUnaryRpc() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    TypeNode ttlTypeNode =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
+    MethodArgument ttl =
+        MethodArgument.builder()
+            .setName("ttl")
+            .setType(ttlTypeNode)
+            .setField(
+                Field.builder()
+                    .setName("ttl")
+                    .setType(ttlTypeNode)
+                    .setIsMessage(true)
+                    .setIsContainedInOneof(true)
+                    .build())
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .setMethodSignatures(Arrays.asList(Arrays.asList(ttl)))
+            .build();
+    Service service =
+        Service.builder()
+            .setName("Echo")
+            .setDefaultHost("localhost:7469")
+            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
+            .setPakkage(SHOWCASE_PACKAGE_NAME)
+            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
+            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
+            .setOverriddenName("Echo")
+            .setMethods(Arrays.asList(method))
+            .build();
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeClassHeaderSample(
+                service, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  Duration ttl = Duration.newBuilder().build();\n",
+            "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void composeClassHeaderSample_firstMethodHasNoSignatures() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Echo")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .build();
+    Service service =
+        Service.builder()
+            .setName("Echo")
+            .setDefaultHost("localhost:7469")
+            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
+            .setPakkage(SHOWCASE_PACKAGE_NAME)
+            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
+            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
+            .setOverriddenName("Echo")
+            .setMethods(Arrays.asList(method))
+            .build();
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeClassHeaderSample(
+                service, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  EchoResponse response = echoClient.echo(request);\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void composeClassHeaderSample_firstMethodIsStream() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    Method method =
+        Method.builder()
+            .setName("Expand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setStream(Method.Stream.SERVER)
+            .build();
+    Service service =
+        Service.builder()
+            .setName("Echo")
+            .setDefaultHost("localhost:7469")
+            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
+            .setPakkage(SHOWCASE_PACKAGE_NAME)
+            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
+            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
+            .setOverriddenName("Echo")
+            .setMethods(Arrays.asList(method))
+            .build();
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeClassHeaderSample(
+                service, clientType, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  ExpandRequest request =\n",
+            "      ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n",
+            "  ServerStream stream = echoClient.expandCallable().call(request);\n",
+            "  for (EchoResponse response : stream) {\n",
+            "    // Do something when a response is received.\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  /*Testing composeSetCredentialsSample*/
+  @Test
+  public void composeSetCredentialsSample() {
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode settingsType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoSettings")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeSetCredentialsSample(
+                clientType, settingsType));
+    String expected =
+        LineFormatter.lines(
+            "EchoSettings echoSettings =\n",
+            "    EchoSettings.newBuilder()\n",
+            "        .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))\n",
+            "        .build();\n",
+            "EchoClient echoClient = EchoClient.create(echoSettings);");
+    Assert.assertEquals(expected, results);
+  }
+
+  /*Testing composeSetEndpointSample*/
+  @Test
+  public void composeSetEndpointSample() {
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode settingsType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoSettings")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeSetEndpointSample(clientType, settingsType));
+    String expected =
+        LineFormatter.lines(
+            "EchoSettings echoSettings ="
+                + " EchoSettings.newBuilder().setEndpoint(myEndpoint).build();\n",
+            "EchoClient echoClient = EchoClient.create(echoSettings);");
+    Assert.assertEquals(expected, results);
+  }
+
+  /*Testing composeShowcaseMethodSample*/
+  @Test
+  public void valid_composeShowcaseMethodSample_pagedRpcWithMultipleMethodArguments() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ListContentRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ListContentResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode resourceNameType =
+        TypeNode.withReference(
+            ConcreteReference.builder()
+                .setClazz(List.class)
+                .setGenerics(ConcreteReference.withClazz(String.class))
+                .build());
+    List arguments =
+        Arrays.asList(
+            MethodArgument.builder()
+                .setName("resourceName")
+                .setType(resourceNameType)
+                .setField(
+                    Field.builder()
+                        .setName("resourceName")
+                        .setType(resourceNameType)
+                        .setIsRepeated(true)
+                        .build())
+                .build(),
+            MethodArgument.builder()
+                .setName("filter")
+                .setType(TypeNode.STRING)
+                .setField(Field.builder().setName("filter").setType(TypeNode.STRING).build())
+                .build());
+    Method method =
+        Method.builder()
+            .setName("ListContent")
+            .setMethodSignatures(Arrays.asList(arguments))
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Reference repeatedResponseReference =
+        VaporReference.builder().setName("Content").setPakkage(SHOWCASE_PACKAGE_NAME).build();
+    Field repeatedField =
+        Field.builder()
+            .setName("responses")
+            .setType(
+                TypeNode.withReference(
+                    ConcreteReference.builder()
+                        .setClazz(List.class)
+                        .setGenerics(repeatedResponseReference)
+                        .build()))
+            .setIsMessage(true)
+            .setIsRepeated(true)
+            .build();
+    Field nextPagedTokenField =
+        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
+    Message listContentResponseMessage =
+        Message.builder()
+            .setName("ListContentResponse")
+            .setFullProtoName("google.showcase.v1beta1.ListContentResponse")
+            .setType(outputType)
+            .setFields(Arrays.asList(repeatedField, nextPagedTokenField))
+            .build();
+    messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, arguments, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  List resourceName = new ArrayList<>();\n",
+            "  String filter = \"filter-1274492040\";\n",
+            "  for (Content element : echoClient.listContent(resourceName, filter).iterateAll())"
+                + " {\n",
+            "    // doThingsWith(element);\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeShowcaseMethodSample_pagedRpcWithNoMethodArguments() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ListContentRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("ListContentResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    List arguments = Collections.emptyList();
+    Method method =
+        Method.builder()
+            .setName("ListContent")
+            .setMethodSignatures(Arrays.asList(arguments))
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Reference repeatedResponseReference =
+        VaporReference.builder().setName("Content").setPakkage(SHOWCASE_PACKAGE_NAME).build();
+    Field repeatedField =
+        Field.builder()
+            .setName("responses")
+            .setType(
+                TypeNode.withReference(
+                    ConcreteReference.builder()
+                        .setClazz(List.class)
+                        .setGenerics(repeatedResponseReference)
+                        .build()))
+            .setIsMessage(true)
+            .setIsRepeated(true)
+            .build();
+    Field nextPagedTokenField =
+        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
+    Message listContentResponseMessage =
+        Message.builder()
+            .setName("ListContentResponse")
+            .setFullProtoName("google.showcase.v1beta1.ListContentResponse")
+            .setType(outputType)
+            .setFields(Arrays.asList(repeatedField, nextPagedTokenField))
+            .build();
+    messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, arguments, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  for (Content element : echoClient.listContent().iterateAll()) {\n",
+            "    // doThingsWith(element);\n",
+            "  }\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeShowcaseMethodSample_noMatchedRepeatedResponseTypeInPagedMethod() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    List methodArguments = Collections.emptyList();
+    Method method =
+        Method.builder()
+            .setName("simplePagedMethod")
+            .setMethodSignatures(Arrays.asList(methodArguments))
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, methodArguments, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void invalid_composeShowcaseMethodSample_noRepeatedResponseTypeInPagedMethod() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    List methodArguments = Collections.emptyList();
+    Method method =
+        Method.builder()
+            .setName("simplePagedMethod")
+            .setMethodSignatures(Arrays.asList(methodArguments))
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
+    Field responseField =
+        Field.builder()
+            .setName("response")
+            .setType(
+                TypeNode.withReference(
+                    ConcreteReference.builder()
+                        .setClazz(List.class)
+                        .setGenerics(ConcreteReference.withClazz(String.class))
+                        .build()))
+            .setIsMessage(true)
+            .setIsRepeated(false)
+            .build();
+    Field nextPageToken =
+        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
+    Message noRepeatedFieldMessage =
+        Message.builder()
+            .setName("PagedResponse")
+            .setFullProtoName("google.showcase.v1beta1.PagedResponse")
+            .setType(outputType)
+            .setFields(Arrays.asList(responseField, nextPageToken))
+            .build();
+    messageTypes.put("PagedResponse", noRepeatedFieldMessage);
+    Assert.assertThrows(
+        NullPointerException.class,
+        () ->
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, methodArguments, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void valid_composeShowcaseMethodSample_lroUnaryRpcWithNoMethodArgument() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .setMethodSignatures(Collections.emptyList())
+            .build();
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, Collections.emptyList(), resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitResponse response = echoClient.waitAsync().get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeShowcaseMethodSample_lroRpcWithReturnResponseType() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    TypeNode ttlTypeNode =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
+    MethodArgument ttl =
+        MethodArgument.builder()
+            .setName("ttl")
+            .setType(ttlTypeNode)
+            .setField(
+                Field.builder()
+                    .setName("ttl")
+                    .setType(ttlTypeNode)
+                    .setIsMessage(true)
+                    .setIsContainedInOneof(true)
+                    .build())
+            .build();
+    List arguments = Arrays.asList(ttl);
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .setMethodSignatures(Arrays.asList(arguments))
+            .build();
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, arguments, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  Duration ttl = Duration.newBuilder().build();\n",
+            "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeShowcaseMethodSample_lroRpcWithReturnVoid() {
+    Descriptors.FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode inputType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    TypeNode outputType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    TypeNode metadataType =
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
+    LongrunningOperation lro =
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
+    TypeNode ttlTypeNode =
+        TypeNode.withReference(
+            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
+    MethodArgument ttl =
+        MethodArgument.builder()
+            .setName("ttl")
+            .setType(ttlTypeNode)
+            .setField(
+                Field.builder()
+                    .setName("ttl")
+                    .setType(ttlTypeNode)
+                    .setIsMessage(true)
+                    .setIsContainedInOneof(true)
+                    .build())
+            .build();
+    List arguments = Arrays.asList(ttl);
+    Method method =
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setLro(lro)
+            .setMethodSignatures(Arrays.asList(arguments))
+            .build();
+
+    String results =
+        writeStatements(
+            ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(
+                method, clientType, arguments, resourceNames, messageTypes));
+    String expected =
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  Duration ttl = Duration.newBuilder().build();\n",
+            "  echoClient.waitAsync(ttl).get();\n",
+            "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  private String writeStatements(Sample sample) {
+    return SampleCodeWriter.write(sample.body());
+  }
+}
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java
new file mode 100644
index 0000000000..dae2aac86b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java
@@ -0,0 +1,343 @@
+// Copyright 2020 Google LLC
+//
+// 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.generator.gapic.composer.samplecode;
+
+import com.google.api.generator.engine.ast.TypeNode;
+import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.model.LongrunningOperation;
+import com.google.api.generator.gapic.model.Message;
+import com.google.api.generator.gapic.model.Method;
+import com.google.api.generator.gapic.model.ResourceName;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.protoparser.Parser;
+import com.google.api.generator.testutils.LineFormatter;
+import com.google.protobuf.Descriptors.FileDescriptor;
+import com.google.showcase.v1beta1.EchoOuterClass;
+import java.util.Collections;
+import java.util.Map;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ServiceClientMethodSampleComposerTest {clear
+  private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
+  private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
+  private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
+  private static final String PAGINATED_FIELD_NAME = "page_size";
+
+  @Test
+  public void valid_composeDefaultSample_isPagedMethod() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoClient")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode inputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("PagedExpandRequest")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode outputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("PagedExpandResponse")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    Method method =
+            Method.builder()
+                    .setName("PagedExpand")
+                    .setInputType(inputType)
+                    .setOutputType(outputType)
+                    .setMethodSignatures(Collections.emptyList())
+                    .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+                    .build();
+    String results =
+            writeStatements(
+                    ServiceClientMethodSampleComposer.composeCanonicalSample(
+                            method, clientType, resourceNames, messageTypes));
+    String expected =
+            LineFormatter.lines(
+                    "try (EchoClient echoClient = EchoClient.create()) {\n",
+                    "  PagedExpandRequest request =\n",
+                    "      PagedExpandRequest.newBuilder()\n",
+                    "          .setContent(\"content951530617\")\n",
+                    "          .setPageSize(883849137)\n",
+                    "          .setPageToken(\"pageToken873572522\")\n",
+                    "          .build();\n",
+                    "  for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {\n",
+                    "    // doThingsWith(element);\n",
+                    "  }\n",
+                    "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void invalid_composeDefaultSample_isPagedMethod() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoClient")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode inputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("NotExistRequest")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode outputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("PagedExpandResponse")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    Method method =
+            Method.builder()
+                    .setName("PagedExpand")
+                    .setInputType(inputType)
+                    .setOutputType(outputType)
+                    .setMethodSignatures(Collections.emptyList())
+                    .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+                    .build();
+    Assert.assertThrows(
+            NullPointerException.class,
+            () ->
+                    ServiceClientMethodSampleComposer.composeCanonicalSample(
+                            method, clientType, resourceNames, messageTypes));
+  }
+
+  @Test
+  public void valid_composeDefaultSample_hasLroMethodWithReturnResponse() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoClient")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode inputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("WaitRequest")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode outputType =
+            TypeNode.withReference(
+                    VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+            TypeNode.withReference(
+                    VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    TypeNode metadataType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("WaitMetadata")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    LongrunningOperation lro =
+            LongrunningOperation.builder()
+                    .setResponseType(responseType)
+                    .setMetadataType(metadataType)
+                    .build();
+    Method method =
+            Method.builder()
+                    .setName("Wait")
+                    .setInputType(inputType)
+                    .setOutputType(outputType)
+                    .setMethodSignatures(Collections.emptyList())
+                    .setLro(lro)
+                    .build();
+    String results =
+            writeStatements(
+                    ServiceClientMethodSampleComposer.composeCanonicalSample(
+                            method, clientType, resourceNames, messageTypes));
+    String expected =
+            LineFormatter.lines(
+                    "try (EchoClient echoClient = EchoClient.create()) {\n",
+                    "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+                    "  echoClient.waitAsync(request).get();\n",
+                    "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeDefaultSample_hasLroMethodWithReturnVoid() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoClient")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode inputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("WaitRequest")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode outputType =
+            TypeNode.withReference(
+                    VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+    TypeNode responseType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("WaitResponse")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode metadataType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("WaitMetadata")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    LongrunningOperation lro =
+            LongrunningOperation.builder()
+                    .setResponseType(responseType)
+                    .setMetadataType(metadataType)
+                    .build();
+    Method method =
+            Method.builder()
+                    .setName("Wait")
+                    .setInputType(inputType)
+                    .setOutputType(outputType)
+                    .setMethodSignatures(Collections.emptyList())
+                    .setLro(lro)
+                    .build();
+    String results =
+            writeStatements(
+                    ServiceClientMethodSampleComposer.composeCanonicalSample(
+                            method, clientType, resourceNames, messageTypes));
+    String expected =
+            LineFormatter.lines(
+                    "try (EchoClient echoClient = EchoClient.create()) {\n",
+                    "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+                    "  WaitResponse response = echoClient.waitAsync(request).get();\n",
+                    "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeDefaultSample_pureUnaryReturnVoid() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoClient")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode inputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoRequest")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode outputType =
+            TypeNode.withReference(
+                    VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+    Method method =
+            Method.builder()
+                    .setName("Echo")
+                    .setInputType(inputType)
+                    .setOutputType(outputType)
+                    .setMethodSignatures(Collections.emptyList())
+                    .build();
+    String results =
+            writeStatements(
+                    ServiceClientMethodSampleComposer.composeCanonicalSample(
+                            method, clientType, resourceNames, messageTypes));
+    String expected =
+            LineFormatter.lines(
+                    "try (EchoClient echoClient = EchoClient.create()) {\n",
+                    "  EchoRequest request =\n",
+                    "      EchoRequest.newBuilder()\n",
+                    "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                            + " \"[FOOBAR]\").toString())\n",
+                    "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                            + " \"[FOOBAR]\").toString())\n",
+                    "          .setSeverity(Severity.forNumber(0))\n",
+                    "          .setFoobar(Foobar.newBuilder().build())\n",
+                    "          .build();\n",
+                    "  echoClient.echo(request);\n",
+                    "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  @Test
+  public void valid_composeDefaultSample_pureUnaryReturnResponse() {
+    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
+    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
+    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
+    TypeNode clientType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoClient")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode inputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoRequest")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    TypeNode outputType =
+            TypeNode.withReference(
+                    VaporReference.builder()
+                            .setName("EchoResponse")
+                            .setPakkage(SHOWCASE_PACKAGE_NAME)
+                            .build());
+    Method method =
+            Method.builder()
+                    .setName("Echo")
+                    .setInputType(inputType)
+                    .setOutputType(outputType)
+                    .setMethodSignatures(Collections.emptyList())
+                    .build();
+    String results =
+            writeStatements(
+                    ServiceClientMethodSampleComposer.composeCanonicalSample(
+                            method, clientType, resourceNames, messageTypes));
+    String expected =
+            LineFormatter.lines(
+                    "try (EchoClient echoClient = EchoClient.create()) {\n",
+                    "  EchoRequest request =\n",
+                    "      EchoRequest.newBuilder()\n",
+                    "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                            + " \"[FOOBAR]\").toString())\n",
+                    "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                            + " \"[FOOBAR]\").toString())\n",
+                    "          .setSeverity(Severity.forNumber(0))\n",
+                    "          .setFoobar(Foobar.newBuilder().build())\n",
+                    "          .build();\n",
+                    "  EchoResponse response = echoClient.echo(request);\n",
+                    "}");
+    Assert.assertEquals(results, expected);
+  }
+
+  private String writeStatements(Sample sample) {
+    return SampleCodeWriter.write(sample.body());
+  }
+}
\ No newline at end of file
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java
deleted file mode 100644
index 397e0ec2c2..0000000000
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientSampleCodeComposerTest.java
+++ /dev/null
@@ -1,2640 +0,0 @@
-// Copyright 2020 Google LLC
-//
-// 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.generator.gapic.composer.samplecode;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThrows;
-
-import com.google.api.generator.engine.ast.ConcreteReference;
-import com.google.api.generator.engine.ast.Reference;
-import com.google.api.generator.engine.ast.TypeNode;
-import com.google.api.generator.engine.ast.VaporReference;
-import com.google.api.generator.gapic.model.Field;
-import com.google.api.generator.gapic.model.LongrunningOperation;
-import com.google.api.generator.gapic.model.Message;
-import com.google.api.generator.gapic.model.Method;
-import com.google.api.generator.gapic.model.Method.Stream;
-import com.google.api.generator.gapic.model.MethodArgument;
-import com.google.api.generator.gapic.model.ResourceName;
-import com.google.api.generator.gapic.model.Service;
-import com.google.api.generator.gapic.protoparser.Parser;
-import com.google.api.generator.testutils.LineFormatter;
-import com.google.protobuf.Descriptors.FileDescriptor;
-import com.google.showcase.v1beta1.EchoOuterClass;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import org.junit.Test;
-
-public class ServiceClientSampleCodeComposerTest {
-  private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
-  private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
-  private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
-  private static final String PAGINATED_FIELD_NAME = "page_size";
-
-  // =============================== Class Header Sample Code ===============================//
-  @Test
-  public void composeClassHeaderMethodSampleCode_unaryRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    Set outputResourceNames = new HashSet<>();
-    List services =
-        Parser.parseService(
-            echoFileDescriptor, messageTypes, resourceNames, Optional.empty(), outputResourceNames);
-    Service echoProtoService = services.get(0);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-            echoProtoService, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoResponse response = echoClient.echo();\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void composeClassHeaderMethodSampleCode_firstMethodIsNotUnaryRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    TypeNode ttlTypeNode =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
-    MethodArgument ttl =
-        MethodArgument.builder()
-            .setName("ttl")
-            .setType(ttlTypeNode)
-            .setField(
-                Field.builder()
-                    .setName("ttl")
-                    .setType(ttlTypeNode)
-                    .setIsMessage(true)
-                    .setIsContainedInOneof(true)
-                    .build())
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .setMethodSignatures(Arrays.asList(Arrays.asList(ttl)))
-            .build();
-    Service service =
-        Service.builder()
-            .setName("Echo")
-            .setDefaultHost("localhost:7469")
-            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
-            .setPakkage(SHOWCASE_PACKAGE_NAME)
-            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
-            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
-            .setOverriddenName("Echo")
-            .setMethods(Arrays.asList(method))
-            .build();
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-            service, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  Duration ttl = Duration.newBuilder().build();\n",
-            "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void composeClassHeaderMethodSampleCode_firstMethodHasNoSignatures() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Echo")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .build();
-    Service service =
-        Service.builder()
-            .setName("Echo")
-            .setDefaultHost("localhost:7469")
-            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
-            .setPakkage(SHOWCASE_PACKAGE_NAME)
-            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
-            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
-            .setOverriddenName("Echo")
-            .setMethods(Arrays.asList(method))
-            .build();
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-            service, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  EchoResponse response = echoClient.echo(request);\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void composeClassHeaderMethodSampleCode_firstMethodIsStream() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Expand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.SERVER)
-            .build();
-    Service service =
-        Service.builder()
-            .setName("Echo")
-            .setDefaultHost("localhost:7469")
-            .setOauthScopes(Arrays.asList("https://www.googleapis.com/auth/cloud-platform"))
-            .setPakkage(SHOWCASE_PACKAGE_NAME)
-            .setProtoPakkage(SHOWCASE_PACKAGE_NAME)
-            .setOriginalJavaPackage(SHOWCASE_PACKAGE_NAME)
-            .setOverriddenName("Echo")
-            .setMethods(Arrays.asList(method))
-            .build();
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderMethodSampleCode(
-            service, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  ExpandRequest request =\n",
-            "     "
-                + " ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n",
-            "  ServerStream stream = echoClient.expandCallable().call(request);\n",
-            "  for (EchoResponse response : stream) {\n",
-            "    // Do something when a response is received.\n",
-            "  }\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void composeClassHeaderCredentialsSampleCode() {
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode settingsType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoSettings")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderCredentialsSampleCode(
-            clientType, settingsType);
-    String expected =
-        LineFormatter.lines(
-            "EchoSettings echoSettings =\n",
-            "    EchoSettings.newBuilder()\n",
-            "        .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))\n",
-            "        .build();\n",
-            "EchoClient echoClient = EchoClient.create(echoSettings);");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void composeClassHeaderEndpointSampleCode() {
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode settingsType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoSettings")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    String results =
-        ServiceClientSampleCodeComposer.composeClassHeaderEndpointSampleCode(
-            clientType, settingsType);
-    String expected =
-        LineFormatter.lines(
-            "EchoSettings echoSettings ="
-                + " EchoSettings.newBuilder().setEndpoint(myEndpoint).build();\n",
-            "EchoClient echoClient = EchoClient.create(echoSettings);");
-    assertEquals(expected, results);
-  }
-
-  // =======================================Unary RPC Method Sample Code=======================//
-  /*
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List methodArguments = Collections.emptyList();
-    Method method =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(Arrays.asList(methodArguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, methodArguments, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoResponse response = echoClient.echo();\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithResourceNameMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode resourceNameType =
-        TypeNode.withReference(
-            ConcreteReference.withClazz(com.google.api.resourcenames.ResourceName.class));
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("parent")
-            .setType(resourceNameType)
-            .setField(
-                Field.builder()
-                    .setName("parent")
-                    .setType(TypeNode.STRING)
-                    .setResourceReference(
-                        ResourceReference.withType("showcase.googleapis.com/AnythingGoes"))
-                    .build())
-            .setIsResourceNameHelper(true)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method method =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  ResourceName parent = FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\");\n",
-            "  EchoResponse response = echoClient.echo(parent);\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithSuperReferenceIsResourceNameMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode methodArgType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("FoobarName")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .setSupertypeReference(
-                    ConcreteReference.withClazz(com.google.api.resourcenames.ResourceName.class))
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("name")
-            .setType(TypeNode.STRING)
-            .setResourceReference(ResourceReference.withType("showcase.googleapis.com/Foobar"))
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("name")
-            .setType(methodArgType)
-            .setField(methodArgField)
-            .setIsResourceNameHelper(true)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  FoobarName name = FoobarName.ofProjectFoobarName(\"[PROJECT]\", \"[FOOBAR]\");\n",
-            "  EchoResponse response = echoClient.echo(name);\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringWithResourceReferenceMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("name")
-            .setType(TypeNode.STRING)
-            .setResourceReference(ResourceReference.withType("showcase.googleapis.com/Foobar"))
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("name")
-            .setType(TypeNode.STRING)
-            .setField(methodArgField)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String name = FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString();\n",
-            "  EchoResponse response = echoClient.echo(name);\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringWithParentResourceReferenceMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("parent")
-            .setType(TypeNode.STRING)
-            .setResourceReference(
-                ResourceReference.withChildType("showcase.googleapis.com/AnythingGoes"))
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("parent")
-            .setType(TypeNode.STRING)
-            .setField(methodArgField)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String parent = FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString();\n",
-            "  EchoResponse response = echoClient.echo(parent);\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithIsMessageMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode methodArgType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Status").setPakkage("com.google.rpc").build());
-    Field methodArgField =
-        Field.builder()
-            .setName("error")
-            .setType(methodArgType)
-            .setIsMessage(true)
-            .setIsContainedInOneof(true)
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("error")
-            .setType(methodArgType)
-            .setField(methodArgField)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  Status error = Status.newBuilder().build();\n",
-            "  EchoResponse response = echoClient.echo(error);\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleWordNameMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("display_name")
-            .setType(TypeNode.STRING)
-            .setResourceReference(
-                ResourceReference.withChildType("showcase.googleapis.com/AnythingGoes"))
-            .build();
-    Reference userRef =
-        VaporReference.builder().setName("User").setPakkage(SHOWCASE_PACKAGE_NAME).build();
-    Field nestFiled =
-        Field.builder()
-            .setName("user")
-            .setType(TypeNode.withReference(userRef))
-            .setIsMessage(true)
-            .build();
-    MethodArgument argDisplayName =
-        MethodArgument.builder()
-            .setName("display_name")
-            .setType(TypeNode.STRING)
-            .setField(methodArgField)
-            .setNestedFields(Arrays.asList(nestFiled))
-            .build();
-    MethodArgument argOtherName =
-        MethodArgument.builder()
-            .setName("other_name")
-            .setType(TypeNode.STRING)
-            .setField(Field.builder().setName("other_name").setType(TypeNode.STRING).build())
-            .setNestedFields(Arrays.asList(nestFiled))
-            .build();
-    List> signatures =
-        Arrays.asList(Arrays.asList(argDisplayName, argOtherName));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String displayName = FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString();\n",
-            "  String otherName = \"otherName-1946065477\";\n",
-            "  EchoResponse response = echoClient.echo(displayName, otherName);\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void
-      validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithStringIsContainedInOneOfMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Field methodArgField =
-        Field.builder()
-            .setName("content")
-            .setType(TypeNode.STRING)
-            .setIsContainedInOneof(true)
-            .build();
-    MethodArgument arg =
-        MethodArgument.builder()
-            .setName("content")
-            .setType(TypeNode.STRING)
-            .setField(methodArgField)
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String content = \"content951530617\";\n",
-            "  EchoResponse response = echoClient.echo(content);\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMultipleMethodArguments() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    MethodArgument arg1 =
-        MethodArgument.builder()
-            .setName("content")
-            .setType(TypeNode.STRING)
-            .setField(Field.builder().setName("content").setType(TypeNode.STRING).build())
-            .build();
-    TypeNode severityType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Severity").setPakkage(SHOWCASE_PACKAGE_NAME).build());
-    MethodArgument arg2 =
-        MethodArgument.builder()
-            .setName("severity")
-            .setType(severityType)
-            .setField(
-                Field.builder().setName("severity").setType(severityType).setIsEnum(true).build())
-            .build();
-    List> signatures = Arrays.asList(Arrays.asList(arg1, arg2));
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String content = \"content951530617\";\n",
-            "  Severity severity = Severity.forNumber(0);\n",
-            "  EchoResponse response = echoClient.echo(content, severity);\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithNoMethodArguments() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List> signatures = Arrays.asList(Collections.emptyList());
-    Method unaryMethod =
-        Method.builder()
-            .setName("echo")
-            .setMethodSignatures(signatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, signatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoResponse response = echoClient.echo();\n",
-            "}");
-    assertEquals(expected, results);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pureUnaryRpcWithMethodReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("DeleteUserRequest")
-                .setPakkage("com.google.showcase.v1beta1")
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    List> methodSignatures =
-        Arrays.asList(
-            Arrays.asList(
-                MethodArgument.builder()
-                    .setName("name")
-                    .setType(TypeNode.STRING)
-                    .setField(Field.builder().setName("name").setType(TypeNode.STRING).build())
-                    .build()));
-    Method unaryMethod =
-        Method.builder()
-            .setName("delete")
-            .setMethodSignatures(methodSignatures)
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            unaryMethod, clientType, methodSignatures.get(0), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  String name = \"name3373707\";\n",
-            "  echoClient.delete(name);\n",
-            "}");
-    assertEquals(results, expected);
-  }
-  */
-
-  // ===================================Unary Paged RPC Method Sample Code ======================//
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithMultipleMethodArguments() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ListContentRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ListContentResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode resourceNameType =
-        TypeNode.withReference(
-            ConcreteReference.builder()
-                .setClazz(List.class)
-                .setGenerics(ConcreteReference.withClazz(String.class))
-                .build());
-    List arguments =
-        Arrays.asList(
-            MethodArgument.builder()
-                .setName("resourceName")
-                .setType(resourceNameType)
-                .setField(
-                    Field.builder()
-                        .setName("resourceName")
-                        .setType(resourceNameType)
-                        .setIsRepeated(true)
-                        .build())
-                .build(),
-            MethodArgument.builder()
-                .setName("filter")
-                .setType(TypeNode.STRING)
-                .setField(Field.builder().setName("filter").setType(TypeNode.STRING).build())
-                .build());
-    Method method =
-        Method.builder()
-            .setName("ListContent")
-            .setMethodSignatures(Arrays.asList(arguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Reference repeatedResponseReference =
-        VaporReference.builder().setName("Content").setPakkage(SHOWCASE_PACKAGE_NAME).build();
-    Field repeatedField =
-        Field.builder()
-            .setName("responses")
-            .setType(
-                TypeNode.withReference(
-                    ConcreteReference.builder()
-                        .setClazz(List.class)
-                        .setGenerics(repeatedResponseReference)
-                        .build()))
-            .setIsMessage(true)
-            .setIsRepeated(true)
-            .build();
-    Field nextPagedTokenField =
-        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
-    Message listContentResponseMessage =
-        Message.builder()
-            .setName("ListContentResponse")
-            .setFullProtoName("google.showcase.v1beta1.ListContentResponse")
-            .setType(outputType)
-            .setFields(Arrays.asList(repeatedField, nextPagedTokenField))
-            .build();
-    messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
-
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, arguments, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  List resourceName = new ArrayList<>();\n",
-            "  String filter = \"filter-1274492040\";\n",
-            "  for (Content element : echoClient.listContent(resourceName, filter).iterateAll())"
-                + " {\n",
-            "    // doThingsWith(element);\n",
-            "  }\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_pagedRpcWithNoMethodArguments() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ListContentRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ListContentResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List arguments = Collections.emptyList();
-    Method method =
-        Method.builder()
-            .setName("ListContent")
-            .setMethodSignatures(Arrays.asList(arguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Reference repeatedResponseReference =
-        VaporReference.builder().setName("Content").setPakkage(SHOWCASE_PACKAGE_NAME).build();
-    Field repeatedField =
-        Field.builder()
-            .setName("responses")
-            .setType(
-                TypeNode.withReference(
-                    ConcreteReference.builder()
-                        .setClazz(List.class)
-                        .setGenerics(repeatedResponseReference)
-                        .build()))
-            .setIsMessage(true)
-            .setIsRepeated(true)
-            .build();
-    Field nextPagedTokenField =
-        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
-    Message listContentResponseMessage =
-        Message.builder()
-            .setName("ListContentResponse")
-            .setFullProtoName("google.showcase.v1beta1.ListContentResponse")
-            .setType(outputType)
-            .setFields(Arrays.asList(repeatedField, nextPagedTokenField))
-            .build();
-    messageTypes.put("com.google.showcase.v1beta1.ListContentResponse", listContentResponseMessage);
-
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, arguments, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  for (Content element : echoClient.listContent().iterateAll()) {\n",
-            "    // doThingsWith(element);\n",
-            "  }\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeRpcMethodHeaderSampleCode_noMatchedRepeatedResponseTypeInPagedMethod() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List methodArguments = Collections.emptyList();
-    Method method =
-        Method.builder()
-            .setName("simplePagedMethod")
-            .setMethodSignatures(Arrays.asList(methodArguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, methodArguments, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposeRpcMethodHeaderSampleCode_noRepeatedResponseTypeInPagedMethod() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    List methodArguments = Collections.emptyList();
-    Method method =
-        Method.builder()
-            .setName("simplePagedMethod")
-            .setMethodSignatures(Arrays.asList(methodArguments))
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Field responseField =
-        Field.builder()
-            .setName("response")
-            .setType(
-                TypeNode.withReference(
-                    ConcreteReference.builder()
-                        .setClazz(List.class)
-                        .setGenerics(ConcreteReference.withClazz(String.class))
-                        .build()))
-            .setIsMessage(true)
-            .setIsRepeated(false)
-            .build();
-    Field nextPageToken =
-        Field.builder().setName("next_page_token").setType(TypeNode.STRING).build();
-    Message noRepeatedFieldMessage =
-        Message.builder()
-            .setName("PagedResponse")
-            .setFullProtoName("google.showcase.v1beta1.PagedResponse")
-            .setType(outputType)
-            .setFields(Arrays.asList(responseField, nextPageToken))
-            .build();
-    messageTypes.put("PagedResponse", noRepeatedFieldMessage);
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-                method, clientType, methodArguments, resourceNames, messageTypes));
-  }
-
-  // ===================================Unary LRO RPC Method Sample Code ======================//
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_lroUnaryRpcWithNoMethodArgument() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .setMethodSignatures(Collections.emptyList())
-            .build();
-
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, Collections.emptyList(), resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitResponse response = echoClient.waitAsync().get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_lroRpcWithReturnResponseType() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    TypeNode ttlTypeNode =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
-    MethodArgument ttl =
-        MethodArgument.builder()
-            .setName("ttl")
-            .setType(ttlTypeNode)
-            .setField(
-                Field.builder()
-                    .setName("ttl")
-                    .setType(ttlTypeNode)
-                    .setIsMessage(true)
-                    .setIsContainedInOneof(true)
-                    .build())
-            .build();
-    List arguments = Arrays.asList(ttl);
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .setMethodSignatures(Arrays.asList(arguments))
-            .build();
-
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, arguments, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  Duration ttl = Duration.newBuilder().build();\n",
-            "  WaitResponse response = echoClient.waitAsync(ttl).get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcMethodHeaderSampleCode_lroRpcWithReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    TypeNode ttlTypeNode =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Duration").setPakkage(PROTO_PACKAGE_NAME).build());
-    MethodArgument ttl =
-        MethodArgument.builder()
-            .setName("ttl")
-            .setType(ttlTypeNode)
-            .setField(
-                Field.builder()
-                    .setName("ttl")
-                    .setType(ttlTypeNode)
-                    .setIsMessage(true)
-                    .setIsContainedInOneof(true)
-                    .build())
-            .build();
-    List arguments = Arrays.asList(ttl);
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .setMethodSignatures(Arrays.asList(arguments))
-            .build();
-
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcMethodHeaderSampleCode(
-            method, clientType, arguments, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  Duration ttl = Duration.newBuilder().build();\n",
-            "  echoClient.waitAsync(ttl).get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  // ================================Unary RPC Default Method Sample Code ====================//
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_isPagedMethod() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  PagedExpandRequest request =\n",
-            "      PagedExpandRequest.newBuilder()\n",
-            "          .setContent(\"content951530617\")\n",
-            "          .setPageSize(883849137)\n",
-            "          .setPageToken(\"pageToken873572522\")\n",
-            "          .build();\n",
-            "  for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {\n",
-            "    // doThingsWith(element);\n",
-            "  }\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeRpcDefaultMethodHeaderSampleCode_isPagedMethod() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_hasLroMethodWithReturnResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setLro(lro)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  echoClient.waitAsync(request).get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_hasLroMethodWithReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setLro(lro)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  WaitResponse response = echoClient.waitAsync(request).get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    Method method =
-        Method.builder()
-            .setName("Echo")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  echoClient.echo(request);\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRpcDefaultMethodHeaderSampleCode_pureUnaryReturnResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Echo")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRpcDefaultMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  EchoResponse response = echoClient.echo(request);\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  // ================================LRO Callable Method Sample Code ====================//
-  @Test
-  public void validComposeLroCallableMethodHeaderSampleCode_withReturnResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  OperationFuture future =\n",
-            "      echoClient.waitOperationCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  WaitResponse response = future.get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeLroCallableMethodHeaderSampleCode_withReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeLroCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  OperationFuture future =\n",
-            "      echoClient.waitOperationCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  future.get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  // ================================Paged Callable Method Sample Code ====================//
-  @Test
-  public void validComposePagedCallableMethodHeaderSampleCode() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  PagedExpandRequest request =\n",
-            "      PagedExpandRequest.newBuilder()\n",
-            "          .setContent(\"content951530617\")\n",
-            "          .setPageSize(883849137)\n",
-            "          .setPageToken(\"pageToken873572522\")\n",
-            "          .build();\n",
-            "  ApiFuture future ="
-                + " echoClient.pagedExpandPagedCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  for (EchoResponse element : future.get().iterateAll()) {\n",
-            "    // doThingsWith(element);\n",
-            "  }\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposePagedCallableMethodHeaderSampleCode_inputTypeNotExistInMessage() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposePagedCallableMethodHeaderSampleCode_noExistMethodResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoExistResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposePagedCallableMethodHeaderSampleCode_noRepeatedResponse() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoRepeatedResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Field responseField = Field.builder().setName("response").setType(TypeNode.STRING).build();
-    Message noRepeatedResponseMessage =
-        Message.builder()
-            .setName("NoRepeatedResponse")
-            .setFullProtoName("google.showcase.v1beta1.NoRepeatedResponse")
-            .setType(
-                TypeNode.withReference(
-                    VaporReference.builder()
-                        .setName("NoRepeatedResponse")
-                        .setPakkage(SHOWCASE_PACKAGE_NAME)
-                        .build()))
-            .setFields(Arrays.asList(responseField))
-            .build();
-    messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage);
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composePagedCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  // ==============================Stream Callable Method Sample Code ====================//
-  @Test
-  public void validComposeStreamCallableMethodHeaderSampleCode_serverStream() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("ExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Expand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.SERVER)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  ExpandRequest request =\n",
-            "     "
-                + " ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n",
-            "  ServerStream stream = echoClient.expandCallable().call(request);\n",
-            "  for (EchoResponse response : stream) {\n",
-            "    // Do something when a response is received.\n",
-            "  }\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeStreamCallableMethodHeaderSampleCode_serverStreamNotExistRequest() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Expand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.SERVER)
-            .build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void validComposeStreamCallableMethodHeaderSampleCode_bidiStream() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("chat")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.BIDI)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  BidiStream bidiStream ="
-                + " echoClient.chatCallable().call();\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  bidiStream.send(request);\n",
-            "  for (EchoResponse response : bidiStream) {\n",
-            "    // Do something when a response is received.\n",
-            "  }\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeStreamCallableMethodHeaderSampleCode_bidiStreamNotExistRequest() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("chat")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.BIDI)
-            .build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void validComposeStreamCallableMethodHeaderSampleCode_clientStream() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Collect")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.CLIENT)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  ApiStreamObserver responseObserver =\n",
-            "      new ApiStreamObserver() {\n",
-            "        {@literal @}Override\n",
-            "        public void onNext(EchoResponse response) {\n",
-            "          // Do something when a response is received.\n",
-            "        }\n",
-            "\n",
-            "        {@literal @}Override\n",
-            "        public void onError(Throwable t) {\n",
-            "          // Add error-handling\n",
-            "        }\n",
-            "\n",
-            "        {@literal @}Override\n",
-            "        public void onCompleted() {\n",
-            "          // Do something when complete.\n",
-            "        }\n",
-            "      };\n",
-            "  ApiStreamObserver requestObserver =\n",
-            "      echoClient.collect().clientStreamingCall(responseObserver);\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  requestObserver.onNext(request);\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeStreamCallableMethodHeaderSampleCode_clientStreamNotExistRequest() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NotExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("Collect")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setStream(Stream.CLIENT)
-            .build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeStreamCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  // ================================Regular Callable Method Sample Code ====================//
-  @Test
-  public void validComposeRegularCallableMethodHeaderSampleCode_unaryRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  EchoRequest request =\n",
-            "      EchoRequest.newBuilder()\n",
-            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                + " \"[FOOBAR]\").toString())\n",
-            "          .setSeverity(Severity.forNumber(0))\n",
-            "          .setFoobar(Foobar.newBuilder().build())\n",
-            "          .build();\n",
-            "  ApiFuture future = echoClient.echoCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  EchoResponse response = future.get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRegularCallableMethodHeaderSampleCode_lroRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  Operation response = future.get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRegularCallableMethodHeaderSampleCode_lroRpcWithReturnVoid() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
-    TypeNode responseType =
-        TypeNode.withReference(
-            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
-    TypeNode metadataType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("WaitMetadata")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    LongrunningOperation lro =
-        LongrunningOperation.builder()
-            .setResponseType(responseType)
-            .setMetadataType(metadataType)
-            .build();
-    Method method =
-        Method.builder()
-            .setName("Wait")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setLro(lro)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-            "  ApiFuture future = echoClient.waitCallable().futureCall(request);\n",
-            "  // Do something.\n",
-            "  future.get();\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void validComposeRegularCallableMethodHeaderSampleCode_pageRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("PagedExpandResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setMethodSignatures(Collections.emptyList())
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    String results =
-        ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-            method, clientType, resourceNames, messageTypes);
-    String expected =
-        LineFormatter.lines(
-            "try (EchoClient echoClient = EchoClient.create()) {\n",
-            "  PagedExpandRequest request =\n",
-            "      PagedExpandRequest.newBuilder()\n",
-            "          .setContent(\"content951530617\")\n",
-            "          .setPageSize(883849137)\n",
-            "          .setPageToken(\"pageToken873572522\")\n",
-            "          .build();\n",
-            "  while (true) {\n",
-            "    PagedExpandResponse response = echoClient.pagedExpandCallable().call(request);\n",
-            "    for (EchoResponse element : response.getResponsesList()) {\n",
-            "      // doThingsWith(element);\n",
-            "    }\n",
-            "    String nextPageToken = response.getNextPageToken();\n",
-            "    if (!Strings.isNullOrEmpty(nextPageToken)) {\n",
-            "      request = request.toBuilder().setPageToken(nextPageToken).build();\n",
-            "    } else {\n",
-            "      break;\n",
-            "    }\n",
-            "  }\n",
-            "}");
-    assertEquals(results, expected);
-  }
-
-  @Test
-  public void invalidComposeRegularCallableMethodHeaderSampleCode_noExistMethodRequest() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoExistRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder().setName("Echo").setInputType(inputType).setOutputType(outputType).build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposeRegularCallableMethodHeaderSampleCode_noExistMethodResponsePagedRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoExistResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-
-  @Test
-  public void invalidComposeRegularCallableMethodHeaderSampleCode_noRepeatedResponsePagedRpc() {
-    FileDescriptor echoFileDescriptor = EchoOuterClass.getDescriptor();
-    Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
-    Map messageTypes = Parser.parseMessages(echoFileDescriptor);
-    TypeNode clientType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoClient")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode inputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("EchoRequest")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    TypeNode outputType =
-        TypeNode.withReference(
-            VaporReference.builder()
-                .setName("NoRepeatedResponse")
-                .setPakkage(SHOWCASE_PACKAGE_NAME)
-                .build());
-    Method method =
-        Method.builder()
-            .setName("PagedExpand")
-            .setInputType(inputType)
-            .setOutputType(outputType)
-            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-            .build();
-    Field responseField = Field.builder().setName("response").setType(TypeNode.STRING).build();
-    Message noRepeatedResponseMessage =
-        Message.builder()
-            .setName("NoRepeatedResponse")
-            .setFullProtoName("google.showcase.v1beta1.NoRepeatedResponse")
-            .setType(
-                TypeNode.withReference(
-                    VaporReference.builder()
-                        .setName("NoRepeatedResponse")
-                        .setPakkage(SHOWCASE_PACKAGE_NAME)
-                        .build()))
-            .setFields(Arrays.asList(responseField))
-            .build();
-    messageTypes.put("NoRepeatedResponse", noRepeatedResponseMessage);
-    assertThrows(
-        NullPointerException.class,
-        () ->
-            ServiceClientSampleCodeComposer.composeRegularCallableMethodHeaderSampleCode(
-                method, clientType, resourceNames, messageTypes));
-  }
-}
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
similarity index 77%
rename from src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java
rename to src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
index a62d57275c..33e428efeb 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleCodeComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SettingsSampleComposerTest.java
@@ -18,13 +18,14 @@
 
 import com.google.api.generator.engine.ast.TypeNode;
 import com.google.api.generator.engine.ast.VaporReference;
+import com.google.api.generator.gapic.model.Sample;
 import com.google.api.generator.testutils.LineFormatter;
 import java.util.Optional;
 import org.junit.Test;
 
-public class SettingsSampleCodeComposerTest {
+public class SettingsSampleComposerTest {
   @Test
-  public void composeSettingsSampleCode_noMethods() {
+  public void composeSettingsSample_noMethods() {
     TypeNode classType =
         TypeNode.withReference(
             VaporReference.builder()
@@ -32,12 +33,14 @@ public void composeSettingsSampleCode_noMethods() {
                 .setPakkage("com.google.showcase.v1beta1")
                 .build());
     Optional results =
-        SettingsSampleCodeComposer.composeSampleCode(Optional.empty(), "EchoSettings", classType);
+        writeSample(
+            SettingsSampleComposer.composeSettingsSample(
+                Optional.empty(), "EchoSettings", classType));
     assertEquals(results, Optional.empty());
   }
 
   @Test
-  public void composeSettingsSampleCode_serviceSettingsClass() {
+  public void composeSettingsSample_serviceSettingsClass() {
     TypeNode classType =
         TypeNode.withReference(
             VaporReference.builder()
@@ -45,8 +48,9 @@ public void composeSettingsSampleCode_serviceSettingsClass() {
                 .setPakkage("com.google.showcase.v1beta1")
                 .build());
     Optional results =
-        SettingsSampleCodeComposer.composeSampleCode(
-            Optional.of("Echo"), "EchoSettings", classType);
+        writeSample(
+            SettingsSampleComposer.composeSettingsSample(
+                Optional.of("Echo"), "EchoSettings", classType));
     String expected =
         LineFormatter.lines(
             "EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();\n",
@@ -64,7 +68,7 @@ public void composeSettingsSampleCode_serviceSettingsClass() {
   }
 
   @Test
-  public void composeSettingsSampleCode_serviceStubClass() {
+  public void composeSettingsSample_serviceStubClass() {
     TypeNode classType =
         TypeNode.withReference(
             VaporReference.builder()
@@ -72,8 +76,9 @@ public void composeSettingsSampleCode_serviceStubClass() {
                 .setPakkage("com.google.showcase.v1beta1")
                 .build());
     Optional results =
-        SettingsSampleCodeComposer.composeSampleCode(
-            Optional.of("Echo"), "EchoSettings", classType);
+        writeSample(
+            SettingsSampleComposer.composeSettingsSample(
+                Optional.of("Echo"), "EchoSettings", classType));
     String expected =
         LineFormatter.lines(
             "EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();\n",
@@ -89,4 +94,11 @@ public void composeSettingsSampleCode_serviceStubClass() {
             "EchoStubSettings echoSettings = echoSettingsBuilder.build();");
     assertEquals(results.get(), expected);
   }
+
+  private Optional writeSample(Optional sample) {
+    if (sample.isPresent()) {
+      return Optional.of(SampleCodeWriter.write(sample.get().body()));
+    }
+    return Optional.empty();
+  }
 }
diff --git a/src/test/java/com/google/api/generator/test/framework/Assert.java b/src/test/java/com/google/api/generator/test/framework/Assert.java
index 4ed6a932fd..99a0adf1f6 100644
--- a/src/test/java/com/google/api/generator/test/framework/Assert.java
+++ b/src/test/java/com/google/api/generator/test/framework/Assert.java
@@ -14,8 +14,17 @@
 
 package com.google.api.generator.test.framework;
 
+import com.google.api.generator.engine.writer.JavaWriterVisitor;
+import com.google.api.generator.gapic.composer.comment.CommentComposer;
+import com.google.api.generator.gapic.composer.samplecode.SampleCodeWriter;
+import com.google.api.generator.gapic.model.GapicClass;
+import com.google.api.generator.gapic.model.Sample;
+import com.google.api.generator.gapic.utils.JavaStyle;
 import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.Arrays;
 import java.util.List;
+import java.util.stream.Collectors;
 import junit.framework.AssertionFailedError;
 
 public class Assert {
@@ -41,4 +50,38 @@ public static void assertCodeEquals(String expected, String codegen) {
       throw new AssertionFailedError("Differences found: \n" + String.join("\n", diffList));
     }
   }
+
+  public static void assertEmptySamples(List samples) {
+    if (!samples.isEmpty()) {
+      List diffList = samples.stream().map(Sample::name).collect(Collectors.toList());
+      throw new AssertionFailedError("Differences found: \n" + String.join("\n", diffList));
+    }
+  }
+
+  public static void assertGoldenClass(Class clazz, GapicClass gapicClass, String fileName) {
+    JavaWriterVisitor visitor = new JavaWriterVisitor();
+    gapicClass.classDefinition().accept(visitor);
+    Utils.saveCodegenToFile(clazz, fileName, visitor.write());
+    Path goldenFilePath = Paths.get(Utils.getGoldenDir(clazz), fileName);
+    Assert.assertCodeEquals(goldenFilePath, visitor.write());
+  }
+
+  public static void assertGoldenSamples(
+      Class clazz, String sampleDirName, String packkage, List samples) {
+    for (Sample sample : samples) {
+      String fileName = JavaStyle.toUpperCamelCase(sample.name()).concat(".golden");
+      String goldenSampleDir =
+          Utils.getGoldenDir(clazz) + "/samples/" + sampleDirName.toLowerCase() + "/";
+      Path goldenFilePath = Paths.get(goldenSampleDir, fileName);
+      sample =
+          sample
+              .withHeader(Arrays.asList(CommentComposer.APACHE_LICENSE_COMMENT))
+              .withRegionTag(sample.regionTag().withApiShortName("goldenSample"));
+
+      String sampleString = SampleCodeWriter.writeExecutableSample(sample, packkage + ".samples");
+
+      Utils.saveSampleCodegenToFile(clazz, sampleDirName, fileName, sampleString);
+      assertCodeEquals(goldenFilePath, sampleString);
+    }
+  }
 }
diff --git a/src/test/java/com/google/api/generator/test/framework/Differ.java b/src/test/java/com/google/api/generator/test/framework/Differ.java
index 74e5d76135..eea5c7b937 100644
--- a/src/test/java/com/google/api/generator/test/framework/Differ.java
+++ b/src/test/java/com/google/api/generator/test/framework/Differ.java
@@ -44,7 +44,7 @@ public static List diff(String expectedStr, String actualStr) {
     return diffTwoStringLists(original, revised);
   }
 
-  private static List diffTwoStringLists(List original, List revised) {
+  static List diffTwoStringLists(List original, List revised) {
     Patch diff = null;
     try {
       diff = DiffUtils.diff(original, revised);
diff --git a/src/test/java/com/google/api/generator/test/framework/Utils.java b/src/test/java/com/google/api/generator/test/framework/Utils.java
index 3d5a4359ab..cb423046fb 100644
--- a/src/test/java/com/google/api/generator/test/framework/Utils.java
+++ b/src/test/java/com/google/api/generator/test/framework/Utils.java
@@ -34,6 +34,16 @@ public class Utils {
    */
   public static void saveCodegenToFile(Class clazz, String fileName, String codegen) {
     String relativeGoldenDir = getTestoutGoldenDir(clazz);
+    saveCodeToFile(relativeGoldenDir, fileName, codegen);
+  }
+
+  public static void saveSampleCodegenToFile(
+      Class clazz, String sampleDir, String fileName, String codegen) {
+    String relativeGoldenDir = getTestoutGoldenDir(clazz) + "/samples/" + sampleDir;
+    saveCodeToFile(relativeGoldenDir, fileName, codegen);
+  }
+
+  private static void saveCodeToFile(String relativeGoldenDir, String fileName, String codegen) {
     Path testOutputDir = Paths.get("src", "test", "java", relativeGoldenDir);
 
     // Auto-detect project workspace when running `bazel run //:update_TargetTest`.

From ac0c79a226679595ca75ca254c5a590be4d5b2af Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Tue, 15 Mar 2022 14:32:49 -0700
Subject: [PATCH 29/29] test: update goldens - include inline comment

---
 .../grpc/goldens/BookshopClient.golden        |  14 +
 .../goldens/DeprecatedServiceClient.golden    |  14 +
 .../goldens/DeprecatedServiceSettings.golden  |   2 +
 .../DeprecatedServiceStubSettings.golden      |   2 +
 .../composer/grpc/goldens/EchoClient.golden   |  66 +++
 .../composer/grpc/goldens/EchoSettings.golden |   2 +
 .../grpc/goldens/EchoStubSettings.golden      |   2 +
 .../grpc/goldens/IdentityClient.golden        |  42 ++
 .../LoggingServiceV2StubSettings.golden       |   2 +
 .../grpc/goldens/MessagingClient.golden       | 100 ++++
 .../grpc/goldens/PublisherStubSettings.golden |   2 +
 .../bookshopclient/AsyncGetBook.golden        |  48 ++
 .../SyncCreateSetCredentialsProvider.golden   |  41 ++
 .../SyncCreateSetEndpoint.golden              |  38 ++
 .../samples/bookshopclient/SyncGetBook.golden |  45 ++
 .../SyncGetBookIntListbook.golden             |  41 ++
 .../SyncGetBookStringListbook.golden          |  41 ++
 .../AsyncFastFibonacci.golden                 |  42 ++
 .../AsyncSlowFibonacci.golden                 |  42 ++
 .../SyncCreateSetCredentialsProvider.golden   |  42 ++
 .../SyncCreateSetEndpoint.golden              |  39 ++
 .../SyncFastFibonacci.golden                  |  39 ++
 .../SyncSlowFibonacci.golden                  |  39 ++
 .../samples/echoclient/AsyncBlock.golden      |  42 ++
 .../AsyncChatAgainStreamBidi.golden           |  53 +++
 .../echoclient/AsyncChatStreamBidi.golden     |  53 +++
 .../AsyncCollectStreamClient.golden           |  68 +++
 .../echoclient/AsyncCollideName.golden        |  51 +++
 .../samples/echoclient/AsyncEcho.golden       |  51 +++
 .../echoclient/AsyncExpandStreamServer.golden |  44 ++
 .../AsyncPagedExpandPagedCallable.golden      |  49 ++
 ...AsyncSimplePagedExpandPagedCallable.golden |  50 ++
 .../samples/echoclient/AsyncWait.golden       |  42 ++
 .../AsyncWaitOperationCallable.golden         |  44 ++
 .../samples/echoclient/SyncBlock.golden       |  39 ++
 .../samples/echoclient/SyncCollideName.golden |  48 ++
 .../SyncCreateSetCredentialsProvider.golden   |  41 ++
 .../echoclient/SyncCreateSetEndpoint.golden   |  37 ++
 .../samples/echoclient/SyncEcho.golden        |  37 ++
 .../samples/echoclient/SyncEcho1.golden       |  48 ++
 .../echoclient/SyncEchoFoobarname.golden      |  39 ++
 .../echoclient/SyncEchoResourcename.golden    |  40 ++
 .../samples/echoclient/SyncEchoStatus.golden  |  39 ++
 .../samples/echoclient/SyncEchoString.golden  |  38 ++
 .../samples/echoclient/SyncEchoString1.golden |  39 ++
 .../samples/echoclient/SyncEchoString2.golden |  39 ++
 .../echoclient/SyncEchoStringSeverity.golden  |  40 ++
 .../samples/echoclient/SyncPagedExpand.golden |  46 ++
 .../echoclient/SyncPagedExpandPaged.golden    |  57 +++
 .../echoclient/SyncSimplePagedExpand.golden   |  39 ++
 .../echoclient/SyncSimplePagedExpand1.golden  |  46 ++
 .../SyncSimplePagedExpandPaged.golden         |  57 +++
 .../samples/echoclient/SyncWait.golden        |  39 ++
 .../echoclient/SyncWaitDuration.golden        |  39 ++
 .../echoclient/SyncWaitTimestamp.golden       |  39 ++
 .../identityclient/AsyncCreateUser.golden     |  47 ++
 .../identityclient/AsyncDeleteUser.golden     |  44 ++
 .../identityclient/AsyncGetUser.golden        |  44 ++
 .../AsyncListUsersPagedCallable.golden        |  48 ++
 .../identityclient/AsyncUpdateUser.golden     |  43 ++
 .../SyncCreateSetCredentialsProvider.golden   |  41 ++
 .../SyncCreateSetEndpoint.golden              |  38 ++
 .../identityclient/SyncCreateUser.golden      |  44 ++
 .../SyncCreateUserStringStringString.golden   |  41 ++
 ...gStringStringIntStringBooleanDouble.golden |  47 ++
 ...ngStringIntStringStringStringString.golden |  60 +++
 .../identityclient/SyncDeleteUser.golden      |  41 ++
 .../SyncDeleteUserString.golden               |  39 ++
 .../SyncDeleteUserUsername.golden             |  39 ++
 .../samples/identityclient/SyncGetUser.golden |  41 ++
 .../identityclient/SyncGetUserString.golden   |  39 ++
 .../identityclient/SyncGetUserUsername.golden |  39 ++
 .../identityclient/SyncListUsers.golden       |  45 ++
 .../identityclient/SyncListUsersPaged.golden  |  56 +++
 .../identityclient/SyncUpdateUser.golden      |  40 ++
 .../AsyncConnectStreamBidi.golden             |  45 ++
 .../messagingclient/AsyncCreateBlurb.golden   |  47 ++
 .../messagingclient/AsyncCreateRoom.golden    |  43 ++
 .../messagingclient/AsyncDeleteBlurb.golden   |  48 ++
 .../messagingclient/AsyncDeleteRoom.golden    |  44 ++
 .../messagingclient/AsyncGetBlurb.golden      |  48 ++
 .../messagingclient/AsyncGetRoom.golden       |  44 ++
 .../AsyncListBlurbsPagedCallable.golden       |  50 ++
 .../AsyncListRoomsPagedCallable.golden        |  48 ++
 .../messagingclient/AsyncSearchBlurbs.golden  |  49 ++
 .../AsyncSearchBlurbsOperationCallable.golden |  51 +++
 .../AsyncSendBlurbsStreamClient.golden        |  65 +++
 .../AsyncStreamBlurbsStreamServer.golden      |  46 ++
 .../messagingclient/AsyncUpdateBlurb.golden   |  43 ++
 .../messagingclient/AsyncUpdateRoom.golden    |  43 ++
 .../messagingclient/SyncCreateBlurb.golden    |  44 ++
 ...yncCreateBlurbProfilenameBytestring.golden |  41 ++
 .../SyncCreateBlurbProfilenameString.golden   |  40 ++
 .../SyncCreateBlurbRoomnameBytestring.golden  |  41 ++
 .../SyncCreateBlurbRoomnameString.golden      |  40 ++
 .../SyncCreateBlurbStringBytestring.golden    |  41 ++
 .../SyncCreateBlurbStringString.golden        |  40 ++
 .../messagingclient/SyncCreateRoom.golden     |  40 ++
 .../SyncCreateRoomStringString.golden         |  39 ++
 .../SyncCreateSetCredentialsProvider.golden   |  41 ++
 .../SyncCreateSetEndpoint.golden              |  38 ++
 .../messagingclient/SyncDeleteBlurb.golden    |  45 ++
 .../SyncDeleteBlurbBlurbname.golden           |  39 ++
 .../SyncDeleteBlurbString.golden              |  40 ++
 .../messagingclient/SyncDeleteRoom.golden     |  41 ++
 .../SyncDeleteRoomRoomname.golden             |  39 ++
 .../SyncDeleteRoomString.golden               |  39 ++
 .../messagingclient/SyncGetBlurb.golden       |  45 ++
 .../SyncGetBlurbBlurbname.golden              |  39 ++
 .../messagingclient/SyncGetBlurbString.golden |  40 ++
 .../messagingclient/SyncGetRoom.golden        |  41 ++
 .../SyncGetRoomRoomname.golden                |  39 ++
 .../messagingclient/SyncGetRoomString.golden  |  39 ++
 .../messagingclient/SyncListBlurbs.golden     |  47 ++
 .../SyncListBlurbsPaged.golden                |  58 +++
 .../SyncListBlurbsProfilename.golden          |  41 ++
 .../SyncListBlurbsRoomname.golden             |  41 ++
 .../SyncListBlurbsString.golden               |  41 ++
 .../messagingclient/SyncListRooms.golden      |  45 ++
 .../messagingclient/SyncListRoomsPaged.golden |  56 +++
 .../messagingclient/SyncSearchBlurbs.golden   |  46 ++
 .../SyncSearchBlurbsString.golden             |  38 ++
 .../messagingclient/SyncUpdateBlurb.golden    |  40 ++
 .../messagingclient/SyncUpdateRoom.golden     |  40 ++
 .../samples/servicesettings/SyncEcho.golden   |  45 ++
 .../servicesettings/SyncFastFibonacci.golden  |  46 ++
 .../stub/SyncCreateTopic.golden               |  45 ++
 .../servicesettings/stub/SyncDeleteLog.golden |  46 ++
 .../servicesettings/stub/SyncEcho.golden      |  45 ++
 .../stub/SyncFastFibonacci.golden             |  47 ++
 .../rest/goldens/ComplianceSettings.golden    |   2 +
 .../goldens/ComplianceStubSettings.golden     |   2 +
 ...ServiceClientMethodSampleComposerTest.java | 430 +++++++++---------
 133 files changed, 5685 insertions(+), 215 deletions(-)
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgainStreamBidi.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatStreamBidi.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollectStreamClient.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpandStreamServer.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPagedCallable.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPagedCallable.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitOperationCallable.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpandPaged.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand1.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandPaged.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPagedCallable.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsersPaged.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnectStreamBidi.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPagedCallable.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPagedCallable.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsOperationCallable.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbsStreamClient.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbsStreamServer.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsPaged.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRoomsPaged.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden
 create mode 100644 src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden

diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden
index 069bd7a634..70c66dc794 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden
@@ -16,6 +16,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BookshopClient bookshopClient = BookshopClient.create()) {
  *   int booksCount = 1618425911;
  *   List books = new ArrayList<>();
@@ -52,6 +54,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BookshopSettings bookshopSettings =
  *     BookshopSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -62,6 +66,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BookshopSettings bookshopSettings =
  *     BookshopSettings.newBuilder().setEndpoint(myEndpoint).build();
  * BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
@@ -126,6 +132,8 @@ public class BookshopClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BookshopClient bookshopClient = BookshopClient.create()) {
    *   int booksCount = 1618425911;
    *   List books = new ArrayList<>();
@@ -148,6 +156,8 @@ public class BookshopClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BookshopClient bookshopClient = BookshopClient.create()) {
    *   String booksList = "booksList2-1119589686";
    *   List books = new ArrayList<>();
@@ -170,6 +180,8 @@ public class BookshopClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BookshopClient bookshopClient = BookshopClient.create()) {
    *   GetBookRequest request =
    *       GetBookRequest.newBuilder()
@@ -193,6 +205,8 @@ public class BookshopClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BookshopClient bookshopClient = BookshopClient.create()) {
    *   GetBookRequest request =
    *       GetBookRequest.newBuilder()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden
index 9af83eb743..4e5cbaad3f 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden
@@ -16,6 +16,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
  *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
  *   deprecatedServiceClient.fastFibonacci(request);
@@ -52,6 +54,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DeprecatedServiceSettings deprecatedServiceSettings =
  *     DeprecatedServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -63,6 +67,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DeprecatedServiceSettings deprecatedServiceSettings =
  *     DeprecatedServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DeprecatedServiceClient deprecatedServiceClient =
@@ -132,6 +138,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
    *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
    *   deprecatedServiceClient.fastFibonacci(request);
@@ -150,6 +158,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
    *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
    *   ApiFuture future = deprecatedServiceClient.fastFibonacciCallable().futureCall(request);
@@ -167,6 +177,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
    *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
    *   deprecatedServiceClient.slowFibonacci(request);
@@ -187,6 +199,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
    *   FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
    *   ApiFuture future = deprecatedServiceClient.slowFibonacciCallable().futureCall(request);
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden
index 5e61122577..4d71e3f312 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden
@@ -35,6 +35,8 @@ import javax.annotation.Generated;
  * 

For example, to set the total timeout of fastFibonacci to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DeprecatedServiceSettings.Builder deprecatedServiceSettingsBuilder =
  *     DeprecatedServiceSettings.newBuilder();
  * deprecatedServiceSettingsBuilder
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden
index 899b03bbce..8ace8d9fde 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden
@@ -44,6 +44,8 @@ import org.threeten.bp.Duration;
  * 

For example, to set the total timeout of fastFibonacci to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DeprecatedServiceStubSettings.Builder deprecatedServiceSettingsBuilder =
  *     DeprecatedServiceStubSettings.newBuilder();
  * deprecatedServiceSettingsBuilder
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden
index 3e6735f6bd..e7d55114c3 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden
@@ -34,6 +34,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (EchoClient echoClient = EchoClient.create()) {
  *   EchoResponse response = echoClient.echo();
  * }
@@ -68,6 +70,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EchoSettings echoSettings =
  *     EchoSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -78,6 +82,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build();
  * EchoClient echoClient = EchoClient.create(echoSettings);
  * }
@@ -152,6 +158,8 @@ public class EchoClient implements BackgroundResource { * Sample code: * *
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoResponse response = echoClient.echo();
    * }
@@ -170,6 +178,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   ResourceName parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]");
    *   EchoResponse response = echoClient.echo(parent);
@@ -190,6 +200,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   Status error = Status.newBuilder().build();
    *   EchoResponse response = echoClient.echo(error);
@@ -209,6 +221,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   FoobarName name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]");
    *   EchoResponse response = echoClient.echo(name);
@@ -229,6 +243,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   String content = "content951530617";
    *   EchoResponse response = echoClient.echo(content);
@@ -248,6 +264,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   String name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString();
    *   EchoResponse response = echoClient.echo(name);
@@ -267,6 +285,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   String parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString();
    *   EchoResponse response = echoClient.echo(parent);
@@ -286,6 +306,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   String content = "content951530617";
    *   Severity severity = Severity.forNumber(0);
@@ -308,6 +330,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoRequest request =
    *       EchoRequest.newBuilder()
@@ -332,6 +356,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoRequest request =
    *       EchoRequest.newBuilder()
@@ -355,6 +381,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   ExpandRequest request =
    *       ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build();
@@ -374,6 +402,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   ApiStreamObserver responseObserver =
    *       new ApiStreamObserver() {
@@ -414,6 +444,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   BidiStream bidiStream = echoClient.chatCallable().call();
    *   EchoRequest request =
@@ -439,6 +471,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   BidiStream bidiStream = echoClient.chatAgainCallable().call();
    *   EchoRequest request =
@@ -464,6 +498,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -489,6 +525,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -514,6 +552,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -545,6 +585,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   for (EchoResponse element : echoClient.simplePagedExpand().iterateAll()) {
    *     // doThingsWith(element);
@@ -565,6 +607,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -590,6 +634,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -616,6 +662,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   PagedExpandRequest request =
    *       PagedExpandRequest.newBuilder()
@@ -647,6 +695,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   Duration ttl = Duration.newBuilder().build();
    *   WaitResponse response = echoClient.waitAsync(ttl).get();
@@ -666,6 +716,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   Timestamp endTime = Timestamp.newBuilder().build();
    *   WaitResponse response = echoClient.waitAsync(endTime).get();
@@ -685,6 +737,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   WaitRequest request = WaitRequest.newBuilder().build();
    *   WaitResponse response = echoClient.waitAsync(request).get();
@@ -703,6 +757,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   WaitRequest request = WaitRequest.newBuilder().build();
    *   OperationFuture future =
@@ -721,6 +777,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   WaitRequest request = WaitRequest.newBuilder().build();
    *   ApiFuture future = echoClient.waitCallable().futureCall(request);
@@ -738,6 +796,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   BlockRequest request = BlockRequest.newBuilder().build();
    *   BlockResponse response = echoClient.block(request);
@@ -756,6 +816,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   BlockRequest request = BlockRequest.newBuilder().build();
    *   ApiFuture future = echoClient.blockCallable().futureCall(request);
@@ -773,6 +835,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoRequest request =
    *       EchoRequest.newBuilder()
@@ -797,6 +861,8 @@ public class EchoClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EchoClient echoClient = EchoClient.create()) {
    *   EchoRequest request =
    *       EchoRequest.newBuilder()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden
index e88ba04676..09fc6298a2 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden
@@ -42,6 +42,8 @@ import javax.annotation.Generated;
  * 

For example, to set the total timeout of echo to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();
  * echoSettingsBuilder
  *     .echoSettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden
index 2006b2a30d..1bef1dc27e 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden
@@ -70,6 +70,8 @@ import org.threeten.bp.Duration;
  * 

For example, to set the total timeout of echo to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();
  * echoSettingsBuilder
  *     .echoSettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden
index 235c0055b6..36a0848d94 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden
@@ -24,6 +24,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IdentityClient identityClient = IdentityClient.create()) {
  *   String parent = UserName.of("[USER]").toString();
  *   String displayName = "displayName1714148973";
@@ -61,6 +63,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IdentitySettings identitySettings =
  *     IdentitySettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -71,6 +75,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IdentitySettings identitySettings =
  *     IdentitySettings.newBuilder().setEndpoint(myEndpoint).build();
  * IdentityClient identityClient = IdentityClient.create(identitySettings);
@@ -135,6 +141,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String parent = UserName.of("[USER]").toString();
    *   String displayName = "displayName1714148973";
@@ -162,6 +170,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String parent = UserName.of("[USER]").toString();
    *   String displayName = "displayName1714148973";
@@ -214,6 +224,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String parent = UserName.of("[USER]").toString();
    *   String displayName = "displayName1714148973";
@@ -299,6 +311,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   CreateUserRequest request =
    *       CreateUserRequest.newBuilder()
@@ -321,6 +335,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   CreateUserRequest request =
    *       CreateUserRequest.newBuilder()
@@ -342,6 +358,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   UserName name = UserName.of("[USER]");
    *   User response = identityClient.getUser(name);
@@ -362,6 +380,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String name = UserName.of("[USER]").toString();
    *   User response = identityClient.getUser(name);
@@ -381,6 +401,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   GetUserRequest request =
    *       GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
@@ -400,6 +422,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   GetUserRequest request =
    *       GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
@@ -418,6 +442,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   UpdateUserRequest request =
    *       UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
@@ -437,6 +463,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   UpdateUserRequest request =
    *       UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
@@ -455,6 +483,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   UserName name = UserName.of("[USER]");
    *   identityClient.deleteUser(name);
@@ -475,6 +505,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   String name = UserName.of("[USER]").toString();
    *   identityClient.deleteUser(name);
@@ -494,6 +526,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   DeleteUserRequest request =
    *       DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
@@ -513,6 +547,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   DeleteUserRequest request =
    *       DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
@@ -531,6 +567,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   ListUsersRequest request =
    *       ListUsersRequest.newBuilder()
@@ -555,6 +593,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   ListUsersRequest request =
    *       ListUsersRequest.newBuilder()
@@ -578,6 +618,8 @@ public class IdentityClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IdentityClient identityClient = IdentityClient.create()) {
    *   ListUsersRequest request =
    *       ListUsersRequest.newBuilder()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden
index cc308eb5de..c19e424304 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden
@@ -77,6 +77,8 @@ import org.threeten.bp.Duration;
  * 

For example, to set the total timeout of deleteLog to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * LoggingServiceV2StubSettings.Builder loggingServiceV2SettingsBuilder =
  *     LoggingServiceV2StubSettings.newBuilder();
  * loggingServiceV2SettingsBuilder
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden
index e881597fde..d6e3b7da73 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden
@@ -32,6 +32,8 @@ import javax.annotation.Generated;
  * that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MessagingClient messagingClient = MessagingClient.create()) {
  *   String displayName = "displayName1714148973";
  *   String description = "description-1724546052";
@@ -68,6 +70,8 @@ import javax.annotation.Generated;
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MessagingSettings messagingSettings =
  *     MessagingSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -78,6 +82,8 @@ import javax.annotation.Generated;
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MessagingSettings messagingSettings =
  *     MessagingSettings.newBuilder().setEndpoint(myEndpoint).build();
  * MessagingClient messagingClient = MessagingClient.create(messagingSettings);
@@ -153,6 +159,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String displayName = "displayName1714148973";
    *   String description = "description-1724546052";
@@ -178,6 +186,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   CreateRoomRequest request =
    *       CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
@@ -197,6 +207,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   CreateRoomRequest request =
    *       CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
@@ -215,6 +227,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName name = RoomName.of("[ROOM]");
    *   Room response = messagingClient.getRoom(name);
@@ -235,6 +249,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String name = RoomName.of("[ROOM]").toString();
    *   Room response = messagingClient.getRoom(name);
@@ -254,6 +270,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   GetRoomRequest request =
    *       GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
@@ -273,6 +291,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   GetRoomRequest request =
    *       GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
@@ -291,6 +311,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   UpdateRoomRequest request =
    *       UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
@@ -310,6 +332,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   UpdateRoomRequest request =
    *       UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
@@ -328,6 +352,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName name = RoomName.of("[ROOM]");
    *   messagingClient.deleteRoom(name);
@@ -348,6 +374,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String name = RoomName.of("[ROOM]").toString();
    *   messagingClient.deleteRoom(name);
@@ -367,6 +395,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   DeleteRoomRequest request =
    *       DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
@@ -386,6 +416,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   DeleteRoomRequest request =
    *       DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
@@ -404,6 +436,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListRoomsRequest request =
    *       ListRoomsRequest.newBuilder()
@@ -428,6 +462,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListRoomsRequest request =
    *       ListRoomsRequest.newBuilder()
@@ -451,6 +487,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListRoomsRequest request =
    *       ListRoomsRequest.newBuilder()
@@ -481,6 +519,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ProfileName parent = ProfileName.of("[USER]");
    *   ByteString image = ByteString.EMPTY;
@@ -506,6 +546,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ProfileName parent = ProfileName.of("[USER]");
    *   String text = "text3556653";
@@ -531,6 +573,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName parent = RoomName.of("[ROOM]");
    *   ByteString image = ByteString.EMPTY;
@@ -556,6 +600,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName parent = RoomName.of("[ROOM]");
    *   String text = "text3556653";
@@ -581,6 +627,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String parent = ProfileName.of("[USER]").toString();
    *   ByteString image = ByteString.EMPTY;
@@ -606,6 +654,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String parent = ProfileName.of("[USER]").toString();
    *   String text = "text3556653";
@@ -631,6 +681,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   CreateBlurbRequest request =
    *       CreateBlurbRequest.newBuilder()
@@ -653,6 +705,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   CreateBlurbRequest request =
    *       CreateBlurbRequest.newBuilder()
@@ -674,6 +728,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   BlurbName name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]");
    *   Blurb response = messagingClient.getBlurb(name);
@@ -694,6 +750,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String name =
    *       BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
@@ -714,6 +772,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   GetBlurbRequest request =
    *       GetBlurbRequest.newBuilder()
@@ -737,6 +797,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   GetBlurbRequest request =
    *       GetBlurbRequest.newBuilder()
@@ -759,6 +821,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   UpdateBlurbRequest request =
    *       UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build();
@@ -778,6 +842,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   UpdateBlurbRequest request =
    *       UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build();
@@ -796,6 +862,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   BlurbName name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]");
    *   messagingClient.deleteBlurb(name);
@@ -816,6 +884,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String name =
    *       BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
@@ -836,6 +906,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   DeleteBlurbRequest request =
    *       DeleteBlurbRequest.newBuilder()
@@ -859,6 +931,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   DeleteBlurbRequest request =
    *       DeleteBlurbRequest.newBuilder()
@@ -881,6 +955,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ProfileName parent = ProfileName.of("[USER]");
    *   for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
@@ -903,6 +979,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   RoomName parent = RoomName.of("[ROOM]");
    *   for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
@@ -925,6 +1003,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String parent = ProfileName.of("[USER]").toString();
    *   for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
@@ -946,6 +1026,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListBlurbsRequest request =
    *       ListBlurbsRequest.newBuilder()
@@ -971,6 +1053,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListBlurbsRequest request =
    *       ListBlurbsRequest.newBuilder()
@@ -995,6 +1079,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ListBlurbsRequest request =
    *       ListBlurbsRequest.newBuilder()
@@ -1026,6 +1112,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   String query = "query107944136";
    *   SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(query).get();
@@ -1046,6 +1134,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   SearchBlurbsRequest request =
    *       SearchBlurbsRequest.newBuilder()
@@ -1071,6 +1161,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   SearchBlurbsRequest request =
    *       SearchBlurbsRequest.newBuilder()
@@ -1096,6 +1188,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   SearchBlurbsRequest request =
    *       SearchBlurbsRequest.newBuilder()
@@ -1119,6 +1213,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   StreamBlurbsRequest request =
    *       StreamBlurbsRequest.newBuilder().setName(ProfileName.of("[USER]").toString()).build();
@@ -1140,6 +1236,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   ApiStreamObserver responseObserver =
    *       new ApiStreamObserver() {
@@ -1179,6 +1277,8 @@ public class MessagingClient implements BackgroundResource {
    * Sample code:
    *
    * 
{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MessagingClient messagingClient = MessagingClient.create()) {
    *   BidiStream bidiStream =
    *       messagingClient.connectCallable().call();
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden
index d050f8a921..2c13fc0f02 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden
@@ -78,6 +78,8 @@ import org.threeten.bp.Duration;
  * 

For example, to set the total timeout of createTopic to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PublisherStubSettings.Builder publisherSettingsBuilder = PublisherStubSettings.newBuilder();
  * publisherSettingsBuilder
  *     .createTopicSettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden
new file mode 100644
index 0000000000..5797b9ea1b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_generated_bookshopclient_getbook_async]
+import com.google.api.core.ApiFuture;
+import com.google.bookshop.v1beta1.Book;
+import com.google.bookshop.v1beta1.BookshopClient;
+import com.google.bookshop.v1beta1.GetBookRequest;
+import java.util.ArrayList;
+
+public class AsyncGetBook {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetBook();
+  }
+
+  public static void asyncGetBook() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BookshopClient bookshopClient = BookshopClient.create()) {
+      GetBookRequest request =
+          GetBookRequest.newBuilder()
+              .setBooksCount1(1618425911)
+              .setBooksList2("booksList2-1119589686")
+              .addAllBooks3(new ArrayList())
+              .build();
+      ApiFuture future = bookshopClient.getBookCallable().futureCall(request);
+      // Do something.
+      Book response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_bookshopclient_getbook_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden
new file mode 100644
index 0000000000..6561d22d89
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_generated_bookshopclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.bookshop.v1beta1.BookshopClient;
+import com.google.bookshop.v1beta1.BookshopSettings;
+import com.google.bookshop.v1beta1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    BookshopSettings bookshopSettings =
+        BookshopSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
+  }
+}
+// [END goldensample_generated_bookshopclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden
new file mode 100644
index 0000000000..f1f5dffa33
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_generated_bookshopclient_create_setendpoint_sync]
+import com.google.bookshop.v1beta1.BookshopClient;
+import com.google.bookshop.v1beta1.BookshopSettings;
+import com.google.bookshop.v1beta1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    BookshopSettings bookshopSettings =
+        BookshopSettings.newBuilder().setEndpoint(myEndpoint).build();
+    BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
+  }
+}
+// [END goldensample_generated_bookshopclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden
new file mode 100644
index 0000000000..8b9a49a334
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_generated_bookshopclient_getbook_sync]
+import com.google.bookshop.v1beta1.Book;
+import com.google.bookshop.v1beta1.BookshopClient;
+import com.google.bookshop.v1beta1.GetBookRequest;
+import java.util.ArrayList;
+
+public class SyncGetBook {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBook();
+  }
+
+  public static void syncGetBook() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BookshopClient bookshopClient = BookshopClient.create()) {
+      GetBookRequest request =
+          GetBookRequest.newBuilder()
+              .setBooksCount1(1618425911)
+              .setBooksList2("booksList2-1119589686")
+              .addAllBooks3(new ArrayList())
+              .build();
+      Book response = bookshopClient.getBook(request);
+    }
+  }
+}
+// [END goldensample_generated_bookshopclient_getbook_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden
new file mode 100644
index 0000000000..3fcba7a522
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_generated_bookshopclient_getbook_intlistbook_sync]
+import com.google.bookshop.v1beta1.Book;
+import com.google.bookshop.v1beta1.BookshopClient;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SyncGetBookIntListbook {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBookIntListbook();
+  }
+
+  public static void syncGetBookIntListbook() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BookshopClient bookshopClient = BookshopClient.create()) {
+      int booksCount = 1618425911;
+      List books = new ArrayList<>();
+      Book response = bookshopClient.getBook(booksCount, books);
+    }
+  }
+}
+// [END goldensample_generated_bookshopclient_getbook_intlistbook_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden
new file mode 100644
index 0000000000..1cdc59bdfe
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.bookshop.v1beta1.samples;
+
+// [START goldensample_generated_bookshopclient_getbook_stringlistbook_sync]
+import com.google.bookshop.v1beta1.Book;
+import com.google.bookshop.v1beta1.BookshopClient;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SyncGetBookStringListbook {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBookStringListbook();
+  }
+
+  public static void syncGetBookStringListbook() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (BookshopClient bookshopClient = BookshopClient.create()) {
+      String booksList = "booksList2-1119589686";
+      List books = new ArrayList<>();
+      Book response = bookshopClient.getBook(booksList, books);
+    }
+  }
+}
+// [END goldensample_generated_bookshopclient_getbook_stringlistbook_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden
new file mode 100644
index 0000000000..4f22840779
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_async]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.FibonacciRequest;
+
+public class AsyncFastFibonacci {
+
+  public static void main(String[] args) throws Exception {
+    asyncFastFibonacci();
+  }
+
+  public static void asyncFastFibonacci() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
+      FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
+      ApiFuture future = deprecatedServiceClient.fastFibonacciCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden
new file mode 100644
index 0000000000..f0f6130bf5
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_async]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.FibonacciRequest;
+
+public class AsyncSlowFibonacci {
+
+  public static void main(String[] args) throws Exception {
+    asyncSlowFibonacci();
+  }
+
+  public static void asyncSlowFibonacci() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
+      FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
+      ApiFuture future = deprecatedServiceClient.slowFibonacciCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden
new file mode 100644
index 0000000000..c138703b0b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_generated_deprecatedserviceclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.DeprecatedServiceSettings;
+import com.google.testdata.v1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    DeprecatedServiceSettings deprecatedServiceSettings =
+        DeprecatedServiceSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    DeprecatedServiceClient deprecatedServiceClient =
+        DeprecatedServiceClient.create(deprecatedServiceSettings);
+  }
+}
+// [END goldensample_generated_deprecatedserviceclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden
new file mode 100644
index 0000000000..a719126c25
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_generated_deprecatedserviceclient_create_setendpoint_sync]
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.DeprecatedServiceSettings;
+import com.google.testdata.v1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    DeprecatedServiceSettings deprecatedServiceSettings =
+        DeprecatedServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+    DeprecatedServiceClient deprecatedServiceClient =
+        DeprecatedServiceClient.create(deprecatedServiceSettings);
+  }
+}
+// [END goldensample_generated_deprecatedserviceclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden
new file mode 100644
index 0000000000..b2c02d3e7c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_generated_deprecatedserviceclient_fastfibonacci_sync]
+import com.google.protobuf.Empty;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.FibonacciRequest;
+
+public class SyncFastFibonacci {
+
+  public static void main(String[] args) throws Exception {
+    syncFastFibonacci();
+  }
+
+  public static void syncFastFibonacci() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
+      FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
+      deprecatedServiceClient.fastFibonacci(request);
+    }
+  }
+}
+// [END goldensample_generated_deprecatedserviceclient_fastfibonacci_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden
new file mode 100644
index 0000000000..8a4e5ac674
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_generated_deprecatedserviceclient_slowfibonacci_sync]
+import com.google.protobuf.Empty;
+import com.google.testdata.v1.DeprecatedServiceClient;
+import com.google.testdata.v1.FibonacciRequest;
+
+public class SyncSlowFibonacci {
+
+  public static void main(String[] args) throws Exception {
+    syncSlowFibonacci();
+  }
+
+  public static void syncSlowFibonacci() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
+      FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
+      deprecatedServiceClient.slowFibonacci(request);
+    }
+  }
+}
+// [END goldensample_generated_deprecatedserviceclient_slowfibonacci_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden
new file mode 100644
index 0000000000..b186e09e24
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_block_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.BlockRequest;
+import com.google.showcase.v1beta1.BlockResponse;
+import com.google.showcase.v1beta1.EchoClient;
+
+public class AsyncBlock {
+
+  public static void main(String[] args) throws Exception {
+    asyncBlock();
+  }
+
+  public static void asyncBlock() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      BlockRequest request = BlockRequest.newBuilder().build();
+      ApiFuture future = echoClient.blockCallable().futureCall(request);
+      // Do something.
+      BlockResponse response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_block_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgainStreamBidi.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgainStreamBidi.golden
new file mode 100644
index 0000000000..d095d155d8
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgainStreamBidi.golden
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_chatagain_streambidi_async]
+import com.google.api.gax.rpc.BidiStream;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class AsyncChatAgainStreamBidi {
+
+  public static void main(String[] args) throws Exception {
+    asyncChatAgainStreamBidi();
+  }
+
+  public static void asyncChatAgainStreamBidi() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      BidiStream bidiStream = echoClient.chatAgainCallable().call();
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      bidiStream.send(request);
+      for (EchoResponse response : bidiStream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_chatagain_streambidi_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatStreamBidi.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatStreamBidi.golden
new file mode 100644
index 0000000000..daa0522787
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatStreamBidi.golden
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_chat_streambidi_async]
+import com.google.api.gax.rpc.BidiStream;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class AsyncChatStreamBidi {
+
+  public static void main(String[] args) throws Exception {
+    asyncChatStreamBidi();
+  }
+
+  public static void asyncChatStreamBidi() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      BidiStream bidiStream = echoClient.chatCallable().call();
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      bidiStream.send(request);
+      for (EchoResponse response : bidiStream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_chat_streambidi_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollectStreamClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollectStreamClient.golden
new file mode 100644
index 0000000000..a214ab6662
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollectStreamClient.golden
@@ -0,0 +1,68 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_collect_streamclient_async]
+import com.google.api.gax.rpc.ApiStreamObserver;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class AsyncCollectStreamClient {
+
+  public static void main(String[] args) throws Exception {
+    asyncCollectStreamClient();
+  }
+
+  public static void asyncCollectStreamClient() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      ApiStreamObserver responseObserver =
+          new ApiStreamObserver() {
+            @Override
+            public void onNext(EchoResponse response) {
+              // Do something when a response is received.
+            }
+
+            @Override
+            public void onError(Throwable t) {
+              // Add error-handling
+            }
+
+            @Override
+            public void onCompleted() {
+              // Do something when complete.
+            }
+          };
+      ApiStreamObserver requestObserver =
+          echoClient.collect().clientStreamingCall(responseObserver);
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      requestObserver.onNext(request);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_collect_streamclient_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden
new file mode 100644
index 0000000000..7e85f18fbf
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_collidename_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Object;
+import com.google.showcase.v1beta1.Severity;
+
+public class AsyncCollideName {
+
+  public static void main(String[] args) throws Exception {
+    asyncCollideName();
+  }
+
+  public static void asyncCollideName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      ApiFuture future = echoClient.collideNameCallable().futureCall(request);
+      // Do something.
+      Object response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_collidename_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden
new file mode 100644
index 0000000000..859347ff50
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class AsyncEcho {
+
+  public static void main(String[] args) throws Exception {
+    asyncEcho();
+  }
+
+  public static void asyncEcho() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      ApiFuture future = echoClient.echoCallable().futureCall(request);
+      // Do something.
+      EchoResponse response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpandStreamServer.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpandStreamServer.golden
new file mode 100644
index 0000000000..6a016acb49
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpandStreamServer.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_expand_streamserver_async]
+import com.google.api.gax.rpc.ServerStream;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.ExpandRequest;
+
+public class AsyncExpandStreamServer {
+
+  public static void main(String[] args) throws Exception {
+    asyncExpandStreamServer();
+  }
+
+  public static void asyncExpandStreamServer() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      ExpandRequest request =
+          ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build();
+      ServerStream stream = echoClient.expandCallable().call(request);
+      for (EchoResponse response : stream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_expand_streamserver_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPagedCallable.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPagedCallable.golden
new file mode 100644
index 0000000000..d6afae5452
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPagedCallable.golden
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_pagedexpand_pagedcallable_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+
+public class AsyncPagedExpandPagedCallable {
+
+  public static void main(String[] args) throws Exception {
+    asyncPagedExpandPagedCallable();
+  }
+
+  public static void asyncPagedExpandPagedCallable() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = echoClient.pagedExpandPagedCallable().futureCall(request);
+      // Do something.
+      for (EchoResponse element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_pagedexpand_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPagedCallable.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPagedCallable.golden
new file mode 100644
index 0000000000..30067b1ca0
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPagedCallable.golden
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_simplepagedexpand_pagedcallable_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+
+public class AsyncSimplePagedExpandPagedCallable {
+
+  public static void main(String[] args) throws Exception {
+    asyncSimplePagedExpandPagedCallable();
+  }
+
+  public static void asyncSimplePagedExpandPagedCallable() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future =
+          echoClient.simplePagedExpandPagedCallable().futureCall(request);
+      // Do something.
+      for (EchoResponse element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_simplepagedexpand_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden
new file mode 100644
index 0000000000..6fe7262fcd
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_wait_async]
+import com.google.api.core.ApiFuture;
+import com.google.longrunning.Operation;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitRequest;
+
+public class AsyncWait {
+
+  public static void main(String[] args) throws Exception {
+    asyncWait();
+  }
+
+  public static void asyncWait() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      WaitRequest request = WaitRequest.newBuilder().build();
+      ApiFuture future = echoClient.waitCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_wait_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitOperationCallable.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitOperationCallable.golden
new file mode 100644
index 0000000000..665d3c73a8
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitOperationCallable.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_wait_operationcallable_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitMetadata;
+import com.google.showcase.v1beta1.WaitRequest;
+import com.google.showcase.v1beta1.WaitResponse;
+
+public class AsyncWaitOperationCallable {
+
+  public static void main(String[] args) throws Exception {
+    asyncWaitOperationCallable();
+  }
+
+  public static void asyncWaitOperationCallable() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      WaitRequest request = WaitRequest.newBuilder().build();
+      OperationFuture future =
+          echoClient.waitOperationCallable().futureCall(request);
+      // Do something.
+      WaitResponse response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_wait_operationcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden
new file mode 100644
index 0000000000..a4f343bf79
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_block_sync]
+import com.google.showcase.v1beta1.BlockRequest;
+import com.google.showcase.v1beta1.BlockResponse;
+import com.google.showcase.v1beta1.EchoClient;
+
+public class SyncBlock {
+
+  public static void main(String[] args) throws Exception {
+    syncBlock();
+  }
+
+  public static void syncBlock() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      BlockRequest request = BlockRequest.newBuilder().build();
+      BlockResponse response = echoClient.block(request);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_block_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden
new file mode 100644
index 0000000000..77bd8ff45a
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_collidename_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Object;
+import com.google.showcase.v1beta1.Severity;
+
+public class SyncCollideName {
+
+  public static void main(String[] args) throws Exception {
+    syncCollideName();
+  }
+
+  public static void syncCollideName() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      Object response = echoClient.collideName(request);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_collidename_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden
new file mode 100644
index 0000000000..b867d8de33
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoSettings;
+import com.google.showcase.v1beta1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EchoSettings echoSettings =
+        EchoSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    EchoClient echoClient = EchoClient.create(echoSettings);
+  }
+}
+// [END goldensample_generated_echoclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden
new file mode 100644
index 0000000000..046c0083e1
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_create_setendpoint_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoSettings;
+import com.google.showcase.v1beta1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build();
+    EchoClient echoClient = EchoClient.create(echoSettings);
+  }
+}
+// [END goldensample_generated_echoclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden
new file mode 100644
index 0000000000..4700422010
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+
+public class SyncEcho {
+
+  public static void main(String[] args) throws Exception {
+    syncEcho();
+  }
+
+  public static void syncEcho() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoResponse response = echoClient.echo();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho1.golden
new file mode 100644
index 0000000000..20644b2920
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho1.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_1_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Foobar;
+import com.google.showcase.v1beta1.FoobarName;
+import com.google.showcase.v1beta1.Severity;
+
+public class SyncEcho1 {
+
+  public static void main(String[] args) throws Exception {
+    syncEcho1();
+  }
+
+  public static void syncEcho1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      EchoRequest request =
+          EchoRequest.newBuilder()
+              .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString())
+              .setSeverity(Severity.forNumber(0))
+              .setFoobar(Foobar.newBuilder().build())
+              .build();
+      EchoResponse response = echoClient.echo(request);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_1_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden
new file mode 100644
index 0000000000..a998ecaa0d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_foobarname_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.FoobarName;
+
+public class SyncEchoFoobarname {
+
+  public static void main(String[] args) throws Exception {
+    syncEchoFoobarname();
+  }
+
+  public static void syncEchoFoobarname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      FoobarName name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]");
+      EchoResponse response = echoClient.echo(name);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_foobarname_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden
new file mode 100644
index 0000000000..b352a6f215
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_resourcename_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.FoobarName;
+
+public class SyncEchoResourcename {
+
+  public static void main(String[] args) throws Exception {
+    syncEchoResourcename();
+  }
+
+  public static void syncEchoResourcename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      ResourceName parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]");
+      EchoResponse response = echoClient.echo(parent);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_resourcename_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden
new file mode 100644
index 0000000000..2d1e7fd96e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_status_sync]
+import com.google.rpc.Status;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+
+public class SyncEchoStatus {
+
+  public static void main(String[] args) throws Exception {
+    syncEchoStatus();
+  }
+
+  public static void syncEchoStatus() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      Status error = Status.newBuilder().build();
+      EchoResponse response = echoClient.echo(error);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_status_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden
new file mode 100644
index 0000000000..8f8737d11a
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_string_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+
+public class SyncEchoString {
+
+  public static void main(String[] args) throws Exception {
+    syncEchoString();
+  }
+
+  public static void syncEchoString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      String content = "content951530617";
+      EchoResponse response = echoClient.echo(content);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden
new file mode 100644
index 0000000000..e15958515c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_string1_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.FoobarName;
+
+public class SyncEchoString1 {
+
+  public static void main(String[] args) throws Exception {
+    syncEchoString1();
+  }
+
+  public static void syncEchoString1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      String name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString();
+      EchoResponse response = echoClient.echo(name);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_string1_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden
new file mode 100644
index 0000000000..44d9413448
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_string2_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.FoobarName;
+
+public class SyncEchoString2 {
+
+  public static void main(String[] args) throws Exception {
+    syncEchoString2();
+  }
+
+  public static void syncEchoString2() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      String parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString();
+      EchoResponse response = echoClient.echo(parent);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_string2_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden
new file mode 100644
index 0000000000..30b06aaba0
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_echo_stringseverity_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.Severity;
+
+public class SyncEchoStringSeverity {
+
+  public static void main(String[] args) throws Exception {
+    syncEchoStringSeverity();
+  }
+
+  public static void syncEchoStringSeverity() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      String content = "content951530617";
+      Severity severity = Severity.forNumber(0);
+      EchoResponse response = echoClient.echo(content, severity);
+    }
+  }
+}
+// [END goldensample_generated_echoclient_echo_stringseverity_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden
new file mode 100644
index 0000000000..7f0b48f0f7
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_pagedexpand_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+
+public class SyncPagedExpand {
+
+  public static void main(String[] args) throws Exception {
+    syncPagedExpand();
+  }
+
+  public static void syncPagedExpand() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_pagedexpand_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpandPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpandPaged.golden
new file mode 100644
index 0000000000..78aae13121
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpandPaged.golden
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_pagedexpand_paged_sync]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+import com.google.showcase.v1beta1.PagedExpandResponse;
+
+public class SyncPagedExpandPaged {
+
+  public static void main(String[] args) throws Exception {
+    syncPagedExpandPaged();
+  }
+
+  public static void syncPagedExpandPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        PagedExpandResponse response = echoClient.pagedExpandCallable().call(request);
+        for (EchoResponse element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_pagedexpand_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden
new file mode 100644
index 0000000000..6820c71ba6
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_simplepagedexpand_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+
+public class SyncSimplePagedExpand {
+
+  public static void main(String[] args) throws Exception {
+    syncSimplePagedExpand();
+  }
+
+  public static void syncSimplePagedExpand() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      for (EchoResponse element : echoClient.simplePagedExpand().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_simplepagedexpand_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand1.golden
new file mode 100644
index 0000000000..43fd9ef79b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand1.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_simplepagedexpand_1_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+
+public class SyncSimplePagedExpand1 {
+
+  public static void main(String[] args) throws Exception {
+    syncSimplePagedExpand1();
+  }
+
+  public static void syncSimplePagedExpand1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (EchoResponse element : echoClient.simplePagedExpand(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_simplepagedexpand_1_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandPaged.golden
new file mode 100644
index 0000000000..d0eef50d9c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandPaged.golden
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_simplepagedexpand_paged_sync]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.PagedExpandRequest;
+import com.google.showcase.v1beta1.PagedExpandResponse;
+
+public class SyncSimplePagedExpandPaged {
+
+  public static void main(String[] args) throws Exception {
+    syncSimplePagedExpandPaged();
+  }
+
+  public static void syncSimplePagedExpandPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      PagedExpandRequest request =
+          PagedExpandRequest.newBuilder()
+              .setContent("content951530617")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        PagedExpandResponse response = echoClient.simplePagedExpandCallable().call(request);
+        for (EchoResponse element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_generated_echoclient_simplepagedexpand_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden
new file mode 100644
index 0000000000..3f463f0e69
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_wait_sync]
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitRequest;
+import com.google.showcase.v1beta1.WaitResponse;
+
+public class SyncWait {
+
+  public static void main(String[] args) throws Exception {
+    syncWait();
+  }
+
+  public static void syncWait() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      WaitRequest request = WaitRequest.newBuilder().build();
+      WaitResponse response = echoClient.waitAsync(request).get();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_wait_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden
new file mode 100644
index 0000000000..e9e3c49dce
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_wait_duration_sync]
+import com.google.protobuf.Duration;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitResponse;
+
+public class SyncWaitDuration {
+
+  public static void main(String[] args) throws Exception {
+    syncWaitDuration();
+  }
+
+  public static void syncWaitDuration() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      Duration ttl = Duration.newBuilder().build();
+      WaitResponse response = echoClient.waitAsync(ttl).get();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_wait_duration_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden
new file mode 100644
index 0000000000..f7e5e9dfe5
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echoclient_wait_timestamp_sync]
+import com.google.protobuf.Timestamp;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.WaitResponse;
+
+public class SyncWaitTimestamp {
+
+  public static void main(String[] args) throws Exception {
+    syncWaitTimestamp();
+  }
+
+  public static void syncWaitTimestamp() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EchoClient echoClient = EchoClient.create()) {
+      Timestamp endTime = Timestamp.newBuilder().build();
+      WaitResponse response = echoClient.waitAsync(endTime).get();
+    }
+  }
+}
+// [END goldensample_generated_echoclient_wait_timestamp_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden
new file mode 100644
index 0000000000..f5c58710a7
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_createuser_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.CreateUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class AsyncCreateUser {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateUser();
+  }
+
+  public static void asyncCreateUser() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      CreateUserRequest request =
+          CreateUserRequest.newBuilder()
+              .setParent(UserName.of("[USER]").toString())
+              .setUser(User.newBuilder().build())
+              .build();
+      ApiFuture future = identityClient.createUserCallable().futureCall(request);
+      // Do something.
+      User response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_identityclient_createuser_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden
new file mode 100644
index 0000000000..6ca7457c4d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_deleteuser_async]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.DeleteUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UserName;
+
+public class AsyncDeleteUser {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteUser();
+  }
+
+  public static void asyncDeleteUser() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      DeleteUserRequest request =
+          DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
+      ApiFuture future = identityClient.deleteUserCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_generated_identityclient_deleteuser_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden
new file mode 100644
index 0000000000..f3d3e87c1c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_getuser_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.GetUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class AsyncGetUser {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetUser();
+  }
+
+  public static void asyncGetUser() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      GetUserRequest request =
+          GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
+      ApiFuture future = identityClient.getUserCallable().futureCall(request);
+      // Do something.
+      User response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_identityclient_getuser_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPagedCallable.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPagedCallable.golden
new file mode 100644
index 0000000000..c6b8ab04e4
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPagedCallable.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_listusers_pagedcallable_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.ListUsersRequest;
+import com.google.showcase.v1beta1.User;
+
+public class AsyncListUsersPagedCallable {
+
+  public static void main(String[] args) throws Exception {
+    asyncListUsersPagedCallable();
+  }
+
+  public static void asyncListUsersPagedCallable() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      ListUsersRequest request =
+          ListUsersRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = identityClient.listUsersPagedCallable().futureCall(request);
+      // Do something.
+      for (User element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_identityclient_listusers_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden
new file mode 100644
index 0000000000..511e7188ed
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_updateuser_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UpdateUserRequest;
+import com.google.showcase.v1beta1.User;
+
+public class AsyncUpdateUser {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateUser();
+  }
+
+  public static void asyncUpdateUser() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      UpdateUserRequest request =
+          UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
+      ApiFuture future = identityClient.updateUserCallable().futureCall(request);
+      // Do something.
+      User response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_identityclient_updateuser_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden
new file mode 100644
index 0000000000..7950320dbb
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.IdentitySettings;
+import com.google.showcase.v1beta1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IdentitySettings identitySettings =
+        IdentitySettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    IdentityClient identityClient = IdentityClient.create(identitySettings);
+  }
+}
+// [END goldensample_generated_identityclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden
new file mode 100644
index 0000000000..b1b7add9db
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_create_setendpoint_sync]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.IdentitySettings;
+import com.google.showcase.v1beta1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IdentitySettings identitySettings =
+        IdentitySettings.newBuilder().setEndpoint(myEndpoint).build();
+    IdentityClient identityClient = IdentityClient.create(identitySettings);
+  }
+}
+// [END goldensample_generated_identityclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden
new file mode 100644
index 0000000000..dbd8badb47
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_createuser_sync]
+import com.google.showcase.v1beta1.CreateUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncCreateUser {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateUser();
+  }
+
+  public static void syncCreateUser() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      CreateUserRequest request =
+          CreateUserRequest.newBuilder()
+              .setParent(UserName.of("[USER]").toString())
+              .setUser(User.newBuilder().build())
+              .build();
+      User response = identityClient.createUser(request);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_createuser_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden
new file mode 100644
index 0000000000..953dc0706b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_createuser_stringstringstring_sync]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncCreateUserStringStringString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateUserStringStringString();
+  }
+
+  public static void syncCreateUserStringStringString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String parent = UserName.of("[USER]").toString();
+      String displayName = "displayName1714148973";
+      String email = "email96619420";
+      User response = identityClient.createUser(parent, displayName, email);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_createuser_stringstringstring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden
new file mode 100644
index 0000000000..85d9ab1960
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_createuser_stringstringstringintstringbooleandouble_sync]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncCreateUserStringStringStringIntStringBooleanDouble {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateUserStringStringStringIntStringBooleanDouble();
+  }
+
+  public static void syncCreateUserStringStringStringIntStringBooleanDouble() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String parent = UserName.of("[USER]").toString();
+      String displayName = "displayName1714148973";
+      String email = "email96619420";
+      int age = 96511;
+      String nickname = "nickname70690926";
+      boolean enableNotifications = true;
+      double heightFeet = -1032737338;
+      User response =
+          identityClient.createUser(
+              parent, displayName, email, age, nickname, enableNotifications, heightFeet);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_createuser_stringstringstringintstringbooleandouble_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden
new file mode 100644
index 0000000000..d222f048a8
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring_sync]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncCreateUserStringStringStringStringStringIntStringStringStringString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateUserStringStringStringStringStringIntStringStringStringString();
+  }
+
+  public static void syncCreateUserStringStringStringStringStringIntStringStringStringString()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String parent = UserName.of("[USER]").toString();
+      String displayName = "displayName1714148973";
+      String email = "email96619420";
+      String hobbyName = "hobbyName882586493";
+      String songName = "songName1535136064";
+      int weeklyFrequency = 1572999966;
+      String companyName = "companyName-508582744";
+      String title = "title110371416";
+      String subject = "subject-1867885268";
+      String artistName = "artistName629723762";
+      User response =
+          identityClient.createUser(
+              parent,
+              displayName,
+              email,
+              hobbyName,
+              songName,
+              weeklyFrequency,
+              companyName,
+              title,
+              subject,
+              artistName);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_createuser_stringstringstringstringstringintstringstringstringstring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden
new file mode 100644
index 0000000000..1c836c26f8
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_deleteuser_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.DeleteUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncDeleteUser {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteUser();
+  }
+
+  public static void syncDeleteUser() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      DeleteUserRequest request =
+          DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
+      identityClient.deleteUser(request);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_deleteuser_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden
new file mode 100644
index 0000000000..22e00a180f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_deleteuser_string_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncDeleteUserString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteUserString();
+  }
+
+  public static void syncDeleteUserString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String name = UserName.of("[USER]").toString();
+      identityClient.deleteUser(name);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_deleteuser_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden
new file mode 100644
index 0000000000..55d2b6fb29
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_deleteuser_username_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncDeleteUserUsername {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteUserUsername();
+  }
+
+  public static void syncDeleteUserUsername() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      UserName name = UserName.of("[USER]");
+      identityClient.deleteUser(name);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_deleteuser_username_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden
new file mode 100644
index 0000000000..972382be7f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_getuser_sync]
+import com.google.showcase.v1beta1.GetUserRequest;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncGetUser {
+
+  public static void main(String[] args) throws Exception {
+    syncGetUser();
+  }
+
+  public static void syncGetUser() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      GetUserRequest request =
+          GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
+      User response = identityClient.getUser(request);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_getuser_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden
new file mode 100644
index 0000000000..8ccf1245c0
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_getuser_string_sync]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncGetUserString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetUserString();
+  }
+
+  public static void syncGetUserString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      String name = UserName.of("[USER]").toString();
+      User response = identityClient.getUser(name);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_getuser_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden
new file mode 100644
index 0000000000..5d7441c7bc
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_getuser_username_sync]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.User;
+import com.google.showcase.v1beta1.UserName;
+
+public class SyncGetUserUsername {
+
+  public static void main(String[] args) throws Exception {
+    syncGetUserUsername();
+  }
+
+  public static void syncGetUserUsername() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      UserName name = UserName.of("[USER]");
+      User response = identityClient.getUser(name);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_getuser_username_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden
new file mode 100644
index 0000000000..e70025e5a2
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_listusers_sync]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.ListUsersRequest;
+import com.google.showcase.v1beta1.User;
+
+public class SyncListUsers {
+
+  public static void main(String[] args) throws Exception {
+    syncListUsers();
+  }
+
+  public static void syncListUsers() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      ListUsersRequest request =
+          ListUsersRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (User element : identityClient.listUsers(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_identityclient_listusers_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsersPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsersPaged.golden
new file mode 100644
index 0000000000..354c02f986
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsersPaged.golden
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_listusers_paged_sync]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.ListUsersRequest;
+import com.google.showcase.v1beta1.ListUsersResponse;
+import com.google.showcase.v1beta1.User;
+
+public class SyncListUsersPaged {
+
+  public static void main(String[] args) throws Exception {
+    syncListUsersPaged();
+  }
+
+  public static void syncListUsersPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      ListUsersRequest request =
+          ListUsersRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListUsersResponse response = identityClient.listUsersCallable().call(request);
+        for (User element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_generated_identityclient_listusers_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden
new file mode 100644
index 0000000000..32b476711d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_identityclient_updateuser_sync]
+import com.google.showcase.v1beta1.IdentityClient;
+import com.google.showcase.v1beta1.UpdateUserRequest;
+import com.google.showcase.v1beta1.User;
+
+public class SyncUpdateUser {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateUser();
+  }
+
+  public static void syncUpdateUser() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IdentityClient identityClient = IdentityClient.create()) {
+      UpdateUserRequest request =
+          UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
+      User response = identityClient.updateUser(request);
+    }
+  }
+}
+// [END goldensample_generated_identityclient_updateuser_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnectStreamBidi.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnectStreamBidi.golden
new file mode 100644
index 0000000000..525c4736a7
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnectStreamBidi.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_connect_streambidi_async]
+import com.google.api.gax.rpc.BidiStream;
+import com.google.showcase.v1beta1.ConnectRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.StreamBlurbsResponse;
+
+public class AsyncConnectStreamBidi {
+
+  public static void main(String[] args) throws Exception {
+    asyncConnectStreamBidi();
+  }
+
+  public static void asyncConnectStreamBidi() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      BidiStream bidiStream =
+          messagingClient.connectCallable().call();
+      ConnectRequest request = ConnectRequest.newBuilder().build();
+      bidiStream.send(request);
+      for (StreamBlurbsResponse response : bidiStream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_connect_streambidi_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden
new file mode 100644
index 0000000000..f3029462c4
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createblurb_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.CreateBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class AsyncCreateBlurb {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateBlurb();
+  }
+
+  public static void asyncCreateBlurb() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      CreateBlurbRequest request =
+          CreateBlurbRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setBlurb(Blurb.newBuilder().build())
+              .build();
+      ApiFuture future = messagingClient.createBlurbCallable().futureCall(request);
+      // Do something.
+      Blurb response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createblurb_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden
new file mode 100644
index 0000000000..8d924fe7f8
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createroom_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.CreateRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class AsyncCreateRoom {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateRoom();
+  }
+
+  public static void asyncCreateRoom() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      CreateRoomRequest request =
+          CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
+      ApiFuture future = messagingClient.createRoomCallable().futureCall(request);
+      // Do something.
+      Room response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createroom_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden
new file mode 100644
index 0000000000..21cd62ee46
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_deleteblurb_async]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.DeleteBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class AsyncDeleteBlurb {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteBlurb();
+  }
+
+  public static void asyncDeleteBlurb() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      DeleteBlurbRequest request =
+          DeleteBlurbRequest.newBuilder()
+              .setName(
+                  BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]")
+                      .toString())
+              .build();
+      ApiFuture future = messagingClient.deleteBlurbCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_deleteblurb_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden
new file mode 100644
index 0000000000..1e23c521e8
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_deleteroom_async]
+import com.google.api.core.ApiFuture;
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.DeleteRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class AsyncDeleteRoom {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteRoom();
+  }
+
+  public static void asyncDeleteRoom() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      DeleteRoomRequest request =
+          DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
+      ApiFuture future = messagingClient.deleteRoomCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_deleteroom_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden
new file mode 100644
index 0000000000..1a2a94c0fe
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_getblurb_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.GetBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class AsyncGetBlurb {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetBlurb();
+  }
+
+  public static void asyncGetBlurb() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      GetBlurbRequest request =
+          GetBlurbRequest.newBuilder()
+              .setName(
+                  BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]")
+                      .toString())
+              .build();
+      ApiFuture future = messagingClient.getBlurbCallable().futureCall(request);
+      // Do something.
+      Blurb response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_getblurb_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden
new file mode 100644
index 0000000000..a1a9b7fb06
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_getroom_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.GetRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.RoomName;
+
+public class AsyncGetRoom {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetRoom();
+  }
+
+  public static void asyncGetRoom() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      GetRoomRequest request =
+          GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
+      ApiFuture future = messagingClient.getRoomCallable().futureCall(request);
+      // Do something.
+      Room response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_getroom_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPagedCallable.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPagedCallable.golden
new file mode 100644
index 0000000000..2e0f9f14cc
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPagedCallable.golden
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listblurbs_pagedcallable_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.ListBlurbsRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class AsyncListBlurbsPagedCallable {
+
+  public static void main(String[] args) throws Exception {
+    asyncListBlurbsPagedCallable();
+  }
+
+  public static void asyncListBlurbsPagedCallable() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListBlurbsRequest request =
+          ListBlurbsRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = messagingClient.listBlurbsPagedCallable().futureCall(request);
+      // Do something.
+      for (Blurb element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listblurbs_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPagedCallable.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPagedCallable.golden
new file mode 100644
index 0000000000..48125e4fc5
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPagedCallable.golden
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listrooms_pagedcallable_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.ListRoomsRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class AsyncListRoomsPagedCallable {
+
+  public static void main(String[] args) throws Exception {
+    asyncListRoomsPagedCallable();
+  }
+
+  public static void asyncListRoomsPagedCallable() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListRoomsRequest request =
+          ListRoomsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = messagingClient.listRoomsPagedCallable().futureCall(request);
+      // Do something.
+      for (Room element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listrooms_pagedcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden
new file mode 100644
index 0000000000..55b6198dab
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_searchblurbs_async]
+import com.google.api.core.ApiFuture;
+import com.google.longrunning.Operation;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.SearchBlurbsRequest;
+
+public class AsyncSearchBlurbs {
+
+  public static void main(String[] args) throws Exception {
+    asyncSearchBlurbs();
+  }
+
+  public static void asyncSearchBlurbs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      SearchBlurbsRequest request =
+          SearchBlurbsRequest.newBuilder()
+              .setQuery("query107944136")
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = messagingClient.searchBlurbsCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_searchblurbs_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsOperationCallable.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsOperationCallable.golden
new file mode 100644
index 0000000000..a6d202c7fb
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsOperationCallable.golden
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_searchblurbs_operationcallable_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.SearchBlurbsMetadata;
+import com.google.showcase.v1beta1.SearchBlurbsRequest;
+import com.google.showcase.v1beta1.SearchBlurbsResponse;
+
+public class AsyncSearchBlurbsOperationCallable {
+
+  public static void main(String[] args) throws Exception {
+    asyncSearchBlurbsOperationCallable();
+  }
+
+  public static void asyncSearchBlurbsOperationCallable() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      SearchBlurbsRequest request =
+          SearchBlurbsRequest.newBuilder()
+              .setQuery("query107944136")
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      OperationFuture future =
+          messagingClient.searchBlurbsOperationCallable().futureCall(request);
+      // Do something.
+      SearchBlurbsResponse response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_searchblurbs_operationcallable_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbsStreamClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbsStreamClient.golden
new file mode 100644
index 0000000000..3b22bb119e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbsStreamClient.golden
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_sendblurbs_streamclient_async]
+import com.google.api.gax.rpc.ApiStreamObserver;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.CreateBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.SendBlurbsResponse;
+
+public class AsyncSendBlurbsStreamClient {
+
+  public static void main(String[] args) throws Exception {
+    asyncSendBlurbsStreamClient();
+  }
+
+  public static void asyncSendBlurbsStreamClient() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ApiStreamObserver responseObserver =
+          new ApiStreamObserver() {
+            @Override
+            public void onNext(SendBlurbsResponse response) {
+              // Do something when a response is received.
+            }
+
+            @Override
+            public void onError(Throwable t) {
+              // Add error-handling
+            }
+
+            @Override
+            public void onCompleted() {
+              // Do something when complete.
+            }
+          };
+      ApiStreamObserver requestObserver =
+          messagingClient.sendBlurbs().clientStreamingCall(responseObserver);
+      CreateBlurbRequest request =
+          CreateBlurbRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setBlurb(Blurb.newBuilder().build())
+              .build();
+      requestObserver.onNext(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_sendblurbs_streamclient_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbsStreamServer.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbsStreamServer.golden
new file mode 100644
index 0000000000..648fb7a8c8
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbsStreamServer.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_streamblurbs_streamserver_async]
+import com.google.api.gax.rpc.ServerStream;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.StreamBlurbsRequest;
+import com.google.showcase.v1beta1.StreamBlurbsResponse;
+
+public class AsyncStreamBlurbsStreamServer {
+
+  public static void main(String[] args) throws Exception {
+    asyncStreamBlurbsStreamServer();
+  }
+
+  public static void asyncStreamBlurbsStreamServer() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      StreamBlurbsRequest request =
+          StreamBlurbsRequest.newBuilder().setName(ProfileName.of("[USER]").toString()).build();
+      ServerStream stream =
+          messagingClient.streamBlurbsCallable().call(request);
+      for (StreamBlurbsResponse response : stream) {
+        // Do something when a response is received.
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_streamblurbs_streamserver_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden
new file mode 100644
index 0000000000..a3ce5f6f77
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_updateblurb_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.UpdateBlurbRequest;
+
+public class AsyncUpdateBlurb {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateBlurb();
+  }
+
+  public static void asyncUpdateBlurb() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      UpdateBlurbRequest request =
+          UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build();
+      ApiFuture future = messagingClient.updateBlurbCallable().futureCall(request);
+      // Do something.
+      Blurb response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_updateblurb_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden
new file mode 100644
index 0000000000..779495250c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_updateroom_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.UpdateRoomRequest;
+
+public class AsyncUpdateRoom {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateRoom();
+  }
+
+  public static void asyncUpdateRoom() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      UpdateRoomRequest request =
+          UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
+      ApiFuture future = messagingClient.updateRoomCallable().futureCall(request);
+      // Do something.
+      Room response = future.get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_updateroom_async]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden
new file mode 100644
index 0000000000..bddecdeb46
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createblurb_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.CreateBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncCreateBlurb {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBlurb();
+  }
+
+  public static void syncCreateBlurb() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      CreateBlurbRequest request =
+          CreateBlurbRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setBlurb(Blurb.newBuilder().build())
+              .build();
+      Blurb response = messagingClient.createBlurb(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createblurb_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden
new file mode 100644
index 0000000000..7e202c5c41
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createblurb_profilenamebytestring_sync]
+import com.google.protobuf.ByteString;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncCreateBlurbProfilenameBytestring {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBlurbProfilenameBytestring();
+  }
+
+  public static void syncCreateBlurbProfilenameBytestring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ProfileName parent = ProfileName.of("[USER]");
+      ByteString image = ByteString.EMPTY;
+      Blurb response = messagingClient.createBlurb(parent, image);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createblurb_profilenamebytestring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden
new file mode 100644
index 0000000000..0dfe1f3abc
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createblurb_profilenamestring_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncCreateBlurbProfilenameString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBlurbProfilenameString();
+  }
+
+  public static void syncCreateBlurbProfilenameString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ProfileName parent = ProfileName.of("[USER]");
+      String text = "text3556653";
+      Blurb response = messagingClient.createBlurb(parent, text);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createblurb_profilenamestring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden
new file mode 100644
index 0000000000..194ee34998
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createblurb_roomnamebytestring_sync]
+import com.google.protobuf.ByteString;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncCreateBlurbRoomnameBytestring {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBlurbRoomnameBytestring();
+  }
+
+  public static void syncCreateBlurbRoomnameBytestring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName parent = RoomName.of("[ROOM]");
+      ByteString image = ByteString.EMPTY;
+      Blurb response = messagingClient.createBlurb(parent, image);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createblurb_roomnamebytestring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden
new file mode 100644
index 0000000000..994d16b1a3
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createblurb_roomnamestring_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncCreateBlurbRoomnameString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBlurbRoomnameString();
+  }
+
+  public static void syncCreateBlurbRoomnameString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName parent = RoomName.of("[ROOM]");
+      String text = "text3556653";
+      Blurb response = messagingClient.createBlurb(parent, text);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createblurb_roomnamestring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden
new file mode 100644
index 0000000000..0c8f22dca3
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createblurb_stringbytestring_sync]
+import com.google.protobuf.ByteString;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncCreateBlurbStringBytestring {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBlurbStringBytestring();
+  }
+
+  public static void syncCreateBlurbStringBytestring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String parent = ProfileName.of("[USER]").toString();
+      ByteString image = ByteString.EMPTY;
+      Blurb response = messagingClient.createBlurb(parent, image);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createblurb_stringbytestring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden
new file mode 100644
index 0000000000..19e8b3e33f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createblurb_stringstring_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncCreateBlurbStringString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBlurbStringString();
+  }
+
+  public static void syncCreateBlurbStringString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String parent = ProfileName.of("[USER]").toString();
+      String text = "text3556653";
+      Blurb response = messagingClient.createBlurb(parent, text);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createblurb_stringstring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden
new file mode 100644
index 0000000000..6dd645ee49
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createroom_sync]
+import com.google.showcase.v1beta1.CreateRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class SyncCreateRoom {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateRoom();
+  }
+
+  public static void syncCreateRoom() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      CreateRoomRequest request =
+          CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
+      Room response = messagingClient.createRoom(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createroom_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden
new file mode 100644
index 0000000000..5d47cfb6e3
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_createroom_stringstring_sync]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class SyncCreateRoomStringString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateRoomStringString();
+  }
+
+  public static void syncCreateRoomStringString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String displayName = "displayName1714148973";
+      String description = "description-1724546052";
+      Room response = messagingClient.createRoom(displayName, description);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_createroom_stringstring_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden
new file mode 100644
index 0000000000..4ac54cdfb9
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.MessagingSettings;
+import com.google.showcase.v1beta1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    MessagingSettings messagingSettings =
+        MessagingSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    MessagingClient messagingClient = MessagingClient.create(messagingSettings);
+  }
+}
+// [END goldensample_generated_messagingclient_create_setcredentialsprovider_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden
new file mode 100644
index 0000000000..45f567766d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_create_setendpoint_sync]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.MessagingSettings;
+import com.google.showcase.v1beta1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    MessagingSettings messagingSettings =
+        MessagingSettings.newBuilder().setEndpoint(myEndpoint).build();
+    MessagingClient messagingClient = MessagingClient.create(messagingSettings);
+  }
+}
+// [END goldensample_generated_messagingclient_create_setendpoint_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden
new file mode 100644
index 0000000000..abedec6cc9
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_deleteblurb_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.DeleteBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class SyncDeleteBlurb {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteBlurb();
+  }
+
+  public static void syncDeleteBlurb() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      DeleteBlurbRequest request =
+          DeleteBlurbRequest.newBuilder()
+              .setName(
+                  BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]")
+                      .toString())
+              .build();
+      messagingClient.deleteBlurb(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_deleteblurb_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden
new file mode 100644
index 0000000000..fbab080ec4
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_deleteblurb_blurbname_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class SyncDeleteBlurbBlurbname {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteBlurbBlurbname();
+  }
+
+  public static void syncDeleteBlurbBlurbname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      BlurbName name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]");
+      messagingClient.deleteBlurb(name);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_deleteblurb_blurbname_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden
new file mode 100644
index 0000000000..4d64e0889e
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_deleteblurb_string_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class SyncDeleteBlurbString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteBlurbString();
+  }
+
+  public static void syncDeleteBlurbString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String name =
+          BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
+      messagingClient.deleteBlurb(name);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_deleteblurb_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden
new file mode 100644
index 0000000000..76dcad4782
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_deleteroom_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.DeleteRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncDeleteRoom {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteRoom();
+  }
+
+  public static void syncDeleteRoom() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      DeleteRoomRequest request =
+          DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
+      messagingClient.deleteRoom(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_deleteroom_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden
new file mode 100644
index 0000000000..37658c32c6
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_deleteroom_roomname_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncDeleteRoomRoomname {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteRoomRoomname();
+  }
+
+  public static void syncDeleteRoomRoomname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName name = RoomName.of("[ROOM]");
+      messagingClient.deleteRoom(name);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_deleteroom_roomname_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden
new file mode 100644
index 0000000000..1e6ede1865
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_deleteroom_string_sync]
+import com.google.protobuf.Empty;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncDeleteRoomString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteRoomString();
+  }
+
+  public static void syncDeleteRoomString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String name = RoomName.of("[ROOM]").toString();
+      messagingClient.deleteRoom(name);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_deleteroom_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden
new file mode 100644
index 0000000000..cc1ae967ba
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_getblurb_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.GetBlurbRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class SyncGetBlurb {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBlurb();
+  }
+
+  public static void syncGetBlurb() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      GetBlurbRequest request =
+          GetBlurbRequest.newBuilder()
+              .setName(
+                  BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]")
+                      .toString())
+              .build();
+      Blurb response = messagingClient.getBlurb(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_getblurb_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden
new file mode 100644
index 0000000000..4696adc0ca
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_getblurb_blurbname_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class SyncGetBlurbBlurbname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBlurbBlurbname();
+  }
+
+  public static void syncGetBlurbBlurbname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      BlurbName name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]");
+      Blurb response = messagingClient.getBlurb(name);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_getblurb_blurbname_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden
new file mode 100644
index 0000000000..e7d8f4cfc3
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_getblurb_string_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.BlurbName;
+import com.google.showcase.v1beta1.MessagingClient;
+
+public class SyncGetBlurbString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBlurbString();
+  }
+
+  public static void syncGetBlurbString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String name =
+          BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
+      Blurb response = messagingClient.getBlurb(name);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_getblurb_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden
new file mode 100644
index 0000000000..41c0ca166f
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_getroom_sync]
+import com.google.showcase.v1beta1.GetRoomRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncGetRoom {
+
+  public static void main(String[] args) throws Exception {
+    syncGetRoom();
+  }
+
+  public static void syncGetRoom() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      GetRoomRequest request =
+          GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
+      Room response = messagingClient.getRoom(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_getroom_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden
new file mode 100644
index 0000000000..f4485469ee
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_getroom_roomname_sync]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncGetRoomRoomname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetRoomRoomname();
+  }
+
+  public static void syncGetRoomRoomname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName name = RoomName.of("[ROOM]");
+      Room response = messagingClient.getRoom(name);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_getroom_roomname_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden
new file mode 100644
index 0000000000..469e674fcf
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_getroom_string_sync]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncGetRoomString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetRoomString();
+  }
+
+  public static void syncGetRoomString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String name = RoomName.of("[ROOM]").toString();
+      Room response = messagingClient.getRoom(name);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_getroom_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden
new file mode 100644
index 0000000000..be32bec612
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listblurbs_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.ListBlurbsRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncListBlurbs {
+
+  public static void main(String[] args) throws Exception {
+    syncListBlurbs();
+  }
+
+  public static void syncListBlurbs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListBlurbsRequest request =
+          ListBlurbsRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (Blurb element : messagingClient.listBlurbs(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listblurbs_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsPaged.golden
new file mode 100644
index 0000000000..c24daf9bfc
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsPaged.golden
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listblurbs_paged_sync]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.ListBlurbsRequest;
+import com.google.showcase.v1beta1.ListBlurbsResponse;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncListBlurbsPaged {
+
+  public static void main(String[] args) throws Exception {
+    syncListBlurbsPaged();
+  }
+
+  public static void syncListBlurbsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListBlurbsRequest request =
+          ListBlurbsRequest.newBuilder()
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListBlurbsResponse response = messagingClient.listBlurbsCallable().call(request);
+        for (Blurb element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listblurbs_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden
new file mode 100644
index 0000000000..9156c3e956
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listblurbs_profilename_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncListBlurbsProfilename {
+
+  public static void main(String[] args) throws Exception {
+    syncListBlurbsProfilename();
+  }
+
+  public static void syncListBlurbsProfilename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ProfileName parent = ProfileName.of("[USER]");
+      for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listblurbs_profilename_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden
new file mode 100644
index 0000000000..1fed75fdfc
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listblurbs_roomname_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.RoomName;
+
+public class SyncListBlurbsRoomname {
+
+  public static void main(String[] args) throws Exception {
+    syncListBlurbsRoomname();
+  }
+
+  public static void syncListBlurbsRoomname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      RoomName parent = RoomName.of("[ROOM]");
+      for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listblurbs_roomname_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden
new file mode 100644
index 0000000000..8fe9080264
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listblurbs_string_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+
+public class SyncListBlurbsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListBlurbsString();
+  }
+
+  public static void syncListBlurbsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String parent = ProfileName.of("[USER]").toString();
+      for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listblurbs_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden
new file mode 100644
index 0000000000..f3a8abc711
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listrooms_sync]
+import com.google.showcase.v1beta1.ListRoomsRequest;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class SyncListRooms {
+
+  public static void main(String[] args) throws Exception {
+    syncListRooms();
+  }
+
+  public static void syncListRooms() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListRoomsRequest request =
+          ListRoomsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (Room element : messagingClient.listRooms(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listrooms_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRoomsPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRoomsPaged.golden
new file mode 100644
index 0000000000..96bcc331bc
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRoomsPaged.golden
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_listrooms_paged_sync]
+import com.google.common.base.Strings;
+import com.google.showcase.v1beta1.ListRoomsRequest;
+import com.google.showcase.v1beta1.ListRoomsResponse;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+
+public class SyncListRoomsPaged {
+
+  public static void main(String[] args) throws Exception {
+    syncListRoomsPaged();
+  }
+
+  public static void syncListRoomsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      ListRoomsRequest request =
+          ListRoomsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListRoomsResponse response = messagingClient.listRoomsCallable().call(request);
+        for (Room element : response.getResponsesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_listrooms_paged_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden
new file mode 100644
index 0000000000..a52299a511
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_searchblurbs_sync]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.ProfileName;
+import com.google.showcase.v1beta1.SearchBlurbsRequest;
+import com.google.showcase.v1beta1.SearchBlurbsResponse;
+
+public class SyncSearchBlurbs {
+
+  public static void main(String[] args) throws Exception {
+    syncSearchBlurbs();
+  }
+
+  public static void syncSearchBlurbs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      SearchBlurbsRequest request =
+          SearchBlurbsRequest.newBuilder()
+              .setQuery("query107944136")
+              .setParent(ProfileName.of("[USER]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(request).get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_searchblurbs_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden
new file mode 100644
index 0000000000..53366c2f0a
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_searchblurbs_string_sync]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.SearchBlurbsResponse;
+
+public class SyncSearchBlurbsString {
+
+  public static void main(String[] args) throws Exception {
+    syncSearchBlurbsString();
+  }
+
+  public static void syncSearchBlurbsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      String query = "query107944136";
+      SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(query).get();
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_searchblurbs_string_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden
new file mode 100644
index 0000000000..c13e6d97a8
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_updateblurb_sync]
+import com.google.showcase.v1beta1.Blurb;
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.UpdateBlurbRequest;
+
+public class SyncUpdateBlurb {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateBlurb();
+  }
+
+  public static void syncUpdateBlurb() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      UpdateBlurbRequest request =
+          UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build();
+      Blurb response = messagingClient.updateBlurb(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_updateblurb_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden
new file mode 100644
index 0000000000..66fb9b7c41
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_messagingclient_updateroom_sync]
+import com.google.showcase.v1beta1.MessagingClient;
+import com.google.showcase.v1beta1.Room;
+import com.google.showcase.v1beta1.UpdateRoomRequest;
+
+public class SyncUpdateRoom {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateRoom();
+  }
+
+  public static void syncUpdateRoom() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (MessagingClient messagingClient = MessagingClient.create()) {
+      UpdateRoomRequest request =
+          UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
+      Room response = messagingClient.updateRoom(request);
+    }
+  }
+}
+// [END goldensample_generated_messagingclient_updateroom_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden
new file mode 100644
index 0000000000..4b4458d46c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.samples;
+
+// [START goldensample_generated_echosettings_echo_sync]
+import com.google.showcase.v1beta1.EchoSettings;
+import java.time.Duration;
+
+public class SyncEcho {
+
+  public static void main(String[] args) throws Exception {
+    syncEcho();
+  }
+
+  public static void syncEcho() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();
+    echoSettingsBuilder
+        .echoSettings()
+        .setRetrySettings(
+            echoSettingsBuilder
+                .echoSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    EchoSettings echoSettings = echoSettingsBuilder.build();
+  }
+}
+// [END goldensample_generated_echosettings_echo_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden
new file mode 100644
index 0000000000..60745906df
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.samples;
+
+// [START goldensample_generated_deprecatedservicesettings_fastfibonacci_sync]
+import com.google.testdata.v1.DeprecatedServiceSettings;
+import java.time.Duration;
+
+public class SyncFastFibonacci {
+
+  public static void main(String[] args) throws Exception {
+    syncFastFibonacci();
+  }
+
+  public static void syncFastFibonacci() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    DeprecatedServiceSettings.Builder deprecatedServiceSettingsBuilder =
+        DeprecatedServiceSettings.newBuilder();
+    deprecatedServiceSettingsBuilder
+        .fastFibonacciSettings()
+        .setRetrySettings(
+            deprecatedServiceSettingsBuilder
+                .fastFibonacciSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    DeprecatedServiceSettings deprecatedServiceSettings = deprecatedServiceSettingsBuilder.build();
+  }
+}
+// [END goldensample_generated_deprecatedservicesettings_fastfibonacci_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden
new file mode 100644
index 0000000000..750f0115f6
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.pubsub.v1.stub.samples;
+
+// [START goldensample_generated_publisherstubsettings_createtopic_sync]
+import com.google.pubsub.v1.stub.PublisherStubSettings;
+import java.time.Duration;
+
+public class SyncCreateTopic {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateTopic();
+  }
+
+  public static void syncCreateTopic() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    PublisherStubSettings.Builder publisherSettingsBuilder = PublisherStubSettings.newBuilder();
+    publisherSettingsBuilder
+        .createTopicSettings()
+        .setRetrySettings(
+            publisherSettingsBuilder
+                .createTopicSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    PublisherStubSettings publisherSettings = publisherSettingsBuilder.build();
+  }
+}
+// [END goldensample_generated_publisherstubsettings_createtopic_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden
new file mode 100644
index 0000000000..b2bdd9b49d
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.logging.v2.stub.samples;
+
+// [START goldensample_generated_loggingservicev2stubsettings_deletelog_sync]
+import com.google.logging.v2.stub.LoggingServiceV2StubSettings;
+import java.time.Duration;
+
+public class SyncDeleteLog {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteLog();
+  }
+
+  public static void syncDeleteLog() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    LoggingServiceV2StubSettings.Builder loggingServiceV2SettingsBuilder =
+        LoggingServiceV2StubSettings.newBuilder();
+    loggingServiceV2SettingsBuilder
+        .deleteLogSettings()
+        .setRetrySettings(
+            loggingServiceV2SettingsBuilder
+                .deleteLogSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    LoggingServiceV2StubSettings loggingServiceV2Settings = loggingServiceV2SettingsBuilder.build();
+  }
+}
+// [END goldensample_generated_loggingservicev2stubsettings_deletelog_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden
new file mode 100644
index 0000000000..fb15d47b6c
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.showcase.v1beta1.stub.samples;
+
+// [START goldensample_generated_echostubsettings_echo_sync]
+import com.google.showcase.v1beta1.stub.EchoStubSettings;
+import java.time.Duration;
+
+public class SyncEcho {
+
+  public static void main(String[] args) throws Exception {
+    syncEcho();
+  }
+
+  public static void syncEcho() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();
+    echoSettingsBuilder
+        .echoSettings()
+        .setRetrySettings(
+            echoSettingsBuilder
+                .echoSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    EchoStubSettings echoSettings = echoSettingsBuilder.build();
+  }
+}
+// [END goldensample_generated_echostubsettings_echo_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden
new file mode 100644
index 0000000000..8a00e1431b
--- /dev/null
+++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * 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
+ *
+ *      https://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.testdata.v1.stub.samples;
+
+// [START goldensample_generated_deprecatedservicestubsettings_fastfibonacci_sync]
+import com.google.testdata.v1.stub.DeprecatedServiceStubSettings;
+import java.time.Duration;
+
+public class SyncFastFibonacci {
+
+  public static void main(String[] args) throws Exception {
+    syncFastFibonacci();
+  }
+
+  public static void syncFastFibonacci() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    DeprecatedServiceStubSettings.Builder deprecatedServiceSettingsBuilder =
+        DeprecatedServiceStubSettings.newBuilder();
+    deprecatedServiceSettingsBuilder
+        .fastFibonacciSettings()
+        .setRetrySettings(
+            deprecatedServiceSettingsBuilder
+                .fastFibonacciSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    DeprecatedServiceStubSettings deprecatedServiceSettings =
+        deprecatedServiceSettingsBuilder.build();
+  }
+}
+// [END goldensample_generated_deprecatedservicestubsettings_fastfibonacci_sync]
diff --git a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden
index 11af8d46ae..6660e07be5 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden
@@ -34,6 +34,8 @@ import javax.annotation.Generated;
  * 

For example, to set the total timeout of repeatDataBody to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ComplianceSettings.Builder complianceSettingsBuilder = ComplianceSettings.newBuilder();
  * complianceSettingsBuilder
  *     .repeatDataBodySettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden
index fe74c48c98..7fd6d0bc34 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden
+++ b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden
@@ -43,6 +43,8 @@ import javax.annotation.Generated;
  * 

For example, to set the total timeout of repeatDataBody to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ComplianceStubSettings.Builder complianceSettingsBuilder = ComplianceStubSettings.newBuilder();
  * complianceSettingsBuilder
  *     .repeatDataBodySettings()
diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java
index dae2aac86b..bd6366b11f 100644
--- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java
+++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java
@@ -30,7 +30,7 @@
 import org.junit.Assert;
 import org.junit.Test;
 
-public class ServiceClientMethodSampleComposerTest {clear
+public class ServiceClientMethodSampleComposerTest {
   private static final String SHOWCASE_PACKAGE_NAME = "com.google.showcase.v1beta1";
   private static final String LRO_PACKAGE_NAME = "com.google.longrunning";
   private static final String PROTO_PACKAGE_NAME = "com.google.protobuf";
@@ -42,48 +42,48 @@ public void valid_composeDefaultSample_isPagedMethod() {
     Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
     Map messageTypes = Parser.parseMessages(echoFileDescriptor);
     TypeNode clientType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoClient")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode inputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("PagedExpandRequest")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode outputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("PagedExpandResponse")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     Method method =
-            Method.builder()
-                    .setName("PagedExpand")
-                    .setInputType(inputType)
-                    .setOutputType(outputType)
-                    .setMethodSignatures(Collections.emptyList())
-                    .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-                    .build();
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
     String results =
-            writeStatements(
-                    ServiceClientMethodSampleComposer.composeCanonicalSample(
-                            method, clientType, resourceNames, messageTypes));
+        writeStatements(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
+                method, clientType, resourceNames, messageTypes));
     String expected =
-            LineFormatter.lines(
-                    "try (EchoClient echoClient = EchoClient.create()) {\n",
-                    "  PagedExpandRequest request =\n",
-                    "      PagedExpandRequest.newBuilder()\n",
-                    "          .setContent(\"content951530617\")\n",
-                    "          .setPageSize(883849137)\n",
-                    "          .setPageToken(\"pageToken873572522\")\n",
-                    "          .build();\n",
-                    "  for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {\n",
-                    "    // doThingsWith(element);\n",
-                    "  }\n",
-                    "}");
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  PagedExpandRequest request =\n",
+            "      PagedExpandRequest.newBuilder()\n",
+            "          .setContent(\"content951530617\")\n",
+            "          .setPageSize(883849137)\n",
+            "          .setPageToken(\"pageToken873572522\")\n",
+            "          .build();\n",
+            "  for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {\n",
+            "    // doThingsWith(element);\n",
+            "  }\n",
+            "}");
     Assert.assertEquals(results, expected);
   }
 
@@ -93,36 +93,36 @@ public void invalid_composeDefaultSample_isPagedMethod() {
     Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
     Map messageTypes = Parser.parseMessages(echoFileDescriptor);
     TypeNode clientType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoClient")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode inputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("NotExistRequest")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("NotExistRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode outputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("PagedExpandResponse")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("PagedExpandResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     Method method =
-            Method.builder()
-                    .setName("PagedExpand")
-                    .setInputType(inputType)
-                    .setOutputType(outputType)
-                    .setMethodSignatures(Collections.emptyList())
-                    .setPageSizeFieldName(PAGINATED_FIELD_NAME)
-                    .build();
+        Method.builder()
+            .setName("PagedExpand")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setPageSizeFieldName(PAGINATED_FIELD_NAME)
+            .build();
     Assert.assertThrows(
-            NullPointerException.class,
-            () ->
-                    ServiceClientMethodSampleComposer.composeCanonicalSample(
-                            method, clientType, resourceNames, messageTypes));
+        NullPointerException.class,
+        () ->
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
+                method, clientType, resourceNames, messageTypes));
   }
 
   @Test
@@ -131,52 +131,52 @@ public void valid_composeDefaultSample_hasLroMethodWithReturnResponse() {
     Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
     Map messageTypes = Parser.parseMessages(echoFileDescriptor);
     TypeNode clientType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoClient")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode inputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("WaitRequest")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode outputType =
-            TypeNode.withReference(
-                    VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
     TypeNode responseType =
-            TypeNode.withReference(
-                    VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
     TypeNode metadataType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("WaitMetadata")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     LongrunningOperation lro =
-            LongrunningOperation.builder()
-                    .setResponseType(responseType)
-                    .setMetadataType(metadataType)
-                    .build();
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
     Method method =
-            Method.builder()
-                    .setName("Wait")
-                    .setInputType(inputType)
-                    .setOutputType(outputType)
-                    .setMethodSignatures(Collections.emptyList())
-                    .setLro(lro)
-                    .build();
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setLro(lro)
+            .build();
     String results =
-            writeStatements(
-                    ServiceClientMethodSampleComposer.composeCanonicalSample(
-                            method, clientType, resourceNames, messageTypes));
+        writeStatements(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
+                method, clientType, resourceNames, messageTypes));
     String expected =
-            LineFormatter.lines(
-                    "try (EchoClient echoClient = EchoClient.create()) {\n",
-                    "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-                    "  echoClient.waitAsync(request).get();\n",
-                    "}");
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  echoClient.waitAsync(request).get();\n",
+            "}");
     Assert.assertEquals(results, expected);
   }
 
@@ -186,55 +186,55 @@ public void valid_composeDefaultSample_hasLroMethodWithReturnVoid() {
     Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
     Map messageTypes = Parser.parseMessages(echoFileDescriptor);
     TypeNode clientType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoClient")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode inputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("WaitRequest")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode outputType =
-            TypeNode.withReference(
-                    VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
+        TypeNode.withReference(
+            VaporReference.builder().setName("Operation").setPakkage(LRO_PACKAGE_NAME).build());
     TypeNode responseType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("WaitResponse")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode metadataType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("WaitMetadata")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("WaitMetadata")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     LongrunningOperation lro =
-            LongrunningOperation.builder()
-                    .setResponseType(responseType)
-                    .setMetadataType(metadataType)
-                    .build();
+        LongrunningOperation.builder()
+            .setResponseType(responseType)
+            .setMetadataType(metadataType)
+            .build();
     Method method =
-            Method.builder()
-                    .setName("Wait")
-                    .setInputType(inputType)
-                    .setOutputType(outputType)
-                    .setMethodSignatures(Collections.emptyList())
-                    .setLro(lro)
-                    .build();
+        Method.builder()
+            .setName("Wait")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .setLro(lro)
+            .build();
     String results =
-            writeStatements(
-                    ServiceClientMethodSampleComposer.composeCanonicalSample(
-                            method, clientType, resourceNames, messageTypes));
+        writeStatements(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
+                method, clientType, resourceNames, messageTypes));
     String expected =
-            LineFormatter.lines(
-                    "try (EchoClient echoClient = EchoClient.create()) {\n",
-                    "  WaitRequest request = WaitRequest.newBuilder().build();\n",
-                    "  WaitResponse response = echoClient.waitAsync(request).get();\n",
-                    "}");
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  WaitRequest request = WaitRequest.newBuilder().build();\n",
+            "  WaitResponse response = echoClient.waitAsync(request).get();\n",
+            "}");
     Assert.assertEquals(results, expected);
   }
 
@@ -244,45 +244,45 @@ public void valid_composeDefaultSample_pureUnaryReturnVoid() {
     Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
     Map messageTypes = Parser.parseMessages(echoFileDescriptor);
     TypeNode clientType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoClient")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode inputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoRequest")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode outputType =
-            TypeNode.withReference(
-                    VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
+        TypeNode.withReference(
+            VaporReference.builder().setName("Empty").setPakkage(PROTO_PACKAGE_NAME).build());
     Method method =
-            Method.builder()
-                    .setName("Echo")
-                    .setInputType(inputType)
-                    .setOutputType(outputType)
-                    .setMethodSignatures(Collections.emptyList())
-                    .build();
+        Method.builder()
+            .setName("Echo")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .build();
     String results =
-            writeStatements(
-                    ServiceClientMethodSampleComposer.composeCanonicalSample(
-                            method, clientType, resourceNames, messageTypes));
+        writeStatements(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
+                method, clientType, resourceNames, messageTypes));
     String expected =
-            LineFormatter.lines(
-                    "try (EchoClient echoClient = EchoClient.create()) {\n",
-                    "  EchoRequest request =\n",
-                    "      EchoRequest.newBuilder()\n",
-                    "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                            + " \"[FOOBAR]\").toString())\n",
-                    "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                            + " \"[FOOBAR]\").toString())\n",
-                    "          .setSeverity(Severity.forNumber(0))\n",
-                    "          .setFoobar(Foobar.newBuilder().build())\n",
-                    "          .build();\n",
-                    "  echoClient.echo(request);\n",
-                    "}");
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  echoClient.echo(request);\n",
+            "}");
     Assert.assertEquals(results, expected);
   }
 
@@ -292,52 +292,52 @@ public void valid_composeDefaultSample_pureUnaryReturnResponse() {
     Map resourceNames = Parser.parseResourceNames(echoFileDescriptor);
     Map messageTypes = Parser.parseMessages(echoFileDescriptor);
     TypeNode clientType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoClient")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoClient")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode inputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoRequest")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoRequest")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     TypeNode outputType =
-            TypeNode.withReference(
-                    VaporReference.builder()
-                            .setName("EchoResponse")
-                            .setPakkage(SHOWCASE_PACKAGE_NAME)
-                            .build());
+        TypeNode.withReference(
+            VaporReference.builder()
+                .setName("EchoResponse")
+                .setPakkage(SHOWCASE_PACKAGE_NAME)
+                .build());
     Method method =
-            Method.builder()
-                    .setName("Echo")
-                    .setInputType(inputType)
-                    .setOutputType(outputType)
-                    .setMethodSignatures(Collections.emptyList())
-                    .build();
+        Method.builder()
+            .setName("Echo")
+            .setInputType(inputType)
+            .setOutputType(outputType)
+            .setMethodSignatures(Collections.emptyList())
+            .build();
     String results =
-            writeStatements(
-                    ServiceClientMethodSampleComposer.composeCanonicalSample(
-                            method, clientType, resourceNames, messageTypes));
+        writeStatements(
+            ServiceClientMethodSampleComposer.composeCanonicalSample(
+                method, clientType, resourceNames, messageTypes));
     String expected =
-            LineFormatter.lines(
-                    "try (EchoClient echoClient = EchoClient.create()) {\n",
-                    "  EchoRequest request =\n",
-                    "      EchoRequest.newBuilder()\n",
-                    "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                            + " \"[FOOBAR]\").toString())\n",
-                    "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
-                            + " \"[FOOBAR]\").toString())\n",
-                    "          .setSeverity(Severity.forNumber(0))\n",
-                    "          .setFoobar(Foobar.newBuilder().build())\n",
-                    "          .build();\n",
-                    "  EchoResponse response = echoClient.echo(request);\n",
-                    "}");
+        LineFormatter.lines(
+            "try (EchoClient echoClient = EchoClient.create()) {\n",
+            "  EchoRequest request =\n",
+            "      EchoRequest.newBuilder()\n",
+            "          .setName(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\","
+                + " \"[FOOBAR]\").toString())\n",
+            "          .setSeverity(Severity.forNumber(0))\n",
+            "          .setFoobar(Foobar.newBuilder().build())\n",
+            "          .build();\n",
+            "  EchoResponse response = echoClient.echo(request);\n",
+            "}");
     Assert.assertEquals(results, expected);
   }
 
   private String writeStatements(Sample sample) {
     return SampleCodeWriter.write(sample.body());
   }
-}
\ No newline at end of file
+}